From 2a9cb77bcb732d6107446a81ad392bb46a3b61f0 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 8 May 2025 13:34:00 +1000 Subject: [PATCH 01/29] WIP: Migrating package:objective_c to native_assets --- .../ffigen/lib/src/code_generator/writer.dart | 1 + pkgs/objective_c/.metadata | 33 - pkgs/objective_c/ffigen_c.yaml | 34 +- pkgs/objective_c/ffigen_objc.yaml | 10 +- pkgs/objective_c/ffigen_runtime.yaml | 63 + pkgs/objective_c/hook/build.dart | 138 + pkgs/objective_c/ios/Classes/objective_c.c | 8 - pkgs/objective_c/ios/Classes/objective_c.m | 10 - pkgs/objective_c/ios/objective_c.podspec | 28 - pkgs/objective_c/lib/objective_c.dart | 16 +- .../lib/src/c_bindings_generated.dart | 233 +- pkgs/objective_c/lib/src/internal.dart | 65 +- pkgs/objective_c/lib/src/ns_input_stream.dart | 3 +- .../src/objective_c_bindings_generated.dart | 23827 ++++++++++------ .../lib/src/objective_c_native_base.dart | 6 + .../objective_c/lib/src/protocol_builder.dart | 7 +- .../lib/src/runtime_bindings_generated.dart | 145 + pkgs/objective_c/lib/src/selector.dart | 8 +- pkgs/objective_c/macos/Classes/objective_c.c | 8 - pkgs/objective_c/macos/Classes/objective_c.m | 10 - pkgs/objective_c/macos/objective_c.podspec | 27 - pkgs/objective_c/pubspec.yaml | 27 +- pkgs/objective_c/src/CMakeLists.txt | 22 - pkgs/objective_c/src/input_stream_adapter.h | 2 + pkgs/objective_c/src/input_stream_adapter.m | 4 + pkgs/objective_c/src/objective_c.h | 21 + pkgs/objective_c/src/objective_c_runtime.h | 21 - pkgs/objective_c/test/generate_code_test.dart | 16 +- .../test/ns_input_stream_test.dart | 5 - .../test/ns_mutable_data_test.dart | 5 - pkgs/objective_c/test/nsarray_test.dart | 5 - pkgs/objective_c/test/nsdata_test.dart | 5 - .../objective_c/test/nsmutablearray_test.dart | 5 - pkgs/objective_c/test/nsnumber_test.dart | 5 - pkgs/objective_c/test/nsstring_test.dart | 5 - pkgs/objective_c/test/os_version_test.dart | 5 - pkgs/objective_c/test/selector_test.dart | 5 - pkgs/objective_c/test/setup.dart | 108 - .../tool/data/extra_methods.dart.in | 2 +- pkgs/objective_c/tool/generate_code.dart | 7 +- 40 files changed, 15872 insertions(+), 9083 deletions(-) delete mode 100644 pkgs/objective_c/.metadata create mode 100644 pkgs/objective_c/ffigen_runtime.yaml create mode 100644 pkgs/objective_c/hook/build.dart delete mode 100644 pkgs/objective_c/ios/Classes/objective_c.c delete mode 100644 pkgs/objective_c/ios/Classes/objective_c.m delete mode 100644 pkgs/objective_c/ios/objective_c.podspec create mode 100644 pkgs/objective_c/lib/src/objective_c_native_base.dart create mode 100644 pkgs/objective_c/lib/src/runtime_bindings_generated.dart delete mode 100644 pkgs/objective_c/macos/Classes/objective_c.c delete mode 100644 pkgs/objective_c/macos/Classes/objective_c.m delete mode 100644 pkgs/objective_c/macos/objective_c.podspec delete mode 100644 pkgs/objective_c/src/CMakeLists.txt delete mode 100644 pkgs/objective_c/test/setup.dart diff --git a/pkgs/ffigen/lib/src/code_generator/writer.dart b/pkgs/ffigen/lib/src/code_generator/writer.dart index 0ffd10c9a..5cee2b617 100644 --- a/pkgs/ffigen/lib/src/code_generator/writer.dart +++ b/pkgs/ffigen/lib/src/code_generator/writer.dart @@ -160,6 +160,7 @@ class Writer { ], ); } + additionalImports.forEach(markImportUsed); /// [_lookupFuncIdentifier] should be unique in top level. _lookupFuncIdentifier = _resolveNameConflict( diff --git a/pkgs/objective_c/.metadata b/pkgs/objective_c/.metadata deleted file mode 100644 index a41ab896b..000000000 --- a/pkgs/objective_c/.metadata +++ /dev/null @@ -1,33 +0,0 @@ -# This file tracks properties of this Flutter project. -# Used by Flutter tool to assess capabilities and perform upgrades etc. -# -# This file should be version controlled and should not be manually edited. - -version: - revision: "aedce673f760bc19f13aa0600e2c1df9ae502117" - channel: "master" - -project_type: plugin_ffi - -# Tracks metadata for the flutter migrate command -migration: - platforms: - - platform: root - create_revision: aedce673f760bc19f13aa0600e2c1df9ae502117 - base_revision: aedce673f760bc19f13aa0600e2c1df9ae502117 - - platform: ios - create_revision: aedce673f760bc19f13aa0600e2c1df9ae502117 - base_revision: aedce673f760bc19f13aa0600e2c1df9ae502117 - - platform: macos - create_revision: aedce673f760bc19f13aa0600e2c1df9ae502117 - base_revision: aedce673f760bc19f13aa0600e2c1df9ae502117 - - # User provided section - - # List of Local paths (relative to this file) that should be - # ignored by the migrate tool. - # - # Files that are not part of the templates will be ignored by default. - unmanaged_files: - - 'lib/main.dart' - - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/pkgs/objective_c/ffigen_c.yaml b/pkgs/objective_c/ffigen_c.yaml index 779f01edf..5db1ba35d 100644 --- a/pkgs/objective_c/ffigen_c.yaml +++ b/pkgs/objective_c/ffigen_c.yaml @@ -6,28 +6,20 @@ headers: entry-points: - 'src/include/dart_api_dl.h' - 'src/objective_c.h' - - 'src/objective_c_runtime.h' - 'src/os_version.h' ffi-native: - assetId: 'objective_c.framework/objective_c' + asset-id: 'package:objective_c/objective_c.dylib' exclude-all-by-default: true generate-for-package-objective-c: true sort: true functions: include: - - 'objc_.*' - - 'object_getClass' - - 'sel_registerName' - - 'sel_getName' - - 'protocol_getMethodDescription' - - 'protocol_getName' - 'newFinalizableHandle' - 'DOBJC_.*' leaf: include: - '.*' exclude: - - 'objc_msgSend.*' - 'DOBJC_deleteFinalizableHandle' - 'DOBJC_disposeObjCBlockWithClosure' - 'DOBJC_newFinalizableBool' @@ -35,31 +27,11 @@ functions: - 'DOBJC_awaitWaiter' rename: 'DOBJC_(.*)': '$1' - 'sel_registerName': 'registerName' - 'sel_getName': 'getName' - 'objc_getClass': 'getClass' - 'objc_retain': 'objectRetain' - 'objc_retainBlock': 'blockRetain' - 'objc_release': 'objectRelease' - 'objc_autorelease': 'objectAutorelease' - 'objc_msgSend': 'msgSend' - 'objc_msgSend_fpret': 'msgSendFpret' - 'objc_msgSend_stret': 'msgSendStret' - 'object_getClass': 'getObjectClass' - 'objc_copyClassList': 'copyClassList' - 'objc_getProtocol': 'getProtocol' - 'protocol_getMethodDescription': 'getMethodDescription' - 'protocol_getName': 'getProtocolName' -globals: - include: - - '_NSConcrete.*Block' - rename: - '_(.*)': '$1' typedefs: include: - 'Dart_FinalizableHandle' structs: - include : + include: - '_DOBJC_Context' rename: '_ObjC(.*)': 'ObjC$1' @@ -73,7 +45,7 @@ preamble: | // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. - // Bindings for `src/objective_c.h` and `src/objective_c_runtime.h`. + // Bindings for `src/objective_c.h` etc. // Regenerate bindings with `dart run tool/generate_code.dart`. // ignore_for_file: always_specify_types diff --git a/pkgs/objective_c/ffigen_objc.yaml b/pkgs/objective_c/ffigen_objc.yaml index d78373900..22ce73983 100644 --- a/pkgs/objective_c/ffigen_objc.yaml +++ b/pkgs/objective_c/ffigen_objc.yaml @@ -11,6 +11,9 @@ headers: - 'src/input_stream_adapter.h' - 'src/protocol.h' ffi-native: + asset-id: 'package:objective_c/objective_c.dylib' +library-imports: + collection: 'dart:collection' exclude-all-by-default: true include-transitive-objc-categories: false generate-for-package-objective-c: true @@ -96,6 +99,9 @@ objc-categories: - NSExtendedSet - NSNumberCreation - NSStringExtensionMethods +functions: + include: + - getLocalizedDescriptionKey structs: include: - _NSRange @@ -130,9 +136,6 @@ enums: - NSURLBookmarkCreationOptions - NSURLBookmarkResolutionOptions - NSURLHandleStatus -globals: - include: - - NSLocalizedDescriptionKey preamble: | // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a @@ -148,4 +151,3 @@ preamble: | // ignore_for_file: unused_element // ignore_for_file: unused_field // coverage:ignore-file - import 'dart:collection'; diff --git a/pkgs/objective_c/ffigen_runtime.yaml b/pkgs/objective_c/ffigen_runtime.yaml new file mode 100644 index 000000000..41d591127 --- /dev/null +++ b/pkgs/objective_c/ffigen_runtime.yaml @@ -0,0 +1,63 @@ +# Generate bindings for the ObjC runtime headers. +# Regenerate bindings with `dart run tool/generate_code.dart`. +name: RuntimeBindings +output: 'lib/src/runtime_bindings_generated.dart' +headers: + entry-points: + - 'src/objective_c_runtime.h' +ffi-native: +exclude-all-by-default: true +generate-for-package-objective-c: true +sort: true +functions: + include: + - 'objc_.*' + - 'object_getClass' + - 'sel_registerName' + - 'sel_getName' + - 'protocol_getMethodDescription' + - 'protocol_getName' + leaf: + include: + - '.*' + exclude: + - 'objc_msgSend.*' + rename: + 'sel_registerName': 'registerName' + 'sel_getName': 'getName' + 'objc_getClass': 'getClass' + 'objc_retain': 'objectRetain' + 'objc_retainBlock': 'blockRetain' + 'objc_release': 'objectRelease' + 'objc_autorelease': 'objectAutorelease' + 'objc_msgSend': 'msgSend' + 'objc_msgSend_fpret': 'msgSendFpret' + 'objc_msgSend_stret': 'msgSendStret' + 'object_getClass': 'getObjectClass' + 'objc_copyClassList': 'copyClassList' + 'objc_getProtocol': 'getProtocol' + 'protocol_getMethodDescription': 'getMethodDescription' + 'protocol_getName': 'getProtocolName' +globals: + include: + - '_NSConcrete.*Block' + rename: + '_(.*)': '$1' +structs: + include: + - '_ObjC.*' + rename: + '_ObjC(.*)': 'ObjC$1' +preamble: | + // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file + // for details. All rights reserved. Use of this source code is governed by a + // BSD-style license that can be found in the LICENSE file. + + // Bindings for `src/objective_c_runtime.h`. + // Regenerate bindings with `dart run tool/generate_code.dart`. + + // ignore_for_file: always_specify_types + // ignore_for_file: camel_case_types + // ignore_for_file: non_constant_identifier_names + // ignore_for_file: unused_element + // coverage:ignore-file diff --git a/pkgs/objective_c/hook/build.dart b/pkgs/objective_c/hook/build.dart new file mode 100644 index 000000000..d75e86a64 --- /dev/null +++ b/pkgs/objective_c/hook/build.dart @@ -0,0 +1,138 @@ +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +import 'dart:io'; + +import 'package:native_toolchain_c/src/cbuilder/compiler_resolver.dart'; +import 'package:code_assets/code_assets.dart'; +import 'package:hooks/hooks.dart'; +import 'package:logging/logging.dart'; + +const objCFlags = ['-x', 'objective-c', '-fobjc-arc']; + +const assetName = 'objective_c.dylib'; +final packageAssetPath = Uri.file('assets/$assetName'); + +const extraCFiles = ['test/util.c']; + +final logger = Logger('') + ..level = Level.INFO + ..onRecord.listen((record) { + print('${record.level.name}: ${record.time}: ${record.message}'); + }); + +void main(List args) async { + await build(args, (input, output) async { + if (input.config.code.linkModePreference == LinkModePreference.static) { + throw UnsupportedError('LinkModePreference.static is not supported.'); + } + + final packageName = input.packageName; + final assetPath = input.outputDirectory.resolve(assetName); + final assetSourcePath = input.packageRoot.resolveUri(packageAssetPath); + final srcDir = Directory.fromUri(input.packageRoot.resolve('src/')); + + List cFiles = []; + List mFiles = []; + List hFiles = []; + for (final file in srcDir.listSync(recursive: true)) { + if (file is File) { + final path = file.path; + if (path.endsWith('.c')) cFiles.add(path); + if (path.endsWith('.m')) mFiles.add(path); + if (path.endsWith('.h')) hFiles.add(path); + } + } + + cFiles.addAll(extraCFiles.map((f) => input.packageRoot.resolve(f).path)); + + final cFlags = [if (true) '-DNO_MAIN_THREAD_DISPATCH']; + final mFlags = [...cFlags, ...objCFlags]; + + final builder = await Builder.create(input, input.packageRoot.path); + + final objectFiles = await Future.wait(>[ + for (final src in cFiles) builder.buildObject(src, cFlags), + for (final src in mFiles) builder.buildObject(src, mFlags), + ]); + await builder.linkLib(objectFiles, assetPath.toFilePath()); + + output.addDependencies(cFiles.map(Uri.file)); + output.addDependencies(mFiles.map(Uri.file)); + output.addDependencies(hFiles.map(Uri.file)); + + output.assets.code.add( + CodeAsset( + package: packageName, + name: assetName, + file: assetPath, + linkMode: DynamicLoadingBundled(), + ), + ); + }); +} + +class Builder { + final String _comp; + final String _rootDir; + final Uri _tempOutDir; + Builder._(this._comp, this._rootDir, this._tempOutDir); + + static Future create(BuildInput input, String rootDir) async { + final resolver = CompilerResolver( + codeConfig: input.config.code, + logger: logger, + ); + return Builder._( + (await resolver.resolveCompiler()).uri.toFilePath(), + rootDir, + input.outputDirectory.resolve('obj/'), + ); + } + + Future buildObject( + String input, + List flags, + ) async { + assert(input.startsWith(_rootDir)); + final relativeInput = input.substring(_rootDir.length); + final output = '${_tempOutDir.resolve(relativeInput).path}.o'; + File(output).parent.createSync(recursive: true); + stderr.writeln(output); + await _compile([ + ...flags, + '-c', + input, + '-fpic', + '-I', + 'src', + ], output); + return output; + } + + Future linkLib(List objects, String output) => + _compile([ + '-shared', + '-undefined', + 'dynamic_lookup', + ...objects, + ], output); + + Future _compile( + List flags, + String output, + ) async { + final args = [...flags, '-o', output]; + const exec = 'clang'; + logger.info('Running: $_comp ${args.join(" ")}'); + final proc = await Process.run(_comp, args); + logger.info(proc.stdout); + logger.info(proc.stderr); + if (proc.exitCode != 0) { + exitCode = proc.exitCode; + throw Exception('Command failed: $_comp ${args.join(" ")}'); + } + logger.info('Generated $output'); + } +} diff --git a/pkgs/objective_c/ios/Classes/objective_c.c b/pkgs/objective_c/ios/Classes/objective_c.c deleted file mode 100644 index 6d9c021cc..000000000 --- a/pkgs/objective_c/ios/Classes/objective_c.c +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -// Relative import to be able to reuse the C sources. -// See the comment in ../objective_c.podspec for more information. -#include "../../src/objective_c.c" -#include "../../src/include/dart_api_dl.c" diff --git a/pkgs/objective_c/ios/Classes/objective_c.m b/pkgs/objective_c/ios/Classes/objective_c.m deleted file mode 100644 index 745ecab21..000000000 --- a/pkgs/objective_c/ios/Classes/objective_c.m +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -// Relative import to be able to reuse the ObjC sources. -// See the comment in ../objective_c.podspec for more information. -#include "../../src/input_stream_adapter.m" -#include "../../src/objective_c.m" -#include "../../src/objective_c_bindings_generated.m" -#include "../../src/protocol.m" diff --git a/pkgs/objective_c/ios/objective_c.podspec b/pkgs/objective_c/ios/objective_c.podspec deleted file mode 100644 index e784ccd7c..000000000 --- a/pkgs/objective_c/ios/objective_c.podspec +++ /dev/null @@ -1,28 +0,0 @@ -# -# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. -# Run `pod lib lint objective_c.podspec` to validate before publishing. -# -Pod::Spec.new do |s| - s.name = 'objective_c' - s.version = '0.0.1' - s.summary = 'A library to access Objective C from Flutter that acts as a support library for package:ffigen.' - s.description = <<-DESC -A library to access Objective C from Flutter that acts as a support library for package:ffigen. - DESC - s.homepage = 'http://example.com' - s.license = { :file => '../LICENSE' } - s.author = { 'Your Company' => 'email@example.com' } - - # This will ensure the source files in Classes/ are included in the native - # builds of apps using this FFI plugin. Podspec does not support relative - # paths, so Classes contains a forwarder C file that relatively imports - # `../src/*` so that the C sources can be shared among all target platforms. - s.source = { :path => '.' } - s.source_files = 'Classes/**/*' - s.dependency 'Flutter' - s.platform = :ios, '12.0' - - # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } - s.swift_version = '5.0' -end diff --git a/pkgs/objective_c/lib/objective_c.dart b/pkgs/objective_c/lib/objective_c.dart index 65fb17248..45850dd4f 100644 --- a/pkgs/objective_c/lib/objective_c.dart +++ b/pkgs/objective_c/lib/objective_c.dart @@ -10,13 +10,6 @@ export 'src/c_bindings_generated.dart' Dart_FinalizableHandle_, ObjCBlockDesc, ObjCBlockImpl, - ObjCMethodDesc, - ObjCObject, - ObjCProtocol, - ObjCSelector, - blockRetain, - objectRelease, - objectRetain, signalWaiter; export 'src/internal.dart' hide blockHasRegisteredClosure, isValidBlock, isValidClass, isValidObject; @@ -118,4 +111,13 @@ export 'src/objective_c_bindings_generated.dart' Protocol; export 'src/os_version.dart'; export 'src/protocol_builder.dart'; +export 'src/runtime_bindings_generated.dart' + show + ObjCMethodDesc, + ObjCObject, + ObjCProtocol, + ObjCSelector, + blockRetain, + objectRelease, + objectRetain; export 'src/selector.dart'; diff --git a/pkgs/objective_c/lib/src/c_bindings_generated.dart b/pkgs/objective_c/lib/src/c_bindings_generated.dart index 1e5a4889a..a5c072ab5 100644 --- a/pkgs/objective_c/lib/src/c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/c_bindings_generated.dart @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -// Bindings for `src/objective_c.h` and `src/objective_c_runtime.h`. +// Bindings for `src/objective_c.h` etc. // Regenerate bindings with `dart run tool/generate_code.dart`. // ignore_for_file: always_specify_types @@ -15,222 +15,117 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint -@ffi.DefaultAsset('objective_c.framework/objective_c') +@ffi.DefaultAsset('package:objective_c/objective_c.dylib') library; import 'dart:ffi' as ffi; -@ffi.Array.multi([32]) -@ffi.Native>>(symbol: '_NSConcreteAutoBlock') -external ffi.Array> NSConcreteAutoBlock; - -@ffi.Array.multi([32]) -@ffi.Native>>( - symbol: '_NSConcreteFinalizingBlock') -external ffi.Array> NSConcreteFinalizingBlock; - -@ffi.Array.multi([32]) -@ffi.Native>>(symbol: '_NSConcreteGlobalBlock') -external ffi.Array> NSConcreteGlobalBlock; - -@ffi.Array.multi([32]) -@ffi.Native>>(symbol: '_NSConcreteMallocBlock') -external ffi.Array> NSConcreteMallocBlock; - -@ffi.Array.multi([32]) -@ffi.Native>>(symbol: '_NSConcreteStackBlock') -external ffi.Array> NSConcreteStackBlock; - @ffi.Native)>( - symbol: 'DOBJC_awaitWaiter') -external void awaitWaiter( - ffi.Pointer waiter, -); - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'objc_retainBlock', isLeaf: true) -external ffi.Pointer blockRetain( - ffi.Pointer object, -); - -@ffi.Native< - ffi.Pointer> Function( - ffi.Pointer)>( - symbol: 'objc_copyClassList', isLeaf: true) -external ffi.Pointer> copyClassList( - ffi.Pointer count, -); + symbol: 'DOBJC_awaitWaiter', +) +external void awaitWaiter(ffi.Pointer waiter); @ffi.Native( - symbol: 'DOBJC_deleteFinalizableHandle') + symbol: 'DOBJC_deleteFinalizableHandle', +) external void deleteFinalizableHandle( Dart_FinalizableHandle handle, Object owner, ); @ffi.Native)>( - symbol: 'DOBJC_disposeObjCBlockWithClosure') -external void disposeObjCBlockWithClosure( - ffi.Pointer block, -); + symbol: 'DOBJC_disposeObjCBlockWithClosure', +) +external void disposeObjCBlockWithClosure(ffi.Pointer block); @ffi.Native Function(ffi.Pointer)>( - symbol: 'DOBJC_fillContext', isLeaf: true) + symbol: 'DOBJC_fillContext', + isLeaf: true, +) external ffi.Pointer fillContext( ffi.Pointer context, ); -@ffi.Native Function(ffi.Pointer)>( - symbol: 'objc_getClass', isLeaf: true) -external ffi.Pointer getClass( - ffi.Pointer name, -); - -@ffi.Native< - ObjCMethodDesc Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Bool)>(symbol: 'protocol_getMethodDescription', isLeaf: true) -external ObjCMethodDesc getMethodDescription( - ffi.Pointer protocol, - ffi.Pointer sel, - bool isRequiredMethod, - bool isInstanceMethod, -); - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'sel_getName', isLeaf: true) -external ffi.Pointer getName( - ffi.Pointer sel, -); - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'object_getClass', isLeaf: true) -external ffi.Pointer getObjectClass( - ffi.Pointer object, -); - /// Returns the MacOS/iOS version we're running on. @ffi.Native<_Version Function()>(symbol: 'DOBJC_getOsVesion', isLeaf: true) external _Version getOsVesion(); -@ffi.Native Function(ffi.Pointer)>( - symbol: 'objc_getProtocol', isLeaf: true) -external ffi.Pointer getProtocol( - ffi.Pointer name, -); - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'protocol_getName', isLeaf: true) -external ffi.Pointer getProtocolName( - ffi.Pointer proto, -); - @ffi.Native)>( - symbol: 'DOBJC_initializeApi', isLeaf: true) -external int initializeApi( - ffi.Pointer data, -); + symbol: 'DOBJC_initializeApi', + isLeaf: true, +) +external int initializeApi(ffi.Pointer data); @ffi.Native)>( - symbol: 'DOBJC_isValidBlock', isLeaf: true) -external bool isValidBlock( - ffi.Pointer block, -); - -@ffi.Native(symbol: 'objc_msgSend') -external void msgSend(); - -@ffi.Native(symbol: 'objc_msgSend_fpret') -external void msgSendFpret(); - -@ffi.Native(symbol: 'objc_msgSend_stret') -external void msgSendStret(); + symbol: 'DOBJC_isValidBlock', + isLeaf: true, +) +external bool isValidBlock(ffi.Pointer block); @ffi.Native Function(ffi.Handle)>( - symbol: 'DOBJC_newFinalizableBool') -external ffi.Pointer newFinalizableBool( - Object owner, -); + symbol: 'DOBJC_newFinalizableBool', +) +external ffi.Pointer newFinalizableBool(Object owner); @ffi.Native< - Dart_FinalizableHandle Function(ffi.Handle, ffi.Pointer)>( - symbol: 'DOBJC_newFinalizableHandle') + Dart_FinalizableHandle Function(ffi.Handle, ffi.Pointer) +>(symbol: 'DOBJC_newFinalizableHandle') external Dart_FinalizableHandle newFinalizableHandle( Object owner, ffi.Pointer object, ); @ffi.Native Function()>( - symbol: 'DOBJC_newWaiter', isLeaf: true) + symbol: 'DOBJC_newWaiter', + isLeaf: true, +) external ffi.Pointer newWaiter(); -@ffi.Native Function(ffi.Pointer)>( - symbol: 'objc_autorelease', isLeaf: true) -external ffi.Pointer objectAutorelease( - ffi.Pointer object, -); - -@ffi.Native)>( - symbol: 'objc_release', isLeaf: true) -external void objectRelease( - ffi.Pointer object, -); - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'objc_retain', isLeaf: true) -external ffi.Pointer objectRetain( - ffi.Pointer object, -); - -@ffi.Native Function(ffi.Pointer)>( - symbol: 'sel_registerName', isLeaf: true) -external ffi.Pointer registerName( - ffi.Pointer name, -); - @ffi.Native< - ffi.Void Function( - ffi.Pointer< - ffi.NativeFunction)>>, - ffi.Pointer)>(symbol: 'DOBJC_runOnMainThread', isLeaf: true) + ffi.Void Function( + ffi.Pointer)>>, + ffi.Pointer, + ) +>(symbol: 'DOBJC_runOnMainThread', isLeaf: true) external void runOnMainThread( ffi.Pointer)>> fn, ffi.Pointer arg, ); @ffi.Native)>( - symbol: 'DOBJC_signalWaiter', isLeaf: true) -external void signalWaiter( - ffi.Pointer waiter, -); + symbol: 'DOBJC_signalWaiter', + isLeaf: true, +) +external void signalWaiter(ffi.Pointer waiter); final class DOBJC_Context extends ffi.Struct { @ffi.Int64() external int version; external ffi.Pointer Function()>> - newWaiter; + newWaiter; - external ffi - .Pointer)>> - awaitWaiter; + external ffi.Pointer< + ffi.NativeFunction)> + > + awaitWaiter; - external ffi - .Pointer Function()>> - currentIsolate; + external ffi.Pointer< + ffi.NativeFunction Function()> + > + currentIsolate; external ffi.Pointer< - ffi.NativeFunction)>> - enterIsolate; + ffi.NativeFunction)> + > + enterIsolate; external ffi.Pointer> exitIsolate; external ffi.Pointer> getMainPortId; external ffi.Pointer> - getCurrentThreadOwnsIsolate; + getCurrentThreadOwnsIsolate; } typedef Dart_FinalizableHandle = ffi.Pointer; @@ -247,14 +142,16 @@ final class ObjCBlockDesc extends ffi.Struct { external int size; external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer dst, ffi.Pointer src)>> - copy_helper; + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer dst, ffi.Pointer src) + > + > + copy_helper; - external ffi - .Pointer src)>> - dispose_helper; + external ffi.Pointer< + ffi.NativeFunction src)> + > + dispose_helper; external ffi.Pointer signature; } @@ -278,18 +175,8 @@ final class ObjCBlockImpl extends ffi.Struct { external int dispose_port; } -final class ObjCMethodDesc extends ffi.Struct { - external ffi.Pointer name; - - external ffi.Pointer types; -} - final class ObjCObject extends ffi.Opaque {} -final class ObjCProtocol extends ffi.Opaque {} - -final class ObjCSelector extends ffi.Opaque {} - final class _Dart_Isolate extends ffi.Opaque {} final class _Version extends ffi.Struct { diff --git a/pkgs/objective_c/lib/src/internal.dart b/pkgs/objective_c/lib/src/internal.dart index 5f4b4c0c4..1d14eef42 100644 --- a/pkgs/objective_c/lib/src/internal.dart +++ b/pkgs/objective_c/lib/src/internal.dart @@ -8,8 +8,9 @@ import 'dart:isolate'; import 'package:ffi/ffi.dart'; import 'c_bindings_generated.dart' as c; +import 'runtime_bindings_generated.dart' as r; -typedef ObjectPtr = Pointer; +typedef ObjectPtr = Pointer; typedef BlockPtr = Pointer; typedef VoidPtr = Pointer; @@ -77,23 +78,25 @@ final class ObjCRuntimeError extends Error { String toString() => '$runtimeType: $message'; } -extension GetProtocolName on Pointer { +extension GetProtocolName on Pointer { /// Returns the name of the protocol. - String get name => c.getProtocolName(this).cast().toDartString(); + String get name => r.getProtocolName(this).cast().toDartString(); } /// Only for use by ffigen bindings. -Pointer registerName(String name) { +Pointer registerName(String name) { + _ensureDartAPI(); final cstr = name.toNativeUtf8(); - final sel = c.registerName(cstr.cast()); + final sel = r.registerName(cstr.cast()); calloc.free(cstr); return sel; } /// Only for use by ffigen bindings. ObjectPtr getClass(String name) { + _ensureDartAPI(); final cstr = name.toNativeUtf8(); - final clazz = c.getClass(cstr.cast()); + final clazz = r.getClass(cstr.cast()); calloc.free(cstr); if (clazz == nullptr) { throw FailedToLoadClassException(name); @@ -102,9 +105,10 @@ ObjectPtr getClass(String name) { } /// Only for use by ffigen bindings. -Pointer getProtocol(String name) { +Pointer getProtocol(String name) { + _ensureDartAPI(); final cstr = name.toNativeUtf8(); - final clazz = c.getProtocol(cstr.cast()); + final clazz = r.getProtocol(cstr.cast()); calloc.free(cstr); if (clazz == nullptr) { throw FailedToLoadProtocolException(name); @@ -114,44 +118,45 @@ Pointer getProtocol(String name) { /// Only for use by ffigen bindings. Pointer? getProtocolMethodSignature( - Pointer protocol, - Pointer sel, { + Pointer protocol, + Pointer sel, { required bool isRequired, required bool isInstanceMethod, }) { + _ensureDartAPI(); final sig = - c.getMethodDescription(protocol, sel, isRequired, isInstanceMethod).types; + r.getMethodDescription(protocol, sel, isRequired, isInstanceMethod).types; return sig == nullptr ? null : sig; } /// Only for use by ffigen bindings. final msgSendPointer = - Native.addressOf>(c.msgSend); + Native.addressOf>(r.msgSend); /// Only for use by ffigen bindings. final msgSendFpretPointer = - Native.addressOf>(c.msgSendFpret); + Native.addressOf>(r.msgSendFpret); /// Only for use by ffigen bindings. final msgSendStretPointer = - Native.addressOf>(c.msgSendStret); + Native.addressOf>(r.msgSendStret); /// Only for use by ffigen bindings. final useMsgSendVariants = Abi.current() == Abi.iosX64 || Abi.current() == Abi.macosX64; /// Only for use by ffigen bindings. -bool respondsToSelector(ObjectPtr obj, Pointer sel) => +bool respondsToSelector(ObjectPtr obj, Pointer sel) => _objcMsgSendRespondsToSelector(obj, _selRespondsToSelector, sel); final _selRespondsToSelector = registerName('respondsToSelector:'); final _objcMsgSendRespondsToSelector = msgSendPointer .cast< NativeFunction< - Bool Function(ObjectPtr, Pointer, - Pointer aSelector)>>() + Bool Function(ObjectPtr, Pointer, + Pointer aSelector)>>() .asFunction< bool Function( - ObjectPtr, Pointer, Pointer)>(); + ObjectPtr, Pointer, Pointer)>(); // _FinalizablePointer exists because we can't access `this` in the initializers // of _ObjCReference's constructor, and we have to have an owner to attach the @@ -214,10 +219,10 @@ abstract final class _ObjCReference _isReleased.value = true; } - void release() => _release(c.objectRelease); + void release() => _release(r.objectRelease); Pointer autorelease() { - _release(c.objectAutorelease); + _release(r.objectAutorelease); return _finalizable.ptr; } @@ -245,7 +250,7 @@ abstract final class _ObjCReference Pointer retainAndAutorelease() { final ptr = pointer; _retain(ptr); - c.objectAutorelease(ptr.cast()); + r.objectAutorelease(ptr.cast()); return ptr; } @@ -269,19 +274,19 @@ class _ObjCRefHolder> { } @pragma('vm:deeply-immutable') -final class ObjCObjectRef extends _ObjCReference { +final class ObjCObjectRef extends _ObjCReference { ObjCObjectRef(ObjectPtr ptr, {required super.retain, required super.release}) : super(_FinalizablePointer(ptr)); @override - void _retain(ObjectPtr ptr) => c.objectRetain(ptr); + void _retain(ObjectPtr ptr) => r.objectRetain(ptr); @override bool _isValid(ObjectPtr ptr) => _isValidObject(ptr); } /// Only for use by ffigen bindings. -class ObjCObjectBase extends _ObjCRefHolder { +class ObjCObjectBase extends _ObjCRefHolder { ObjCObjectBase(ObjectPtr ptr, {required bool retain, required bool release}) : super(ObjCObjectRef(ptr, retain: retain, release: release)); } @@ -290,7 +295,7 @@ class ObjCObjectBase extends _ObjCRefHolder { // readable memory, or be null. May (rarely) return false positives. bool _isValidObject(ObjectPtr ptr) { if (ptr == nullptr) return false; - return _isValidClass(c.getObjectClass(ptr)); + return _isValidClass(r.getObjectClass(ptr)); } final _allClasses = {}; @@ -305,7 +310,7 @@ bool _isValidClass(ObjectPtr clazz, {bool forceReloadClasses = false}) { // enabled, and only happens more than O(1) times if there are actually // invalid objects in use, which shouldn't happen in correct code. final countPtr = calloc(); - final classList = c.copyClassList(countPtr); + final classList = r.copyClassList(countPtr); final count = countPtr.value; calloc.free(countPtr); _allClasses.clear(); @@ -328,7 +333,7 @@ final class ObjCBlockRef extends _ObjCReference { : super(_FinalizablePointer(ptr)); @override - void _retain(BlockPtr ptr) => c.blockRetain(ptr.cast()); + void _retain(BlockPtr ptr) => r.blockRetain(ptr.cast()); @override bool _isValid(BlockPtr ptr) => c.isValidBlock(ptr); @@ -359,7 +364,7 @@ final _closureBlockDesc = _newBlockDesc( BlockPtr _newBlock(VoidPtr invoke, VoidPtr target, Pointer descriptor, int disposePort, int flags) { final b = calloc.allocate(sizeOf()); - b.ref.isa = Native.addressOf>(c.NSConcreteGlobalBlock).cast(); + b.ref.isa = Native.addressOf>(r.NSConcreteGlobalBlock).cast(); b.ref.flags = flags; b.ref.reserved = 0; b.ref.invoke = invoke; @@ -367,10 +372,10 @@ BlockPtr _newBlock(VoidPtr invoke, VoidPtr target, b.ref.dispose_port = disposePort; b.ref.descriptor = descriptor; assert(c.isValidBlock(b)); - final copy = c.blockRetain(b.cast()).cast(); + final copy = r.blockRetain(b.cast()).cast(); calloc.free(b); assert(copy.ref.isa == - Native.addressOf>(c.NSConcreteMallocBlock).cast()); + Native.addressOf>(r.NSConcreteMallocBlock).cast()); assert(c.isValidBlock(copy)); return copy; } diff --git a/pkgs/objective_c/lib/src/ns_input_stream.dart b/pkgs/objective_c/lib/src/ns_input_stream.dart index f9fad6f41..cbfa2b777 100644 --- a/pkgs/objective_c/lib/src/ns_input_stream.dart +++ b/pkgs/objective_c/lib/src/ns_input_stream.dart @@ -30,7 +30,8 @@ extension NSInputStreamStreamExtension on Stream> { } }, onError: (Object e) { final d = NSMutableDictionary(); - d.setObject_forKey_(e.toString().toNSString(), NSLocalizedDescriptionKey); + d.setObject_forKey_( + e.toString().toNSString(), getLocalizedDescriptionKey()); inputStream.setError_(NSError.errorWithDomain_code_userInfo_( 'DartError'.toNSString(), 0, d)); port.close(); diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart index fa90ccea3..dc3c4a820 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart @@ -12,38 +12,25 @@ // ignore_for_file: unused_element // ignore_for_file: unused_field // coverage:ignore-file -import 'dart:collection'; // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. // ignore_for_file: type=lint +import 'dart:collection' as collection; import 'dart:ffi' as ffi; import '../objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; -@ffi.Native>(symbol: 'NSLocalizedDescriptionKey') -external ffi.Pointer _NSLocalizedDescriptionKey; - -NSString get NSLocalizedDescriptionKey => - NSString.castFromPointer(_NSLocalizedDescriptionKey, - retain: true, release: true); - -set NSLocalizedDescriptionKey(NSString value) { - NSString.castFromPointer(_NSLocalizedDescriptionKey, - retain: false, release: true) - .ref - .release(); - _NSLocalizedDescriptionKey = value.ref.retainAndReturnPointer(); -} - @ffi.Native< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>() + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() external instancetype _ObjectiveCBindings_protocolTrampoline_10z9f5k( ffi.Pointer target, ffi.Pointer arg0, @@ -53,12 +40,14 @@ external instancetype _ObjectiveCBindings_protocolTrampoline_10z9f5k( ); @ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>() + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) +>() external int _ObjectiveCBindings_protocolTrampoline_17ap02x( ffi.Pointer target, ffi.Pointer arg0, @@ -68,18 +57,26 @@ external int _ObjectiveCBindings_protocolTrampoline_17ap02x( ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>() + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external ffi.Pointer - _ObjectiveCBindings_protocolTrampoline_18nsem0( +_ObjectiveCBindings_protocolTrampoline_18nsem0( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); @ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external void _ObjectiveCBindings_protocolTrampoline_18v1jvf( ffi.Pointer target, ffi.Pointer arg0, @@ -87,24 +84,31 @@ external void _ObjectiveCBindings_protocolTrampoline_18v1jvf( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>() + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() external ffi.Pointer _ObjectiveCBindings_protocolTrampoline_1a8cl66( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, ffi.Pointer)>() + ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) +>() external int _ObjectiveCBindings_protocolTrampoline_1ckyi24( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Long Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>() + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external int _ObjectiveCBindings_protocolTrampoline_1ldqghh( ffi.Pointer target, ffi.Pointer arg0, @@ -112,22 +116,27 @@ external int _ObjectiveCBindings_protocolTrampoline_1ldqghh( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>() + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() external ffi.Pointer - _ObjectiveCBindings_protocolTrampoline_1mbt9g9( +_ObjectiveCBindings_protocolTrampoline_1mbt9g9( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>() + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external ffi.Pointer - _ObjectiveCBindings_protocolTrampoline_1mllhpc( +_ObjectiveCBindings_protocolTrampoline_1mllhpc( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, @@ -135,8 +144,12 @@ external ffi.Pointer ); @ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>() + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external bool _ObjectiveCBindings_protocolTrampoline_3su7tt( ffi.Pointer target, ffi.Pointer arg0, @@ -144,24 +157,30 @@ external bool _ObjectiveCBindings_protocolTrampoline_3su7tt( ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>() + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external ffi.Pointer - _ObjectiveCBindings_protocolTrampoline_50as9u( +_ObjectiveCBindings_protocolTrampoline_50as9u( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>() + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external ffi.Pointer - _ObjectiveCBindings_protocolTrampoline_c7gk2u( +_ObjectiveCBindings_protocolTrampoline_c7gk2u( ffi.Pointer target, ffi.Pointer arg0, ffi.Pointer arg1, @@ -170,15 +189,21 @@ external ffi.Pointer ); @ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer)>() + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>() external bool _ObjectiveCBindings_protocolTrampoline_e3qsqz( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>() + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +>() external void _ObjectiveCBindings_protocolTrampoline_hoampi( ffi.Pointer target, ffi.Pointer arg0, @@ -187,15 +212,20 @@ external void _ObjectiveCBindings_protocolTrampoline_hoampi( ); @ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer)>() + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() external void _ObjectiveCBindings_protocolTrampoline_ovsamd( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>() + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external bool _ObjectiveCBindings_protocolTrampoline_w1e3k0( ffi.Pointer target, ffi.Pointer arg0, @@ -203,8 +233,12 @@ external bool _ObjectiveCBindings_protocolTrampoline_w1e3k0( ); @ffi.Native< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>() + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() external instancetype _ObjectiveCBindings_protocolTrampoline_xr62hr( ffi.Pointer target, ffi.Pointer arg0, @@ -212,144 +246,184 @@ external instancetype _ObjectiveCBindings_protocolTrampoline_xr62hr( ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( +_ObjectiveCBindings_wrapBlockingBlock_18v1jvf( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( +_ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _ObjectiveCBindings_wrapBlockingBlock_hoampi( +_ObjectiveCBindings_wrapBlockingBlock_hoampi( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _ObjectiveCBindings_wrapBlockingBlock_ovsamd( +_ObjectiveCBindings_wrapBlockingBlock_ovsamd( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( +_ObjectiveCBindings_wrapBlockingBlock_pfv6jd( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _ObjectiveCBindings_wrapListenerBlock_18v1jvf( +_ObjectiveCBindings_wrapListenerBlock_18v1jvf( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _ObjectiveCBindings_wrapListenerBlock_1b3bb6a( +_ObjectiveCBindings_wrapListenerBlock_1b3bb6a( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _ObjectiveCBindings_wrapListenerBlock_hoampi( +_ObjectiveCBindings_wrapListenerBlock_hoampi( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _ObjectiveCBindings_wrapListenerBlock_ovsamd( +_ObjectiveCBindings_wrapListenerBlock_ovsamd( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _ObjectiveCBindings_wrapListenerBlock_pfv6jd( +_ObjectiveCBindings_wrapListenerBlock_pfv6jd( ffi.Pointer block, ); +@ffi.Native Function()>( + symbol: 'getLocalizedDescriptionKey', +) +external ffi.Pointer _getLocalizedDescriptionKey(); + +NSString getLocalizedDescriptionKey() => NSString.castFromPointer( + _getLocalizedDescriptionKey(), + retain: true, + release: true, +); + /// Helper class to adapt a Dart stream into a `NSInputStream`. class DartInputStreamAdapter extends NSInputStream implements NSStreamDelegate { - DartInputStreamAdapter._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + DartInputStreamAdapter._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [DartInputStreamAdapter] that points to the same underlying object as [other]. DartInputStreamAdapter.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [DartInputStreamAdapter] that wraps the given raw object pointer. - DartInputStreamAdapter.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + DartInputStreamAdapter.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [DartInputStreamAdapter]. static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5(obj.ref.pointer, _sel_isKindOfClass_, - _class_DOBJCDartInputStreamAdapter); + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DOBJCDartInputStreamAdapter, + ); } /// inputStreamWithData: static DartInputStreamAdapter? inputStreamWithData_(NSData data) { - final _ret = _objc_msgSend_1sotr3r(_class_DOBJCDartInputStreamAdapter, - _sel_inputStreamWithData_, data.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + _class_DOBJCDartInputStreamAdapter, + _sel_inputStreamWithData_, + data.ref.pointer, + ); return _ret.address == 0 ? null - : DartInputStreamAdapter.castFromPointer(_ret, - retain: true, release: true); + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// inputStreamWithFileAtPath: static DartInputStreamAdapter? inputStreamWithFileAtPath_(NSString path) { - final _ret = _objc_msgSend_1sotr3r(_class_DOBJCDartInputStreamAdapter, - _sel_inputStreamWithFileAtPath_, path.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + _class_DOBJCDartInputStreamAdapter, + _sel_inputStreamWithFileAtPath_, + path.ref.pointer, + ); return _ret.address == 0 ? null - : DartInputStreamAdapter.castFromPointer(_ret, - retain: true, release: true); + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Creates the adapter. @@ -357,60 +431,97 @@ class DartInputStreamAdapter extends NSInputStream implements NSStreamDelegate { /// -1 => The `NSInputStream` has been closed and the port can be closed. /// _ => The number of types being required in a `read:maxLength` call. static DartInputStreamAdapter inputStreamWithPort_(int sendPort) { - final _ret = _objc_msgSend_1ya1kjn(_class_DOBJCDartInputStreamAdapter, - _sel_inputStreamWithPort_, sendPort); - return DartInputStreamAdapter.castFromPointer(_ret, - retain: true, release: true); + final _ret = _objc_msgSend_1ya1kjn( + _class_DOBJCDartInputStreamAdapter, + _sel_inputStreamWithPort_, + sendPort, + ); + return DartInputStreamAdapter.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// inputStreamWithURL: static DartInputStreamAdapter? inputStreamWithURL_(NSURL url) { objc.checkOsVersionInternal( - 'DOBJCDartInputStreamAdapter.inputStreamWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0))); - final _ret = _objc_msgSend_1sotr3r(_class_DOBJCDartInputStreamAdapter, - _sel_inputStreamWithURL_, url.ref.pointer); + 'DOBJCDartInputStreamAdapter.inputStreamWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_DOBJCDartInputStreamAdapter, + _sel_inputStreamWithURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null - : DartInputStreamAdapter.castFromPointer(_ret, - retain: true, release: true); + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// addData: int addData_(NSData data) { return _objc_msgSend_1vd1c5m( - this.ref.pointer, _sel_addData_, data.ref.pointer); + this.ref.pointer, + _sel_addData_, + data.ref.pointer, + ); } /// initWithData: DartInputStreamAdapter initWithData_(NSData data) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithData_, data.ref.pointer); - return DartInputStreamAdapter.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data.ref.pointer, + ); + return DartInputStreamAdapter.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithFileAtPath: DartInputStreamAdapter? initWithFileAtPath_(NSString path) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithFileAtPath_, path.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithFileAtPath_, + path.ref.pointer, + ); return _ret.address == 0 ? null - : DartInputStreamAdapter.castFromPointer(_ret, - retain: false, release: true); + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithURL: DartInputStreamAdapter? initWithURL_(NSURL url) { - objc.checkOsVersionInternal('DOBJCDartInputStreamAdapter.initWithURL:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'DOBJCDartInputStreamAdapter.initWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), _sel_initWithURL_, url.ref.pointer); + this.ref.retainAndReturnPointer(), + _sel_initWithURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null - : DartInputStreamAdapter.castFromPointer(_ret, - retain: false, release: true); + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// setDone @@ -427,32 +538,45 @@ class DartInputStreamAdapter extends NSInputStream implements NSStreamDelegate { void stream_handleEvent_(NSStream aStream, NSStreamEvent eventCode) { if (!objc.respondsToSelector(this.ref.pointer, _sel_stream_handleEvent_)) { throw objc.UnimplementedOptionalMethodException( - 'DOBJCDartInputStreamAdapter', 'stream:handleEvent:'); + 'DOBJCDartInputStreamAdapter', + 'stream:handleEvent:', + ); } - _objc_msgSend_3l8zum(this.ref.pointer, _sel_stream_handleEvent_, - aStream.ref.pointer, eventCode.value); + _objc_msgSend_3l8zum( + this.ref.pointer, + _sel_stream_handleEvent_, + aStream.ref.pointer, + eventCode.value, + ); } } /// Base class of all classes DOBJCDartProtocolBuilder creates. class DartProtocol extends NSObject { - DartProtocol._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + DartProtocol._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [DartProtocol] that points to the same underlying object as [other]. DartProtocol.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [DartProtocol] that wraps the given raw object pointer. - DartProtocol.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + DartProtocol.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [DartProtocol]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_DOBJCDartProtocol); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DOBJCDartProtocol, + ); } /// alloc @@ -464,7 +588,10 @@ class DartProtocol extends NSObject { /// allocWithZone: static DartProtocol allocWithZone_(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_DOBJCDartProtocol, _sel_allocWithZone_, zone); + _class_DOBJCDartProtocol, + _sel_allocWithZone_, + zone, + ); return DartProtocol.castFromPointer(_ret, retain: false, release: true); } @@ -487,29 +614,41 @@ class DartProtocol extends NSObject { /// getDOBJCDartProtocolMethodForSelector: objc.ObjCObjectBase getDOBJCDartProtocolMethodForSelector_( - ffi.Pointer sel) { + ffi.Pointer sel, + ) { final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, _sel_getDOBJCDartProtocolMethodForSelector_, sel); + this.ref.pointer, + _sel_getDOBJCDartProtocolMethodForSelector_, + sel, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } /// init DartProtocol init() { - objc.checkOsVersionInternal('DOBJCDartProtocol.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'DOBJCDartProtocol.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return DartProtocol.castFromPointer(_ret, retain: false, release: true); } /// initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort: DartProtocol initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_( - DartProtocolBuilder builder, int port) { + DartProtocolBuilder builder, + int port, + ) { final _ret = _objc_msgSend_dbvvll( - this.ref.retainAndReturnPointer(), - _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_, - builder.ref.pointer, - port); + this.ref.retainAndReturnPointer(), + _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_, + builder.ref.pointer, + port, + ); return DartProtocol.castFromPointer(_ret, retain: false, release: true); } @@ -532,100 +671,148 @@ class DartProtocol extends NSObject { /// Used by the Dart ObjCProtocolBuilder to construct ObjC classes at runtime to /// implement protocols. class DartProtocolBuilder extends NSObject { - DartProtocolBuilder._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + DartProtocolBuilder._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [DartProtocolBuilder] that points to the same underlying object as [other]. DartProtocolBuilder.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [DartProtocolBuilder] that wraps the given raw object pointer. - DartProtocolBuilder.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + DartProtocolBuilder.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [DartProtocolBuilder]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_DOBJCDartProtocolBuilder); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DOBJCDartProtocolBuilder, + ); } /// alloc static DartProtocolBuilder alloc() { - final _ret = - _objc_msgSend_151sglz(_class_DOBJCDartProtocolBuilder, _sel_alloc); - return DartProtocolBuilder.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_151sglz( + _class_DOBJCDartProtocolBuilder, + _sel_alloc, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// allocWithZone: static DartProtocolBuilder allocWithZone_(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_DOBJCDartProtocolBuilder, _sel_allocWithZone_, zone); - return DartProtocolBuilder.castFromPointer(_ret, - retain: false, release: true); + _class_DOBJCDartProtocolBuilder, + _sel_allocWithZone_, + zone, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// new static DartProtocolBuilder new$() { - final _ret = - _objc_msgSend_151sglz(_class_DOBJCDartProtocolBuilder, _sel_new); - return DartProtocolBuilder.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_151sglz( + _class_DOBJCDartProtocolBuilder, + _sel_new, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// addProtocol: void addProtocol_(Protocol protocol) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_addProtocol_, protocol.ref.pointer); + this.ref.pointer, + _sel_addProtocol_, + protocol.ref.pointer, + ); } /// autorelease DartProtocolBuilder autorelease() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return DartProtocolBuilder.castFromPointer(_ret, - retain: true, release: true); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// buildInstance: DartProtocol buildInstance_(int port) { - final _ret = - _objc_msgSend_1ya1kjn(this.ref.pointer, _sel_buildInstance_, port); + final _ret = _objc_msgSend_1ya1kjn( + this.ref.pointer, + _sel_buildInstance_, + port, + ); return DartProtocol.castFromPointer(_ret, retain: true, release: true); } /// implementMethod:withBlock:withTrampoline:withSignature: void implementMethod_withBlock_withTrampoline_withSignature_( - ffi.Pointer sel, - ffi.Pointer block, - ffi.Pointer trampoline, - ffi.Pointer signature) { + ffi.Pointer sel, + ffi.Pointer block, + ffi.Pointer trampoline, + ffi.Pointer signature, + ) { _objc_msgSend_1s2gdyk( - this.ref.pointer, - _sel_implementMethod_withBlock_withTrampoline_withSignature_, - sel, - block, - trampoline, - signature); + this.ref.pointer, + _sel_implementMethod_withBlock_withTrampoline_withSignature_, + sel, + block, + trampoline, + signature, + ); } /// init DartProtocolBuilder init() { - objc.checkOsVersionInternal('DOBJCDartProtocolBuilder.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return DartProtocolBuilder.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'DOBJCDartProtocolBuilder.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithClassName: DartProtocolBuilder initWithClassName_(ffi.Pointer name) { final _ret = _objc_msgSend_56zxyn( - this.ref.retainAndReturnPointer(), _sel_initWithClassName_, name); - return DartProtocolBuilder.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithClassName_, + name, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// registerClass @@ -636,15 +823,21 @@ class DartProtocolBuilder extends NSObject { /// retain DartProtocolBuilder retain() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return DartProtocolBuilder.castFromPointer(_ret, - retain: true, release: true); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// self DartProtocolBuilder self$1() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return DartProtocolBuilder.castFromPointer(_ret, - retain: true, release: true); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Returns a new instance of DartProtocolBuilder constructed with the default `new` method. @@ -676,23 +869,30 @@ class NSArray extends NSObject objc.ObjCObjectBase operator [](int index) => objectAtIndex_(index); - NSArray._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSArray._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSArray] that points to the same underlying object as [other]. NSArray.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSArray] that wraps the given raw object pointer. - NSArray.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSArray.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSArray]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSArray); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSArray, + ); } /// alloc @@ -703,8 +903,11 @@ class NSArray extends NSObject /// allocWithZone: static NSArray allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSArray, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSArray, + _sel_allocWithZone_, + zone, + ); return NSArray.castFromPointer(_ret, retain: false, release: true); } @@ -717,29 +920,44 @@ class NSArray extends NSObject /// arrayWithArray: static NSArray arrayWithArray_(NSArray array) { final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, _sel_arrayWithArray_, array.ref.pointer); + _class_NSArray, + _sel_arrayWithArray_, + array.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithObject: static NSArray arrayWithObject_(objc.ObjCObjectBase anObject) { final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, _sel_arrayWithObject_, anObject.ref.pointer); + _class_NSArray, + _sel_arrayWithObject_, + anObject.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithObjects: static NSArray arrayWithObjects_(objc.ObjCObjectBase firstObj) { final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, _sel_arrayWithObjects_, firstObj.ref.pointer); + _class_NSArray, + _sel_arrayWithObjects_, + firstObj.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithObjects:count: static NSArray arrayWithObjects_count_( - ffi.Pointer> objects, int cnt) { + ffi.Pointer> objects, + int cnt, + ) { final _ret = _objc_msgSend_zmbtbd( - _class_NSArray, _sel_arrayWithObjects_count_, objects, cnt); + _class_NSArray, + _sel_arrayWithObjects_count_, + objects, + cnt, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } @@ -761,46 +979,70 @@ class NSArray extends NSObject /// countByEnumeratingWithState:objects:count: int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { - return _objc_msgSend_1b5ysjl(this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, state, buffer, len); + ffi.Pointer state, + ffi.Pointer> buffer, + int len, + ) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + buffer, + len, + ); } /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// init NSArray init() { - objc.checkOsVersionInternal('NSArray.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSArray.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSArray.castFromPointer(_ret, retain: false, release: true); } /// initWithArray: NSArray initWithArray_(NSArray array) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithArray_, array.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: false, release: true); } /// initWithArray:copyItems: NSArray initWithArray_copyItems_(NSArray array, bool flag) { - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, array.ref.pointer, flag); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + array.ref.pointer, + flag, + ); return NSArray.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSArray? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSArray.castFromPointer(_ret, retain: false, release: true); @@ -808,23 +1050,35 @@ class NSArray extends NSObject /// initWithObjects: NSArray initWithObjects_(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, firstObj.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: false, release: true); } /// initWithObjects:count: NSArray initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _objc_msgSend_zmbtbd(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, objects, cnt); + ffi.Pointer> objects, + int cnt, + ) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + cnt, + ); return NSArray.castFromPointer(_ret, retain: false, release: true); } /// objectAtIndex: objc.ObjCObjectBase objectAtIndex_(int index) { - final _ret = - _objc_msgSend_14hpxwa(this.ref.pointer, _sel_objectAtIndex_, index); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_objectAtIndex_, + index, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } @@ -841,34 +1095,42 @@ enum NSBinarySearchingOptions { const NSBinarySearchingOptions(this.value); static NSBinarySearchingOptions fromValue(int value) => switch (value) { - 256 => NSBinarySearchingFirstEqual, - 512 => NSBinarySearchingLastEqual, - 1024 => NSBinarySearchingInsertionIndex, - _ => throw ArgumentError( - 'Unknown value for NSBinarySearchingOptions: $value'), - }; + 256 => NSBinarySearchingFirstEqual, + 512 => NSBinarySearchingLastEqual, + 1024 => NSBinarySearchingInsertionIndex, + _ => throw ArgumentError( + 'Unknown value for NSBinarySearchingOptions: $value', + ), + }; } /// NSCharacterSet class NSCharacterSet extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { - NSCharacterSet._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSCharacterSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSCharacterSet] that points to the same underlying object as [other]. NSCharacterSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSCharacterSet] that wraps the given raw object pointer. - NSCharacterSet.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSCharacterSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSCharacterSet]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSCharacterSet); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSCharacterSet, + ); } /// alloc @@ -879,43 +1141,59 @@ class NSCharacterSet extends NSObject /// allocWithZone: static NSCharacterSet allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSCharacterSet, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSCharacterSet, + _sel_allocWithZone_, + zone, + ); return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); } /// alphanumericCharacterSet static NSCharacterSet getAlphanumericCharacterSet() { final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_alphanumericCharacterSet); + _class_NSCharacterSet, + _sel_alphanumericCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// capitalizedLetterCharacterSet static NSCharacterSet getCapitalizedLetterCharacterSet() { final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_capitalizedLetterCharacterSet); + _class_NSCharacterSet, + _sel_capitalizedLetterCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// characterSetWithBitmapRepresentation: static NSCharacterSet characterSetWithBitmapRepresentation_(NSData data) { - final _ret = _objc_msgSend_1sotr3r(_class_NSCharacterSet, - _sel_characterSetWithBitmapRepresentation_, data.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + _class_NSCharacterSet, + _sel_characterSetWithBitmapRepresentation_, + data.ref.pointer, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// characterSetWithCharactersInString: static NSCharacterSet characterSetWithCharactersInString_(NSString aString) { - final _ret = _objc_msgSend_1sotr3r(_class_NSCharacterSet, - _sel_characterSetWithCharactersInString_, aString.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + _class_NSCharacterSet, + _sel_characterSetWithCharactersInString_, + aString.ref.pointer, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// characterSetWithContentsOfFile: static NSCharacterSet? characterSetWithContentsOfFile_(NSString fName) { - final _ret = _objc_msgSend_1sotr3r(_class_NSCharacterSet, - _sel_characterSetWithContentsOfFile_, fName.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + _class_NSCharacterSet, + _sel_characterSetWithContentsOfFile_, + fName.ref.pointer, + ); return _ret.address == 0 ? null : NSCharacterSet.castFromPointer(_ret, retain: true, release: true); @@ -924,49 +1202,64 @@ class NSCharacterSet extends NSObject /// characterSetWithRange: static NSCharacterSet characterSetWithRange_(NSRange aRange) { final _ret = _objc_msgSend_1k1o1s7( - _class_NSCharacterSet, _sel_characterSetWithRange_, aRange); + _class_NSCharacterSet, + _sel_characterSetWithRange_, + aRange, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// controlCharacterSet static NSCharacterSet getControlCharacterSet() { - final _ret = - _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_controlCharacterSet); + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_controlCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// decimalDigitCharacterSet static NSCharacterSet getDecimalDigitCharacterSet() { final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_decimalDigitCharacterSet); + _class_NSCharacterSet, + _sel_decimalDigitCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// decomposableCharacterSet static NSCharacterSet getDecomposableCharacterSet() { final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_decomposableCharacterSet); + _class_NSCharacterSet, + _sel_decomposableCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// illegalCharacterSet static NSCharacterSet getIllegalCharacterSet() { - final _ret = - _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_illegalCharacterSet); + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_illegalCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// letterCharacterSet static NSCharacterSet getLetterCharacterSet() { - final _ret = - _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_letterCharacterSet); + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_letterCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// lowercaseLetterCharacterSet static NSCharacterSet getLowercaseLetterCharacterSet() { final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_lowercaseLetterCharacterSet); + _class_NSCharacterSet, + _sel_lowercaseLetterCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } @@ -978,58 +1271,77 @@ class NSCharacterSet extends NSObject /// newlineCharacterSet static NSCharacterSet getNewlineCharacterSet() { - objc.checkOsVersionInternal('NSCharacterSet.newlineCharacterSet', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); - final _ret = - _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_newlineCharacterSet); + objc.checkOsVersionInternal( + 'NSCharacterSet.newlineCharacterSet', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_newlineCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// nonBaseCharacterSet static NSCharacterSet getNonBaseCharacterSet() { - final _ret = - _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_nonBaseCharacterSet); + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_nonBaseCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// punctuationCharacterSet static NSCharacterSet getPunctuationCharacterSet() { final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_punctuationCharacterSet); + _class_NSCharacterSet, + _sel_punctuationCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( - _class_NSCharacterSet, _sel_supportsSecureCoding); + _class_NSCharacterSet, + _sel_supportsSecureCoding, + ); } /// symbolCharacterSet static NSCharacterSet getSymbolCharacterSet() { - final _ret = - _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_symbolCharacterSet); + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_symbolCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// uppercaseLetterCharacterSet static NSCharacterSet getUppercaseLetterCharacterSet() { final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_uppercaseLetterCharacterSet); + _class_NSCharacterSet, + _sel_uppercaseLetterCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// whitespaceAndNewlineCharacterSet static NSCharacterSet getWhitespaceAndNewlineCharacterSet() { final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_whitespaceAndNewlineCharacterSet); + _class_NSCharacterSet, + _sel_whitespaceAndNewlineCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } /// whitespaceCharacterSet static NSCharacterSet getWhitespaceCharacterSet() { final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, _sel_whitespaceCharacterSet); + _class_NSCharacterSet, + _sel_whitespaceCharacterSet, + ); return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); } @@ -1041,42 +1353,61 @@ class NSCharacterSet extends NSObject /// bitmapRepresentation NSData get bitmapRepresentation { - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_bitmapRepresentation); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_bitmapRepresentation, + ); return NSData.castFromPointer(_ret, retain: true, release: true); } /// characterIsMember: bool characterIsMember_(int aCharacter) { return _objc_msgSend_1co9mn4( - this.ref.pointer, _sel_characterIsMember_, aCharacter); + this.ref.pointer, + _sel_characterIsMember_, + aCharacter, + ); } /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// hasMemberInPlane: bool hasMemberInPlane_(int thePlane) { return _objc_msgSend_gerswc( - this.ref.pointer, _sel_hasMemberInPlane_, thePlane); + this.ref.pointer, + _sel_hasMemberInPlane_, + thePlane, + ); } /// init NSCharacterSet init() { - objc.checkOsVersionInternal('NSCharacterSet.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSCharacterSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSCharacterSet? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSCharacterSet.castFromPointer(_ret, retain: false, release: true); @@ -1091,13 +1422,19 @@ class NSCharacterSet extends NSObject /// isSupersetOfSet: bool isSupersetOfSet_(NSCharacterSet theOtherSet) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isSupersetOfSet_, theOtherSet.ref.pointer); + this.ref.pointer, + _sel_isSupersetOfSet_, + theOtherSet.ref.pointer, + ); } /// longCharacterIsMember: bool longCharacterIsMember_(int theLongChar) { return _objc_msgSend_jsclrq( - this.ref.pointer, _sel_longCharacterIsMember_, theLongChar); + this.ref.pointer, + _sel_longCharacterIsMember_, + theLongChar, + ); } /// retain @@ -1118,45 +1455,59 @@ class NSCharacterSet extends NSObject /// NSCoder class NSCoder extends objc.ObjCObjectBase { - NSCoder._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSCoder._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSCoder] that points to the same underlying object as [other]. NSCoder.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSCoder] that wraps the given raw object pointer. - NSCoder.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSCoder.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSCoder]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSCoder); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSCoder, + ); } } /// NSCoding interface class NSCoding extends objc.ObjCProtocolBase { - NSCoding._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSCoding._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSCoding] that points to the same underlying object as [other]. NSCoding.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSCoding] that wraps the given raw object pointer. - NSCoding.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSCoding.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSCoding]. static bool conformsTo(objc.ObjCObjectBase obj) { return _objc_msgSend_e3qsqz( - obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSCoding); + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSCoding, + ); } /// Returns the [objc.Protocol] object for this protocol. @@ -1168,26 +1519,30 @@ interface class NSCoding extends objc.ObjCProtocolBase { /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSCoding implement( - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { + static NSCoding implement({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); NSCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); NSCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); return NSCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSCoding protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { NSCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); NSCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); @@ -1199,16 +1554,18 @@ interface class NSCoding extends objc.ObjCProtocolBase { /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSCoding implementAsListener( - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { + static NSCoding implementAsListener({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); NSCoding.encodeWithCoder_.implementAsListener(builder, encodeWithCoder_); NSCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); return NSCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSCoding protocol to an existing @@ -1216,10 +1573,12 @@ interface class NSCoding extends objc.ObjCProtocolBase { /// be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener(objc.ObjCProtocolBuilder builder, - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { NSCoding.encodeWithCoder_.implementAsListener(builder, encodeWithCoder_); NSCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); @@ -1231,16 +1590,18 @@ interface class NSCoding extends objc.ObjCProtocolBase { /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSCoding implementAsBlocking( - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { + static NSCoding implementAsBlocking({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); NSCoding.encodeWithCoder_.implementAsBlocking(builder, encodeWithCoder_); NSCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); return NSCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSCoding protocol to an existing @@ -1248,10 +1609,12 @@ interface class NSCoding extends objc.ObjCProtocolBase { /// listeners will be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking(objc.ObjCProtocolBuilder builder, - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { NSCoding.encodeWithCoder_.implementAsBlocking(builder, encodeWithCoder_); NSCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); @@ -1260,50 +1623,64 @@ interface class NSCoding extends objc.ObjCProtocolBase { /// encodeWithCoder: static final encodeWithCoder_ = objc.ObjCProtocolListenableMethod( - _protocol_NSCoding, - _sel_encodeWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCoding, - _sel_encodeWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1)), - (void Function(NSCoder) func) => ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( - (ffi.Pointer _, NSCoder arg1) => func(arg1)), - (void Function(NSCoder) func) => ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( - (ffi.Pointer _, NSCoder arg1) => func(arg1)), - ); + _protocol_NSCoding, + _sel_encodeWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCoding, + _sel_encodeWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); /// initWithCoder: static final initWithCoder_ = objc.ObjCProtocolMethod( - _protocol_NSCoding, - _sel_initWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_xr62hr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCoding, - _sel_initWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (Dartinstancetype? Function(NSCoder) func) => - ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1)), - ); + _protocol_NSCoding, + _sel_initWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCoding, + _sel_initWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (Dartinstancetype? Function(NSCoder) func) => + ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); } enum NSComparisonResult { @@ -1315,33 +1692,39 @@ enum NSComparisonResult { const NSComparisonResult(this.value); static NSComparisonResult fromValue(int value) => switch (value) { - -1 => NSOrderedAscending, - 0 => NSOrderedSame, - 1 => NSOrderedDescending, - _ => - throw ArgumentError('Unknown value for NSComparisonResult: $value'), - }; + -1 => NSOrderedAscending, + 0 => NSOrderedSame, + 1 => NSOrderedDescending, + _ => throw ArgumentError('Unknown value for NSComparisonResult: $value'), + }; } /// NSCopying interface class NSCopying extends objc.ObjCProtocolBase { - NSCopying._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSCopying._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSCopying] that points to the same underlying object as [other]. NSCopying.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSCopying] that wraps the given raw object pointer. - NSCopying.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSCopying.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSCopying]. static bool conformsTo(objc.ObjCObjectBase obj) { return _objc_msgSend_e3qsqz( - obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSCopying); + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSCopying, + ); } /// Returns the [objc.Protocol] object for this protocol. @@ -1353,72 +1736,88 @@ interface class NSCopying extends objc.ObjCProtocolBase { /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSCopying implement( - {required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, - bool $keepIsolateAlive = true}) { + static NSCopying implement({ + required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSCopying'); NSCopying.copyWithZone_.implement(builder, copyWithZone_); builder.addProtocol($protocol); return NSCopying.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSCopying protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, - bool $keepIsolateAlive = true}) { + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, + bool $keepIsolateAlive = true, + }) { NSCopying.copyWithZone_.implement(builder, copyWithZone_); builder.addProtocol($protocol); } /// copyWithZone: - static final copyWithZone_ = objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function(ffi.Pointer)>( - _protocol_NSCopying, - _sel_copyWithZone_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_18nsem0) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCopying, - _sel_copyWithZone_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function(ffi.Pointer) func) => - ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => func(arg1)), - ); + static final copyWithZone_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function(ffi.Pointer) + >( + _protocol_NSCopying, + _sel_copyWithZone_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18nsem0) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCopying, + _sel_copyWithZone_, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function(ffi.Pointer) func) => + ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => func(arg1), + ), + ); } /// NSData class NSData extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { - NSData._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSData._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSData] that points to the same underlying object as [other]. NSData.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSData] that wraps the given raw object pointer. - NSData.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSData.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSData]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSData); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSData, + ); } /// alloc @@ -1429,8 +1828,11 @@ class NSData extends NSObject /// allocWithZone: static NSData allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSData, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSData, + _sel_allocWithZone_, + zone, + ); return NSData.castFromPointer(_ret, retain: false, release: true); } @@ -1443,30 +1845,51 @@ class NSData extends NSObject /// dataWithBytes:length: static NSData dataWithBytes_length_(ffi.Pointer bytes, int length) { final _ret = _objc_msgSend_3nbx5e( - _class_NSData, _sel_dataWithBytes_length_, bytes, length); + _class_NSData, + _sel_dataWithBytes_length_, + bytes, + length, + ); return NSData.castFromPointer(_ret, retain: true, release: true); } /// dataWithBytesNoCopy:length: static NSData dataWithBytesNoCopy_length_( - ffi.Pointer bytes, int length) { + ffi.Pointer bytes, + int length, + ) { final _ret = _objc_msgSend_3nbx5e( - _class_NSData, _sel_dataWithBytesNoCopy_length_, bytes, length); + _class_NSData, + _sel_dataWithBytesNoCopy_length_, + bytes, + length, + ); return NSData.castFromPointer(_ret, retain: true, release: true); } /// dataWithBytesNoCopy:length:freeWhenDone: static NSData dataWithBytesNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool b) { - final _ret = _objc_msgSend_161ne8y(_class_NSData, - _sel_dataWithBytesNoCopy_length_freeWhenDone_, bytes, length, b); + ffi.Pointer bytes, + int length, + bool b, + ) { + final _ret = _objc_msgSend_161ne8y( + _class_NSData, + _sel_dataWithBytesNoCopy_length_freeWhenDone_, + bytes, + length, + b, + ); return NSData.castFromPointer(_ret, retain: true, release: true); } /// dataWithContentsOfFile: static NSData? dataWithContentsOfFile_(NSString path) { final _ret = _objc_msgSend_1sotr3r( - _class_NSData, _sel_dataWithContentsOfFile_, path.ref.pointer); + _class_NSData, + _sel_dataWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: true, release: true); @@ -1474,15 +1897,17 @@ class NSData extends NSObject /// dataWithContentsOfFile:options:error: static NSData? dataWithContentsOfFile_options_error_( - NSString path, - NSDataReadingOptions readOptionsMask, - ffi.Pointer> errorPtr) { + NSString path, + NSDataReadingOptions readOptionsMask, + ffi.Pointer> errorPtr, + ) { final _ret = _objc_msgSend_8321cp( - _class_NSData, - _sel_dataWithContentsOfFile_options_error_, - path.ref.pointer, - readOptionsMask.value, - errorPtr); + _class_NSData, + _sel_dataWithContentsOfFile_options_error_, + path.ref.pointer, + readOptionsMask.value, + errorPtr, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: true, release: true); @@ -1491,7 +1916,10 @@ class NSData extends NSObject /// dataWithContentsOfURL: static NSData? dataWithContentsOfURL_(NSURL url) { final _ret = _objc_msgSend_1sotr3r( - _class_NSData, _sel_dataWithContentsOfURL_, url.ref.pointer); + _class_NSData, + _sel_dataWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: true, release: true); @@ -1499,15 +1927,17 @@ class NSData extends NSObject /// dataWithContentsOfURL:options:error: static NSData? dataWithContentsOfURL_options_error_( - NSURL url, - NSDataReadingOptions readOptionsMask, - ffi.Pointer> errorPtr) { + NSURL url, + NSDataReadingOptions readOptionsMask, + ffi.Pointer> errorPtr, + ) { final _ret = _objc_msgSend_8321cp( - _class_NSData, - _sel_dataWithContentsOfURL_options_error_, - url.ref.pointer, - readOptionsMask.value, - errorPtr); + _class_NSData, + _sel_dataWithContentsOfURL_options_error_, + url.ref.pointer, + readOptionsMask.value, + errorPtr, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: true, release: true); @@ -1516,7 +1946,10 @@ class NSData extends NSObject /// dataWithData: static NSData dataWithData_(NSData data) { final _ret = _objc_msgSend_1sotr3r( - _class_NSData, _sel_dataWithData_, data.ref.pointer); + _class_NSData, + _sel_dataWithData_, + data.ref.pointer, + ); return NSData.castFromPointer(_ret, retain: true, release: true); } @@ -1541,12 +1974,20 @@ class NSData extends NSObject /// iOS: introduced 13.0.0 /// macOS: introduced 10.15.0 NSData? compressedDataUsingAlgorithm_error_( - NSDataCompressionAlgorithm algorithm, - ffi.Pointer> error) { - objc.checkOsVersionInternal('NSData.compressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); - final _ret = _objc_msgSend_1vnlaqg(this.ref.pointer, - _sel_compressedDataUsingAlgorithm_error_, algorithm.value, error); + NSDataCompressionAlgorithm algorithm, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSData.compressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_compressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: true, release: true); @@ -1557,12 +1998,20 @@ class NSData extends NSObject /// iOS: introduced 13.0.0 /// macOS: introduced 10.15.0 NSData? decompressedDataUsingAlgorithm_error_( - NSDataCompressionAlgorithm algorithm, - ffi.Pointer> error) { - objc.checkOsVersionInternal('NSData.decompressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); - final _ret = _objc_msgSend_1vnlaqg(this.ref.pointer, - _sel_decompressedDataUsingAlgorithm_error_, algorithm.value, error); + NSDataCompressionAlgorithm algorithm, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSData.decompressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_decompressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: true, release: true); @@ -1571,28 +2020,42 @@ class NSData extends NSObject /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// init NSData init() { - objc.checkOsVersionInternal('NSData.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSData.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSData.castFromPointer(_ret, retain: false, release: true); } /// initWithBase64EncodedData:options: NSData? initWithBase64EncodedData_options_( - NSData base64Data, NSDataBase64DecodingOptions options) { - objc.checkOsVersionInternal('NSData.initWithBase64EncodedData:options:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + NSData base64Data, + NSDataBase64DecodingOptions options, + ) { + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedData:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedData_options_, - base64Data.ref.pointer, - options.value); + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedData_options_, + base64Data.ref.pointer, + options.value, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: false, release: true); @@ -1600,14 +2063,20 @@ class NSData extends NSObject /// initWithBase64EncodedString:options: NSData? initWithBase64EncodedString_options_( - NSString base64String, NSDataBase64DecodingOptions options) { - objc.checkOsVersionInternal('NSData.initWithBase64EncodedString:options:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + NSString base64String, + NSDataBase64DecodingOptions options, + ) { + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedString:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedString_options_, - base64String.ref.pointer, - options.value); + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedString_options_, + base64String.ref.pointer, + options.value, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: false, release: true); @@ -1615,30 +2084,49 @@ class NSData extends NSObject /// initWithBytes:length: NSData initWithBytes_length_(ffi.Pointer bytes, int length) { - final _ret = _objc_msgSend_3nbx5e(this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_, bytes, length); + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_, + bytes, + length, + ); return NSData.castFromPointer(_ret, retain: false, release: true); } /// initWithBytesNoCopy:length: NSData initWithBytesNoCopy_length_(ffi.Pointer bytes, int length) { - final _ret = _objc_msgSend_3nbx5e(this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_, bytes, length); + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_, + bytes, + length, + ); return NSData.castFromPointer(_ret, retain: false, release: true); } /// initWithBytesNoCopy:length:freeWhenDone: NSData initWithBytesNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool b) { - final _ret = _objc_msgSend_161ne8y(this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_freeWhenDone_, bytes, length, b); + ffi.Pointer bytes, + int length, + bool b, + ) { + final _ret = _objc_msgSend_161ne8y( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_freeWhenDone_, + bytes, + length, + b, + ); return NSData.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSData? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: false, release: true); @@ -1646,8 +2134,11 @@ class NSData extends NSObject /// initWithContentsOfFile: NSData? initWithContentsOfFile_(NSString path) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, path.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: false, release: true); @@ -1655,15 +2146,17 @@ class NSData extends NSObject /// initWithContentsOfFile:options:error: NSData? initWithContentsOfFile_options_error_( - NSString path, - NSDataReadingOptions readOptionsMask, - ffi.Pointer> errorPtr) { + NSString path, + NSDataReadingOptions readOptionsMask, + ffi.Pointer> errorPtr, + ) { final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_options_error_, - path.ref.pointer, - readOptionsMask.value, - errorPtr); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_options_error_, + path.ref.pointer, + readOptionsMask.value, + errorPtr, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: false, release: true); @@ -1671,8 +2164,11 @@ class NSData extends NSObject /// initWithContentsOfURL: NSData? initWithContentsOfURL_(NSURL url) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, url.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: false, release: true); @@ -1680,15 +2176,17 @@ class NSData extends NSObject /// initWithContentsOfURL:options:error: NSData? initWithContentsOfURL_options_error_( - NSURL url, - NSDataReadingOptions readOptionsMask, - ffi.Pointer> errorPtr) { + NSURL url, + NSDataReadingOptions readOptionsMask, + ffi.Pointer> errorPtr, + ) { final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_options_error_, - url.ref.pointer, - readOptionsMask.value, - errorPtr); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_options_error_, + url.ref.pointer, + readOptionsMask.value, + errorPtr, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: false, release: true); @@ -1696,8 +2194,11 @@ class NSData extends NSObject /// initWithData: NSData initWithData_(NSData data) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithData_, data.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data.ref.pointer, + ); return NSData.castFromPointer(_ret, retain: false, release: true); } @@ -1717,10 +2218,11 @@ enum NSDataBase64DecodingOptions { const NSDataBase64DecodingOptions(this.value); static NSDataBase64DecodingOptions fromValue(int value) => switch (value) { - 1 => NSDataBase64DecodingIgnoreUnknownCharacters, - _ => throw ArgumentError( - 'Unknown value for NSDataBase64DecodingOptions: $value'), - }; + 1 => NSDataBase64DecodingIgnoreUnknownCharacters, + _ => throw ArgumentError( + 'Unknown value for NSDataBase64DecodingOptions: $value', + ), + }; } enum NSDataBase64EncodingOptions { @@ -1733,13 +2235,14 @@ enum NSDataBase64EncodingOptions { const NSDataBase64EncodingOptions(this.value); static NSDataBase64EncodingOptions fromValue(int value) => switch (value) { - 1 => NSDataBase64Encoding64CharacterLineLength, - 2 => NSDataBase64Encoding76CharacterLineLength, - 16 => NSDataBase64EncodingEndLineWithCarriageReturn, - 32 => NSDataBase64EncodingEndLineWithLineFeed, - _ => throw ArgumentError( - 'Unknown value for NSDataBase64EncodingOptions: $value'), - }; + 1 => NSDataBase64Encoding64CharacterLineLength, + 2 => NSDataBase64Encoding76CharacterLineLength, + 16 => NSDataBase64EncodingEndLineWithCarriageReturn, + 32 => NSDataBase64EncodingEndLineWithLineFeed, + _ => throw ArgumentError( + 'Unknown value for NSDataBase64EncodingOptions: $value', + ), + }; } /// iOS: introduced 13.0.0 @@ -1754,13 +2257,14 @@ enum NSDataCompressionAlgorithm { const NSDataCompressionAlgorithm(this.value); static NSDataCompressionAlgorithm fromValue(int value) => switch (value) { - 0 => NSDataCompressionAlgorithmLZFSE, - 1 => NSDataCompressionAlgorithmLZ4, - 2 => NSDataCompressionAlgorithmLZMA, - 3 => NSDataCompressionAlgorithmZlib, - _ => throw ArgumentError( - 'Unknown value for NSDataCompressionAlgorithm: $value'), - }; + 0 => NSDataCompressionAlgorithmLZFSE, + 1 => NSDataCompressionAlgorithmLZ4, + 2 => NSDataCompressionAlgorithmLZMA, + 3 => NSDataCompressionAlgorithmZlib, + _ => throw ArgumentError( + 'Unknown value for NSDataCompressionAlgorithm: $value', + ), + }; } /// NSDataCreation @@ -1779,12 +2283,11 @@ enum NSDataReadingOptions { const NSDataReadingOptions(this.value); static NSDataReadingOptions fromValue(int value) => switch (value) { - 1 => NSDataReadingMappedIfSafe, - 2 => NSDataReadingUncached, - 8 => NSDataReadingMappedAlways, - _ => - throw ArgumentError('Unknown value for NSDataReadingOptions: $value'), - }; + 1 => NSDataReadingMappedIfSafe, + 2 => NSDataReadingUncached, + 8 => NSDataReadingMappedAlways, + _ => throw ArgumentError('Unknown value for NSDataReadingOptions: $value'), + }; @override String toString() { @@ -1804,11 +2307,10 @@ enum NSDataSearchOptions { const NSDataSearchOptions(this.value); static NSDataSearchOptions fromValue(int value) => switch (value) { - 1 => NSDataSearchBackwards, - 2 => NSDataSearchAnchored, - _ => - throw ArgumentError('Unknown value for NSDataSearchOptions: $value'), - }; + 1 => NSDataSearchBackwards, + 2 => NSDataSearchAnchored, + _ => throw ArgumentError('Unknown value for NSDataSearchOptions: $value'), + }; } enum NSDataWritingOptions { @@ -1827,18 +2329,17 @@ enum NSDataWritingOptions { const NSDataWritingOptions(this.value); static NSDataWritingOptions fromValue(int value) => switch (value) { - 1 => NSDataWritingAtomic, - 2 => NSDataWritingWithoutOverwriting, - 268435456 => NSDataWritingFileProtectionNone, - 536870912 => NSDataWritingFileProtectionComplete, - 805306368 => NSDataWritingFileProtectionCompleteUnlessOpen, - 1073741824 => - NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication, - 1342177280 => NSDataWritingFileProtectionCompleteWhenUserInactive, - 4026531840 => NSDataWritingFileProtectionMask, - _ => - throw ArgumentError('Unknown value for NSDataWritingOptions: $value'), - }; + 1 => NSDataWritingAtomic, + 2 => NSDataWritingWithoutOverwriting, + 268435456 => NSDataWritingFileProtectionNone, + 536870912 => NSDataWritingFileProtectionComplete, + 805306368 => NSDataWritingFileProtectionCompleteUnlessOpen, + 1073741824 => + NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication, + 1342177280 => NSDataWritingFileProtectionCompleteWhenUserInactive, + 4026531840 => NSDataWritingFileProtectionMask, + _ => throw ArgumentError('Unknown value for NSDataWritingOptions: $value'), + }; @override String toString() { @@ -1850,23 +2351,30 @@ enum NSDataWritingOptions { /// NSDate class NSDate extends NSObject implements NSCopying, NSSecureCoding { - NSDate._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSDate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSDate] that points to the same underlying object as [other]. NSDate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSDate] that wraps the given raw object pointer. - NSDate.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSDate.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSDate]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSDate); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSDate, + ); } /// alloc @@ -1877,8 +2385,11 @@ class NSDate extends NSObject implements NSCopying, NSSecureCoding { /// allocWithZone: static NSDate allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSDate, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSDate, + _sel_allocWithZone_, + zone, + ); return NSDate.castFromPointer(_ret, retain: false, release: true); } @@ -1890,30 +2401,45 @@ class NSDate extends NSObject implements NSCopying, NSSecureCoding { /// dateWithTimeInterval:sinceDate: static NSDate dateWithTimeInterval_sinceDate_( - double secsToBeAdded, NSDate date) { - final _ret = _objc_msgSend_1ozwf6k(_class_NSDate, - _sel_dateWithTimeInterval_sinceDate_, secsToBeAdded, date.ref.pointer); + double secsToBeAdded, + NSDate date, + ) { + final _ret = _objc_msgSend_1ozwf6k( + _class_NSDate, + _sel_dateWithTimeInterval_sinceDate_, + secsToBeAdded, + date.ref.pointer, + ); return NSDate.castFromPointer(_ret, retain: true, release: true); } /// dateWithTimeIntervalSince1970: static NSDate dateWithTimeIntervalSince1970_(double secs) { final _ret = _objc_msgSend_oa8mke( - _class_NSDate, _sel_dateWithTimeIntervalSince1970_, secs); + _class_NSDate, + _sel_dateWithTimeIntervalSince1970_, + secs, + ); return NSDate.castFromPointer(_ret, retain: true, release: true); } /// dateWithTimeIntervalSinceNow: static NSDate dateWithTimeIntervalSinceNow_(double secs) { final _ret = _objc_msgSend_oa8mke( - _class_NSDate, _sel_dateWithTimeIntervalSinceNow_, secs); + _class_NSDate, + _sel_dateWithTimeIntervalSinceNow_, + secs, + ); return NSDate.castFromPointer(_ret, retain: true, release: true); } /// dateWithTimeIntervalSinceReferenceDate: static NSDate dateWithTimeIntervalSinceReferenceDate_(double ti) { final _ret = _objc_msgSend_oa8mke( - _class_NSDate, _sel_dateWithTimeIntervalSinceReferenceDate_, ti); + _class_NSDate, + _sel_dateWithTimeIntervalSinceReferenceDate_, + ti, + ); return NSDate.castFromPointer(_ret, retain: true, release: true); } @@ -1936,32 +2462,49 @@ class NSDate extends NSObject implements NSCopying, NSSecureCoding { /// dateByAddingTimeInterval: NSDate dateByAddingTimeInterval_(double ti) { - objc.checkOsVersionInternal('NSDate.dateByAddingTimeInterval:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSDate.dateByAddingTimeInterval:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_oa8mke( - this.ref.pointer, _sel_dateByAddingTimeInterval_, ti); + this.ref.pointer, + _sel_dateByAddingTimeInterval_, + ti, + ); return NSDate.castFromPointer(_ret, retain: true, release: true); } /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// init NSDate init() { - objc.checkOsVersionInternal('NSDate.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSDate.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSDate.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSDate? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSDate.castFromPointer(_ret, retain: false, release: true); @@ -1969,29 +2512,42 @@ class NSDate extends NSObject implements NSCopying, NSSecureCoding { /// initWithTimeInterval:sinceDate: NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate date) { - final _ret = _objc_msgSend_1ozwf6k(this.ref.retainAndReturnPointer(), - _sel_initWithTimeInterval_sinceDate_, secsToBeAdded, date.ref.pointer); + final _ret = _objc_msgSend_1ozwf6k( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeInterval_sinceDate_, + secsToBeAdded, + date.ref.pointer, + ); return NSDate.castFromPointer(_ret, retain: false, release: true); } /// initWithTimeIntervalSince1970: NSDate initWithTimeIntervalSince1970_(double secs) { - final _ret = _objc_msgSend_oa8mke(this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSince1970_, secs); + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSince1970_, + secs, + ); return NSDate.castFromPointer(_ret, retain: false, release: true); } /// initWithTimeIntervalSinceNow: NSDate initWithTimeIntervalSinceNow_(double secs) { - final _ret = _objc_msgSend_oa8mke(this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSinceNow_, secs); + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSinceNow_, + secs, + ); return NSDate.castFromPointer(_ret, retain: false, release: true); } /// initWithTimeIntervalSinceReferenceDate: NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { - final _ret = _objc_msgSend_oa8mke(this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSinceReferenceDate_, ti); + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSinceReferenceDate_, + ti, + ); return NSDate.castFromPointer(_ret, retain: false, release: true); } @@ -2011,9 +2567,13 @@ class NSDate extends NSObject implements NSCopying, NSSecureCoding { double get timeIntervalSinceReferenceDate { return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, _sel_timeIntervalSinceReferenceDate) + this.ref.pointer, + _sel_timeIntervalSinceReferenceDate, + ) : _objc_msgSend_1ukqyt8( - this.ref.pointer, _sel_timeIntervalSinceReferenceDate); + this.ref.pointer, + _sel_timeIntervalSinceReferenceDate, + ); } /// Returns a new instance of NSDate constructed with the default `new` method. @@ -2023,23 +2583,30 @@ class NSDate extends NSObject implements NSCopying, NSSecureCoding { /// NSDictionary class NSDictionary extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - NSDictionary._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSDictionary._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSDictionary] that points to the same underlying object as [other]. NSDictionary.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSDictionary] that wraps the given raw object pointer. - NSDictionary.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSDictionary.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSDictionary]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSDictionary); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSDictionary, + ); } /// alloc @@ -2050,8 +2617,11 @@ class NSDictionary extends NSObject /// allocWithZone: static NSDictionary allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSDictionary, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSDictionary, + _sel_allocWithZone_, + zone, + ); return NSDictionary.castFromPointer(_ret, retain: false, release: true); } @@ -2064,44 +2634,66 @@ class NSDictionary extends NSObject /// dictionaryWithDictionary: static NSDictionary dictionaryWithDictionary_(NSDictionary dict) { final _ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, _sel_dictionaryWithDictionary_, dict.ref.pointer); + _class_NSDictionary, + _sel_dictionaryWithDictionary_, + dict.ref.pointer, + ); return NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithObject:forKey: static NSDictionary dictionaryWithObject_forKey_( - objc.ObjCObjectBase object, NSCopying key) { - final _ret = _objc_msgSend_15qeuct(_class_NSDictionary, - _sel_dictionaryWithObject_forKey_, object.ref.pointer, key.ref.pointer); + objc.ObjCObjectBase object, + NSCopying key, + ) { + final _ret = _objc_msgSend_15qeuct( + _class_NSDictionary, + _sel_dictionaryWithObject_forKey_, + object.ref.pointer, + key.ref.pointer, + ); return NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithObjects:forKeys: static NSDictionary dictionaryWithObjects_forKeys_( - NSArray objects, NSArray keys) { + NSArray objects, + NSArray keys, + ) { final _ret = _objc_msgSend_15qeuct( - _class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_, - objects.ref.pointer, - keys.ref.pointer); + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_, + objects.ref.pointer, + keys.ref.pointer, + ); return NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithObjects:forKeys:count: static NSDictionary dictionaryWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _objc_msgSend_1dydpdi(_class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_count_, objects, keys, cnt); + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt, + ) { + final _ret = _objc_msgSend_1dydpdi( + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_count_, + objects, + keys, + cnt, + ); return NSDictionary.castFromPointer(_ret, retain: true, release: true); } /// dictionaryWithObjectsAndKeys: static NSDictionary dictionaryWithObjectsAndKeys_( - objc.ObjCObjectBase firstObject) { - final _ret = _objc_msgSend_1sotr3r(_class_NSDictionary, - _sel_dictionaryWithObjectsAndKeys_, firstObject.ref.pointer); + objc.ObjCObjectBase firstObject, + ) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithObjectsAndKeys_, + firstObject.ref.pointer, + ); return NSDictionary.castFromPointer(_ret, retain: true, release: true); } @@ -2123,32 +2715,49 @@ class NSDictionary extends NSObject /// countByEnumeratingWithState:objects:count: int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { - return _objc_msgSend_1b5ysjl(this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, state, buffer, len); + ffi.Pointer state, + ffi.Pointer> buffer, + int len, + ) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + buffer, + len, + ); } /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// init NSDictionary init() { - objc.checkOsVersionInternal('NSDictionary.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSDictionary.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSDictionary.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSDictionary? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSDictionary.castFromPointer(_ret, retain: false, release: true); @@ -2156,40 +2765,62 @@ class NSDictionary extends NSObject /// initWithDictionary: NSDictionary initWithDictionary_(NSDictionary otherDictionary) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_, otherDictionary.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_, + otherDictionary.ref.pointer, + ); return NSDictionary.castFromPointer(_ret, retain: false, release: true); } /// initWithDictionary:copyItems: NSDictionary initWithDictionary_copyItems_( - NSDictionary otherDictionary, bool flag) { - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_copyItems_, otherDictionary.ref.pointer, flag); + NSDictionary otherDictionary, + bool flag, + ) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_copyItems_, + otherDictionary.ref.pointer, + flag, + ); return NSDictionary.castFromPointer(_ret, retain: false, release: true); } /// initWithObjects:forKeys: NSDictionary initWithObjects_forKeys_(NSArray objects, NSArray keys) { - final _ret = _objc_msgSend_15qeuct(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_, objects.ref.pointer, keys.ref.pointer); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_, + objects.ref.pointer, + keys.ref.pointer, + ); return NSDictionary.castFromPointer(_ret, retain: false, release: true); } /// initWithObjects:forKeys:count: NSDictionary initWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _objc_msgSend_1dydpdi(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_count_, objects, keys, cnt); + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt, + ) { + final _ret = _objc_msgSend_1dydpdi( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_count_, + objects, + keys, + cnt, + ); return NSDictionary.castFromPointer(_ret, retain: false, release: true); } /// initWithObjectsAndKeys: NSDictionary initWithObjectsAndKeys_(objc.ObjCObjectBase firstObject) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObjectsAndKeys_, firstObject.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjectsAndKeys_, + firstObject.ref.pointer, + ); return NSDictionary.castFromPointer(_ret, retain: false, release: true); } @@ -2202,7 +2833,10 @@ class NSDictionary extends NSObject /// objectForKey: objc.ObjCObjectBase? objectForKey_(objc.ObjCObjectBase aKey) { final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_objectForKey_, aKey.ref.pointer); + this.ref.pointer, + _sel_objectForKey_, + aKey.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -2220,32 +2854,38 @@ enum NSEnumerationOptions { const NSEnumerationOptions(this.value); static NSEnumerationOptions fromValue(int value) => switch (value) { - 1 => NSEnumerationConcurrent, - 2 => NSEnumerationReverse, - _ => - throw ArgumentError('Unknown value for NSEnumerationOptions: $value'), - }; + 1 => NSEnumerationConcurrent, + 2 => NSEnumerationReverse, + _ => throw ArgumentError('Unknown value for NSEnumerationOptions: $value'), + }; } /// NSEnumerator class NSEnumerator extends NSObject implements NSFastEnumeration { - NSEnumerator._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSEnumerator._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSEnumerator] that points to the same underlying object as [other]. NSEnumerator.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSEnumerator] that wraps the given raw object pointer. - NSEnumerator.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSEnumerator.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSEnumerator]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSEnumerator); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSEnumerator, + ); } /// alloc @@ -2256,8 +2896,11 @@ class NSEnumerator extends NSObject implements NSFastEnumeration { /// allocWithZone: static NSEnumerator allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSEnumerator, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSEnumerator, + _sel_allocWithZone_, + zone, + ); return NSEnumerator.castFromPointer(_ret, retain: false, release: true); } @@ -2269,19 +2912,30 @@ class NSEnumerator extends NSObject implements NSFastEnumeration { /// countByEnumeratingWithState:objects:count: int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { - return _objc_msgSend_1b5ysjl(this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, state, buffer, len); + ffi.Pointer state, + ffi.Pointer> buffer, + int len, + ) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + buffer, + len, + ); } /// init NSEnumerator init() { - objc.checkOsVersionInternal('NSEnumerator.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSEnumerator.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSEnumerator.castFromPointer(_ret, retain: false, release: true); } @@ -2299,23 +2953,30 @@ class NSEnumerator extends NSObject implements NSFastEnumeration { /// NSError class NSError extends NSObject implements NSCopying, NSSecureCoding { - NSError._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSError._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSError] that points to the same underlying object as [other]. NSError.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSError] that wraps the given raw object pointer. - NSError.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSError.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSError]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSError); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSError, + ); } /// alloc @@ -2326,20 +2987,27 @@ class NSError extends NSObject implements NSCopying, NSSecureCoding { /// allocWithZone: static NSError allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSError, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSError, + _sel_allocWithZone_, + zone, + ); return NSError.castFromPointer(_ret, retain: false, release: true); } /// errorWithDomain:code:userInfo: static NSError errorWithDomain_code_userInfo_( - NSString domain, int code, NSDictionary? dict) { + NSString domain, + int code, + NSDictionary? dict, + ) { final _ret = _objc_msgSend_rc4ypv( - _class_NSError, - _sel_errorWithDomain_code_userInfo_, - domain.ref.pointer, - code, - dict?.ref.pointer ?? ffi.nullptr); + _class_NSError, + _sel_errorWithDomain_code_userInfo_, + domain.ref.pointer, + code, + dict?.ref.pointer ?? ffi.nullptr, + ); return NSError.castFromPointer(_ret, retain: true, release: true); } @@ -2368,7 +3036,10 @@ class NSError extends NSObject implements NSCopying, NSSecureCoding { /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// helpAnchor @@ -2381,17 +3052,25 @@ class NSError extends NSObject implements NSCopying, NSSecureCoding { /// init NSError init() { - objc.checkOsVersionInternal('NSError.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSError.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSError.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSError? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSError.castFromPointer(_ret, retain: false, release: true); @@ -2399,27 +3078,35 @@ class NSError extends NSObject implements NSCopying, NSSecureCoding { /// initWithDomain:code:userInfo: NSError initWithDomain_code_userInfo_( - NSString domain, int code, NSDictionary? dict) { + NSString domain, + int code, + NSDictionary? dict, + ) { final _ret = _objc_msgSend_rc4ypv( - this.ref.retainAndReturnPointer(), - _sel_initWithDomain_code_userInfo_, - domain.ref.pointer, - code, - dict?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithDomain_code_userInfo_, + domain.ref.pointer, + code, + dict?.ref.pointer ?? ffi.nullptr, + ); return NSError.castFromPointer(_ret, retain: false, release: true); } /// localizedDescription NSString get localizedDescription { - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_localizedDescription); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedDescription, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// localizedFailureReason NSString? get localizedFailureReason { - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_localizedFailureReason); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedFailureReason, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -2427,8 +3114,10 @@ class NSError extends NSObject implements NSCopying, NSSecureCoding { /// localizedRecoveryOptions NSArray? get localizedRecoveryOptions { - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_localizedRecoveryOptions); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedRecoveryOptions, + ); return _ret.address == 0 ? null : NSArray.castFromPointer(_ret, retain: true, release: true); @@ -2437,7 +3126,9 @@ class NSError extends NSObject implements NSCopying, NSSecureCoding { /// localizedRecoverySuggestion NSString? get localizedRecoverySuggestion { final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_localizedRecoverySuggestion); + this.ref.pointer, + _sel_localizedRecoverySuggestion, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -2445,8 +3136,10 @@ class NSError extends NSObject implements NSCopying, NSSecureCoding { /// recoveryAttempter objc.ObjCObjectBase? get recoveryAttempter { - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_recoveryAttempter); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_recoveryAttempter, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -2455,8 +3148,11 @@ class NSError extends NSObject implements NSCopying, NSSecureCoding { /// iOS: introduced 14.5.0 /// macOS: introduced 11.3.0 NSArray get underlyingErrors { - objc.checkOsVersionInternal('NSError.underlyingErrors', - iOS: (false, (14, 5, 0)), macOS: (false, (11, 3, 0))); + objc.checkOsVersionInternal( + 'NSError.underlyingErrors', + iOS: (false, (14, 5, 0)), + macOS: (false, (11, 3, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_underlyingErrors); return NSArray.castFromPointer(_ret, retain: true, release: true); } @@ -2476,28 +3172,40 @@ extension NSExtendedArray on NSArray { /// arrayByAddingObject: NSArray arrayByAddingObject_(objc.ObjCObjectBase anObject) { final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_arrayByAddingObject_, anObject.ref.pointer); + this.ref.pointer, + _sel_arrayByAddingObject_, + anObject.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// arrayByAddingObjectsFromArray: NSArray arrayByAddingObjectsFromArray_(NSArray otherArray) { - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_arrayByAddingObjectsFromArray_, otherArray.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_arrayByAddingObjectsFromArray_, + otherArray.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// componentsJoinedByString: NSString componentsJoinedByString_(NSString separator) { - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_componentsJoinedByString_, separator.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_componentsJoinedByString_, + separator.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// containsObject: bool containsObject_(objc.ObjCObjectBase anObject) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_containsObject_, anObject.ref.pointer); + this.ref.pointer, + _sel_containsObject_, + anObject.ref.pointer, + ); } /// description @@ -2508,26 +3216,35 @@ extension NSExtendedArray on NSArray { /// descriptionWithLocale: NSString descriptionWithLocale_(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_descriptionWithLocale_, locale?.ref.pointer ?? ffi.nullptr); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// descriptionWithLocale:indent: NSString descriptionWithLocale_indent_( - objc.ObjCObjectBase? locale, int level) { + objc.ObjCObjectBase? locale, + int level, + ) { final _ret = _objc_msgSend_1k4kd9s( - this.ref.pointer, - _sel_descriptionWithLocale_indent_, - locale?.ref.pointer ?? ffi.nullptr, - level); + this.ref.pointer, + _sel_descriptionWithLocale_indent_, + locale?.ref.pointer ?? ffi.nullptr, + level, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// firstObject objc.ObjCObjectBase? get firstObject { - objc.checkOsVersionInternal('NSArray.firstObject', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSArray.firstObject', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_firstObject); return _ret.address == 0 ? null @@ -2536,8 +3253,11 @@ extension NSExtendedArray on NSArray { /// firstObjectCommonWithArray: objc.ObjCObjectBase? firstObjectCommonWithArray_(NSArray otherArray) { - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_firstObjectCommonWithArray_, otherArray.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_firstObjectCommonWithArray_, + otherArray.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -2545,40 +3265,65 @@ extension NSExtendedArray on NSArray { /// getObjects:range: void getObjects_range_( - ffi.Pointer> objects, NSRange range) { + ffi.Pointer> objects, + NSRange range, + ) { _objc_msgSend_o16d3k( - this.ref.pointer, _sel_getObjects_range_, objects, range); + this.ref.pointer, + _sel_getObjects_range_, + objects, + range, + ); } /// indexOfObject: int indexOfObject_(objc.ObjCObjectBase anObject) { return _objc_msgSend_1vd1c5m( - this.ref.pointer, _sel_indexOfObject_, anObject.ref.pointer); + this.ref.pointer, + _sel_indexOfObject_, + anObject.ref.pointer, + ); } /// indexOfObject:inRange: int indexOfObject_inRange_(objc.ObjCObjectBase anObject, NSRange range) { - return _objc_msgSend_zug4wi(this.ref.pointer, _sel_indexOfObject_inRange_, - anObject.ref.pointer, range); + return _objc_msgSend_zug4wi( + this.ref.pointer, + _sel_indexOfObject_inRange_, + anObject.ref.pointer, + range, + ); } /// indexOfObjectIdenticalTo: int indexOfObjectIdenticalTo_(objc.ObjCObjectBase anObject) { return _objc_msgSend_1vd1c5m( - this.ref.pointer, _sel_indexOfObjectIdenticalTo_, anObject.ref.pointer); + this.ref.pointer, + _sel_indexOfObjectIdenticalTo_, + anObject.ref.pointer, + ); } /// indexOfObjectIdenticalTo:inRange: int indexOfObjectIdenticalTo_inRange_( - objc.ObjCObjectBase anObject, NSRange range) { - return _objc_msgSend_zug4wi(this.ref.pointer, - _sel_indexOfObjectIdenticalTo_inRange_, anObject.ref.pointer, range); + objc.ObjCObjectBase anObject, + NSRange range, + ) { + return _objc_msgSend_zug4wi( + this.ref.pointer, + _sel_indexOfObjectIdenticalTo_inRange_, + anObject.ref.pointer, + range, + ); } /// isEqualToArray: bool isEqualToArray_(NSArray otherArray) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isEqualToArray_, otherArray.ref.pointer); + this.ref.pointer, + _sel_isEqualToArray_, + otherArray.ref.pointer, + ); } /// lastObject @@ -2592,25 +3337,37 @@ extension NSExtendedArray on NSArray { /// makeObjectsPerformSelector: void makeObjectsPerformSelector_(ffi.Pointer aSelector) { _objc_msgSend_1d9e4oe( - this.ref.pointer, _sel_makeObjectsPerformSelector_, aSelector); + this.ref.pointer, + _sel_makeObjectsPerformSelector_, + aSelector, + ); } /// makeObjectsPerformSelector:withObject: void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, objc.ObjCObjectBase? argument) { + ffi.Pointer aSelector, + objc.ObjCObjectBase? argument, + ) { _objc_msgSend_1qv0eq4( - this.ref.pointer, - _sel_makeObjectsPerformSelector_withObject_, - aSelector, - argument?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_makeObjectsPerformSelector_withObject_, + aSelector, + argument?.ref.pointer ?? ffi.nullptr, + ); } /// objectAtIndexedSubscript: objc.ObjCObjectBase objectAtIndexedSubscript_(int idx) { - objc.checkOsVersionInternal('NSArray.objectAtIndexedSubscript:', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); + objc.checkOsVersionInternal( + 'NSArray.objectAtIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, _sel_objectAtIndexedSubscript_, idx); + this.ref.pointer, + _sel_objectAtIndexedSubscript_, + idx, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } @@ -2623,14 +3380,19 @@ extension NSExtendedArray on NSArray { /// objectsAtIndexes: NSArray objectsAtIndexes_(NSIndexSet indexes) { final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_objectsAtIndexes_, indexes.ref.pointer); + this.ref.pointer, + _sel_objectsAtIndexes_, + indexes.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// reverseObjectEnumerator NSEnumerator reverseObjectEnumerator() { - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_reverseObjectEnumerator); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_reverseObjectEnumerator, + ); return NSEnumerator.castFromPointer(_ret, retain: true, release: true); } @@ -2642,56 +3404,88 @@ extension NSExtendedArray on NSArray { /// sortedArrayUsingFunction:context: NSArray sortedArrayUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context) { - final _ret = _objc_msgSend_1ffoev1(this.ref.pointer, - _sel_sortedArrayUsingFunction_context_, comparator, context); + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + comparator, + ffi.Pointer context, + ) { + final _ret = _objc_msgSend_1ffoev1( + this.ref.pointer, + _sel_sortedArrayUsingFunction_context_, + comparator, + context, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// sortedArrayUsingFunction:context:hint: NSArray sortedArrayUsingFunction_context_hint_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context, - NSData? hint) { + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + comparator, + ffi.Pointer context, + NSData? hint, + ) { final _ret = _objc_msgSend_1i2r70j( - this.ref.pointer, - _sel_sortedArrayUsingFunction_context_hint_, - comparator, - context, - hint?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_sortedArrayUsingFunction_context_hint_, + comparator, + context, + hint?.ref.pointer ?? ffi.nullptr, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// sortedArrayUsingSelector: NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, _sel_sortedArrayUsingSelector_, comparator); + this.ref.pointer, + _sel_sortedArrayUsingSelector_, + comparator, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// subarrayWithRange: NSArray subarrayWithRange_(NSRange range) { - final _ret = - _objc_msgSend_1k1o1s7(this.ref.pointer, _sel_subarrayWithRange_, range); + final _ret = _objc_msgSend_1k1o1s7( + this.ref.pointer, + _sel_subarrayWithRange_, + range, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// writeToURL:error: bool writeToURL_error_( - NSURL url, ffi.Pointer> error) { - objc.checkOsVersionInternal('NSArray.writeToURL:error:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); + NSURL url, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSArray.writeToURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); return _objc_msgSend_l9p60w( - this.ref.pointer, _sel_writeToURL_error_, url.ref.pointer, error); + this.ref.pointer, + _sel_writeToURL_error_, + url.ref.pointer, + error, + ); } } @@ -2706,7 +3500,11 @@ extension NSExtendedData on NSData { /// getBytes:length: void getBytes_length_(ffi.Pointer buffer, int length) { _objc_msgSend_zuf90e( - this.ref.pointer, _sel_getBytes_length_, buffer, length); + this.ref.pointer, + _sel_getBytes_length_, + buffer, + length, + ); } /// getBytes:range: @@ -2717,14 +3515,23 @@ extension NSExtendedData on NSData { /// isEqualToData: bool isEqualToData_(NSData other) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isEqualToData_, other.ref.pointer); + this.ref.pointer, + _sel_isEqualToData_, + other.ref.pointer, + ); } /// rangeOfData:options:range: NSRange rangeOfData_options_range_( - NSData dataToFind, NSDataSearchOptions mask, NSRange searchRange) { - objc.checkOsVersionInternal('NSData.rangeOfData:options:range:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + NSData dataToFind, + NSDataSearchOptions mask, + NSRange searchRange, + ) { + objc.checkOsVersionInternal( + 'NSData.rangeOfData:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_1d8s65wStret( @@ -2733,62 +3540,80 @@ extension NSExtendedData on NSData { _sel_rangeOfData_options_range_, dataToFind.ref.pointer, mask.value, - searchRange) + searchRange, + ) : _ptr.ref = _objc_msgSend_1d8s65w( this.ref.pointer, _sel_rangeOfData_options_range_, dataToFind.ref.pointer, mask.value, - searchRange); + searchRange, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// subdataWithRange: NSData subdataWithRange_(NSRange range) { - final _ret = - _objc_msgSend_1k1o1s7(this.ref.pointer, _sel_subdataWithRange_, range); + final _ret = _objc_msgSend_1k1o1s7( + this.ref.pointer, + _sel_subdataWithRange_, + range, + ); return NSData.castFromPointer(_ret, retain: true, release: true); } /// writeToFile:atomically: bool writeToFile_atomically_(NSString path, bool useAuxiliaryFile) { - return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToFile_atomically_, - path.ref.pointer, useAuxiliaryFile); + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToFile_atomically_, + path.ref.pointer, + useAuxiliaryFile, + ); } /// writeToFile:options:error: bool writeToFile_options_error_( - NSString path, - NSDataWritingOptions writeOptionsMask, - ffi.Pointer> errorPtr) { + NSString path, + NSDataWritingOptions writeOptionsMask, + ffi.Pointer> errorPtr, + ) { return _objc_msgSend_1xi08ar( - this.ref.pointer, - _sel_writeToFile_options_error_, - path.ref.pointer, - writeOptionsMask.value, - errorPtr); + this.ref.pointer, + _sel_writeToFile_options_error_, + path.ref.pointer, + writeOptionsMask.value, + errorPtr, + ); } /// writeToURL:atomically: bool writeToURL_atomically_(NSURL url, bool atomically) { - return _objc_msgSend_1iyq28l(this.ref.pointer, _sel_writeToURL_atomically_, - url.ref.pointer, atomically); + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToURL_atomically_, + url.ref.pointer, + atomically, + ); } /// writeToURL:options:error: bool writeToURL_options_error_( - NSURL url, - NSDataWritingOptions writeOptionsMask, - ffi.Pointer> errorPtr) { + NSURL url, + NSDataWritingOptions writeOptionsMask, + ffi.Pointer> errorPtr, + ) { return _objc_msgSend_1xi08ar( - this.ref.pointer, - _sel_writeToURL_options_error_, - url.ref.pointer, - writeOptionsMask.value, - errorPtr); + this.ref.pointer, + _sel_writeToURL_options_error_, + url.ref.pointer, + writeOptionsMask.value, + errorPtr, + ); } } @@ -2798,15 +3623,22 @@ extension NSExtendedDate on NSDate { static double getTimeIntervalSinceReferenceDate() { return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret( - _class_NSDate, _sel_timeIntervalSinceReferenceDate) + _class_NSDate, + _sel_timeIntervalSinceReferenceDate, + ) : _objc_msgSend_1ukqyt8( - _class_NSDate, _sel_timeIntervalSinceReferenceDate); + _class_NSDate, + _sel_timeIntervalSinceReferenceDate, + ); } /// compare: NSComparisonResult compare_(NSDate other) { final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, _sel_compare_, other.ref.pointer); + this.ref.pointer, + _sel_compare_, + other.ref.pointer, + ); return NSComparisonResult.fromValue(_ret); } @@ -2818,28 +3650,40 @@ extension NSExtendedDate on NSDate { /// descriptionWithLocale: NSString descriptionWithLocale_(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_descriptionWithLocale_, locale?.ref.pointer ?? ffi.nullptr); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// earlierDate: NSDate earlierDate_(NSDate anotherDate) { final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_earlierDate_, anotherDate.ref.pointer); + this.ref.pointer, + _sel_earlierDate_, + anotherDate.ref.pointer, + ); return NSDate.castFromPointer(_ret, retain: true, release: true); } /// isEqualToDate: bool isEqualToDate_(NSDate otherDate) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isEqualToDate_, otherDate.ref.pointer); + this.ref.pointer, + _sel_isEqualToDate_, + otherDate.ref.pointer, + ); } /// laterDate: NSDate laterDate_(NSDate anotherDate) { final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_laterDate_, anotherDate.ref.pointer); + this.ref.pointer, + _sel_laterDate_, + anotherDate.ref.pointer, + ); return NSDate.castFromPointer(_ret, retain: true, release: true); } @@ -2847,24 +3691,34 @@ extension NSExtendedDate on NSDate { double get timeIntervalSince1970 { return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, _sel_timeIntervalSince1970) + this.ref.pointer, + _sel_timeIntervalSince1970, + ) : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeIntervalSince1970); } /// timeIntervalSinceDate: double timeIntervalSinceDate_(NSDate anotherDate) { return objc.useMsgSendVariants - ? _objc_msgSend_mabicuFpret(this.ref.pointer, - _sel_timeIntervalSinceDate_, anotherDate.ref.pointer) - : _objc_msgSend_mabicu(this.ref.pointer, _sel_timeIntervalSinceDate_, - anotherDate.ref.pointer); + ? _objc_msgSend_mabicuFpret( + this.ref.pointer, + _sel_timeIntervalSinceDate_, + anotherDate.ref.pointer, + ) + : _objc_msgSend_mabicu( + this.ref.pointer, + _sel_timeIntervalSinceDate_, + anotherDate.ref.pointer, + ); } /// timeIntervalSinceNow double get timeIntervalSinceNow { return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, _sel_timeIntervalSinceNow) + this.ref.pointer, + _sel_timeIntervalSinceNow, + ) : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeIntervalSinceNow); } } @@ -2880,7 +3734,10 @@ extension NSExtendedDictionary on NSDictionary { /// allKeysForObject: NSArray allKeysForObject_(objc.ObjCObjectBase anObject) { final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_allKeysForObject_, anObject.ref.pointer); + this.ref.pointer, + _sel_allKeysForObject_, + anObject.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } @@ -2899,50 +3756,74 @@ extension NSExtendedDictionary on NSDictionary { /// descriptionInStringsFileFormat NSString get descriptionInStringsFileFormat { final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_descriptionInStringsFileFormat); + this.ref.pointer, + _sel_descriptionInStringsFileFormat, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// descriptionWithLocale: NSString descriptionWithLocale_(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_descriptionWithLocale_, locale?.ref.pointer ?? ffi.nullptr); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// descriptionWithLocale:indent: NSString descriptionWithLocale_indent_( - objc.ObjCObjectBase? locale, int level) { + objc.ObjCObjectBase? locale, + int level, + ) { final _ret = _objc_msgSend_1k4kd9s( - this.ref.pointer, - _sel_descriptionWithLocale_indent_, - locale?.ref.pointer ?? ffi.nullptr, - level); + this.ref.pointer, + _sel_descriptionWithLocale_indent_, + locale?.ref.pointer ?? ffi.nullptr, + level, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// getObjects:andKeys:count: void getObjects_andKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int count) { - objc.checkOsVersionInternal('NSDictionary.getObjects:andKeys:count:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + ffi.Pointer> objects, + ffi.Pointer> keys, + int count, + ) { + objc.checkOsVersionInternal( + 'NSDictionary.getObjects:andKeys:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_n2svg2( - this.ref.pointer, _sel_getObjects_andKeys_count_, objects, keys, count); + this.ref.pointer, + _sel_getObjects_andKeys_count_, + objects, + keys, + count, + ); } /// isEqualToDictionary: bool isEqualToDictionary_(NSDictionary otherDictionary) { - return _objc_msgSend_19nvye5(this.ref.pointer, _sel_isEqualToDictionary_, - otherDictionary.ref.pointer); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToDictionary_, + otherDictionary.ref.pointer, + ); } /// keysSortedByValueUsingSelector: NSArray keysSortedByValueUsingSelector_( - ffi.Pointer comparator) { + ffi.Pointer comparator, + ) { final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, _sel_keysSortedByValueUsingSelector_, comparator); + this.ref.pointer, + _sel_keysSortedByValueUsingSelector_, + comparator, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } @@ -2954,10 +3835,16 @@ extension NSExtendedDictionary on NSDictionary { /// objectForKeyedSubscript: objc.ObjCObjectBase? objectForKeyedSubscript_(objc.ObjCObjectBase key) { - objc.checkOsVersionInternal('NSDictionary.objectForKeyedSubscript:', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); + objc.checkOsVersionInternal( + 'NSDictionary.objectForKeyedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_objectForKeyedSubscript_, key.ref.pointer); + this.ref.pointer, + _sel_objectForKeyedSubscript_, + key.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -2965,22 +3852,34 @@ extension NSExtendedDictionary on NSDictionary { /// objectsForKeys:notFoundMarker: NSArray objectsForKeys_notFoundMarker_( - NSArray keys, objc.ObjCObjectBase marker) { + NSArray keys, + objc.ObjCObjectBase marker, + ) { final _ret = _objc_msgSend_15qeuct( - this.ref.pointer, - _sel_objectsForKeys_notFoundMarker_, - keys.ref.pointer, - marker.ref.pointer); + this.ref.pointer, + _sel_objectsForKeys_notFoundMarker_, + keys.ref.pointer, + marker.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// writeToURL:error: bool writeToURL_error_( - NSURL url, ffi.Pointer> error) { - objc.checkOsVersionInternal('NSDictionary.writeToURL:error:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); + NSURL url, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSDictionary.writeToURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); return _objc_msgSend_l9p60w( - this.ref.pointer, _sel_writeToURL_error_, url.ref.pointer, error); + this.ref.pointer, + _sel_writeToURL_error_, + url.ref.pointer, + error, + ); } } @@ -2998,19 +3897,30 @@ extension NSExtendedMutableArray on NSMutableArray { /// addObjectsFromArray: void addObjectsFromArray_(NSArray otherArray) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_addObjectsFromArray_, otherArray.ref.pointer); + this.ref.pointer, + _sel_addObjectsFromArray_, + otherArray.ref.pointer, + ); } /// exchangeObjectAtIndex:withObjectAtIndex: void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - _objc_msgSend_bfp043(this.ref.pointer, - _sel_exchangeObjectAtIndex_withObjectAtIndex_, idx1, idx2); + _objc_msgSend_bfp043( + this.ref.pointer, + _sel_exchangeObjectAtIndex_withObjectAtIndex_, + idx1, + idx2, + ); } /// insertObjects:atIndexes: void insertObjects_atIndexes_(NSArray objects, NSIndexSet indexes) { - _objc_msgSend_pfv6jd(this.ref.pointer, _sel_insertObjects_atIndexes_, - objects.ref.pointer, indexes.ref.pointer); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_insertObjects_atIndexes_, + objects.ref.pointer, + indexes.ref.pointer, + ); } /// removeAllObjects @@ -3021,38 +3931,60 @@ extension NSExtendedMutableArray on NSMutableArray { /// removeObject: void removeObject_(objc.ObjCObjectBase anObject) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeObject_, anObject.ref.pointer); + this.ref.pointer, + _sel_removeObject_, + anObject.ref.pointer, + ); } /// removeObject:inRange: void removeObject_inRange_(objc.ObjCObjectBase anObject, NSRange range) { - _objc_msgSend_1oteutl(this.ref.pointer, _sel_removeObject_inRange_, - anObject.ref.pointer, range); + _objc_msgSend_1oteutl( + this.ref.pointer, + _sel_removeObject_inRange_, + anObject.ref.pointer, + range, + ); } /// removeObjectIdenticalTo: void removeObjectIdenticalTo_(objc.ObjCObjectBase anObject) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeObjectIdenticalTo_, anObject.ref.pointer); + this.ref.pointer, + _sel_removeObjectIdenticalTo_, + anObject.ref.pointer, + ); } /// removeObjectIdenticalTo:inRange: void removeObjectIdenticalTo_inRange_( - objc.ObjCObjectBase anObject, NSRange range) { - _objc_msgSend_1oteutl(this.ref.pointer, - _sel_removeObjectIdenticalTo_inRange_, anObject.ref.pointer, range); + objc.ObjCObjectBase anObject, + NSRange range, + ) { + _objc_msgSend_1oteutl( + this.ref.pointer, + _sel_removeObjectIdenticalTo_inRange_, + anObject.ref.pointer, + range, + ); } /// removeObjectsAtIndexes: void removeObjectsAtIndexes_(NSIndexSet indexes) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeObjectsAtIndexes_, indexes.ref.pointer); + this.ref.pointer, + _sel_removeObjectsAtIndexes_, + indexes.ref.pointer, + ); } /// removeObjectsInArray: void removeObjectsInArray_(NSArray otherArray) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeObjectsInArray_, otherArray.ref.pointer); + this.ref.pointer, + _sel_removeObjectsInArray_, + otherArray.ref.pointer, + ); } /// removeObjectsInRange: @@ -3062,65 +3994,98 @@ extension NSExtendedMutableArray on NSMutableArray { /// replaceObjectsAtIndexes:withObjects: void replaceObjectsAtIndexes_withObjects_( - NSIndexSet indexes, NSArray objects) { + NSIndexSet indexes, + NSArray objects, + ) { _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_replaceObjectsAtIndexes_withObjects_, - indexes.ref.pointer, - objects.ref.pointer); + this.ref.pointer, + _sel_replaceObjectsAtIndexes_withObjects_, + indexes.ref.pointer, + objects.ref.pointer, + ); } /// replaceObjectsInRange:withObjectsFromArray: void replaceObjectsInRange_withObjectsFromArray_( - NSRange range, NSArray otherArray) { + NSRange range, + NSArray otherArray, + ) { _objc_msgSend_1tv4uax( - this.ref.pointer, - _sel_replaceObjectsInRange_withObjectsFromArray_, - range, - otherArray.ref.pointer); + this.ref.pointer, + _sel_replaceObjectsInRange_withObjectsFromArray_, + range, + otherArray.ref.pointer, + ); } /// replaceObjectsInRange:withObjectsFromArray:range: void replaceObjectsInRange_withObjectsFromArray_range_( - NSRange range, NSArray otherArray, NSRange otherRange) { + NSRange range, + NSArray otherArray, + NSRange otherRange, + ) { _objc_msgSend_15bolr3( - this.ref.pointer, - _sel_replaceObjectsInRange_withObjectsFromArray_range_, - range, - otherArray.ref.pointer, - otherRange); + this.ref.pointer, + _sel_replaceObjectsInRange_withObjectsFromArray_range_, + range, + otherArray.ref.pointer, + otherRange, + ); } /// setArray: void setArray_(NSArray otherArray) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setArray_, otherArray.ref.pointer); + this.ref.pointer, + _sel_setArray_, + otherArray.ref.pointer, + ); } /// setObject:atIndexedSubscript: void setObject_atIndexedSubscript_(objc.ObjCObjectBase obj, int idx) { - objc.checkOsVersionInternal('NSMutableArray.setObject:atIndexedSubscript:', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); - _objc_msgSend_djsa9o(this.ref.pointer, _sel_setObject_atIndexedSubscript_, - obj.ref.pointer, idx); + objc.checkOsVersionInternal( + 'NSMutableArray.setObject:atIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_setObject_atIndexedSubscript_, + obj.ref.pointer, + idx, + ); } /// sortUsingFunction:context: void sortUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - compare, - ffi.Pointer context) { + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + compare, + ffi.Pointer context, + ) { _objc_msgSend_1bvics1( - this.ref.pointer, _sel_sortUsingFunction_context_, compare, context); + this.ref.pointer, + _sel_sortUsingFunction_context_, + compare, + context, + ); } /// sortUsingSelector: void sortUsingSelector_(ffi.Pointer comparator) { _objc_msgSend_1d9e4oe( - this.ref.pointer, _sel_sortUsingSelector_, comparator); + this.ref.pointer, + _sel_sortUsingSelector_, + comparator, + ); } } @@ -3129,7 +4094,11 @@ extension NSExtendedMutableData on NSMutableData { /// appendBytes:length: void appendBytes_length_(ffi.Pointer bytes, int length) { _objc_msgSend_zuf90e( - this.ref.pointer, _sel_appendBytes_length_, bytes, length); + this.ref.pointer, + _sel_appendBytes_length_, + bytes, + length, + ); } /// appendData: @@ -3140,25 +4109,38 @@ extension NSExtendedMutableData on NSMutableData { /// increaseLengthBy: void increaseLengthBy_(int extraLength) { _objc_msgSend_1i9r4xy( - this.ref.pointer, _sel_increaseLengthBy_, extraLength); + this.ref.pointer, + _sel_increaseLengthBy_, + extraLength, + ); } /// replaceBytesInRange:withBytes: void replaceBytesInRange_withBytes_( - NSRange range, ffi.Pointer bytes) { + NSRange range, + ffi.Pointer bytes, + ) { _objc_msgSend_eh32gn( - this.ref.pointer, _sel_replaceBytesInRange_withBytes_, range, bytes); + this.ref.pointer, + _sel_replaceBytesInRange_withBytes_, + range, + bytes, + ); } /// replaceBytesInRange:withBytes:length: - void replaceBytesInRange_withBytes_length_(NSRange range, - ffi.Pointer replacementBytes, int replacementLength) { + void replaceBytesInRange_withBytes_length_( + NSRange range, + ffi.Pointer replacementBytes, + int replacementLength, + ) { _objc_msgSend_c0vg4w( - this.ref.pointer, - _sel_replaceBytesInRange_withBytes_length_, - range, - replacementBytes, - replacementLength); + this.ref.pointer, + _sel_replaceBytesInRange_withBytes_length_, + range, + replacementBytes, + replacementLength, + ); } /// resetBytesInRange: @@ -3176,8 +4158,11 @@ extension NSExtendedMutableData on NSMutableData { extension NSExtendedMutableDictionary on NSMutableDictionary { /// addEntriesFromDictionary: void addEntriesFromDictionary_(NSDictionary otherDictionary) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addEntriesFromDictionary_, - otherDictionary.ref.pointer); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addEntriesFromDictionary_, + otherDictionary.ref.pointer, + ); } /// removeAllObjects @@ -3188,23 +4173,34 @@ extension NSExtendedMutableDictionary on NSMutableDictionary { /// removeObjectsForKeys: void removeObjectsForKeys_(NSArray keyArray) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeObjectsForKeys_, keyArray.ref.pointer); + this.ref.pointer, + _sel_removeObjectsForKeys_, + keyArray.ref.pointer, + ); } /// setDictionary: void setDictionary_(NSDictionary otherDictionary) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setDictionary_, otherDictionary.ref.pointer); + this.ref.pointer, + _sel_setDictionary_, + otherDictionary.ref.pointer, + ); } /// setObject:forKeyedSubscript: void setObject_forKeyedSubscript_(objc.ObjCObjectBase? obj, NSCopying key) { objc.checkOsVersionInternal( - 'NSMutableDictionary.setObject:forKeyedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0))); - _objc_msgSend_pfv6jd(this.ref.pointer, _sel_setObject_forKeyedSubscript_, - obj?.ref.pointer ?? ffi.nullptr, key.ref.pointer); + 'NSMutableDictionary.setObject:forKeyedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_setObject_forKeyedSubscript_, + obj?.ref.pointer ?? ffi.nullptr, + key.ref.pointer, + ); } } @@ -3212,180 +4208,294 @@ extension NSExtendedMutableDictionary on NSMutableDictionary { extension NSExtendedMutableOrderedSet on NSMutableOrderedSet { /// addObject: void addObject_(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal('NSMutableOrderedSet.addObject:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.addObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addObject_, object.ref.pointer); } /// addObjects:count: void addObjects_count_( - ffi.Pointer> objects, int count) { - objc.checkOsVersionInternal('NSMutableOrderedSet.addObjects:count:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + ffi.Pointer> objects, + int count, + ) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.addObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_gcjqkl( - this.ref.pointer, _sel_addObjects_count_, objects, count); + this.ref.pointer, + _sel_addObjects_count_, + objects, + count, + ); } /// addObjectsFromArray: void addObjectsFromArray_(NSArray array) { - objc.checkOsVersionInternal('NSMutableOrderedSet.addObjectsFromArray:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.addObjectsFromArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_addObjectsFromArray_, array.ref.pointer); + this.ref.pointer, + _sel_addObjectsFromArray_, + array.ref.pointer, + ); } /// exchangeObjectAtIndex:withObjectAtIndex: void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.exchangeObjectAtIndex:withObjectAtIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); - _objc_msgSend_bfp043(this.ref.pointer, - _sel_exchangeObjectAtIndex_withObjectAtIndex_, idx1, idx2); + 'NSMutableOrderedSet.exchangeObjectAtIndex:withObjectAtIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_bfp043( + this.ref.pointer, + _sel_exchangeObjectAtIndex_withObjectAtIndex_, + idx1, + idx2, + ); } /// insertObjects:atIndexes: void insertObjects_atIndexes_(NSArray objects, NSIndexSet indexes) { - objc.checkOsVersionInternal('NSMutableOrderedSet.insertObjects:atIndexes:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - _objc_msgSend_pfv6jd(this.ref.pointer, _sel_insertObjects_atIndexes_, - objects.ref.pointer, indexes.ref.pointer); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.insertObjects:atIndexes:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_insertObjects_atIndexes_, + objects.ref.pointer, + indexes.ref.pointer, + ); } /// intersectOrderedSet: void intersectOrderedSet_(NSOrderedSet other) { - objc.checkOsVersionInternal('NSMutableOrderedSet.intersectOrderedSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.intersectOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_intersectOrderedSet_, other.ref.pointer); + this.ref.pointer, + _sel_intersectOrderedSet_, + other.ref.pointer, + ); } /// intersectSet: void intersectSet_(NSSet other) { - objc.checkOsVersionInternal('NSMutableOrderedSet.intersectSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.intersectSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_intersectSet_, other.ref.pointer); + this.ref.pointer, + _sel_intersectSet_, + other.ref.pointer, + ); } /// minusOrderedSet: void minusOrderedSet_(NSOrderedSet other) { - objc.checkOsVersionInternal('NSMutableOrderedSet.minusOrderedSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.minusOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_minusOrderedSet_, other.ref.pointer); + this.ref.pointer, + _sel_minusOrderedSet_, + other.ref.pointer, + ); } /// minusSet: void minusSet_(NSSet other) { - objc.checkOsVersionInternal('NSMutableOrderedSet.minusSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.minusSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7(this.ref.pointer, _sel_minusSet_, other.ref.pointer); } /// moveObjectsAtIndexes:toIndex: void moveObjectsAtIndexes_toIndex_(NSIndexSet indexes, int idx) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.moveObjectsAtIndexes:toIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); - _objc_msgSend_djsa9o(this.ref.pointer, _sel_moveObjectsAtIndexes_toIndex_, - indexes.ref.pointer, idx); + 'NSMutableOrderedSet.moveObjectsAtIndexes:toIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_moveObjectsAtIndexes_toIndex_, + indexes.ref.pointer, + idx, + ); } /// removeAllObjects void removeAllObjects() { - objc.checkOsVersionInternal('NSMutableOrderedSet.removeAllObjects', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeAllObjects', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); } /// removeObject: void removeObject_(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal('NSMutableOrderedSet.removeObject:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeObject_, object.ref.pointer); + this.ref.pointer, + _sel_removeObject_, + object.ref.pointer, + ); } /// removeObjectsAtIndexes: void removeObjectsAtIndexes_(NSIndexSet indexes) { - objc.checkOsVersionInternal('NSMutableOrderedSet.removeObjectsAtIndexes:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectsAtIndexes:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeObjectsAtIndexes_, indexes.ref.pointer); + this.ref.pointer, + _sel_removeObjectsAtIndexes_, + indexes.ref.pointer, + ); } /// removeObjectsInArray: void removeObjectsInArray_(NSArray array) { - objc.checkOsVersionInternal('NSMutableOrderedSet.removeObjectsInArray:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectsInArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeObjectsInArray_, array.ref.pointer); + this.ref.pointer, + _sel_removeObjectsInArray_, + array.ref.pointer, + ); } /// removeObjectsInRange: void removeObjectsInRange_(NSRange range) { - objc.checkOsVersionInternal('NSMutableOrderedSet.removeObjectsInRange:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectsInRange:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeObjectsInRange_, range); } /// replaceObjectsAtIndexes:withObjects: void replaceObjectsAtIndexes_withObjects_( - NSIndexSet indexes, NSArray objects) { + NSIndexSet indexes, + NSArray objects, + ) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.replaceObjectsAtIndexes:withObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); + 'NSMutableOrderedSet.replaceObjectsAtIndexes:withObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_replaceObjectsAtIndexes_withObjects_, - indexes.ref.pointer, - objects.ref.pointer); + this.ref.pointer, + _sel_replaceObjectsAtIndexes_withObjects_, + indexes.ref.pointer, + objects.ref.pointer, + ); } /// replaceObjectsInRange:withObjects:count: - void replaceObjectsInRange_withObjects_count_(NSRange range, - ffi.Pointer> objects, int count) { + void replaceObjectsInRange_withObjects_count_( + NSRange range, + ffi.Pointer> objects, + int count, + ) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.replaceObjectsInRange:withObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); - _objc_msgSend_122v0cv(this.ref.pointer, - _sel_replaceObjectsInRange_withObjects_count_, range, objects, count); + 'NSMutableOrderedSet.replaceObjectsInRange:withObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_122v0cv( + this.ref.pointer, + _sel_replaceObjectsInRange_withObjects_count_, + range, + objects, + count, + ); } /// setObject:atIndex: void setObject_atIndex_(objc.ObjCObjectBase obj, int idx) { - objc.checkOsVersionInternal('NSMutableOrderedSet.setObject:atIndex:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.setObject:atIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_djsa9o( - this.ref.pointer, _sel_setObject_atIndex_, obj.ref.pointer, idx); + this.ref.pointer, + _sel_setObject_atIndex_, + obj.ref.pointer, + idx, + ); } /// setObject:atIndexedSubscript: void setObject_atIndexedSubscript_(objc.ObjCObjectBase obj, int idx) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.setObject:atIndexedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0))); - _objc_msgSend_djsa9o(this.ref.pointer, _sel_setObject_atIndexedSubscript_, - obj.ref.pointer, idx); + 'NSMutableOrderedSet.setObject:atIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_setObject_atIndexedSubscript_, + obj.ref.pointer, + idx, + ); } /// unionOrderedSet: void unionOrderedSet_(NSOrderedSet other) { - objc.checkOsVersionInternal('NSMutableOrderedSet.unionOrderedSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.unionOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_unionOrderedSet_, other.ref.pointer); + this.ref.pointer, + _sel_unionOrderedSet_, + other.ref.pointer, + ); } /// unionSet: void unionSet_(NSSet other) { - objc.checkOsVersionInternal('NSMutableOrderedSet.unionSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.unionSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_xtuoz7(this.ref.pointer, _sel_unionSet_, other.ref.pointer); } } @@ -3395,19 +4505,28 @@ extension NSExtendedMutableSet on NSMutableSet { /// addObjectsFromArray: void addObjectsFromArray_(NSArray array) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_addObjectsFromArray_, array.ref.pointer); + this.ref.pointer, + _sel_addObjectsFromArray_, + array.ref.pointer, + ); } /// intersectSet: void intersectSet_(NSSet otherSet) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_intersectSet_, otherSet.ref.pointer); + this.ref.pointer, + _sel_intersectSet_, + otherSet.ref.pointer, + ); } /// minusSet: void minusSet_(NSSet otherSet) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_minusSet_, otherSet.ref.pointer); + this.ref.pointer, + _sel_minusSet_, + otherSet.ref.pointer, + ); } /// removeAllObjects @@ -3423,7 +4542,10 @@ extension NSExtendedMutableSet on NSMutableSet { /// unionSet: void unionSet_(NSSet otherSet) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_unionSet_, otherSet.ref.pointer); + this.ref.pointer, + _sel_unionSet_, + otherSet.ref.pointer, + ); } } @@ -3431,54 +4553,81 @@ extension NSExtendedMutableSet on NSMutableSet { extension NSExtendedOrderedSet on NSOrderedSet { /// array NSArray get array { - objc.checkOsVersionInternal('NSOrderedSet.array', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.array', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_array); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// containsObject: bool containsObject_(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal('NSOrderedSet.containsObject:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.containsObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_containsObject_, object.ref.pointer); + this.ref.pointer, + _sel_containsObject_, + object.ref.pointer, + ); } /// description NSString get description { - objc.checkOsVersionInternal('NSOrderedSet.description', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.description', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); return NSString.castFromPointer(_ret, retain: true, release: true); } /// descriptionWithLocale: NSString descriptionWithLocale_(objc.ObjCObjectBase? locale) { - objc.checkOsVersionInternal('NSOrderedSet.descriptionWithLocale:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_descriptionWithLocale_, locale?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSOrderedSet.descriptionWithLocale:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// descriptionWithLocale:indent: NSString descriptionWithLocale_indent_( - objc.ObjCObjectBase? locale, int level) { - objc.checkOsVersionInternal('NSOrderedSet.descriptionWithLocale:indent:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.ObjCObjectBase? locale, + int level, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.descriptionWithLocale:indent:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_1k4kd9s( - this.ref.pointer, - _sel_descriptionWithLocale_indent_, - locale?.ref.pointer ?? ffi.nullptr, - level); + this.ref.pointer, + _sel_descriptionWithLocale_indent_, + locale?.ref.pointer ?? ffi.nullptr, + level, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// firstObject objc.ObjCObjectBase? get firstObject { - objc.checkOsVersionInternal('NSOrderedSet.firstObject', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.firstObject', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_firstObject); return _ret.address == 0 ? null @@ -3487,55 +4636,94 @@ extension NSExtendedOrderedSet on NSOrderedSet { /// getObjects:range: void getObjects_range_( - ffi.Pointer> objects, NSRange range) { + ffi.Pointer> objects, + NSRange range, + ) { _objc_msgSend_o16d3k( - this.ref.pointer, _sel_getObjects_range_, objects, range); + this.ref.pointer, + _sel_getObjects_range_, + objects, + range, + ); } /// intersectsOrderedSet: bool intersectsOrderedSet_(NSOrderedSet other) { - objc.checkOsVersionInternal('NSOrderedSet.intersectsOrderedSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.intersectsOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_intersectsOrderedSet_, other.ref.pointer); + this.ref.pointer, + _sel_intersectsOrderedSet_, + other.ref.pointer, + ); } /// intersectsSet: bool intersectsSet_(NSSet set) { - objc.checkOsVersionInternal('NSOrderedSet.intersectsSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.intersectsSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_intersectsSet_, set.ref.pointer); + this.ref.pointer, + _sel_intersectsSet_, + set.ref.pointer, + ); } /// isEqualToOrderedSet: bool isEqualToOrderedSet_(NSOrderedSet other) { - objc.checkOsVersionInternal('NSOrderedSet.isEqualToOrderedSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.isEqualToOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isEqualToOrderedSet_, other.ref.pointer); + this.ref.pointer, + _sel_isEqualToOrderedSet_, + other.ref.pointer, + ); } /// isSubsetOfOrderedSet: bool isSubsetOfOrderedSet_(NSOrderedSet other) { - objc.checkOsVersionInternal('NSOrderedSet.isSubsetOfOrderedSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.isSubsetOfOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isSubsetOfOrderedSet_, other.ref.pointer); + this.ref.pointer, + _sel_isSubsetOfOrderedSet_, + other.ref.pointer, + ); } /// isSubsetOfSet: bool isSubsetOfSet_(NSSet set) { - objc.checkOsVersionInternal('NSOrderedSet.isSubsetOfSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.isSubsetOfSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isSubsetOfSet_, set.ref.pointer); + this.ref.pointer, + _sel_isSubsetOfSet_, + set.ref.pointer, + ); } /// lastObject objc.ObjCObjectBase? get lastObject { - objc.checkOsVersionInternal('NSOrderedSet.lastObject', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.lastObject', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lastObject); return _ret.address == 0 ? null @@ -3544,52 +4732,80 @@ extension NSExtendedOrderedSet on NSOrderedSet { /// objectAtIndexedSubscript: objc.ObjCObjectBase objectAtIndexedSubscript_(int idx) { - objc.checkOsVersionInternal('NSOrderedSet.objectAtIndexedSubscript:', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.objectAtIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, _sel_objectAtIndexedSubscript_, idx); + this.ref.pointer, + _sel_objectAtIndexedSubscript_, + idx, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } /// objectEnumerator NSEnumerator objectEnumerator() { - objc.checkOsVersionInternal('NSOrderedSet.objectEnumerator', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.objectEnumerator', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); return NSEnumerator.castFromPointer(_ret, retain: true, release: true); } /// objectsAtIndexes: NSArray objectsAtIndexes_(NSIndexSet indexes) { - objc.checkOsVersionInternal('NSOrderedSet.objectsAtIndexes:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.objectsAtIndexes:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_objectsAtIndexes_, indexes.ref.pointer); + this.ref.pointer, + _sel_objectsAtIndexes_, + indexes.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// reverseObjectEnumerator NSEnumerator reverseObjectEnumerator() { - objc.checkOsVersionInternal('NSOrderedSet.reverseObjectEnumerator', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_reverseObjectEnumerator); + objc.checkOsVersionInternal( + 'NSOrderedSet.reverseObjectEnumerator', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_reverseObjectEnumerator, + ); return NSEnumerator.castFromPointer(_ret, retain: true, release: true); } /// reversedOrderedSet NSOrderedSet get reversedOrderedSet { - objc.checkOsVersionInternal('NSOrderedSet.reversedOrderedSet', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_reversedOrderedSet); + objc.checkOsVersionInternal( + 'NSOrderedSet.reversedOrderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_reversedOrderedSet, + ); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } /// set NSSet get set$ { - objc.checkOsVersionInternal('NSOrderedSet.set', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.set', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_set); return NSSet.castFromPointer(_ret, retain: true, release: true); } @@ -3614,7 +4830,10 @@ extension NSExtendedSet on NSSet { /// containsObject: bool containsObject_(objc.ObjCObjectBase anObject) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_containsObject_, anObject.ref.pointer); + this.ref.pointer, + _sel_containsObject_, + anObject.ref.pointer, + ); } /// description @@ -3625,92 +4844,135 @@ extension NSExtendedSet on NSSet { /// descriptionWithLocale: NSString descriptionWithLocale_(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_descriptionWithLocale_, locale?.ref.pointer ?? ffi.nullptr); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// intersectsSet: bool intersectsSet_(NSSet otherSet) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_intersectsSet_, otherSet.ref.pointer); + this.ref.pointer, + _sel_intersectsSet_, + otherSet.ref.pointer, + ); } /// isEqualToSet: bool isEqualToSet_(NSSet otherSet) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isEqualToSet_, otherSet.ref.pointer); + this.ref.pointer, + _sel_isEqualToSet_, + otherSet.ref.pointer, + ); } /// isSubsetOfSet: bool isSubsetOfSet_(NSSet otherSet) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isSubsetOfSet_, otherSet.ref.pointer); + this.ref.pointer, + _sel_isSubsetOfSet_, + otherSet.ref.pointer, + ); } /// makeObjectsPerformSelector: void makeObjectsPerformSelector_(ffi.Pointer aSelector) { _objc_msgSend_1d9e4oe( - this.ref.pointer, _sel_makeObjectsPerformSelector_, aSelector); + this.ref.pointer, + _sel_makeObjectsPerformSelector_, + aSelector, + ); } /// makeObjectsPerformSelector:withObject: void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, objc.ObjCObjectBase? argument) { + ffi.Pointer aSelector, + objc.ObjCObjectBase? argument, + ) { _objc_msgSend_1qv0eq4( - this.ref.pointer, - _sel_makeObjectsPerformSelector_withObject_, - aSelector, - argument?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_makeObjectsPerformSelector_withObject_, + aSelector, + argument?.ref.pointer ?? ffi.nullptr, + ); } /// setByAddingObject: NSSet setByAddingObject_(objc.ObjCObjectBase anObject) { - objc.checkOsVersionInternal('NSSet.setByAddingObject:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSSet.setByAddingObject:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_setByAddingObject_, anObject.ref.pointer); + this.ref.pointer, + _sel_setByAddingObject_, + anObject.ref.pointer, + ); return NSSet.castFromPointer(_ret, retain: true, release: true); } /// setByAddingObjectsFromArray: NSSet setByAddingObjectsFromArray_(NSArray other) { - objc.checkOsVersionInternal('NSSet.setByAddingObjectsFromArray:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSSet.setByAddingObjectsFromArray:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_setByAddingObjectsFromArray_, other.ref.pointer); + this.ref.pointer, + _sel_setByAddingObjectsFromArray_, + other.ref.pointer, + ); return NSSet.castFromPointer(_ret, retain: true, release: true); } /// setByAddingObjectsFromSet: NSSet setByAddingObjectsFromSet_(NSSet other) { - objc.checkOsVersionInternal('NSSet.setByAddingObjectsFromSet:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSSet.setByAddingObjectsFromSet:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_setByAddingObjectsFromSet_, other.ref.pointer); + this.ref.pointer, + _sel_setByAddingObjectsFromSet_, + other.ref.pointer, + ); return NSSet.castFromPointer(_ret, retain: true, release: true); } } /// NSFastEnumeration interface class NSFastEnumeration extends objc.ObjCProtocolBase { - NSFastEnumeration._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSFastEnumeration._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSFastEnumeration] that points to the same underlying object as [other]. NSFastEnumeration.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSFastEnumeration] that wraps the given raw object pointer. - NSFastEnumeration.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSFastEnumeration.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSFastEnumeration]. static bool conformsTo(objc.ObjCObjectBase obj) { return _objc_msgSend_e3qsqz( - obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSFastEnumeration); + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSFastEnumeration, + ); } /// Returns the [objc.Protocol] object for this protocol. @@ -3722,66 +4984,93 @@ interface class NSFastEnumeration extends objc.ObjCProtocolBase { /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSFastEnumeration implement( - {required int Function(ffi.Pointer, - ffi.Pointer>, int) - countByEnumeratingWithState_objects_count_, - bool $keepIsolateAlive = true}) { + static NSFastEnumeration implement({ + required int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + countByEnumeratingWithState_objects_count_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSFastEnumeration'); - NSFastEnumeration.countByEnumeratingWithState_objects_count_ - .implement(builder, countByEnumeratingWithState_objects_count_); + NSFastEnumeration.countByEnumeratingWithState_objects_count_.implement( + builder, + countByEnumeratingWithState_objects_count_, + ); builder.addProtocol($protocol); return NSFastEnumeration.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSFastEnumeration protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {required int Function(ffi.Pointer, - ffi.Pointer>, int) - countByEnumeratingWithState_objects_count_, - bool $keepIsolateAlive = true}) { - NSFastEnumeration.countByEnumeratingWithState_objects_count_ - .implement(builder, countByEnumeratingWithState_objects_count_); + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + countByEnumeratingWithState_objects_count_, + bool $keepIsolateAlive = true, + }) { + NSFastEnumeration.countByEnumeratingWithState_objects_count_.implement( + builder, + countByEnumeratingWithState_objects_count_, + ); builder.addProtocol($protocol); } /// countByEnumeratingWithState:objects:count: static final countByEnumeratingWithState_objects_count_ = objc.ObjCProtocolMethod< - int Function(ffi.Pointer, - ffi.Pointer>, int)>( - _protocol_NSFastEnumeration, - _sel_countByEnumeratingWithState_objects_count_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>>( - _ObjectiveCBindings_protocolTrampoline_17ap02x) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFastEnumeration, - _sel_countByEnumeratingWithState_objects_count_, - isRequired: true, - isInstanceMethod: true, - ), - (int Function(ffi.Pointer, - ffi.Pointer>, int) - func) => - ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger - .fromFunction((ffi.Pointer _, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3) => - func(arg1, arg2, arg3)), - ); + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >( + _protocol_NSFastEnumeration, + _sel_countByEnumeratingWithState_objects_count_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_17ap02x) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFastEnumeration, + _sel_countByEnumeratingWithState_objects_count_, + isRequired: true, + isInstanceMethod: true, + ), + ( + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + func, + ) => + ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + ); } final class NSFastEnumerationState extends ffi.Struct { @@ -3799,23 +5088,30 @@ final class NSFastEnumerationState extends ffi.Struct { /// NSIndexSet class NSIndexSet extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { - NSIndexSet._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSIndexSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSIndexSet] that points to the same underlying object as [other]. NSIndexSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSIndexSet] that wraps the given raw object pointer. - NSIndexSet.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSIndexSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSIndexSet]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSIndexSet); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSIndexSet, + ); } /// alloc @@ -3826,8 +5122,11 @@ class NSIndexSet extends NSObject /// allocWithZone: static NSIndexSet allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSIndexSet, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSIndexSet, + _sel_allocWithZone_, + zone, + ); return NSIndexSet.castFromPointer(_ret, retain: false, release: true); } @@ -3840,14 +5139,20 @@ class NSIndexSet extends NSObject /// indexSetWithIndex: static NSIndexSet indexSetWithIndex_(int value) { final _ret = _objc_msgSend_14hpxwa( - _class_NSIndexSet, _sel_indexSetWithIndex_, value); + _class_NSIndexSet, + _sel_indexSetWithIndex_, + value, + ); return NSIndexSet.castFromPointer(_ret, retain: true, release: true); } /// indexSetWithIndexesInRange: static NSIndexSet indexSetWithIndexesInRange_(NSRange range) { final _ret = _objc_msgSend_1k1o1s7( - _class_NSIndexSet, _sel_indexSetWithIndexesInRange_, range); + _class_NSIndexSet, + _sel_indexSetWithIndexesInRange_, + range, + ); return NSIndexSet.castFromPointer(_ret, retain: true, release: true); } @@ -3870,13 +5175,19 @@ class NSIndexSet extends NSObject /// containsIndexes: bool containsIndexes_(NSIndexSet indexSet) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_containsIndexes_, indexSet.ref.pointer); + this.ref.pointer, + _sel_containsIndexes_, + indexSet.ref.pointer, + ); } /// containsIndexesInRange: bool containsIndexesInRange_(NSRange range) { return _objc_msgSend_p4nurx( - this.ref.pointer, _sel_containsIndexesInRange_, range); + this.ref.pointer, + _sel_containsIndexesInRange_, + range, + ); } /// count @@ -3886,16 +5197,25 @@ class NSIndexSet extends NSObject /// countOfIndexesInRange: int countOfIndexesInRange_(NSRange range) { - objc.checkOsVersionInternal('NSIndexSet.countOfIndexesInRange:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSIndexSet.countOfIndexesInRange:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_qm9f5w( - this.ref.pointer, _sel_countOfIndexesInRange_, range); + this.ref.pointer, + _sel_countOfIndexesInRange_, + range, + ); } /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// firstIndex @@ -3905,50 +5225,76 @@ class NSIndexSet extends NSObject /// getIndexes:maxCount:inIndexRange: int getIndexes_maxCount_inIndexRange_( - ffi.Pointer indexBuffer, - int bufferSize, - ffi.Pointer range) { - return _objc_msgSend_89xgla(this.ref.pointer, - _sel_getIndexes_maxCount_inIndexRange_, indexBuffer, bufferSize, range); + ffi.Pointer indexBuffer, + int bufferSize, + ffi.Pointer range, + ) { + return _objc_msgSend_89xgla( + this.ref.pointer, + _sel_getIndexes_maxCount_inIndexRange_, + indexBuffer, + bufferSize, + range, + ); } /// indexGreaterThanIndex: int indexGreaterThanIndex_(int value) { return _objc_msgSend_12py2ux( - this.ref.pointer, _sel_indexGreaterThanIndex_, value); + this.ref.pointer, + _sel_indexGreaterThanIndex_, + value, + ); } /// indexGreaterThanOrEqualToIndex: int indexGreaterThanOrEqualToIndex_(int value) { return _objc_msgSend_12py2ux( - this.ref.pointer, _sel_indexGreaterThanOrEqualToIndex_, value); + this.ref.pointer, + _sel_indexGreaterThanOrEqualToIndex_, + value, + ); } /// indexLessThanIndex: int indexLessThanIndex_(int value) { return _objc_msgSend_12py2ux( - this.ref.pointer, _sel_indexLessThanIndex_, value); + this.ref.pointer, + _sel_indexLessThanIndex_, + value, + ); } /// indexLessThanOrEqualToIndex: int indexLessThanOrEqualToIndex_(int value) { return _objc_msgSend_12py2ux( - this.ref.pointer, _sel_indexLessThanOrEqualToIndex_, value); + this.ref.pointer, + _sel_indexLessThanOrEqualToIndex_, + value, + ); } /// init NSIndexSet init() { - objc.checkOsVersionInternal('NSIndexSet.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSIndexSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSIndexSet.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSIndexSet? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSIndexSet.castFromPointer(_ret, retain: false, release: true); @@ -3957,34 +5303,49 @@ class NSIndexSet extends NSObject /// initWithIndex: NSIndexSet initWithIndex_(int value) { final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), _sel_initWithIndex_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithIndex_, + value, + ); return NSIndexSet.castFromPointer(_ret, retain: false, release: true); } /// initWithIndexSet: NSIndexSet initWithIndexSet_(NSIndexSet indexSet) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithIndexSet_, indexSet.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithIndexSet_, + indexSet.ref.pointer, + ); return NSIndexSet.castFromPointer(_ret, retain: false, release: true); } /// initWithIndexesInRange: NSIndexSet initWithIndexesInRange_(NSRange range) { final _ret = _objc_msgSend_1k1o1s7( - this.ref.retainAndReturnPointer(), _sel_initWithIndexesInRange_, range); + this.ref.retainAndReturnPointer(), + _sel_initWithIndexesInRange_, + range, + ); return NSIndexSet.castFromPointer(_ret, retain: false, release: true); } /// intersectsIndexesInRange: bool intersectsIndexesInRange_(NSRange range) { return _objc_msgSend_p4nurx( - this.ref.pointer, _sel_intersectsIndexesInRange_, range); + this.ref.pointer, + _sel_intersectsIndexesInRange_, + range, + ); } /// isEqualToIndexSet: bool isEqualToIndexSet_(NSIndexSet indexSet) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isEqualToIndexSet_, indexSet.ref.pointer); + this.ref.pointer, + _sel_isEqualToIndexSet_, + indexSet.ref.pointer, + ); } /// lastIndex @@ -3998,29 +5359,39 @@ class NSIndexSet extends NSObject /// NSInputStream class NSInputStream extends NSStream { - NSInputStream._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSInputStream._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSInputStream] that points to the same underlying object as [other]. NSInputStream.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSInputStream] that wraps the given raw object pointer. - NSInputStream.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSInputStream.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSInputStream]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSInputStream); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSInputStream, + ); } /// inputStreamWithData: static NSInputStream? inputStreamWithData_(NSData data) { final _ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, _sel_inputStreamWithData_, data.ref.pointer); + _class_NSInputStream, + _sel_inputStreamWithData_, + data.ref.pointer, + ); return _ret.address == 0 ? null : NSInputStream.castFromPointer(_ret, retain: true, release: true); @@ -4028,8 +5399,11 @@ class NSInputStream extends NSStream { /// inputStreamWithFileAtPath: static NSInputStream? inputStreamWithFileAtPath_(NSString path) { - final _ret = _objc_msgSend_1sotr3r(_class_NSInputStream, - _sel_inputStreamWithFileAtPath_, path.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithFileAtPath_, + path.ref.pointer, + ); return _ret.address == 0 ? null : NSInputStream.castFromPointer(_ret, retain: true, release: true); @@ -4037,20 +5411,32 @@ class NSInputStream extends NSStream { /// inputStreamWithURL: static NSInputStream? inputStreamWithURL_(NSURL url) { - objc.checkOsVersionInternal('NSInputStream.inputStreamWithURL:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSInputStream.inputStreamWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, _sel_inputStreamWithURL_, url.ref.pointer); + _class_NSInputStream, + _sel_inputStreamWithURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : NSInputStream.castFromPointer(_ret, retain: true, release: true); } /// getBuffer:length: - bool getBuffer_length_(ffi.Pointer> buffer, - ffi.Pointer len) { + bool getBuffer_length_( + ffi.Pointer> buffer, + ffi.Pointer len, + ) { return _objc_msgSend_19lrthf( - this.ref.pointer, _sel_getBuffer_length_, buffer, len); + this.ref.pointer, + _sel_getBuffer_length_, + buffer, + len, + ); } /// hasBytesAvailable @@ -4060,15 +5446,21 @@ class NSInputStream extends NSStream { /// initWithData: NSInputStream initWithData_(NSData data) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithData_, data.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data.ref.pointer, + ); return NSInputStream.castFromPointer(_ret, retain: false, release: true); } /// initWithFileAtPath: NSInputStream? initWithFileAtPath_(NSString path) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithFileAtPath_, path.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithFileAtPath_, + path.ref.pointer, + ); return _ret.address == 0 ? null : NSInputStream.castFromPointer(_ret, retain: false, release: true); @@ -4076,10 +5468,16 @@ class NSInputStream extends NSStream { /// initWithURL: NSInputStream? initWithURL_(NSURL url) { - objc.checkOsVersionInternal('NSInputStream.initWithURL:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSInputStream.initWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), _sel_initWithURL_, url.ref.pointer); + this.ref.retainAndReturnPointer(), + _sel_initWithURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : NSInputStream.castFromPointer(_ret, retain: false, release: true); @@ -4088,54 +5486,75 @@ class NSInputStream extends NSStream { /// read:maxLength: int read_maxLength_(ffi.Pointer buffer, int len) { return _objc_msgSend_11e9f5x( - this.ref.pointer, _sel_read_maxLength_, buffer, len); + this.ref.pointer, + _sel_read_maxLength_, + buffer, + len, + ); } } /// NSInvocation class NSInvocation extends objc.ObjCObjectBase { - NSInvocation._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSInvocation._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSInvocation] that points to the same underlying object as [other]. NSInvocation.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSInvocation] that wraps the given raw object pointer. - NSInvocation.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSInvocation.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSInvocation]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSInvocation); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSInvocation, + ); } } /// NSItemProvider class NSItemProvider extends NSObject implements NSCopying { - NSItemProvider._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSItemProvider', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + NSItemProvider._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSItemProvider', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); } /// Constructs a [NSItemProvider] that points to the same underlying object as [other]. NSItemProvider.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSItemProvider] that wraps the given raw object pointer. - NSItemProvider.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSItemProvider.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSItemProvider]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSItemProvider); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSItemProvider, + ); } /// alloc @@ -4146,8 +5565,11 @@ class NSItemProvider extends NSObject implements NSCopying { /// allocWithZone: static NSItemProvider allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSItemProvider, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSItemProvider, + _sel_allocWithZone_, + zone, + ); return NSItemProvider.castFromPointer(_ret, retain: false, release: true); } @@ -4165,51 +5587,76 @@ class NSItemProvider extends NSObject implements NSCopying { /// canLoadObjectOfClass: bool canLoadObjectOfClass_(NSItemProviderReading aClass) { - objc.checkOsVersionInternal('NSItemProvider.canLoadObjectOfClass:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); + objc.checkOsVersionInternal( + 'NSItemProvider.canLoadObjectOfClass:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_canLoadObjectOfClass_, aClass.ref.pointer); + this.ref.pointer, + _sel_canLoadObjectOfClass_, + aClass.ref.pointer, + ); } /// hasItemConformingToTypeIdentifier: bool hasItemConformingToTypeIdentifier_(NSString typeIdentifier) { objc.checkOsVersionInternal( - 'NSItemProvider.hasItemConformingToTypeIdentifier:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); - return _objc_msgSend_19nvye5(this.ref.pointer, - _sel_hasItemConformingToTypeIdentifier_, typeIdentifier.ref.pointer); + 'NSItemProvider.hasItemConformingToTypeIdentifier:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_hasItemConformingToTypeIdentifier_, + typeIdentifier.ref.pointer, + ); } /// hasRepresentationConformingToTypeIdentifier:fileOptions: bool hasRepresentationConformingToTypeIdentifier_fileOptions_( - NSString typeIdentifier, NSItemProviderFileOptions fileOptions) { + NSString typeIdentifier, + NSItemProviderFileOptions fileOptions, + ) { objc.checkOsVersionInternal( - 'NSItemProvider.hasRepresentationConformingToTypeIdentifier:fileOptions:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSItemProvider.hasRepresentationConformingToTypeIdentifier:fileOptions:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); return _objc_msgSend_1wdb8ji( - this.ref.pointer, - _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_, - typeIdentifier.ref.pointer, - fileOptions.value); + this.ref.pointer, + _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_, + typeIdentifier.ref.pointer, + fileOptions.value, + ); } /// init NSItemProvider init() { - objc.checkOsVersionInternal('NSItemProvider.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSItemProvider.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSItemProvider.castFromPointer(_ret, retain: false, release: true); } /// initWithContentsOfURL: NSItemProvider? initWithContentsOfURL_(NSURL fileURL) { - objc.checkOsVersionInternal('NSItemProvider.initWithContentsOfURL:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, fileURL.ref.pointer); + objc.checkOsVersionInternal( + 'NSItemProvider.initWithContentsOfURL:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + fileURL.ref.pointer, + ); return _ret.address == 0 ? null : NSItemProvider.castFromPointer(_ret, retain: false, release: true); @@ -4217,71 +5664,105 @@ class NSItemProvider extends NSObject implements NSCopying { /// initWithItem:typeIdentifier: NSItemProvider initWithItem_typeIdentifier_( - NSSecureCoding? item, NSString? typeIdentifier) { - objc.checkOsVersionInternal('NSItemProvider.initWithItem:typeIdentifier:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + NSSecureCoding? item, + NSString? typeIdentifier, + ) { + objc.checkOsVersionInternal( + 'NSItemProvider.initWithItem:typeIdentifier:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithItem_typeIdentifier_, - item?.ref.pointer ?? ffi.nullptr, - typeIdentifier?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithItem_typeIdentifier_, + item?.ref.pointer ?? ffi.nullptr, + typeIdentifier?.ref.pointer ?? ffi.nullptr, + ); return NSItemProvider.castFromPointer(_ret, retain: false, release: true); } /// initWithObject: NSItemProvider initWithObject_(NSItemProviderWriting object) { - objc.checkOsVersionInternal('NSItemProvider.initWithObject:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObject_, object.ref.pointer); + objc.checkOsVersionInternal( + 'NSItemProvider.initWithObject:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_, + object.ref.pointer, + ); return NSItemProvider.castFromPointer(_ret, retain: false, release: true); } /// loadItemForTypeIdentifier:options:completionHandler: void loadItemForTypeIdentifier_options_completionHandler_( - NSString typeIdentifier, - NSDictionary? options, - objc.ObjCBlock?, NSError)>? - completionHandler) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadItemForTypeIdentifier:options:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); + NSString typeIdentifier, + NSDictionary? options, + objc.ObjCBlock?, NSError)>? + completionHandler, + ) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadItemForTypeIdentifier:options:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); _objc_msgSend_18qun1e( - this.ref.pointer, - _sel_loadItemForTypeIdentifier_options_completionHandler_, - typeIdentifier.ref.pointer, - options?.ref.pointer ?? ffi.nullptr, - completionHandler?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_loadItemForTypeIdentifier_options_completionHandler_, + typeIdentifier.ref.pointer, + options?.ref.pointer ?? ffi.nullptr, + completionHandler?.ref.pointer ?? ffi.nullptr, + ); } /// registerObject:visibility: - void registerObject_visibility_(NSItemProviderWriting object, - NSItemProviderRepresentationVisibility visibility) { - objc.checkOsVersionInternal('NSItemProvider.registerObject:visibility:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); - _objc_msgSend_1k745tv(this.ref.pointer, _sel_registerObject_visibility_, - object.ref.pointer, visibility.value); + void registerObject_visibility_( + NSItemProviderWriting object, + NSItemProviderRepresentationVisibility visibility, + ) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerObject:visibility:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_1k745tv( + this.ref.pointer, + _sel_registerObject_visibility_, + object.ref.pointer, + visibility.value, + ); } /// registeredTypeIdentifiers NSArray get registeredTypeIdentifiers { - objc.checkOsVersionInternal('NSItemProvider.registeredTypeIdentifiers', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_registeredTypeIdentifiers); + objc.checkOsVersionInternal( + 'NSItemProvider.registeredTypeIdentifiers', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_registeredTypeIdentifiers, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// registeredTypeIdentifiersWithFileOptions: NSArray registeredTypeIdentifiersWithFileOptions_( - NSItemProviderFileOptions fileOptions) { + NSItemProviderFileOptions fileOptions, + ) { objc.checkOsVersionInternal( - 'NSItemProvider.registeredTypeIdentifiersWithFileOptions:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); - final _ret = _objc_msgSend_7g3u2y(this.ref.pointer, - _sel_registeredTypeIdentifiersWithFileOptions_, fileOptions.value); + 'NSItemProvider.registeredTypeIdentifiersWithFileOptions:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_7g3u2y( + this.ref.pointer, + _sel_registeredTypeIdentifiersWithFileOptions_, + fileOptions.value, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } @@ -4299,16 +5780,25 @@ class NSItemProvider extends NSObject implements NSCopying { /// setSuggestedName: set suggestedName(NSString? value) { - objc.checkOsVersionInternal('NSItemProvider.setSuggestedName:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 14, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setSuggestedName_, - value?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSItemProvider.setSuggestedName:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 14, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setSuggestedName_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// suggestedName NSString? get suggestedName { - objc.checkOsVersionInternal('NSItemProvider.suggestedName', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 14, 0))); + objc.checkOsVersionInternal( + 'NSItemProvider.suggestedName', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 14, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_suggestedName); return _ret.address == 0 ? null @@ -4326,32 +5816,40 @@ enum NSItemProviderFileOptions { const NSItemProviderFileOptions(this.value); static NSItemProviderFileOptions fromValue(int value) => switch (value) { - 1 => NSItemProviderFileOptionOpenInPlace, - _ => throw ArgumentError( - 'Unknown value for NSItemProviderFileOptions: $value'), - }; + 1 => NSItemProviderFileOptionOpenInPlace, + _ => throw ArgumentError( + 'Unknown value for NSItemProviderFileOptions: $value', + ), + }; } /// NSItemProviderReading interface class NSItemProviderReading extends objc.ObjCProtocolBase implements NSObjectProtocol { - NSItemProviderReading._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSItemProviderReading._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSItemProviderReading] that points to the same underlying object as [other]. NSItemProviderReading.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSItemProviderReading] that wraps the given raw object pointer. - NSItemProviderReading.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSItemProviderReading.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSItemProviderReading]. static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz(obj.ref.pointer, _sel_conformsToProtocol_, - _protocol_NSItemProviderReading); + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSItemProviderReading, + ); } /// Returns the [objc.Protocol] object for this protocol. @@ -4364,20 +5862,24 @@ interface class NSItemProviderReading extends objc.ObjCProtocolBase /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. static NSItemProviderReading implement({bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSItemProviderReading'); + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSItemProviderReading', + ); builder.addProtocol($protocol); return NSItemProviderReading.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSItemProviderReading protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {bool $keepIsolateAlive = true}) { + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { builder.addProtocol($protocol); } } @@ -4398,30 +5900,38 @@ enum NSItemProviderRepresentationVisibility { 2 => NSItemProviderRepresentationVisibilityGroup, 3 => NSItemProviderRepresentationVisibilityOwnProcess, _ => throw ArgumentError( - 'Unknown value for NSItemProviderRepresentationVisibility: $value'), + 'Unknown value for NSItemProviderRepresentationVisibility: $value', + ), }; } /// NSItemProviderWriting interface class NSItemProviderWriting extends objc.ObjCProtocolBase implements NSObjectProtocol { - NSItemProviderWriting._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSItemProviderWriting._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSItemProviderWriting] that points to the same underlying object as [other]. NSItemProviderWriting.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSItemProviderWriting] that wraps the given raw object pointer. - NSItemProviderWriting.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSItemProviderWriting.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSItemProviderWriting]. static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz(obj.ref.pointer, _sel_conformsToProtocol_, - _protocol_NSItemProviderWriting); + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSItemProviderWriting, + ); } /// Returns the [objc.Protocol] object for this protocol. @@ -4433,88 +5943,108 @@ interface class NSItemProviderWriting extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSItemProviderWriting implement( - {NSItemProviderRepresentationVisibility Function(NSString)? - itemProviderVisibilityForRepresentationWithTypeIdentifier_, - NSArray Function()? writableTypeIdentifiersForItemProvider, - bool $keepIsolateAlive = true}) { - final builder = - objc.ObjCProtocolBuilder(debugName: 'NSItemProviderWriting'); + static NSItemProviderWriting implement({ + NSItemProviderRepresentationVisibility Function(NSString)? + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + NSArray Function()? writableTypeIdentifiersForItemProvider, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSItemProviderWriting', + ); NSItemProviderWriting .itemProviderVisibilityForRepresentationWithTypeIdentifier_ - .implement(builder, - itemProviderVisibilityForRepresentationWithTypeIdentifier_); - NSItemProviderWriting.writableTypeIdentifiersForItemProvider - .implement(builder, writableTypeIdentifiersForItemProvider); + .implement( + builder, + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + ); + NSItemProviderWriting.writableTypeIdentifiersForItemProvider.implement( + builder, + writableTypeIdentifiersForItemProvider, + ); builder.addProtocol($protocol); return NSItemProviderWriting.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSItemProviderWriting protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {NSItemProviderRepresentationVisibility Function(NSString)? - itemProviderVisibilityForRepresentationWithTypeIdentifier_, - NSArray Function()? writableTypeIdentifiersForItemProvider, - bool $keepIsolateAlive = true}) { + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + NSItemProviderRepresentationVisibility Function(NSString)? + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + NSArray Function()? writableTypeIdentifiersForItemProvider, + bool $keepIsolateAlive = true, + }) { NSItemProviderWriting .itemProviderVisibilityForRepresentationWithTypeIdentifier_ - .implement(builder, - itemProviderVisibilityForRepresentationWithTypeIdentifier_); - NSItemProviderWriting.writableTypeIdentifiersForItemProvider - .implement(builder, writableTypeIdentifiersForItemProvider); + .implement( + builder, + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + ); + NSItemProviderWriting.writableTypeIdentifiersForItemProvider.implement( + builder, + writableTypeIdentifiersForItemProvider, + ); builder.addProtocol($protocol); } /// itemProviderVisibilityForRepresentationWithTypeIdentifier: static final itemProviderVisibilityForRepresentationWithTypeIdentifier_ = objc.ObjCProtocolMethod< - NSItemProviderRepresentationVisibility Function(NSString)>( - _protocol_NSItemProviderWriting, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1ldqghh) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSItemProviderWriting, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - isRequired: false, - isInstanceMethod: true, - ), - (NSItemProviderRepresentationVisibility Function(NSString) func) => - ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString - .fromFunction( - (ffi.Pointer _, NSString arg1) => func(arg1)), - ); + NSItemProviderRepresentationVisibility Function(NSString) + >( + _protocol_NSItemProviderWriting, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1ldqghh) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSItemProviderWriting, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + isRequired: false, + isInstanceMethod: true, + ), + (NSItemProviderRepresentationVisibility Function(NSString) func) => + ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString.fromFunction( + (ffi.Pointer _, NSString arg1) => func(arg1), + ), + ); /// writableTypeIdentifiersForItemProvider static final writableTypeIdentifiersForItemProvider = objc.ObjCProtocolMethod( - _protocol_NSItemProviderWriting, - _sel_writableTypeIdentifiersForItemProvider, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSItemProviderWriting, - _sel_writableTypeIdentifiersForItemProvider, - isRequired: false, - isInstanceMethod: true, - ), - (NSArray Function() func) => ObjCBlock_NSArray_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), - ); + _protocol_NSItemProviderWriting, + _sel_writableTypeIdentifiersForItemProvider, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSItemProviderWriting, + _sel_writableTypeIdentifiersForItemProvider, + isRequired: false, + isInstanceMethod: true, + ), + (NSArray Function() func) => ObjCBlock_NSArray_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); } enum NSKeyValueChange { @@ -4527,12 +6057,12 @@ enum NSKeyValueChange { const NSKeyValueChange(this.value); static NSKeyValueChange fromValue(int value) => switch (value) { - 1 => NSKeyValueChangeSetting, - 2 => NSKeyValueChangeInsertion, - 3 => NSKeyValueChangeRemoval, - 4 => NSKeyValueChangeReplacement, - _ => throw ArgumentError('Unknown value for NSKeyValueChange: $value'), - }; + 1 => NSKeyValueChangeSetting, + 2 => NSKeyValueChangeInsertion, + 3 => NSKeyValueChangeRemoval, + 4 => NSKeyValueChangeReplacement, + _ => throw ArgumentError('Unknown value for NSKeyValueChange: $value'), + }; } enum NSKeyValueObservingOptions { @@ -4545,13 +6075,14 @@ enum NSKeyValueObservingOptions { const NSKeyValueObservingOptions(this.value); static NSKeyValueObservingOptions fromValue(int value) => switch (value) { - 1 => NSKeyValueObservingOptionNew, - 2 => NSKeyValueObservingOptionOld, - 4 => NSKeyValueObservingOptionInitial, - 8 => NSKeyValueObservingOptionPrior, - _ => throw ArgumentError( - 'Unknown value for NSKeyValueObservingOptions: $value'), - }; + 1 => NSKeyValueObservingOptionNew, + 2 => NSKeyValueObservingOptionOld, + 4 => NSKeyValueObservingOptionInitial, + 8 => NSKeyValueObservingOptionPrior, + _ => throw ArgumentError( + 'Unknown value for NSKeyValueObservingOptions: $value', + ), + }; } enum NSKeyValueSetMutationKind { @@ -4564,85 +6095,116 @@ enum NSKeyValueSetMutationKind { const NSKeyValueSetMutationKind(this.value); static NSKeyValueSetMutationKind fromValue(int value) => switch (value) { - 1 => NSKeyValueUnionSetMutation, - 2 => NSKeyValueMinusSetMutation, - 3 => NSKeyValueIntersectSetMutation, - 4 => NSKeyValueSetSetMutation, - _ => throw ArgumentError( - 'Unknown value for NSKeyValueSetMutationKind: $value'), - }; + 1 => NSKeyValueUnionSetMutation, + 2 => NSKeyValueMinusSetMutation, + 3 => NSKeyValueIntersectSetMutation, + 4 => NSKeyValueSetSetMutation, + _ => throw ArgumentError( + 'Unknown value for NSKeyValueSetMutationKind: $value', + ), + }; } /// NSLocale class NSLocale extends objc.ObjCObjectBase { - NSLocale._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSLocale._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSLocale] that points to the same underlying object as [other]. NSLocale.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSLocale] that wraps the given raw object pointer. - NSLocale.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSLocale.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSLocale]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSLocale); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSLocale, + ); } } /// NSMethodSignature class NSMethodSignature extends NSObject { - NSMethodSignature._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSMethodSignature._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSMethodSignature] that points to the same underlying object as [other]. NSMethodSignature.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSMethodSignature] that wraps the given raw object pointer. - NSMethodSignature.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSMethodSignature.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSMethodSignature]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSMethodSignature); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMethodSignature, + ); } /// alloc static NSMethodSignature alloc() { final _ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_alloc); - return NSMethodSignature.castFromPointer(_ret, - retain: false, release: true); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// allocWithZone: static NSMethodSignature allocWithZone_(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_NSMethodSignature, _sel_allocWithZone_, zone); - return NSMethodSignature.castFromPointer(_ret, - retain: false, release: true); + _class_NSMethodSignature, + _sel_allocWithZone_, + zone, + ); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// new static NSMethodSignature new$() { final _ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_new); - return NSMethodSignature.castFromPointer(_ret, - retain: false, release: true); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// signatureWithObjCTypes: static NSMethodSignature? signatureWithObjCTypes_( - ffi.Pointer types) { + ffi.Pointer types, + ) { final _ret = _objc_msgSend_56zxyn( - _class_NSMethodSignature, _sel_signatureWithObjCTypes_, types); + _class_NSMethodSignature, + _sel_signatureWithObjCTypes_, + types, + ); return _ret.address == 0 ? null : NSMethodSignature.castFromPointer(_ret, retain: true, release: true); @@ -4656,17 +6218,28 @@ class NSMethodSignature extends NSObject { /// getArgumentTypeAtIndex: ffi.Pointer getArgumentTypeAtIndex_(int idx) { return _objc_msgSend_1jtxufi( - this.ref.pointer, _sel_getArgumentTypeAtIndex_, idx); + this.ref.pointer, + _sel_getArgumentTypeAtIndex_, + idx, + ); } /// init NSMethodSignature init() { - objc.checkOsVersionInternal('NSMethodSignature.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSMethodSignature.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMethodSignature.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// isOneway @@ -4694,7 +6267,8 @@ class NSMethodSignature extends NSObject { } /// NSMutableArray -class NSMutableArray extends NSArray with ListMixin { +class NSMutableArray extends NSArray + with collection.ListMixin { /// Creates a [NSMutableArray] of the given length with [fill] at each /// position. /// @@ -4728,23 +6302,30 @@ class NSMutableArray extends NSArray with ListMixin { for (final value in iterable) add(value); } - NSMutableArray._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSMutableArray._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSMutableArray] that points to the same underlying object as [other]. NSMutableArray.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSMutableArray] that wraps the given raw object pointer. - NSMutableArray.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSMutableArray.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSMutableArray]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSMutableArray); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableArray, + ); } /// alloc @@ -4755,8 +6336,11 @@ class NSMutableArray extends NSArray with ListMixin { /// allocWithZone: static NSMutableArray allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSMutableArray, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableArray, + _sel_allocWithZone_, + zone, + ); return NSMutableArray.castFromPointer(_ret, retain: false, release: true); } @@ -4769,36 +6353,54 @@ class NSMutableArray extends NSArray with ListMixin { /// arrayWithArray: static NSMutableArray arrayWithArray_(NSArray array) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, _sel_arrayWithArray_, array.ref.pointer); + _class_NSMutableArray, + _sel_arrayWithArray_, + array.ref.pointer, + ); return NSMutableArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithCapacity: static NSMutableArray arrayWithCapacity_(int numItems) { final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableArray, _sel_arrayWithCapacity_, numItems); + _class_NSMutableArray, + _sel_arrayWithCapacity_, + numItems, + ); return NSMutableArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithObject: static NSMutableArray arrayWithObject_(objc.ObjCObjectBase anObject) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, _sel_arrayWithObject_, anObject.ref.pointer); + _class_NSMutableArray, + _sel_arrayWithObject_, + anObject.ref.pointer, + ); return NSMutableArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithObjects: static NSMutableArray arrayWithObjects_(objc.ObjCObjectBase firstObj) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, _sel_arrayWithObjects_, firstObj.ref.pointer); + _class_NSMutableArray, + _sel_arrayWithObjects_, + firstObj.ref.pointer, + ); return NSMutableArray.castFromPointer(_ret, retain: true, release: true); } /// arrayWithObjects:count: static NSMutableArray arrayWithObjects_count_( - ffi.Pointer> objects, int cnt) { + ffi.Pointer> objects, + int cnt, + ) { final _ret = _objc_msgSend_zmbtbd( - _class_NSMutableArray, _sel_arrayWithObjects_count_, objects, cnt); + _class_NSMutableArray, + _sel_arrayWithObjects_count_, + objects, + cnt, + ); return NSMutableArray.castFromPointer(_ret, retain: true, release: true); } @@ -4811,49 +6413,72 @@ class NSMutableArray extends NSArray with ListMixin { /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( - _class_NSMutableArray, _sel_supportsSecureCoding); + _class_NSMutableArray, + _sel_supportsSecureCoding, + ); } /// addObject: void addObject_(objc.ObjCObjectBase anObject) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_addObject_, anObject.ref.pointer); + this.ref.pointer, + _sel_addObject_, + anObject.ref.pointer, + ); } /// init NSMutableArray init() { - objc.checkOsVersionInternal('NSMutableArray.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSMutableArray.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSMutableArray.castFromPointer(_ret, retain: false, release: true); } /// initWithArray: NSMutableArray initWithArray_(NSArray array) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithArray_, array.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); return NSMutableArray.castFromPointer(_ret, retain: false, release: true); } /// initWithArray:copyItems: NSMutableArray initWithArray_copyItems_(NSArray array, bool flag) { - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, array.ref.pointer, flag); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + array.ref.pointer, + flag, + ); return NSMutableArray.castFromPointer(_ret, retain: false, release: true); } /// initWithCapacity: NSMutableArray initWithCapacity_(int numItems) { final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), _sel_initWithCapacity_, numItems); + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); return NSMutableArray.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSMutableArray? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSMutableArray.castFromPointer(_ret, retain: false, release: true); @@ -4861,23 +6486,36 @@ class NSMutableArray extends NSArray with ListMixin { /// initWithObjects: NSMutableArray initWithObjects_(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, firstObj.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); return NSMutableArray.castFromPointer(_ret, retain: false, release: true); } /// initWithObjects:count: NSMutableArray initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _objc_msgSend_zmbtbd(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, objects, cnt); + ffi.Pointer> objects, + int cnt, + ) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + cnt, + ); return NSMutableArray.castFromPointer(_ret, retain: false, release: true); } /// insertObject:atIndex: void insertObject_atIndex_(objc.ObjCObjectBase anObject, int index) { - _objc_msgSend_djsa9o(this.ref.pointer, _sel_insertObject_atIndex_, - anObject.ref.pointer, index); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_insertObject_atIndex_, + anObject.ref.pointer, + index, + ); } /// removeLastObject @@ -4892,9 +6530,15 @@ class NSMutableArray extends NSArray with ListMixin { /// replaceObjectAtIndex:withObject: void replaceObjectAtIndex_withObject_( - int index, objc.ObjCObjectBase anObject) { - _objc_msgSend_1gypgok(this.ref.pointer, - _sel_replaceObjectAtIndex_withObject_, index, anObject.ref.pointer); + int index, + objc.ObjCObjectBase anObject, + ) { + _objc_msgSend_1gypgok( + this.ref.pointer, + _sel_replaceObjectAtIndex_withObject_, + index, + anObject.ref.pointer, + ); } /// Returns a new instance of NSMutableArray constructed with the default `new` method. @@ -4903,23 +6547,30 @@ class NSMutableArray extends NSArray with ListMixin { /// NSMutableCopying interface class NSMutableCopying extends objc.ObjCProtocolBase { - NSMutableCopying._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSMutableCopying._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSMutableCopying] that points to the same underlying object as [other]. NSMutableCopying.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSMutableCopying] that wraps the given raw object pointer. - NSMutableCopying.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSMutableCopying.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSMutableCopying]. static bool conformsTo(objc.ObjCObjectBase obj) { return _objc_msgSend_e3qsqz( - obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSMutableCopying); + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSMutableCopying, + ); } /// Returns the [objc.Protocol] object for this protocol. @@ -4931,75 +6582,95 @@ interface class NSMutableCopying extends objc.ObjCProtocolBase { /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSMutableCopying implement( - {required objc.ObjCObjectBase Function(ffi.Pointer) - mutableCopyWithZone_, - bool $keepIsolateAlive = true}) { + static NSMutableCopying implement({ + required objc.ObjCObjectBase Function(ffi.Pointer) + mutableCopyWithZone_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSMutableCopying'); - NSMutableCopying.mutableCopyWithZone_ - .implement(builder, mutableCopyWithZone_); + NSMutableCopying.mutableCopyWithZone_.implement( + builder, + mutableCopyWithZone_, + ); builder.addProtocol($protocol); return NSMutableCopying.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSMutableCopying protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {required objc.ObjCObjectBase Function(ffi.Pointer) - mutableCopyWithZone_, - bool $keepIsolateAlive = true}) { - NSMutableCopying.mutableCopyWithZone_ - .implement(builder, mutableCopyWithZone_); + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function(ffi.Pointer) + mutableCopyWithZone_, + bool $keepIsolateAlive = true, + }) { + NSMutableCopying.mutableCopyWithZone_.implement( + builder, + mutableCopyWithZone_, + ); builder.addProtocol($protocol); } /// mutableCopyWithZone: - static final mutableCopyWithZone_ = objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function(ffi.Pointer)>( - _protocol_NSMutableCopying, - _sel_mutableCopyWithZone_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_18nsem0) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMutableCopying, - _sel_mutableCopyWithZone_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function(ffi.Pointer) func) => - ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => func(arg1)), - ); + static final mutableCopyWithZone_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function(ffi.Pointer) + >( + _protocol_NSMutableCopying, + _sel_mutableCopyWithZone_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18nsem0) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMutableCopying, + _sel_mutableCopyWithZone_, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function(ffi.Pointer) func) => + ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => func(arg1), + ), + ); } /// NSMutableData class NSMutableData extends NSData { - NSMutableData._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSMutableData._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSMutableData] that points to the same underlying object as [other]. NSMutableData.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSMutableData] that wraps the given raw object pointer. - NSMutableData.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSMutableData.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSMutableData]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSMutableData); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableData, + ); } /// alloc @@ -5010,8 +6681,11 @@ class NSMutableData extends NSData { /// allocWithZone: static NSMutableData allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSMutableData, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableData, + _sel_allocWithZone_, + zone, + ); return NSMutableData.castFromPointer(_ret, retain: false, release: true); } @@ -5023,32 +6697,55 @@ class NSMutableData extends NSData { /// dataWithBytes:length: static NSMutableData dataWithBytes_length_( - ffi.Pointer bytes, int length) { + ffi.Pointer bytes, + int length, + ) { final _ret = _objc_msgSend_3nbx5e( - _class_NSMutableData, _sel_dataWithBytes_length_, bytes, length); + _class_NSMutableData, + _sel_dataWithBytes_length_, + bytes, + length, + ); return NSMutableData.castFromPointer(_ret, retain: true, release: true); } /// dataWithBytesNoCopy:length: static NSMutableData dataWithBytesNoCopy_length_( - ffi.Pointer bytes, int length) { + ffi.Pointer bytes, + int length, + ) { final _ret = _objc_msgSend_3nbx5e( - _class_NSMutableData, _sel_dataWithBytesNoCopy_length_, bytes, length); + _class_NSMutableData, + _sel_dataWithBytesNoCopy_length_, + bytes, + length, + ); return NSMutableData.castFromPointer(_ret, retain: true, release: true); } /// dataWithBytesNoCopy:length:freeWhenDone: static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool b) { - final _ret = _objc_msgSend_161ne8y(_class_NSMutableData, - _sel_dataWithBytesNoCopy_length_freeWhenDone_, bytes, length, b); + ffi.Pointer bytes, + int length, + bool b, + ) { + final _ret = _objc_msgSend_161ne8y( + _class_NSMutableData, + _sel_dataWithBytesNoCopy_length_freeWhenDone_, + bytes, + length, + b, + ); return NSMutableData.castFromPointer(_ret, retain: true, release: true); } /// dataWithCapacity: static NSMutableData? dataWithCapacity_(int aNumItems) { final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableData, _sel_dataWithCapacity_, aNumItems); + _class_NSMutableData, + _sel_dataWithCapacity_, + aNumItems, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: true, release: true); @@ -5057,7 +6754,10 @@ class NSMutableData extends NSData { /// dataWithContentsOfFile: static NSMutableData? dataWithContentsOfFile_(NSString path) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableData, _sel_dataWithContentsOfFile_, path.ref.pointer); + _class_NSMutableData, + _sel_dataWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: true, release: true); @@ -5065,15 +6765,17 @@ class NSMutableData extends NSData { /// dataWithContentsOfFile:options:error: static NSMutableData? dataWithContentsOfFile_options_error_( - NSString path, - NSDataReadingOptions readOptionsMask, - ffi.Pointer> errorPtr) { + NSString path, + NSDataReadingOptions readOptionsMask, + ffi.Pointer> errorPtr, + ) { final _ret = _objc_msgSend_8321cp( - _class_NSMutableData, - _sel_dataWithContentsOfFile_options_error_, - path.ref.pointer, - readOptionsMask.value, - errorPtr); + _class_NSMutableData, + _sel_dataWithContentsOfFile_options_error_, + path.ref.pointer, + readOptionsMask.value, + errorPtr, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: true, release: true); @@ -5082,7 +6784,10 @@ class NSMutableData extends NSData { /// dataWithContentsOfURL: static NSMutableData? dataWithContentsOfURL_(NSURL url) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableData, _sel_dataWithContentsOfURL_, url.ref.pointer); + _class_NSMutableData, + _sel_dataWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: true, release: true); @@ -5090,15 +6795,17 @@ class NSMutableData extends NSData { /// dataWithContentsOfURL:options:error: static NSMutableData? dataWithContentsOfURL_options_error_( - NSURL url, - NSDataReadingOptions readOptionsMask, - ffi.Pointer> errorPtr) { + NSURL url, + NSDataReadingOptions readOptionsMask, + ffi.Pointer> errorPtr, + ) { final _ret = _objc_msgSend_8321cp( - _class_NSMutableData, - _sel_dataWithContentsOfURL_options_error_, - url.ref.pointer, - readOptionsMask.value, - errorPtr); + _class_NSMutableData, + _sel_dataWithContentsOfURL_options_error_, + url.ref.pointer, + readOptionsMask.value, + errorPtr, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: true, release: true); @@ -5107,14 +6814,20 @@ class NSMutableData extends NSData { /// dataWithData: static NSMutableData dataWithData_(NSData data) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableData, _sel_dataWithData_, data.ref.pointer); + _class_NSMutableData, + _sel_dataWithData_, + data.ref.pointer, + ); return NSMutableData.castFromPointer(_ret, retain: true, release: true); } /// dataWithLength: static NSMutableData? dataWithLength_(int length) { final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableData, _sel_dataWithLength_, length); + _class_NSMutableData, + _sel_dataWithLength_, + length, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: true, release: true); @@ -5129,7 +6842,9 @@ class NSMutableData extends NSData { /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( - _class_NSMutableData, _sel_supportsSecureCoding); + _class_NSMutableData, + _sel_supportsSecureCoding, + ); } /// compressedDataUsingAlgorithm:error: @@ -5137,14 +6852,20 @@ class NSMutableData extends NSData { /// iOS: introduced 13.0.0 /// macOS: introduced 10.15.0 NSMutableData? compressedDataUsingAlgorithm_error_( - NSDataCompressionAlgorithm algorithm, - ffi.Pointer> error) { - objc.checkOsVersionInternal( - 'NSMutableData.compressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); - final _ret = _objc_msgSend_1vnlaqg(this.ref.pointer, - _sel_compressedDataUsingAlgorithm_error_, algorithm.value, error); + NSDataCompressionAlgorithm algorithm, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSMutableData.compressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_compressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: true, release: true); @@ -5155,14 +6876,20 @@ class NSMutableData extends NSData { /// iOS: introduced 13.0.0 /// macOS: introduced 10.15.0 NSMutableData? decompressedDataUsingAlgorithm_error_( - NSDataCompressionAlgorithm algorithm, - ffi.Pointer> error) { - objc.checkOsVersionInternal( - 'NSMutableData.decompressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); - final _ret = _objc_msgSend_1vnlaqg(this.ref.pointer, - _sel_decompressedDataUsingAlgorithm_error_, algorithm.value, error); + NSDataCompressionAlgorithm algorithm, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSMutableData.decompressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_decompressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: true, release: true); @@ -5170,25 +6897,34 @@ class NSMutableData extends NSData { /// init NSMutableData init() { - objc.checkOsVersionInternal('NSMutableData.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSMutableData.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSMutableData.castFromPointer(_ret, retain: false, release: true); } /// initWithBase64EncodedData:options: NSMutableData? initWithBase64EncodedData_options_( - NSData base64Data, NSDataBase64DecodingOptions options) { + NSData base64Data, + NSDataBase64DecodingOptions options, + ) { objc.checkOsVersionInternal( - 'NSMutableData.initWithBase64EncodedData:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSMutableData.initWithBase64EncodedData:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedData_options_, - base64Data.ref.pointer, - options.value); + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedData_options_, + base64Data.ref.pointer, + options.value, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: false, release: true); @@ -5196,16 +6932,20 @@ class NSMutableData extends NSData { /// initWithBase64EncodedString:options: NSMutableData? initWithBase64EncodedString_options_( - NSString base64String, NSDataBase64DecodingOptions options) { + NSString base64String, + NSDataBase64DecodingOptions options, + ) { objc.checkOsVersionInternal( - 'NSMutableData.initWithBase64EncodedString:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSMutableData.initWithBase64EncodedString:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedString_options_, - base64String.ref.pointer, - options.value); + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedString_options_, + base64String.ref.pointer, + options.value, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: false, release: true); @@ -5213,31 +6953,52 @@ class NSMutableData extends NSData { /// initWithBytes:length: NSMutableData initWithBytes_length_(ffi.Pointer bytes, int length) { - final _ret = _objc_msgSend_3nbx5e(this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_, bytes, length); + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_, + bytes, + length, + ); return NSMutableData.castFromPointer(_ret, retain: false, release: true); } /// initWithBytesNoCopy:length: NSMutableData initWithBytesNoCopy_length_( - ffi.Pointer bytes, int length) { - final _ret = _objc_msgSend_3nbx5e(this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_, bytes, length); + ffi.Pointer bytes, + int length, + ) { + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_, + bytes, + length, + ); return NSMutableData.castFromPointer(_ret, retain: false, release: true); } /// initWithBytesNoCopy:length:freeWhenDone: NSMutableData initWithBytesNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool b) { - final _ret = _objc_msgSend_161ne8y(this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_freeWhenDone_, bytes, length, b); + ffi.Pointer bytes, + int length, + bool b, + ) { + final _ret = _objc_msgSend_161ne8y( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_freeWhenDone_, + bytes, + length, + b, + ); return NSMutableData.castFromPointer(_ret, retain: false, release: true); } /// initWithCapacity: NSMutableData? initWithCapacity_(int capacity) { final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), _sel_initWithCapacity_, capacity); + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + capacity, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: false, release: true); @@ -5245,8 +7006,11 @@ class NSMutableData extends NSData { /// initWithCoder: NSMutableData? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: false, release: true); @@ -5254,8 +7018,11 @@ class NSMutableData extends NSData { /// initWithContentsOfFile: NSMutableData? initWithContentsOfFile_(NSString path) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, path.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: false, release: true); @@ -5263,15 +7030,17 @@ class NSMutableData extends NSData { /// initWithContentsOfFile:options:error: NSMutableData? initWithContentsOfFile_options_error_( - NSString path, - NSDataReadingOptions readOptionsMask, - ffi.Pointer> errorPtr) { + NSString path, + NSDataReadingOptions readOptionsMask, + ffi.Pointer> errorPtr, + ) { final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_options_error_, - path.ref.pointer, - readOptionsMask.value, - errorPtr); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_options_error_, + path.ref.pointer, + readOptionsMask.value, + errorPtr, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: false, release: true); @@ -5279,8 +7048,11 @@ class NSMutableData extends NSData { /// initWithContentsOfURL: NSMutableData? initWithContentsOfURL_(NSURL url) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, url.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: false, release: true); @@ -5288,15 +7060,17 @@ class NSMutableData extends NSData { /// initWithContentsOfURL:options:error: NSMutableData? initWithContentsOfURL_options_error_( - NSURL url, - NSDataReadingOptions readOptionsMask, - ffi.Pointer> errorPtr) { + NSURL url, + NSDataReadingOptions readOptionsMask, + ffi.Pointer> errorPtr, + ) { final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_options_error_, - url.ref.pointer, - readOptionsMask.value, - errorPtr); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_options_error_, + url.ref.pointer, + readOptionsMask.value, + errorPtr, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: false, release: true); @@ -5304,15 +7078,21 @@ class NSMutableData extends NSData { /// initWithData: NSMutableData initWithData_(NSData data) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithData_, data.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data.ref.pointer, + ); return NSMutableData.castFromPointer(_ret, retain: false, release: true); } /// initWithLength: NSMutableData? initWithLength_(int length) { final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), _sel_initWithLength_, length); + this.ref.retainAndReturnPointer(), + _sel_initWithLength_, + length, + ); return _ret.address == 0 ? null : NSMutableData.castFromPointer(_ret, retain: false, release: true); @@ -5339,200 +7119,333 @@ class NSMutableData extends NSData { /// NSMutableDictionary class NSMutableDictionary extends NSDictionary { - NSMutableDictionary._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSMutableDictionary._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSMutableDictionary] that points to the same underlying object as [other]. NSMutableDictionary.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSMutableDictionary] that wraps the given raw object pointer. - NSMutableDictionary.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSMutableDictionary.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSMutableDictionary]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSMutableDictionary); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableDictionary, + ); } /// alloc static NSMutableDictionary alloc() { final _ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_alloc); - return NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// allocWithZone: static NSMutableDictionary allocWithZone_(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_NSMutableDictionary, _sel_allocWithZone_, zone); - return NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + _class_NSMutableDictionary, + _sel_allocWithZone_, + zone, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// dictionary static NSMutableDictionary dictionary() { - final _ret = - _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_dictionary); - return NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + final _ret = _objc_msgSend_151sglz( + _class_NSMutableDictionary, + _sel_dictionary, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// dictionaryWithCapacity: static NSMutableDictionary dictionaryWithCapacity_(int numItems) { final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableDictionary, _sel_dictionaryWithCapacity_, numItems); - return NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableDictionary, + _sel_dictionaryWithCapacity_, + numItems, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// dictionaryWithDictionary: static NSMutableDictionary dictionaryWithDictionary_(NSDictionary dict) { - final _ret = _objc_msgSend_1sotr3r(_class_NSMutableDictionary, - _sel_dictionaryWithDictionary_, dict.ref.pointer); - return NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithDictionary_, + dict.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// dictionaryWithObject:forKey: static NSMutableDictionary dictionaryWithObject_forKey_( - objc.ObjCObjectBase object, NSCopying key) { - final _ret = _objc_msgSend_15qeuct(_class_NSMutableDictionary, - _sel_dictionaryWithObject_forKey_, object.ref.pointer, key.ref.pointer); - return NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + objc.ObjCObjectBase object, + NSCopying key, + ) { + final _ret = _objc_msgSend_15qeuct( + _class_NSMutableDictionary, + _sel_dictionaryWithObject_forKey_, + object.ref.pointer, + key.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// dictionaryWithObjects:forKeys: static NSMutableDictionary dictionaryWithObjects_forKeys_( - NSArray objects, NSArray keys) { + NSArray objects, + NSArray keys, + ) { final _ret = _objc_msgSend_15qeuct( - _class_NSMutableDictionary, - _sel_dictionaryWithObjects_forKeys_, - objects.ref.pointer, - keys.ref.pointer); - return NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableDictionary, + _sel_dictionaryWithObjects_forKeys_, + objects.ref.pointer, + keys.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// dictionaryWithObjects:forKeys:count: static NSMutableDictionary dictionaryWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _objc_msgSend_1dydpdi(_class_NSMutableDictionary, - _sel_dictionaryWithObjects_forKeys_count_, objects, keys, cnt); - return NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt, + ) { + final _ret = _objc_msgSend_1dydpdi( + _class_NSMutableDictionary, + _sel_dictionaryWithObjects_forKeys_count_, + objects, + keys, + cnt, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// dictionaryWithObjectsAndKeys: static NSMutableDictionary dictionaryWithObjectsAndKeys_( - objc.ObjCObjectBase firstObject) { - final _ret = _objc_msgSend_1sotr3r(_class_NSMutableDictionary, - _sel_dictionaryWithObjectsAndKeys_, firstObject.ref.pointer); - return NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + objc.ObjCObjectBase firstObject, + ) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// new static NSMutableDictionary new$() { final _ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_new); - return NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( - _class_NSMutableDictionary, _sel_supportsSecureCoding); + _class_NSMutableDictionary, + _sel_supportsSecureCoding, + ); } /// init NSMutableDictionary init() { - objc.checkOsVersionInternal('NSMutableDictionary.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMutableDictionary.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithCapacity: NSMutableDictionary initWithCapacity_(int numItems) { final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), _sel_initWithCapacity_, numItems); - return NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithCoder: NSMutableDictionary? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null - : NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + : NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithDictionary: NSMutableDictionary initWithDictionary_(NSDictionary otherDictionary) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_, otherDictionary.ref.pointer); - return NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_, + otherDictionary.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithDictionary:copyItems: NSMutableDictionary initWithDictionary_copyItems_( - NSDictionary otherDictionary, bool flag) { - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_copyItems_, otherDictionary.ref.pointer, flag); - return NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + NSDictionary otherDictionary, + bool flag, + ) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_copyItems_, + otherDictionary.ref.pointer, + flag, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithObjects:forKeys: NSMutableDictionary initWithObjects_forKeys_(NSArray objects, NSArray keys) { - final _ret = _objc_msgSend_15qeuct(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_, objects.ref.pointer, keys.ref.pointer); - return NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_, + objects.ref.pointer, + keys.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithObjects:forKeys:count: NSMutableDictionary initWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _objc_msgSend_1dydpdi(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_count_, objects, keys, cnt); - return NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt, + ) { + final _ret = _objc_msgSend_1dydpdi( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_count_, + objects, + keys, + cnt, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithObjectsAndKeys: NSMutableDictionary initWithObjectsAndKeys_(objc.ObjCObjectBase firstObject) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObjectsAndKeys_, firstObject.ref.pointer); - return NSMutableDictionary.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// removeObjectForKey: void removeObjectForKey_(objc.ObjCObjectBase aKey) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeObjectForKey_, aKey.ref.pointer); + this.ref.pointer, + _sel_removeObjectForKey_, + aKey.ref.pointer, + ); } /// setObject:forKey: void setObject_forKey_(objc.ObjCObjectBase anObject, NSCopying aKey) { - _objc_msgSend_pfv6jd(this.ref.pointer, _sel_setObject_forKey_, - anObject.ref.pointer, aKey.ref.pointer); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_setObject_forKey_, + anObject.ref.pointer, + aKey.ref.pointer, + ); } /// Returns a new instance of NSMutableDictionary constructed with the default `new` method. @@ -5541,38 +7454,54 @@ class NSMutableDictionary extends NSDictionary { /// NSMutableIndexSet class NSMutableIndexSet extends NSIndexSet { - NSMutableIndexSet._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSMutableIndexSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSMutableIndexSet] that points to the same underlying object as [other]. NSMutableIndexSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSMutableIndexSet] that wraps the given raw object pointer. - NSMutableIndexSet.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSMutableIndexSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSMutableIndexSet]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSMutableIndexSet); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableIndexSet, + ); } /// alloc static NSMutableIndexSet alloc() { final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_alloc); - return NSMutableIndexSet.castFromPointer(_ret, - retain: false, release: true); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// allocWithZone: static NSMutableIndexSet allocWithZone_(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_NSMutableIndexSet, _sel_allocWithZone_, zone); - return NSMutableIndexSet.castFromPointer(_ret, - retain: false, release: true); + _class_NSMutableIndexSet, + _sel_allocWithZone_, + zone, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// indexSet @@ -5584,28 +7513,39 @@ class NSMutableIndexSet extends NSIndexSet { /// indexSetWithIndex: static NSMutableIndexSet indexSetWithIndex_(int value) { final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableIndexSet, _sel_indexSetWithIndex_, value); + _class_NSMutableIndexSet, + _sel_indexSetWithIndex_, + value, + ); return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); } /// indexSetWithIndexesInRange: static NSMutableIndexSet indexSetWithIndexesInRange_(NSRange range) { final _ret = _objc_msgSend_1k1o1s7( - _class_NSMutableIndexSet, _sel_indexSetWithIndexesInRange_, range); + _class_NSMutableIndexSet, + _sel_indexSetWithIndexesInRange_, + range, + ); return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); } /// new static NSMutableIndexSet new$() { final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_new); - return NSMutableIndexSet.castFromPointer(_ret, - retain: false, release: true); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( - _class_NSMutableIndexSet, _sel_supportsSecureCoding); + _class_NSMutableIndexSet, + _sel_supportsSecureCoding, + ); } /// addIndex: @@ -5616,7 +7556,10 @@ class NSMutableIndexSet extends NSIndexSet { /// addIndexes: void addIndexes_(NSIndexSet indexSet) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_addIndexes_, indexSet.ref.pointer); + this.ref.pointer, + _sel_addIndexes_, + indexSet.ref.pointer, + ); } /// addIndexesInRange: @@ -5626,18 +7569,29 @@ class NSMutableIndexSet extends NSIndexSet { /// init NSMutableIndexSet init() { - objc.checkOsVersionInternal('NSMutableIndexSet.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSMutableIndexSet.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMutableIndexSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithCoder: NSMutableIndexSet? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSMutableIndexSet.castFromPointer(_ret, retain: false, release: true); @@ -5646,25 +7600,43 @@ class NSMutableIndexSet extends NSIndexSet { /// initWithIndex: NSMutableIndexSet initWithIndex_(int value) { final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), _sel_initWithIndex_, value); - return NSMutableIndexSet.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithIndex_, + value, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithIndexSet: NSMutableIndexSet initWithIndexSet_(NSIndexSet indexSet) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithIndexSet_, indexSet.ref.pointer); - return NSMutableIndexSet.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithIndexSet_, + indexSet.ref.pointer, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithIndexesInRange: NSMutableIndexSet initWithIndexesInRange_(NSRange range) { final _ret = _objc_msgSend_1k1o1s7( - this.ref.retainAndReturnPointer(), _sel_initWithIndexesInRange_, range); - return NSMutableIndexSet.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithIndexesInRange_, + range, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// removeAllIndexes @@ -5680,7 +7652,10 @@ class NSMutableIndexSet extends NSIndexSet { /// removeIndexes: void removeIndexes_(NSIndexSet indexSet) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeIndexes_, indexSet.ref.pointer); + this.ref.pointer, + _sel_removeIndexes_, + indexSet.ref.pointer, + ); } /// removeIndexesInRange: @@ -5691,7 +7666,11 @@ class NSMutableIndexSet extends NSIndexSet { /// shiftIndexesStartingAtIndex:by: void shiftIndexesStartingAtIndex_by_(int index, int delta) { _objc_msgSend_otx1t4( - this.ref.pointer, _sel_shiftIndexesStartingAtIndex_by_, index, delta); + this.ref.pointer, + _sel_shiftIndexesStartingAtIndex_by_, + index, + delta, + ); } /// Returns a new instance of NSMutableIndexSet constructed with the default `new` method. @@ -5700,381 +7679,662 @@ class NSMutableIndexSet extends NSIndexSet { /// NSMutableOrderedSet class NSMutableOrderedSet extends NSOrderedSet { - NSMutableOrderedSet._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSMutableOrderedSet', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + NSMutableOrderedSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); } /// Constructs a [NSMutableOrderedSet] that points to the same underlying object as [other]. NSMutableOrderedSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSMutableOrderedSet] that wraps the given raw object pointer. - NSMutableOrderedSet.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSMutableOrderedSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSMutableOrderedSet); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableOrderedSet, + ); } /// alloc static NSMutableOrderedSet alloc() { final _ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_alloc); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// allocWithZone: static NSMutableOrderedSet allocWithZone_(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_NSMutableOrderedSet, _sel_allocWithZone_, zone); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + _class_NSMutableOrderedSet, + _sel_allocWithZone_, + zone, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// new static NSMutableOrderedSet new$() { final _ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_new); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// orderedSet static NSMutableOrderedSet orderedSet() { - objc.checkOsVersionInternal('NSMutableOrderedSet.orderedSet', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = - _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_orderedSet); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSMutableOrderedSet, + _sel_orderedSet, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// orderedSetWithArray: static NSMutableOrderedSet orderedSetWithArray_(NSArray array) { - objc.checkOsVersionInternal('NSMutableOrderedSet.orderedSetWithArray:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(_class_NSMutableOrderedSet, - _sel_orderedSetWithArray_, array.ref.pointer); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithArray_, + array.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// orderedSetWithArray:range:copyItems: static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( - NSArray array, NSRange range, bool flag) { + NSArray array, + NSRange range, + bool flag, + ) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); + 'NSMutableOrderedSet.orderedSetWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_w9bq5x( - _class_NSMutableOrderedSet, - _sel_orderedSetWithArray_range_copyItems_, - array.ref.pointer, - range, - flag); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableOrderedSet, + _sel_orderedSetWithArray_range_copyItems_, + array.ref.pointer, + range, + flag, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// orderedSetWithCapacity: static NSMutableOrderedSet orderedSetWithCapacity_(int numItems) { - objc.checkOsVersionInternal('NSMutableOrderedSet.orderedSetWithCapacity:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithCapacity:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableOrderedSet, _sel_orderedSetWithCapacity_, numItems); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableOrderedSet, + _sel_orderedSetWithCapacity_, + numItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// orderedSetWithObject: static NSMutableOrderedSet orderedSetWithObject_(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal('NSMutableOrderedSet.orderedSetWithObject:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(_class_NSMutableOrderedSet, - _sel_orderedSetWithObject_, object.ref.pointer); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObject_, + object.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// orderedSetWithObjects: static NSMutableOrderedSet orderedSetWithObjects_( - objc.ObjCObjectBase firstObj) { - objc.checkOsVersionInternal('NSMutableOrderedSet.orderedSetWithObjects:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(_class_NSMutableOrderedSet, - _sel_orderedSetWithObjects_, firstObj.ref.pointer); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + objc.ObjCObjectBase firstObj, + ) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// orderedSetWithObjects:count: static NSMutableOrderedSet orderedSetWithObjects_count_( - ffi.Pointer> objects, int cnt) { + ffi.Pointer> objects, + int cnt, + ) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_zmbtbd(_class_NSMutableOrderedSet, - _sel_orderedSetWithObjects_count_, objects, cnt); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + 'NSMutableOrderedSet.orderedSetWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObjects_count_, + objects, + cnt, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// orderedSetWithOrderedSet: static NSMutableOrderedSet orderedSetWithOrderedSet_(NSOrderedSet set) { - objc.checkOsVersionInternal('NSMutableOrderedSet.orderedSetWithOrderedSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(_class_NSMutableOrderedSet, - _sel_orderedSetWithOrderedSet_, set.ref.pointer); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithOrderedSet_, + set.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// orderedSetWithOrderedSet:range:copyItems: static NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( - NSOrderedSet set, NSRange range, bool flag) { + NSOrderedSet set, + NSRange range, + bool flag, + ) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); + 'NSMutableOrderedSet.orderedSetWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_w9bq5x( - _class_NSMutableOrderedSet, - _sel_orderedSetWithOrderedSet_range_copyItems_, - set.ref.pointer, - range, - flag); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableOrderedSet, + _sel_orderedSetWithOrderedSet_range_copyItems_, + set.ref.pointer, + range, + flag, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// orderedSetWithSet: static NSMutableOrderedSet orderedSetWithSet_(NSSet set) { - objc.checkOsVersionInternal('NSMutableOrderedSet.orderedSetWithSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, _sel_orderedSetWithSet_, set.ref.pointer); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + _class_NSMutableOrderedSet, + _sel_orderedSetWithSet_, + set.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// orderedSetWithSet:copyItems: static NSMutableOrderedSet orderedSetWithSet_copyItems_( - NSSet set, bool flag) { + NSSet set, + bool flag, + ) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_17amj0z(_class_NSMutableOrderedSet, - _sel_orderedSetWithSet_copyItems_, set.ref.pointer, flag); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + 'NSMutableOrderedSet.orderedSetWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSMutableOrderedSet, + _sel_orderedSetWithSet_copyItems_, + set.ref.pointer, + flag, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( - _class_NSMutableOrderedSet, _sel_supportsSecureCoding); + _class_NSMutableOrderedSet, + _sel_supportsSecureCoding, + ); } /// autorelease NSMutableOrderedSet autorelease() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// init NSMutableOrderedSet init() { - objc.checkOsVersionInternal('NSMutableOrderedSet.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithArray: NSMutableOrderedSet initWithArray_(NSArray array) { - objc.checkOsVersionInternal('NSMutableOrderedSet.initWithArray:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithArray_, array.ref.pointer); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithArray:copyItems: NSMutableOrderedSet initWithArray_copyItems_(NSArray set, bool flag) { - objc.checkOsVersionInternal('NSMutableOrderedSet.initWithArray:copyItems:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, set.ref.pointer, flag); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + set.ref.pointer, + flag, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithArray:range:copyItems: NSMutableOrderedSet initWithArray_range_copyItems_( - NSArray set, NSRange range, bool flag) { + NSArray set, + NSRange range, + bool flag, + ) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_w9bq5x(this.ref.retainAndReturnPointer(), - _sel_initWithArray_range_copyItems_, set.ref.pointer, range, flag); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + 'NSMutableOrderedSet.initWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_range_copyItems_, + set.ref.pointer, + range, + flag, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithCapacity: NSMutableOrderedSet initWithCapacity_(int numItems) { - objc.checkOsVersionInternal('NSMutableOrderedSet.initWithCapacity:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithCapacity:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), _sel_initWithCapacity_, numItems); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithCoder: NSMutableOrderedSet? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null - : NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + : NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithObject: NSMutableOrderedSet initWithObject_(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal('NSMutableOrderedSet.initWithObject:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObject_, object.ref.pointer); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_, + object.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithObjects: NSMutableOrderedSet initWithObjects_(objc.ObjCObjectBase firstObj) { - objc.checkOsVersionInternal('NSMutableOrderedSet.initWithObjects:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, firstObj.ref.pointer); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithObjects:count: NSMutableOrderedSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - objc.checkOsVersionInternal('NSMutableOrderedSet.initWithObjects:count:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_zmbtbd(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, objects, cnt); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + ffi.Pointer> objects, + int cnt, + ) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + cnt, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithOrderedSet: NSMutableOrderedSet initWithOrderedSet_(NSOrderedSet set) { - objc.checkOsVersionInternal('NSMutableOrderedSet.initWithOrderedSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_, set.ref.pointer); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_, + set.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithOrderedSet:copyItems: NSMutableOrderedSet initWithOrderedSet_copyItems_( - NSOrderedSet set, bool flag) { + NSOrderedSet set, + bool flag, + ) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_copyItems_, set.ref.pointer, flag); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + 'NSMutableOrderedSet.initWithOrderedSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_copyItems_, + set.ref.pointer, + flag, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithOrderedSet:range:copyItems: NSMutableOrderedSet initWithOrderedSet_range_copyItems_( - NSOrderedSet set, NSRange range, bool flag) { + NSOrderedSet set, + NSRange range, + bool flag, + ) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_w9bq5x(this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_range_copyItems_, set.ref.pointer, range, flag); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + 'NSMutableOrderedSet.initWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_range_copyItems_, + set.ref.pointer, + range, + flag, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithSet: NSMutableOrderedSet initWithSet_(NSSet set) { - objc.checkOsVersionInternal('NSMutableOrderedSet.initWithSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), _sel_initWithSet_, set.ref.pointer); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithSet:copyItems: NSMutableOrderedSet initWithSet_copyItems_(NSSet set, bool flag) { - objc.checkOsVersionInternal('NSMutableOrderedSet.initWithSet:copyItems:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, set.ref.pointer, flag); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set.ref.pointer, + flag, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// insertObject:atIndex: void insertObject_atIndex_(objc.ObjCObjectBase object, int idx) { - objc.checkOsVersionInternal('NSMutableOrderedSet.insertObject:atIndex:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.insertObject:atIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_djsa9o( - this.ref.pointer, _sel_insertObject_atIndex_, object.ref.pointer, idx); + this.ref.pointer, + _sel_insertObject_atIndex_, + object.ref.pointer, + idx, + ); } /// removeObjectAtIndex: void removeObjectAtIndex_(int idx) { - objc.checkOsVersionInternal('NSMutableOrderedSet.removeObjectAtIndex:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectAtIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeObjectAtIndex_, idx); } /// replaceObjectAtIndex:withObject: void replaceObjectAtIndex_withObject_(int idx, objc.ObjCObjectBase object) { objc.checkOsVersionInternal( - 'NSMutableOrderedSet.replaceObjectAtIndex:withObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); - _objc_msgSend_1gypgok(this.ref.pointer, - _sel_replaceObjectAtIndex_withObject_, idx, object.ref.pointer); + 'NSMutableOrderedSet.replaceObjectAtIndex:withObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1gypgok( + this.ref.pointer, + _sel_replaceObjectAtIndex_withObject_, + idx, + object.ref.pointer, + ); } /// retain NSMutableOrderedSet retain() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// self NSMutableOrderedSet self$1() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSMutableOrderedSet.castFromPointer(_ret, - retain: true, release: true); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// Returns a new instance of NSMutableOrderedSet constructed with the default `new` method. @@ -6083,23 +8343,30 @@ class NSMutableOrderedSet extends NSOrderedSet { /// NSMutableSet class NSMutableSet extends NSSet { - NSMutableSet._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSMutableSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSMutableSet] that points to the same underlying object as [other]. NSMutableSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSMutableSet] that wraps the given raw object pointer. - NSMutableSet.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSMutableSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSMutableSet]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSMutableSet); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableSet, + ); } /// alloc @@ -6110,8 +8377,11 @@ class NSMutableSet extends NSSet { /// allocWithZone: static NSMutableSet allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSMutableSet, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableSet, + _sel_allocWithZone_, + zone, + ); return NSMutableSet.castFromPointer(_ret, retain: false, release: true); } @@ -6130,43 +8400,64 @@ class NSMutableSet extends NSSet { /// setWithArray: static NSMutableSet setWithArray_(NSArray array) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, _sel_setWithArray_, array.ref.pointer); + _class_NSMutableSet, + _sel_setWithArray_, + array.ref.pointer, + ); return NSMutableSet.castFromPointer(_ret, retain: true, release: true); } /// setWithCapacity: static NSMutableSet setWithCapacity_(int numItems) { final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableSet, _sel_setWithCapacity_, numItems); + _class_NSMutableSet, + _sel_setWithCapacity_, + numItems, + ); return NSMutableSet.castFromPointer(_ret, retain: true, release: true); } /// setWithObject: static NSMutableSet setWithObject_(objc.ObjCObjectBase object) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, _sel_setWithObject_, object.ref.pointer); + _class_NSMutableSet, + _sel_setWithObject_, + object.ref.pointer, + ); return NSMutableSet.castFromPointer(_ret, retain: true, release: true); } /// setWithObjects: static NSMutableSet setWithObjects_(objc.ObjCObjectBase firstObj) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, _sel_setWithObjects_, firstObj.ref.pointer); + _class_NSMutableSet, + _sel_setWithObjects_, + firstObj.ref.pointer, + ); return NSMutableSet.castFromPointer(_ret, retain: true, release: true); } /// setWithObjects:count: static NSMutableSet setWithObjects_count_( - ffi.Pointer> objects, int cnt) { + ffi.Pointer> objects, + int cnt, + ) { final _ret = _objc_msgSend_zmbtbd( - _class_NSMutableSet, _sel_setWithObjects_count_, objects, cnt); + _class_NSMutableSet, + _sel_setWithObjects_count_, + objects, + cnt, + ); return NSMutableSet.castFromPointer(_ret, retain: true, release: true); } /// setWithSet: static NSMutableSet setWithSet_(NSSet set) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, _sel_setWithSet_, set.ref.pointer); + _class_NSMutableSet, + _sel_setWithSet_, + set.ref.pointer, + ); return NSMutableSet.castFromPointer(_ret, retain: true, release: true); } @@ -6182,31 +8473,45 @@ class NSMutableSet extends NSSet { /// init NSMutableSet init() { - objc.checkOsVersionInternal('NSMutableSet.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSMutableSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSMutableSet.castFromPointer(_ret, retain: false, release: true); } /// initWithArray: NSMutableSet initWithArray_(NSArray array) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithArray_, array.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); return NSMutableSet.castFromPointer(_ret, retain: false, release: true); } /// initWithCapacity: NSMutableSet initWithCapacity_(int numItems) { final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), _sel_initWithCapacity_, numItems); + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); return NSMutableSet.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSMutableSet? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSMutableSet.castFromPointer(_ret, retain: false, release: true); @@ -6214,37 +8519,56 @@ class NSMutableSet extends NSSet { /// initWithObjects: NSMutableSet initWithObjects_(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, firstObj.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); return NSMutableSet.castFromPointer(_ret, retain: false, release: true); } /// initWithObjects:count: NSMutableSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _objc_msgSend_zmbtbd(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, objects, cnt); + ffi.Pointer> objects, + int cnt, + ) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + cnt, + ); return NSMutableSet.castFromPointer(_ret, retain: false, release: true); } /// initWithSet: NSMutableSet initWithSet_(NSSet set) { final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), _sel_initWithSet_, set.ref.pointer); + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set.ref.pointer, + ); return NSMutableSet.castFromPointer(_ret, retain: false, release: true); } /// initWithSet:copyItems: NSMutableSet initWithSet_copyItems_(NSSet set, bool flag) { - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, set.ref.pointer, flag); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set.ref.pointer, + flag, + ); return NSMutableSet.castFromPointer(_ret, retain: false, release: true); } /// removeObject: void removeObject_(objc.ObjCObjectBase object) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_removeObject_, object.ref.pointer); + this.ref.pointer, + _sel_removeObject_, + object.ref.pointer, + ); } /// Returns a new instance of NSMutableSet constructed with the default `new` method. @@ -6253,23 +8577,30 @@ class NSMutableSet extends NSSet { /// NSMutableString class NSMutableString extends NSString { - NSMutableString._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSMutableString._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSMutableString] that points to the same underlying object as [other]. NSMutableString.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSMutableString] that wraps the given raw object pointer. - NSMutableString.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSMutableString.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSMutableString]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSMutableString); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableString, + ); } /// alloc @@ -6281,33 +8612,42 @@ class NSMutableString extends NSString { /// allocWithZone: static NSMutableString allocWithZone_(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_NSMutableString, _sel_allocWithZone_, zone); + _class_NSMutableString, + _sel_allocWithZone_, + zone, + ); return NSMutableString.castFromPointer(_ret, retain: false, release: true); } /// localizedStringWithFormat: static NSMutableString localizedStringWithFormat_(NSString format) { - final _ret = _objc_msgSend_1sotr3r(_class_NSMutableString, - _sel_localizedStringWithFormat_, format.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableString, + _sel_localizedStringWithFormat_, + format.ref.pointer, + ); return NSMutableString.castFromPointer(_ret, retain: true, release: true); } /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: static NSMutableString? - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - NSString format, - NSString validFormatSpecifiers, - ffi.Pointer> error) { - objc.checkOsVersionInternal( - 'NSMutableString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSMutableString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - _class_NSMutableString, - _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error); + _class_NSMutableString, + _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: true, release: true); @@ -6321,19 +8661,22 @@ class NSMutableString extends NSString { /// objectWithItemProviderData:typeIdentifier:error: static NSMutableString? objectWithItemProviderData_typeIdentifier_error_( - NSData data, - NSString typeIdentifier, - ffi.Pointer> outError) { + NSData data, + NSString typeIdentifier, + ffi.Pointer> outError, + ) { objc.checkOsVersionInternal( - 'NSMutableString.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSMutableString.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - _class_NSMutableString, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - outError); + _class_NSMutableString, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + outError, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: true, release: true); @@ -6347,9 +8690,15 @@ class NSMutableString extends NSString { /// stringWithCString:encoding: static NSMutableString? stringWithCString_encoding_( - ffi.Pointer cString, int enc) { + ffi.Pointer cString, + int enc, + ) { final _ret = _objc_msgSend_erqryg( - _class_NSMutableString, _sel_stringWithCString_encoding_, cString, enc); + _class_NSMutableString, + _sel_stringWithCString_encoding_, + cString, + enc, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: true, release: true); @@ -6357,21 +8706,31 @@ class NSMutableString extends NSString { /// stringWithCharacters:length: static NSMutableString stringWithCharacters_length_( - ffi.Pointer characters, int length) { - final _ret = _objc_msgSend_9x4k8x(_class_NSMutableString, - _sel_stringWithCharacters_length_, characters, length); + ffi.Pointer characters, + int length, + ) { + final _ret = _objc_msgSend_9x4k8x( + _class_NSMutableString, + _sel_stringWithCharacters_length_, + characters, + length, + ); return NSMutableString.castFromPointer(_ret, retain: true, release: true); } /// stringWithContentsOfFile:encoding:error: static NSMutableString? stringWithContentsOfFile_encoding_error_( - NSString path, int enc, ffi.Pointer> error) { + NSString path, + int enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1nomli1( - _class_NSMutableString, - _sel_stringWithContentsOfFile_encoding_error_, - path.ref.pointer, - enc, - error); + _class_NSMutableString, + _sel_stringWithContentsOfFile_encoding_error_, + path.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: true, release: true); @@ -6379,15 +8738,17 @@ class NSMutableString extends NSString { /// stringWithContentsOfFile:usedEncoding:error: static NSMutableString? stringWithContentsOfFile_usedEncoding_error_( - NSString path, - ffi.Pointer enc, - ffi.Pointer> error) { + NSString path, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1alewu7( - _class_NSMutableString, - _sel_stringWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - enc, - error); + _class_NSMutableString, + _sel_stringWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: true, release: true); @@ -6395,13 +8756,17 @@ class NSMutableString extends NSString { /// stringWithContentsOfURL:encoding:error: static NSMutableString? stringWithContentsOfURL_encoding_error_( - NSURL url, int enc, ffi.Pointer> error) { + NSURL url, + int enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1nomli1( - _class_NSMutableString, - _sel_stringWithContentsOfURL_encoding_error_, - url.ref.pointer, - enc, - error); + _class_NSMutableString, + _sel_stringWithContentsOfURL_encoding_error_, + url.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: true, release: true); @@ -6409,15 +8774,17 @@ class NSMutableString extends NSString { /// stringWithContentsOfURL:usedEncoding:error: static NSMutableString? stringWithContentsOfURL_usedEncoding_error_( - NSURL url, - ffi.Pointer enc, - ffi.Pointer> error) { + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1alewu7( - _class_NSMutableString, - _sel_stringWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - enc, - error); + _class_NSMutableString, + _sel_stringWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: true, release: true); @@ -6426,22 +8793,32 @@ class NSMutableString extends NSString { /// stringWithFormat: static NSMutableString stringWithFormat_(NSString format) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableString, _sel_stringWithFormat_, format.ref.pointer); + _class_NSMutableString, + _sel_stringWithFormat_, + format.ref.pointer, + ); return NSMutableString.castFromPointer(_ret, retain: true, release: true); } /// stringWithString: static NSMutableString stringWithString_(NSString string) { final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableString, _sel_stringWithString_, string.ref.pointer); + _class_NSMutableString, + _sel_stringWithString_, + string.ref.pointer, + ); return NSMutableString.castFromPointer(_ret, retain: true, release: true); } /// stringWithUTF8String: static NSMutableString? stringWithUTF8String_( - ffi.Pointer nullTerminatedCString) { - final _ret = _objc_msgSend_56zxyn(_class_NSMutableString, - _sel_stringWithUTF8String_, nullTerminatedCString); + ffi.Pointer nullTerminatedCString, + ) { + final _ret = _objc_msgSend_56zxyn( + _class_NSMutableString, + _sel_stringWithUTF8String_, + nullTerminatedCString, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: true, release: true); @@ -6449,20 +8826,23 @@ class NSMutableString extends NSString { /// stringWithValidatedFormat:validFormatSpecifiers:error: static NSMutableString? - stringWithValidatedFormat_validFormatSpecifiers_error_( - NSString format, - NSString validFormatSpecifiers, - ffi.Pointer> error) { - objc.checkOsVersionInternal( - 'NSMutableString.stringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + stringWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSMutableString.stringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - _class_NSMutableString, - _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error); + _class_NSMutableString, + _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: true, release: true); @@ -6471,7 +8851,9 @@ class NSMutableString extends NSString { /// supportsSecureCoding static bool getSupportsSecureCoding() { return _objc_msgSend_91o635( - _class_NSMutableString, _sel_supportsSecureCoding); + _class_NSMutableString, + _sel_supportsSecureCoding, + ); } /// autorelease @@ -6482,18 +8864,31 @@ class NSMutableString extends NSString { /// init NSMutableString init() { - objc.checkOsVersionInternal('NSMutableString.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSMutableString.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSMutableString.castFromPointer(_ret, retain: false, release: true); } /// initWithBytes:length:encoding: NSMutableString? initWithBytes_length_encoding_( - ffi.Pointer bytes, int len, int encoding) { - final _ret = _objc_msgSend_9b3h4v(this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_encoding_, bytes, len, encoding); + ffi.Pointer bytes, + int len, + int encoding, + ) { + final _ret = _objc_msgSend_9b3h4v( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_encoding_, + bytes, + len, + encoding, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6501,14 +8896,19 @@ class NSMutableString extends NSString { /// initWithBytesNoCopy:length:encoding:freeWhenDone: NSMutableString? initWithBytesNoCopy_length_encoding_freeWhenDone_( - ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + ffi.Pointer bytes, + int len, + int encoding, + bool freeBuffer, + ) { final _ret = _objc_msgSend_k4j8m3( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, - bytes, - len, - encoding, - freeBuffer); + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, + bytes, + len, + encoding, + freeBuffer, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6516,9 +8916,15 @@ class NSMutableString extends NSString { /// initWithCString:encoding: NSMutableString? initWithCString_encoding_( - ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _objc_msgSend_erqryg(this.ref.retainAndReturnPointer(), - _sel_initWithCString_encoding_, nullTerminatedCString, encoding); + ffi.Pointer nullTerminatedCString, + int encoding, + ) { + final _ret = _objc_msgSend_erqryg( + this.ref.retainAndReturnPointer(), + _sel_initWithCString_encoding_, + nullTerminatedCString, + encoding, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6526,28 +8932,41 @@ class NSMutableString extends NSString { /// initWithCharacters:length: NSMutableString initWithCharacters_length_( - ffi.Pointer characters, int length) { - final _ret = _objc_msgSend_9x4k8x(this.ref.retainAndReturnPointer(), - _sel_initWithCharacters_length_, characters, length); + ffi.Pointer characters, + int length, + ) { + final _ret = _objc_msgSend_9x4k8x( + this.ref.retainAndReturnPointer(), + _sel_initWithCharacters_length_, + characters, + length, + ); return NSMutableString.castFromPointer(_ret, retain: false, release: true); } /// initWithCharactersNoCopy:length:freeWhenDone: NSMutableString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { + ffi.Pointer characters, + int length, + bool freeBuffer, + ) { final _ret = _objc_msgSend_lh0jh5( - this.ref.retainAndReturnPointer(), - _sel_initWithCharactersNoCopy_length_freeWhenDone_, - characters, - length, - freeBuffer); + this.ref.retainAndReturnPointer(), + _sel_initWithCharactersNoCopy_length_freeWhenDone_, + characters, + length, + freeBuffer, + ); return NSMutableString.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSMutableString? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6555,13 +8974,17 @@ class NSMutableString extends NSString { /// initWithContentsOfFile:encoding:error: NSMutableString? initWithContentsOfFile_encoding_error_( - NSString path, int enc, ffi.Pointer> error) { + NSString path, + int enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_encoding_error_, - path.ref.pointer, - enc, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_encoding_error_, + path.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6569,15 +8992,17 @@ class NSMutableString extends NSString { /// initWithContentsOfFile:usedEncoding:error: NSMutableString? initWithContentsOfFile_usedEncoding_error_( - NSString path, - ffi.Pointer enc, - ffi.Pointer> error) { + NSString path, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - enc, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6585,13 +9010,17 @@ class NSMutableString extends NSString { /// initWithContentsOfURL:encoding:error: NSMutableString? initWithContentsOfURL_encoding_error_( - NSURL url, int enc, ffi.Pointer> error) { + NSURL url, + int enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_encoding_error_, - url.ref.pointer, - enc, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_encoding_error_, + url.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6599,15 +9028,17 @@ class NSMutableString extends NSString { /// initWithContentsOfURL:usedEncoding:error: NSMutableString? initWithContentsOfURL_usedEncoding_error_( - NSURL url, - ffi.Pointer enc, - ffi.Pointer> error) { + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - enc, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6615,8 +9046,12 @@ class NSMutableString extends NSString { /// initWithData:encoding: NSMutableString? initWithData_encoding_(NSData data, int encoding) { - final _ret = _objc_msgSend_1k4kd9s(this.ref.retainAndReturnPointer(), - _sel_initWithData_encoding_, data.ref.pointer, encoding); + final _ret = _objc_msgSend_1k4kd9s( + this.ref.retainAndReturnPointer(), + _sel_initWithData_encoding_, + data.ref.pointer, + encoding, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6624,34 +9059,47 @@ class NSMutableString extends NSString { /// initWithFormat: NSMutableString initWithFormat_(NSString format) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithFormat_, format.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_, + format.ref.pointer, + ); return NSMutableString.castFromPointer(_ret, retain: false, release: true); } /// initWithFormat:locale: NSMutableString initWithFormat_locale_( - NSString format, objc.ObjCObjectBase? locale) { + NSString format, + objc.ObjCObjectBase? locale, + ) { final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithFormat_locale_, - format.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_locale_, + format.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSMutableString.castFromPointer(_ret, retain: false, release: true); } /// initWithString: NSMutableString initWithString_(NSString aString) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithString_, aString.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithString_, + aString.ref.pointer, + ); return NSMutableString.castFromPointer(_ret, retain: false, release: true); } /// initWithUTF8String: NSMutableString? initWithUTF8String_( - ffi.Pointer nullTerminatedCString) { - final _ret = _objc_msgSend_56zxyn(this.ref.retainAndReturnPointer(), - _sel_initWithUTF8String_, nullTerminatedCString); + ffi.Pointer nullTerminatedCString, + ) { + final _ret = _objc_msgSend_56zxyn( + this.ref.retainAndReturnPointer(), + _sel_initWithUTF8String_, + nullTerminatedCString, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6662,19 +9110,22 @@ class NSMutableString extends NSString { /// iOS: introduced 16.0.0 /// macOS: introduced 13.0.0 NSMutableString? initWithValidatedFormat_validFormatSpecifiers_error_( - NSString format, - NSString validFormatSpecifiers, - ffi.Pointer> error) { + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error, + ) { objc.checkOsVersionInternal( - 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0))); + 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6685,21 +9136,24 @@ class NSMutableString extends NSString { /// iOS: introduced 16.0.0 /// macOS: introduced 13.0.0 NSMutableString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( - NSString format, - NSString validFormatSpecifiers, - objc.ObjCObjectBase? locale, - ffi.Pointer> error) { - objc.checkOsVersionInternal( - 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0))); + NSString format, + NSString validFormatSpecifiers, + objc.ObjCObjectBase? locale, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); final _ret = _objc_msgSend_1k0ezzm( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + error, + ); return _ret.address == 0 ? null : NSMutableString.castFromPointer(_ret, retain: false, release: true); @@ -6707,8 +9161,12 @@ class NSMutableString extends NSString { /// replaceCharactersInRange:withString: void replaceCharactersInRange_withString_(NSRange range, NSString aString) { - _objc_msgSend_1tv4uax(this.ref.pointer, - _sel_replaceCharactersInRange_withString_, range, aString.ref.pointer); + _objc_msgSend_1tv4uax( + this.ref.pointer, + _sel_replaceCharactersInRange_withString_, + range, + aString.ref.pointer, + ); } /// retain @@ -6729,23 +9187,30 @@ class NSMutableString extends NSString { /// NSNotification class NSNotification extends NSObject implements NSCopying, NSCoding { - NSNotification._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSNotification._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSNotification] that points to the same underlying object as [other]. NSNotification.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSNotification] that wraps the given raw object pointer. - NSNotification.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSNotification.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSNotification]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSNotification); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSNotification, + ); } /// alloc @@ -6756,8 +9221,11 @@ class NSNotification extends NSObject implements NSCopying, NSCoding { /// allocWithZone: static NSNotification allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSNotification, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSNotification, + _sel_allocWithZone_, + zone, + ); return NSNotification.castFromPointer(_ret, retain: false, release: true); } @@ -6769,24 +9237,31 @@ class NSNotification extends NSObject implements NSCopying, NSCoding { /// notificationWithName:object: static NSNotification notificationWithName_object_( - NSString aName, objc.ObjCObjectBase? anObject) { + NSString aName, + objc.ObjCObjectBase? anObject, + ) { final _ret = _objc_msgSend_15qeuct( - _class_NSNotification, - _sel_notificationWithName_object_, - aName.ref.pointer, - anObject?.ref.pointer ?? ffi.nullptr); + _class_NSNotification, + _sel_notificationWithName_object_, + aName.ref.pointer, + anObject?.ref.pointer ?? ffi.nullptr, + ); return NSNotification.castFromPointer(_ret, retain: true, release: true); } /// notificationWithName:object:userInfo: static NSNotification notificationWithName_object_userInfo_( - NSString aName, objc.ObjCObjectBase? anObject, NSDictionary? aUserInfo) { + NSString aName, + objc.ObjCObjectBase? anObject, + NSDictionary? aUserInfo, + ) { final _ret = _objc_msgSend_11spmsz( - _class_NSNotification, - _sel_notificationWithName_object_userInfo_, - aName.ref.pointer, - anObject?.ref.pointer ?? ffi.nullptr, - aUserInfo?.ref.pointer ?? ffi.nullptr); + _class_NSNotification, + _sel_notificationWithName_object_userInfo_, + aName.ref.pointer, + anObject?.ref.pointer ?? ffi.nullptr, + aUserInfo?.ref.pointer ?? ffi.nullptr, + ); return NSNotification.castFromPointer(_ret, retain: true, release: true); } @@ -6799,20 +9274,28 @@ class NSNotification extends NSObject implements NSCopying, NSCoding { /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// init NSNotification init() { - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSNotification.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSNotification? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSNotification.castFromPointer(_ret, retain: false, release: true); @@ -6820,15 +9303,22 @@ class NSNotification extends NSObject implements NSCopying, NSCoding { /// initWithName:object:userInfo: NSNotification initWithName_object_userInfo_( - NSString name, objc.ObjCObjectBase? object, NSDictionary? userInfo) { - objc.checkOsVersionInternal('NSNotification.initWithName:object:userInfo:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + NSString name, + objc.ObjCObjectBase? object, + NSDictionary? userInfo, + ) { + objc.checkOsVersionInternal( + 'NSNotification.initWithName:object:userInfo:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_11spmsz( - this.ref.retainAndReturnPointer(), - _sel_initWithName_object_userInfo_, - name.ref.pointer, - object?.ref.pointer ?? ffi.nullptr, - userInfo?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithName_object_userInfo_, + name.ref.pointer, + object?.ref.pointer ?? ffi.nullptr, + userInfo?.ref.pointer ?? ffi.nullptr, + ); return NSNotification.castFromPointer(_ret, retain: false, release: true); } @@ -6872,23 +9362,30 @@ class NSNotification extends NSObject implements NSCopying, NSCoding { /// NSNumber class NSNumber extends NSValue { - NSNumber._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSNumber._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSNumber] that points to the same underlying object as [other]. NSNumber.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSNumber] that wraps the given raw object pointer. - NSNumber.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSNumber.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSNumber]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSNumber); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSNumber, + ); } /// alloc @@ -6899,8 +9396,11 @@ class NSNumber extends NSValue { /// allocWithZone: static NSNumber allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSNumber, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSNumber, + _sel_allocWithZone_, + zone, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } @@ -6928,14 +9428,20 @@ class NSNumber extends NSValue { /// compare: NSComparisonResult compare_(NSNumber otherNumber) { final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, _sel_compare_, otherNumber.ref.pointer); + this.ref.pointer, + _sel_compare_, + otherNumber.ref.pointer, + ); return NSComparisonResult.fromValue(_ret); } /// descriptionWithLocale: NSString descriptionWithLocale_(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_descriptionWithLocale_, locale?.ref.pointer ?? ffi.nullptr); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } @@ -6955,39 +9461,59 @@ class NSNumber extends NSValue { /// init NSNumber init() { - objc.checkOsVersionInternal('NSNumber.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSNumber.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithBool: NSNumber initWithBool_(bool value) { final _ret = _objc_msgSend_1t6aok9( - this.ref.retainAndReturnPointer(), _sel_initWithBool_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithBool_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithBytes:objCType: NSNumber initWithBytes_objCType_( - ffi.Pointer value, ffi.Pointer type) { - final _ret = _objc_msgSend_e9mncn(this.ref.retainAndReturnPointer(), - _sel_initWithBytes_objCType_, value, type); + ffi.Pointer value, + ffi.Pointer type, + ) { + final _ret = _objc_msgSend_e9mncn( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_objCType_, + value, + type, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithChar: NSNumber initWithChar_(int value) { final _ret = _objc_msgSend_13mclwd( - this.ref.retainAndReturnPointer(), _sel_initWithChar_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithChar_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSNumber? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSNumber.castFromPointer(_ret, retain: false, release: true); @@ -6996,95 +9522,140 @@ class NSNumber extends NSValue { /// initWithDouble: NSNumber initWithDouble_(double value) { final _ret = _objc_msgSend_oa8mke( - this.ref.retainAndReturnPointer(), _sel_initWithDouble_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithDouble_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithFloat: NSNumber initWithFloat_(double value) { final _ret = _objc_msgSend_et8cuh( - this.ref.retainAndReturnPointer(), _sel_initWithFloat_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithFloat_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithInt: NSNumber initWithInt_(int value) { final _ret = _objc_msgSend_14hvw5k( - this.ref.retainAndReturnPointer(), _sel_initWithInt_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithInt_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithInteger: NSNumber initWithInteger_(int value) { - objc.checkOsVersionInternal('NSNumber.initWithInteger:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSNumber.initWithInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_qugqlf( - this.ref.retainAndReturnPointer(), _sel_initWithInteger_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithInteger_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithLong: NSNumber initWithLong_(int value) { final _ret = _objc_msgSend_qugqlf( - this.ref.retainAndReturnPointer(), _sel_initWithLong_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithLong_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithLongLong: NSNumber initWithLongLong_(int value) { final _ret = _objc_msgSend_16f0drb( - this.ref.retainAndReturnPointer(), _sel_initWithLongLong_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithLongLong_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithShort: NSNumber initWithShort_(int value) { final _ret = _objc_msgSend_68x6r1( - this.ref.retainAndReturnPointer(), _sel_initWithShort_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithShort_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithUnsignedChar: NSNumber initWithUnsignedChar_(int value) { final _ret = _objc_msgSend_7uautw( - this.ref.retainAndReturnPointer(), _sel_initWithUnsignedChar_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedChar_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithUnsignedInt: NSNumber initWithUnsignedInt_(int value) { final _ret = _objc_msgSend_degb40( - this.ref.retainAndReturnPointer(), _sel_initWithUnsignedInt_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedInt_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithUnsignedInteger: NSNumber initWithUnsignedInteger_(int value) { - objc.checkOsVersionInternal('NSNumber.initWithUnsignedInteger:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); - final _ret = _objc_msgSend_14hpxwa(this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedInteger_, value); + objc.checkOsVersionInternal( + 'NSNumber.initWithUnsignedInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedInteger_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithUnsignedLong: NSNumber initWithUnsignedLong_(int value) { final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), _sel_initWithUnsignedLong_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedLong_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithUnsignedLongLong: NSNumber initWithUnsignedLongLong_(int value) { - final _ret = _objc_msgSend_1x2hskc(this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedLongLong_, value); + final _ret = _objc_msgSend_1x2hskc( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedLongLong_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } /// initWithUnsignedShort: NSNumber initWithUnsignedShort_(int value) { final _ret = _objc_msgSend_1njucl2( - this.ref.retainAndReturnPointer(), _sel_initWithUnsignedShort_, value); + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedShort_, + value, + ); return NSNumber.castFromPointer(_ret, retain: false, release: true); } @@ -7095,15 +9666,21 @@ class NSNumber extends NSValue { /// integerValue int get integerValue { - objc.checkOsVersionInternal('NSNumber.integerValue', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSNumber.integerValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_integerValue); } /// isEqualToNumber: bool isEqualToNumber_(NSNumber number) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isEqualToNumber_, number.ref.pointer); + this.ref.pointer, + _sel_isEqualToNumber_, + number.ref.pointer, + ); } /// longLongValue @@ -7139,8 +9716,11 @@ class NSNumber extends NSValue { /// unsignedIntegerValue int get unsignedIntegerValue { - objc.checkOsVersionInternal('NSNumber.unsignedIntegerValue', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSNumber.unsignedIntegerValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_unsignedIntegerValue); } @@ -7167,136 +9747,197 @@ class NSNumber extends NSValue { extension NSNumberCreation on NSNumber { /// numberWithBool: static NSNumber numberWithBool_(bool value) { - final _ret = - _objc_msgSend_1t6aok9(_class_NSNumber, _sel_numberWithBool_, value); + final _ret = _objc_msgSend_1t6aok9( + _class_NSNumber, + _sel_numberWithBool_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithChar: static NSNumber numberWithChar_(int value) { - final _ret = - _objc_msgSend_13mclwd(_class_NSNumber, _sel_numberWithChar_, value); + final _ret = _objc_msgSend_13mclwd( + _class_NSNumber, + _sel_numberWithChar_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithDouble: static NSNumber numberWithDouble_(double value) { - final _ret = - _objc_msgSend_oa8mke(_class_NSNumber, _sel_numberWithDouble_, value); + final _ret = _objc_msgSend_oa8mke( + _class_NSNumber, + _sel_numberWithDouble_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithFloat: static NSNumber numberWithFloat_(double value) { - final _ret = - _objc_msgSend_et8cuh(_class_NSNumber, _sel_numberWithFloat_, value); + final _ret = _objc_msgSend_et8cuh( + _class_NSNumber, + _sel_numberWithFloat_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithInt: static NSNumber numberWithInt_(int value) { - final _ret = - _objc_msgSend_14hvw5k(_class_NSNumber, _sel_numberWithInt_, value); + final _ret = _objc_msgSend_14hvw5k( + _class_NSNumber, + _sel_numberWithInt_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithInteger: static NSNumber numberWithInteger_(int value) { - objc.checkOsVersionInternal('NSNumber.numberWithInteger:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); - final _ret = - _objc_msgSend_qugqlf(_class_NSNumber, _sel_numberWithInteger_, value); + objc.checkOsVersionInternal( + 'NSNumber.numberWithInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_qugqlf( + _class_NSNumber, + _sel_numberWithInteger_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithLong: static NSNumber numberWithLong_(int value) { - final _ret = - _objc_msgSend_qugqlf(_class_NSNumber, _sel_numberWithLong_, value); + final _ret = _objc_msgSend_qugqlf( + _class_NSNumber, + _sel_numberWithLong_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithLongLong: static NSNumber numberWithLongLong_(int value) { - final _ret = - _objc_msgSend_16f0drb(_class_NSNumber, _sel_numberWithLongLong_, value); + final _ret = _objc_msgSend_16f0drb( + _class_NSNumber, + _sel_numberWithLongLong_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithShort: static NSNumber numberWithShort_(int value) { - final _ret = - _objc_msgSend_68x6r1(_class_NSNumber, _sel_numberWithShort_, value); + final _ret = _objc_msgSend_68x6r1( + _class_NSNumber, + _sel_numberWithShort_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithUnsignedChar: static NSNumber numberWithUnsignedChar_(int value) { final _ret = _objc_msgSend_7uautw( - _class_NSNumber, _sel_numberWithUnsignedChar_, value); + _class_NSNumber, + _sel_numberWithUnsignedChar_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithUnsignedInt: static NSNumber numberWithUnsignedInt_(int value) { final _ret = _objc_msgSend_degb40( - _class_NSNumber, _sel_numberWithUnsignedInt_, value); + _class_NSNumber, + _sel_numberWithUnsignedInt_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithUnsignedInteger: static NSNumber numberWithUnsignedInteger_(int value) { - objc.checkOsVersionInternal('NSNumber.numberWithUnsignedInteger:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSNumber.numberWithUnsignedInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_14hpxwa( - _class_NSNumber, _sel_numberWithUnsignedInteger_, value); + _class_NSNumber, + _sel_numberWithUnsignedInteger_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithUnsignedLong: static NSNumber numberWithUnsignedLong_(int value) { final _ret = _objc_msgSend_14hpxwa( - _class_NSNumber, _sel_numberWithUnsignedLong_, value); + _class_NSNumber, + _sel_numberWithUnsignedLong_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithUnsignedLongLong: static NSNumber numberWithUnsignedLongLong_(int value) { final _ret = _objc_msgSend_1x2hskc( - _class_NSNumber, _sel_numberWithUnsignedLongLong_, value); + _class_NSNumber, + _sel_numberWithUnsignedLongLong_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } /// numberWithUnsignedShort: static NSNumber numberWithUnsignedShort_(int value) { final _ret = _objc_msgSend_1njucl2( - _class_NSNumber, _sel_numberWithUnsignedShort_, value); + _class_NSNumber, + _sel_numberWithUnsignedShort_, + value, + ); return NSNumber.castFromPointer(_ret, retain: true, release: true); } } /// NSObject class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { - NSObject._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSObject', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + NSObject._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSObject', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); } /// Constructs a [NSObject] that points to the same underlying object as [other]. NSObject.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSObject] that wraps the given raw object pointer. - NSObject.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSObject.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSObject]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSObject); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSObject, + ); } /// alloc @@ -7307,8 +9948,11 @@ class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { /// allocWithZone: static NSObject allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSObject, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSObject, + _sel_allocWithZone_, + zone, + ); return NSObject.castFromPointer(_ret, retain: false, release: true); } @@ -7320,98 +9964,154 @@ class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { /// conformsToProtocol: static bool conformsToProtocol_(Protocol protocol) { - objc.checkOsVersionInternal('NSObject.conformsToProtocol:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.conformsToProtocol:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_19nvye5( - _class_NSObject, _sel_conformsToProtocol_, protocol.ref.pointer); + _class_NSObject, + _sel_conformsToProtocol_, + protocol.ref.pointer, + ); } /// copyWithZone: static objc.ObjCObjectBase copyWithZone_(ffi.Pointer zone) { - objc.checkOsVersionInternal('NSObject.copyWithZone:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_1cwp428(_class_NSObject, _sel_copyWithZone_, zone); + objc.checkOsVersionInternal( + 'NSObject.copyWithZone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1cwp428( + _class_NSObject, + _sel_copyWithZone_, + zone, + ); return objc.ObjCObjectBase(_ret, retain: false, release: true); } /// debugDescription static NSString debugDescription() { - objc.checkOsVersionInternal('NSObject.debugDescription', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.debugDescription', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_debugDescription); return NSString.castFromPointer(_ret, retain: true, release: true); } /// description static NSString description() { - objc.checkOsVersionInternal('NSObject.description', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.description', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_description); return NSString.castFromPointer(_ret, retain: true, release: true); } /// hash static int hash() { - objc.checkOsVersionInternal('NSObject.hash', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.hash', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_xw2lbc(_class_NSObject, _sel_hash); } /// initialize static void initialize() { - objc.checkOsVersionInternal('NSObject.initialize', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.initialize', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_1pl9qdv(_class_NSObject, _sel_initialize); } /// instanceMethodForSelector: static ffi.Pointer> - instanceMethodForSelector_(ffi.Pointer aSelector) { - objc.checkOsVersionInternal('NSObject.instanceMethodForSelector:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + instanceMethodForSelector_(ffi.Pointer aSelector) { + objc.checkOsVersionInternal( + 'NSObject.instanceMethodForSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_1pa9f4m( - _class_NSObject, _sel_instanceMethodForSelector_, aSelector); + _class_NSObject, + _sel_instanceMethodForSelector_, + aSelector, + ); } /// instanceMethodSignatureForSelector: static NSMethodSignature instanceMethodSignatureForSelector_( - ffi.Pointer aSelector) { + ffi.Pointer aSelector, + ) { final _ret = _objc_msgSend_3ctkt6( - _class_NSObject, _sel_instanceMethodSignatureForSelector_, aSelector); + _class_NSObject, + _sel_instanceMethodSignatureForSelector_, + aSelector, + ); return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); } /// instancesRespondToSelector: static bool instancesRespondToSelector_( - ffi.Pointer aSelector) { - objc.checkOsVersionInternal('NSObject.instancesRespondToSelector:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + ffi.Pointer aSelector, + ) { + objc.checkOsVersionInternal( + 'NSObject.instancesRespondToSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_1srf6wk( - _class_NSObject, _sel_instancesRespondToSelector_, aSelector); + _class_NSObject, + _sel_instancesRespondToSelector_, + aSelector, + ); } /// isSubclassOfClass: static bool isSubclassOfClass_(objc.ObjCObjectBase aClass) { - objc.checkOsVersionInternal('NSObject.isSubclassOfClass:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.isSubclassOfClass:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_19nvye5( - _class_NSObject, _sel_isSubclassOfClass_, aClass.ref.pointer); + _class_NSObject, + _sel_isSubclassOfClass_, + aClass.ref.pointer, + ); } /// load static void load() { - objc.checkOsVersionInternal('NSObject.load', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.load', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_1pl9qdv(_class_NSObject, _sel_load); } /// mutableCopyWithZone: static objc.ObjCObjectBase mutableCopyWithZone_(ffi.Pointer zone) { - objc.checkOsVersionInternal('NSObject.mutableCopyWithZone:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_1cwp428(_class_NSObject, _sel_mutableCopyWithZone_, zone); + objc.checkOsVersionInternal( + 'NSObject.mutableCopyWithZone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1cwp428( + _class_NSObject, + _sel_mutableCopyWithZone_, + zone, + ); return objc.ObjCObjectBase(_ret, retain: false, release: true); } @@ -7423,24 +10123,39 @@ class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { /// resolveClassMethod: static bool resolveClassMethod_(ffi.Pointer sel) { - objc.checkOsVersionInternal('NSObject.resolveClassMethod:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSObject.resolveClassMethod:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_1srf6wk( - _class_NSObject, _sel_resolveClassMethod_, sel); + _class_NSObject, + _sel_resolveClassMethod_, + sel, + ); } /// resolveInstanceMethod: static bool resolveInstanceMethod_(ffi.Pointer sel) { - objc.checkOsVersionInternal('NSObject.resolveInstanceMethod:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSObject.resolveInstanceMethod:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_1srf6wk( - _class_NSObject, _sel_resolveInstanceMethod_, sel); + _class_NSObject, + _sel_resolveInstanceMethod_, + sel, + ); } /// superclass static objc.ObjCObjectBase superclass() { - objc.checkOsVersionInternal('NSObject.superclass', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.superclass', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_superclass); return objc.ObjCObjectBase(_ret, retain: true, release: true); } @@ -7460,13 +10175,19 @@ class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { /// conformsToProtocol: bool conformsToProtocol_$1(Protocol aProtocol) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_conformsToProtocol_, aProtocol.ref.pointer); + this.ref.pointer, + _sel_conformsToProtocol_, + aProtocol.ref.pointer, + ); } /// copy objc.ObjCObjectBase copy() { - objc.checkOsVersionInternal('NSObject.copy', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.copy', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_copy); return objc.ObjCObjectBase(_ret, retain: false, release: true); } @@ -7480,7 +10201,9 @@ class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { NSString get debugDescription$1 { if (!objc.respondsToSelector(this.ref.pointer, _sel_debugDescription)) { throw objc.UnimplementedOptionalMethodException( - 'NSObject', 'debugDescription'); + 'NSObject', + 'debugDescription', + ); } final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_debugDescription); return NSString.castFromPointer(_ret, retain: true, release: true); @@ -7494,25 +10217,41 @@ class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { /// doesNotRecognizeSelector: void doesNotRecognizeSelector_(ffi.Pointer aSelector) { - objc.checkOsVersionInternal('NSObject.doesNotRecognizeSelector:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.doesNotRecognizeSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); _objc_msgSend_1d9e4oe( - this.ref.pointer, _sel_doesNotRecognizeSelector_, aSelector); + this.ref.pointer, + _sel_doesNotRecognizeSelector_, + aSelector, + ); } /// forwardInvocation: void forwardInvocation_(NSInvocation anInvocation) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_forwardInvocation_, anInvocation.ref.pointer); + this.ref.pointer, + _sel_forwardInvocation_, + anInvocation.ref.pointer, + ); } /// forwardingTargetForSelector: objc.ObjCObjectBase forwardingTargetForSelector_( - ffi.Pointer aSelector) { - objc.checkOsVersionInternal('NSObject.forwardingTargetForSelector:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + ffi.Pointer aSelector, + ) { + objc.checkOsVersionInternal( + 'NSObject.forwardingTargetForSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, _sel_forwardingTargetForSelector_, aSelector); + this.ref.pointer, + _sel_forwardingTargetForSelector_, + aSelector, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } @@ -7523,29 +10262,43 @@ class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { /// init NSObject init() { - objc.checkOsVersionInternal('NSObject.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSObject.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSObject.castFromPointer(_ret, retain: false, release: true); } /// isEqual: bool isEqual_(objc.ObjCObjectBase object) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isEqual_, object.ref.pointer); + this.ref.pointer, + _sel_isEqual_, + object.ref.pointer, + ); } /// isKindOfClass: bool isKindOfClass_(objc.ObjCObjectBase aClass) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isKindOfClass_, aClass.ref.pointer); + this.ref.pointer, + _sel_isKindOfClass_, + aClass.ref.pointer, + ); } /// isMemberOfClass: bool isMemberOfClass_(objc.ObjCObjectBase aClass) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isMemberOfClass_, aClass.ref.pointer); + this.ref.pointer, + _sel_isMemberOfClass_, + aClass.ref.pointer, + ); } /// isProxy @@ -7555,56 +10308,82 @@ class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { /// methodForSelector: ffi.Pointer> methodForSelector_( - ffi.Pointer aSelector) { - objc.checkOsVersionInternal('NSObject.methodForSelector:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + ffi.Pointer aSelector, + ) { + objc.checkOsVersionInternal( + 'NSObject.methodForSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); return _objc_msgSend_1pa9f4m( - this.ref.pointer, _sel_methodForSelector_, aSelector); + this.ref.pointer, + _sel_methodForSelector_, + aSelector, + ); } /// methodSignatureForSelector: NSMethodSignature methodSignatureForSelector_( - ffi.Pointer aSelector) { + ffi.Pointer aSelector, + ) { final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, _sel_methodSignatureForSelector_, aSelector); + this.ref.pointer, + _sel_methodSignatureForSelector_, + aSelector, + ); return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); } /// mutableCopy objc.ObjCObjectBase mutableCopy() { - objc.checkOsVersionInternal('NSObject.mutableCopy', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + objc.checkOsVersionInternal( + 'NSObject.mutableCopy', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_mutableCopy); return objc.ObjCObjectBase(_ret, retain: false, release: true); } /// performSelector: objc.ObjCObjectBase performSelector_( - ffi.Pointer aSelector) { + ffi.Pointer aSelector, + ) { final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, _sel_performSelector_, aSelector); + this.ref.pointer, + _sel_performSelector_, + aSelector, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } /// performSelector:withObject: objc.ObjCObjectBase performSelector_withObject_( - ffi.Pointer aSelector, objc.ObjCObjectBase object) { - final _ret = _objc_msgSend_gx50so(this.ref.pointer, - _sel_performSelector_withObject_, aSelector, object.ref.pointer); + ffi.Pointer aSelector, + objc.ObjCObjectBase object, + ) { + final _ret = _objc_msgSend_gx50so( + this.ref.pointer, + _sel_performSelector_withObject_, + aSelector, + object.ref.pointer, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } /// performSelector:withObject:withObject: objc.ObjCObjectBase performSelector_withObject_withObject_( - ffi.Pointer aSelector, - objc.ObjCObjectBase object1, - objc.ObjCObjectBase object2) { + ffi.Pointer aSelector, + objc.ObjCObjectBase object1, + objc.ObjCObjectBase object2, + ) { final _ret = _objc_msgSend_cfx8ce( - this.ref.pointer, - _sel_performSelector_withObject_withObject_, - aSelector, - object1.ref.pointer, - object2.ref.pointer); + this.ref.pointer, + _sel_performSelector_withObject_withObject_, + aSelector, + object1.ref.pointer, + object2.ref.pointer, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } @@ -7616,7 +10395,10 @@ class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { /// respondsToSelector: bool respondsToSelector_(ffi.Pointer aSelector) { return _objc_msgSend_1srf6wk( - this.ref.pointer, _sel_respondsToSelector_, aSelector); + this.ref.pointer, + _sel_respondsToSelector_, + aSelector, + ); } /// retain @@ -7653,23 +10435,30 @@ class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { /// NSObject interface class NSObjectProtocol extends objc.ObjCProtocolBase { - NSObjectProtocol._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSObjectProtocol._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSObjectProtocol] that points to the same underlying object as [other]. NSObjectProtocol.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSObjectProtocol] that wraps the given raw object pointer. - NSObjectProtocol.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSObjectProtocol.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSObjectProtocol]. static bool conformsTo(objc.ObjCObjectBase obj) { return _objc_msgSend_e3qsqz( - obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSObject); + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSObject, + ); } /// Returns the [objc.Protocol] object for this protocol. @@ -7681,39 +10470,46 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSObjectProtocol implement( - {required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, objc.ObjCObjectBase) - performSelector_withObject_, - required objc.ObjCObjectBase Function(ffi.Pointer, - objc.ObjCObjectBase, objc.ObjCObjectBase) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) - respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true}) { + static NSObjectProtocol implement({ + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); NSObjectProtocol.autorelease.implement(builder, autorelease); NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_ - .implement(builder, conformsToProtocol_); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); NSObjectProtocol.debugDescription.implement(builder, debugDescription); NSObjectProtocol.description.implement(builder, description); NSObjectProtocol.hash.implement(builder, hash); @@ -7722,13 +10518,19 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); NSObjectProtocol.isProxy.implement(builder, isProxy); NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_ - .implement(builder, performSelector_withObject_); - NSObjectProtocol.performSelector_withObject_withObject_ - .implement(builder, performSelector_withObject_withObject_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); NSObjectProtocol.release.implement(builder, release); - NSObjectProtocol.respondsToSelector_ - .implement(builder, respondsToSelector_); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); NSObjectProtocol.retain.implement(builder, retain); NSObjectProtocol.retainCount.implement(builder, retainCount); NSObjectProtocol.self$1.implement(builder, self$1); @@ -7736,45 +10538,54 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { NSObjectProtocol.zone.implement(builder, zone); builder.addProtocol($protocol); return NSObjectProtocol.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSObject protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, objc.ObjCObjectBase) - performSelector_withObject_, - required objc.ObjCObjectBase Function(ffi.Pointer, - objc.ObjCObjectBase, objc.ObjCObjectBase) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) - respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true}) { + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { NSObjectProtocol.autorelease.implement(builder, autorelease); NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_ - .implement(builder, conformsToProtocol_); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); NSObjectProtocol.debugDescription.implement(builder, debugDescription); NSObjectProtocol.description.implement(builder, description); NSObjectProtocol.hash.implement(builder, hash); @@ -7783,13 +10594,19 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); NSObjectProtocol.isProxy.implement(builder, isProxy); NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_ - .implement(builder, performSelector_withObject_); - NSObjectProtocol.performSelector_withObject_withObject_ - .implement(builder, performSelector_withObject_withObject_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); NSObjectProtocol.release.implement(builder, release); - NSObjectProtocol.respondsToSelector_ - .implement(builder, respondsToSelector_); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); NSObjectProtocol.retain.implement(builder, retain); NSObjectProtocol.retainCount.implement(builder, retainCount); NSObjectProtocol.self$1.implement(builder, self$1); @@ -7804,39 +10621,46 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSObjectProtocol implementAsListener( - {required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, objc.ObjCObjectBase) - performSelector_withObject_, - required objc.ObjCObjectBase Function(ffi.Pointer, - objc.ObjCObjectBase, objc.ObjCObjectBase) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) - respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true}) { + static NSObjectProtocol implementAsListener({ + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); NSObjectProtocol.autorelease.implement(builder, autorelease); NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_ - .implement(builder, conformsToProtocol_); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); NSObjectProtocol.debugDescription.implement(builder, debugDescription); NSObjectProtocol.description.implement(builder, description); NSObjectProtocol.hash.implement(builder, hash); @@ -7845,13 +10669,19 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); NSObjectProtocol.isProxy.implement(builder, isProxy); NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_ - .implement(builder, performSelector_withObject_); - NSObjectProtocol.performSelector_withObject_withObject_ - .implement(builder, performSelector_withObject_withObject_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); NSObjectProtocol.release.implementAsListener(builder, release); - NSObjectProtocol.respondsToSelector_ - .implement(builder, respondsToSelector_); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); NSObjectProtocol.retain.implement(builder, retain); NSObjectProtocol.retainCount.implement(builder, retainCount); NSObjectProtocol.self$1.implement(builder, self$1); @@ -7859,7 +10689,8 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { NSObjectProtocol.zone.implement(builder, zone); builder.addProtocol($protocol); return NSObjectProtocol.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSObject protocol to an existing @@ -7867,38 +10698,46 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { /// be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener(objc.ObjCProtocolBuilder builder, - {required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, objc.ObjCObjectBase) - performSelector_withObject_, - required objc.ObjCObjectBase Function(ffi.Pointer, - objc.ObjCObjectBase, objc.ObjCObjectBase) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) - respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true}) { + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { NSObjectProtocol.autorelease.implement(builder, autorelease); NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_ - .implement(builder, conformsToProtocol_); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); NSObjectProtocol.debugDescription.implement(builder, debugDescription); NSObjectProtocol.description.implement(builder, description); NSObjectProtocol.hash.implement(builder, hash); @@ -7907,13 +10746,19 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); NSObjectProtocol.isProxy.implement(builder, isProxy); NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_ - .implement(builder, performSelector_withObject_); - NSObjectProtocol.performSelector_withObject_withObject_ - .implement(builder, performSelector_withObject_withObject_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); NSObjectProtocol.release.implementAsListener(builder, release); - NSObjectProtocol.respondsToSelector_ - .implement(builder, respondsToSelector_); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); NSObjectProtocol.retain.implement(builder, retain); NSObjectProtocol.retainCount.implement(builder, retainCount); NSObjectProtocol.self$1.implement(builder, self$1); @@ -7928,39 +10773,46 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSObjectProtocol implementAsBlocking( - {required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, objc.ObjCObjectBase) - performSelector_withObject_, - required objc.ObjCObjectBase Function(ffi.Pointer, - objc.ObjCObjectBase, objc.ObjCObjectBase) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) - respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true}) { + static NSObjectProtocol implementAsBlocking({ + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); NSObjectProtocol.autorelease.implement(builder, autorelease); NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_ - .implement(builder, conformsToProtocol_); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); NSObjectProtocol.debugDescription.implement(builder, debugDescription); NSObjectProtocol.description.implement(builder, description); NSObjectProtocol.hash.implement(builder, hash); @@ -7969,13 +10821,19 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); NSObjectProtocol.isProxy.implement(builder, isProxy); NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_ - .implement(builder, performSelector_withObject_); - NSObjectProtocol.performSelector_withObject_withObject_ - .implement(builder, performSelector_withObject_withObject_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); NSObjectProtocol.release.implementAsBlocking(builder, release); - NSObjectProtocol.respondsToSelector_ - .implement(builder, respondsToSelector_); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); NSObjectProtocol.retain.implement(builder, retain); NSObjectProtocol.retainCount.implement(builder, retainCount); NSObjectProtocol.self$1.implement(builder, self$1); @@ -7983,7 +10841,8 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { NSObjectProtocol.zone.implement(builder, zone); builder.addProtocol($protocol); return NSObjectProtocol.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSObject protocol to an existing @@ -7991,38 +10850,46 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { /// listeners will be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking(objc.ObjCProtocolBuilder builder, - {required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, objc.ObjCObjectBase) - performSelector_withObject_, - required objc.ObjCObjectBase Function(ffi.Pointer, - objc.ObjCObjectBase, objc.ObjCObjectBase) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) - respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true}) { + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { NSObjectProtocol.autorelease.implement(builder, autorelease); NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_ - .implement(builder, conformsToProtocol_); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); NSObjectProtocol.debugDescription.implement(builder, debugDescription); NSObjectProtocol.description.implement(builder, description); NSObjectProtocol.hash.implement(builder, hash); @@ -8031,13 +10898,19 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); NSObjectProtocol.isProxy.implement(builder, isProxy); NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_ - .implement(builder, performSelector_withObject_); - NSObjectProtocol.performSelector_withObject_withObject_ - .implement(builder, performSelector_withObject_withObject_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); NSObjectProtocol.release.implementAsBlocking(builder, release); - NSObjectProtocol.respondsToSelector_ - .implement(builder, respondsToSelector_); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); NSObjectProtocol.retain.implement(builder, retain); NSObjectProtocol.retainCount.implement(builder, retainCount); NSObjectProtocol.self$1.implement(builder, self$1); @@ -8049,36 +10922,41 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { /// autorelease static final autorelease = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_autorelease, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_autorelease, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), - ); + _protocol_NSObject, + _sel_autorelease, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_autorelease, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); /// class static final class$ = objc.ObjCProtocolMethod( _protocol_NSObject, _sel_class, ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1mbt9g9) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) .cast(), objc.getProtocolMethodSignature( _protocol_NSObject, @@ -8087,43 +10965,50 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { isInstanceMethod: true, ), (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), ); /// conformsToProtocol: static final conformsToProtocol_ = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_conformsToProtocol_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_conformsToProtocol_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(Protocol) func) => - ObjCBlock_bool_ffiVoid_Protocol.fromFunction( - (ffi.Pointer _, Protocol arg1) => func(arg1)), - ); + _protocol_NSObject, + _sel_conformsToProtocol_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_conformsToProtocol_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(Protocol) func) => + ObjCBlock_bool_ffiVoid_Protocol.fromFunction( + (ffi.Pointer _, Protocol arg1) => func(arg1), + ), + ); /// debugDescription static final debugDescription = objc.ObjCProtocolMethod( _protocol_NSObject, _sel_debugDescription, ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1mbt9g9) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) .cast(), objc.getProtocolMethodSignature( _protocol_NSObject, @@ -8131,10 +11016,9 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { isRequired: false, isInstanceMethod: true, ), - (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), + (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), ); /// description @@ -8142,10 +11026,13 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { _protocol_NSObject, _sel_description, ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1mbt9g9) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) .cast(), objc.getProtocolMethodSignature( _protocol_NSObject, @@ -8153,10 +11040,9 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { isRequired: true, isInstanceMethod: true, ), - (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), + (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), ); /// hash @@ -8164,10 +11050,13 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { _protocol_NSObject, _sel_hash, ffi.Native.addressOf< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1ckyi24) + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1ckyi24) .cast(), objc.getProtocolMethodSignature( _protocol_NSObject, @@ -8175,87 +11064,104 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { isRequired: true, isInstanceMethod: true, ), - (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), + (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), ); /// isEqual: static final isEqual_ = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isEqual_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isEqual_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.ObjCObjectBase) func) => - ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( - (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1)), - ); + _protocol_NSObject, + _sel_isEqual_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isEqual_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.ObjCObjectBase) func) => + ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( + (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), + ), + ); /// isKindOfClass: static final isKindOfClass_ = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isKindOfClass_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isKindOfClass_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.ObjCObjectBase) func) => - ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( - (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1)), - ); + _protocol_NSObject, + _sel_isKindOfClass_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isKindOfClass_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.ObjCObjectBase) func) => + ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( + (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), + ), + ); /// isMemberOfClass: static final isMemberOfClass_ = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isMemberOfClass_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isMemberOfClass_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.ObjCObjectBase) func) => - ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( - (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1)), - ); + _protocol_NSObject, + _sel_isMemberOfClass_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isMemberOfClass_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.ObjCObjectBase) func) => + ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( + (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), + ), + ); /// isProxy static final isProxy = objc.ObjCProtocolMethod( _protocol_NSObject, _sel_isProxy, ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_e3qsqz) + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_e3qsqz) .cast(), objc.getProtocolMethodSignature( _protocol_NSObject, @@ -8263,110 +11169,143 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { isRequired: true, isInstanceMethod: true, ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), ); /// performSelector: - static final performSelector_ = objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function(ffi.Pointer)>( - _protocol_NSObject, - _sel_performSelector_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_50as9u) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_performSelector_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function(ffi.Pointer) func) => - ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1)), - ); + static final performSelector_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function(ffi.Pointer) + >( + _protocol_NSObject, + _sel_performSelector_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_50as9u) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_performSelector_, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function(ffi.Pointer) func) => + ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + ); /// performSelector:withObject: - static final performSelector_withObject_ = objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function( - ffi.Pointer, objc.ObjCObjectBase)>( - _protocol_NSObject, - _sel_performSelector_withObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1mllhpc) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_performSelector_withObject_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function( - ffi.Pointer, objc.ObjCObjectBase) - func) => - ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject - .fromFunction((ffi.Pointer _, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2) => - func(arg1, arg2)), - ); + static final performSelector_withObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + >( + _protocol_NSObject, + _sel_performSelector_withObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mllhpc) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_performSelector_withObject_, + isRequired: true, + isInstanceMethod: true, + ), + ( + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + func, + ) => + ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + ) => func(arg1, arg2), + ), + ); /// performSelector:withObject:withObject: - static final performSelector_withObject_withObject_ = objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function(ffi.Pointer, - objc.ObjCObjectBase, objc.ObjCObjectBase)>( - _protocol_NSObject, - _sel_performSelector_withObject_withObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_c7gk2u) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_performSelector_withObject_withObject_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function(ffi.Pointer, - objc.ObjCObjectBase, objc.ObjCObjectBase) - func) => - ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject - .fromFunction((ffi.Pointer _, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2, - objc.ObjCObjectBase arg3) => - func(arg1, arg2, arg3)), - ); + static final performSelector_withObject_withObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + >( + _protocol_NSObject, + _sel_performSelector_withObject_withObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_c7gk2u) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_performSelector_withObject_withObject_, + isRequired: true, + isInstanceMethod: true, + ), + ( + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + func, + ) => + ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + objc.ObjCObjectBase arg3, + ) => func(arg1, arg2, arg3), + ), + ); /// release static final release = objc.ObjCProtocolListenableMethod( _protocol_NSObject, _sel_release, ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_ovsamd) + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_ovsamd) .cast(), objc.getProtocolMethodSignature( _protocol_NSObject, @@ -8374,54 +11313,55 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { isRequired: true, isInstanceMethod: true, ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid.listener(( - ffi.Pointer _, - ) => - func()), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid.blocking(( - ffi.Pointer _, - ) => - func()), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => + ObjCBlock_ffiVoid_ffiVoid.listener((ffi.Pointer _) => func()), + (void Function() func) => + ObjCBlock_ffiVoid_ffiVoid.blocking((ffi.Pointer _) => func()), ); /// respondsToSelector: static final respondsToSelector_ = objc.ObjCProtocolMethod)>( - _protocol_NSObject, - _sel_respondsToSelector_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_w1e3k0) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_respondsToSelector_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(ffi.Pointer) func) => - ObjCBlock_bool_ffiVoid_objcObjCSelector.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1)), - ); + _protocol_NSObject, + _sel_respondsToSelector_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_w1e3k0) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_respondsToSelector_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(ffi.Pointer) func) => + ObjCBlock_bool_ffiVoid_objcObjCSelector.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + ); /// retain static final retain = objc.ObjCProtocolMethod( _protocol_NSObject, _sel_retain, ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1mbt9g9) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) .cast(), objc.getProtocolMethodSignature( _protocol_NSObject, @@ -8430,10 +11370,9 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { isInstanceMethod: true, ), (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), ); /// retainCount @@ -8441,10 +11380,13 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { _protocol_NSObject, _sel_retainCount, ffi.Native.addressOf< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1ckyi24) + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1ckyi24) .cast(), objc.getProtocolMethodSignature( _protocol_NSObject, @@ -8452,10 +11394,9 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { isRequired: true, isInstanceMethod: true, ), - (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), + (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), ); /// self @@ -8463,10 +11404,13 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { _protocol_NSObject, _sel_self, ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1mbt9g9) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) .cast(), objc.getProtocolMethodSignature( _protocol_NSObject, @@ -8475,45 +11419,49 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { isInstanceMethod: true, ), (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), ); /// superclass static final superclass = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_superclass, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_superclass, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), - ); + _protocol_NSObject, + _sel_superclass, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_superclass, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); /// zone static final zone = objc.ObjCProtocolMethod Function()>( _protocol_NSObject, _sel_zone, ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_1a8cl66) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1a8cl66) .cast(), objc.getProtocolMethodSignature( _protocol_NSObject, @@ -8522,10 +11470,9 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { isInstanceMethod: true, ), (ffi.Pointer Function() func) => - ObjCBlock_NSZone_ffiVoid.fromFunction(( - ffi.Pointer _, - ) => - func()), + ObjCBlock_NSZone_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), ); } @@ -8535,80 +11482,122 @@ interface class NSObjectProtocol extends objc.ObjCProtocolBase { /// macOS: introduced 10.15.0 class NSOrderedCollectionDifference extends NSObject implements NSFastEnumeration { - NSOrderedCollectionDifference._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSOrderedCollectionDifference', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + NSOrderedCollectionDifference._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); } /// Constructs a [NSOrderedCollectionDifference] that points to the same underlying object as [other]. NSOrderedCollectionDifference.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSOrderedCollectionDifference] that wraps the given raw object pointer. NSOrderedCollectionDifference.castFromPointer( - ffi.Pointer other, - {bool retain = false, - bool release = false}) - : this._(other, retain: retain, release: release); + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSOrderedCollectionDifference]. static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5(obj.ref.pointer, _sel_isKindOfClass_, - _class_NSOrderedCollectionDifference); + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOrderedCollectionDifference, + ); } /// alloc static NSOrderedCollectionDifference alloc() { - final _ret = - _objc_msgSend_151sglz(_class_NSOrderedCollectionDifference, _sel_alloc); - return NSOrderedCollectionDifference.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_151sglz( + _class_NSOrderedCollectionDifference, + _sel_alloc, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// allocWithZone: static NSOrderedCollectionDifference allocWithZone_( - ffi.Pointer zone) { + ffi.Pointer zone, + ) { final _ret = _objc_msgSend_1cwp428( - _class_NSOrderedCollectionDifference, _sel_allocWithZone_, zone); - return NSOrderedCollectionDifference.castFromPointer(_ret, - retain: false, release: true); + _class_NSOrderedCollectionDifference, + _sel_allocWithZone_, + zone, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// new static NSOrderedCollectionDifference new$() { - final _ret = - _objc_msgSend_151sglz(_class_NSOrderedCollectionDifference, _sel_new); - return NSOrderedCollectionDifference.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_151sglz( + _class_NSOrderedCollectionDifference, + _sel_new, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// countByEnumeratingWithState:objects:count: int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { - return _objc_msgSend_1b5ysjl(this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, state, buffer, len); + ffi.Pointer state, + ffi.Pointer> buffer, + int len, + ) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + buffer, + len, + ); } /// iOS: introduced 13.0.0 /// macOS: introduced 10.15.0 bool get hasChanges { - objc.checkOsVersionInternal('NSOrderedCollectionDifference.hasChanges', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.hasChanges', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_hasChanges); } /// init NSOrderedCollectionDifference init() { - objc.checkOsVersionInternal('NSOrderedCollectionDifference.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); - return NSOrderedCollectionDifference.castFromPointer(_ret, - retain: false, release: true); + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithChanges: @@ -8617,13 +11606,20 @@ class NSOrderedCollectionDifference extends NSObject /// macOS: introduced 10.15.0 NSOrderedCollectionDifference initWithChanges_(NSArray changes) { objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.initWithChanges:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithChanges_, changes.ref.pointer); - return NSOrderedCollectionDifference.castFromPointer(_ret, - retain: false, release: true); + 'NSOrderedCollectionDifference.initWithChanges:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithChanges_, + changes.ref.pointer, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: @@ -8631,24 +11627,30 @@ class NSOrderedCollectionDifference extends NSObject /// iOS: introduced 13.0.0 /// macOS: introduced 10.15.0 NSOrderedCollectionDifference - initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_( - NSIndexSet inserts, - NSArray? insertedObjects, - NSIndexSet removes, - NSArray? removedObjects) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_( + NSIndexSet inserts, + NSArray? insertedObjects, + NSIndexSet removes, + NSArray? removedObjects, + ) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_s92gih( - this.ref.retainAndReturnPointer(), - _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_, - inserts.ref.pointer, - insertedObjects?.ref.pointer ?? ffi.nullptr, - removes.ref.pointer, - removedObjects?.ref.pointer ?? ffi.nullptr); - return NSOrderedCollectionDifference.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_, + inserts.ref.pointer, + insertedObjects?.ref.pointer ?? ffi.nullptr, + removes.ref.pointer, + removedObjects?.ref.pointer ?? ffi.nullptr, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: @@ -8656,33 +11658,42 @@ class NSOrderedCollectionDifference extends NSObject /// iOS: introduced 13.0.0 /// macOS: introduced 10.15.0 NSOrderedCollectionDifference - initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_( - NSIndexSet inserts, - NSArray? insertedObjects, - NSIndexSet removes, - NSArray? removedObjects, - NSArray changes) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); + initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_( + NSIndexSet inserts, + NSArray? insertedObjects, + NSIndexSet removes, + NSArray? removedObjects, + NSArray changes, + ) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_3cbdpb( - this.ref.retainAndReturnPointer(), - _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_, - inserts.ref.pointer, - insertedObjects?.ref.pointer ?? ffi.nullptr, - removes.ref.pointer, - removedObjects?.ref.pointer ?? ffi.nullptr, - changes.ref.pointer); - return NSOrderedCollectionDifference.castFromPointer(_ret, - retain: false, release: true); + this.ref.retainAndReturnPointer(), + _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_, + inserts.ref.pointer, + insertedObjects?.ref.pointer ?? ffi.nullptr, + removes.ref.pointer, + removedObjects?.ref.pointer ?? ffi.nullptr, + changes.ref.pointer, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// iOS: introduced 13.0.0 /// macOS: introduced 10.15.0 NSArray get insertions { - objc.checkOsVersionInternal('NSOrderedCollectionDifference.insertions', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.insertions', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_insertions); return NSArray.castFromPointer(_ret, retain: true, release: true); } @@ -8693,20 +11704,29 @@ class NSOrderedCollectionDifference extends NSObject /// macOS: introduced 10.15.0 NSOrderedCollectionDifference inverseDifference() { objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.inverseDifference', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_inverseDifference); - return NSOrderedCollectionDifference.castFromPointer(_ret, - retain: true, release: true); + 'NSOrderedCollectionDifference.inverseDifference', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_inverseDifference, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// iOS: introduced 13.0.0 /// macOS: introduced 10.15.0 NSArray get removals { - objc.checkOsVersionInternal('NSOrderedCollectionDifference.removals', - iOS: (false, (13, 0, 0)), macOS: (false, (10, 15, 0))); + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.removals', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_removals); return NSArray.castFromPointer(_ret, retain: true, release: true); } @@ -8725,39 +11745,51 @@ enum NSOrderedCollectionDifferenceCalculationOptions { final int value; const NSOrderedCollectionDifferenceCalculationOptions(this.value); - static NSOrderedCollectionDifferenceCalculationOptions fromValue(int value) => - switch (value) { - 1 => NSOrderedCollectionDifferenceCalculationOmitInsertedObjects, - 2 => NSOrderedCollectionDifferenceCalculationOmitRemovedObjects, - 4 => NSOrderedCollectionDifferenceCalculationInferMoves, - _ => throw ArgumentError( - 'Unknown value for NSOrderedCollectionDifferenceCalculationOptions: $value'), - }; + static NSOrderedCollectionDifferenceCalculationOptions fromValue( + int value, + ) => switch (value) { + 1 => NSOrderedCollectionDifferenceCalculationOmitInsertedObjects, + 2 => NSOrderedCollectionDifferenceCalculationOmitRemovedObjects, + 4 => NSOrderedCollectionDifferenceCalculationInferMoves, + _ => throw ArgumentError( + 'Unknown value for NSOrderedCollectionDifferenceCalculationOptions: $value', + ), + }; } /// NSOrderedSet class NSOrderedSet extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - NSOrderedSet._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal('NSOrderedSet', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + NSOrderedSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOrderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); } /// Constructs a [NSOrderedSet] that points to the same underlying object as [other]. NSOrderedSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSOrderedSet] that wraps the given raw object pointer. - NSOrderedSet.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSOrderedSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSOrderedSet]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSOrderedSet); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOrderedSet, + ); } /// alloc @@ -8768,8 +11800,11 @@ class NSOrderedSet extends NSObject /// allocWithZone: static NSOrderedSet allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSOrderedSet, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSOrderedSet, + _sel_allocWithZone_, + zone, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } @@ -8781,105 +11816,164 @@ class NSOrderedSet extends NSObject /// orderedSet static NSOrderedSet orderedSet() { - objc.checkOsVersionInternal('NSOrderedSet.orderedSet', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } /// orderedSetWithArray: static NSOrderedSet orderedSetWithArray_(NSArray array) { - objc.checkOsVersionInternal('NSOrderedSet.orderedSetWithArray:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, _sel_orderedSetWithArray_, array.ref.pointer); + _class_NSOrderedSet, + _sel_orderedSetWithArray_, + array.ref.pointer, + ); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } /// orderedSetWithArray:range:copyItems: static NSOrderedSet orderedSetWithArray_range_copyItems_( - NSArray array, NSRange range, bool flag) { + NSArray array, + NSRange range, + bool flag, + ) { objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); + 'NSOrderedSet.orderedSetWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_w9bq5x( - _class_NSOrderedSet, - _sel_orderedSetWithArray_range_copyItems_, - array.ref.pointer, - range, - flag); + _class_NSOrderedSet, + _sel_orderedSetWithArray_range_copyItems_, + array.ref.pointer, + range, + flag, + ); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } /// orderedSetWithObject: static NSOrderedSet orderedSetWithObject_(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal('NSOrderedSet.orderedSetWithObject:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, _sel_orderedSetWithObject_, object.ref.pointer); + _class_NSOrderedSet, + _sel_orderedSetWithObject_, + object.ref.pointer, + ); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } /// orderedSetWithObjects: static NSOrderedSet orderedSetWithObjects_(objc.ObjCObjectBase firstObj) { - objc.checkOsVersionInternal('NSOrderedSet.orderedSetWithObjects:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, _sel_orderedSetWithObjects_, firstObj.ref.pointer); + _class_NSOrderedSet, + _sel_orderedSetWithObjects_, + firstObj.ref.pointer, + ); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } /// orderedSetWithObjects:count: static NSOrderedSet orderedSetWithObjects_count_( - ffi.Pointer> objects, int cnt) { - objc.checkOsVersionInternal('NSOrderedSet.orderedSetWithObjects:count:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + ffi.Pointer> objects, + int cnt, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_zmbtbd( - _class_NSOrderedSet, _sel_orderedSetWithObjects_count_, objects, cnt); + _class_NSOrderedSet, + _sel_orderedSetWithObjects_count_, + objects, + cnt, + ); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } /// orderedSetWithOrderedSet: static NSOrderedSet orderedSetWithOrderedSet_(NSOrderedSet set) { - objc.checkOsVersionInternal('NSOrderedSet.orderedSetWithOrderedSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, _sel_orderedSetWithOrderedSet_, set.ref.pointer); + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_, + set.ref.pointer, + ); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } /// orderedSetWithOrderedSet:range:copyItems: static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( - NSOrderedSet set, NSRange range, bool flag) { + NSOrderedSet set, + NSRange range, + bool flag, + ) { objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); + 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_w9bq5x( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_range_copyItems_, - set.ref.pointer, - range, - flag); + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_range_copyItems_, + set.ref.pointer, + range, + flag, + ); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } /// orderedSetWithSet: static NSOrderedSet orderedSetWithSet_(NSSet set) { - objc.checkOsVersionInternal('NSOrderedSet.orderedSetWithSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, _sel_orderedSetWithSet_, set.ref.pointer); + _class_NSOrderedSet, + _sel_orderedSetWithSet_, + set.ref.pointer, + ); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } /// orderedSetWithSet:copyItems: static NSOrderedSet orderedSetWithSet_copyItems_(NSSet set, bool flag) { - objc.checkOsVersionInternal('NSOrderedSet.orderedSetWithSet:copyItems:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_17amj0z(_class_NSOrderedSet, - _sel_orderedSetWithSet_copyItems_, set.ref.pointer, flag); + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSOrderedSet, + _sel_orderedSetWithSet_copyItems_, + set.ref.pointer, + flag, + ); return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); } @@ -8896,75 +11990,125 @@ class NSOrderedSet extends NSObject /// count int get count { - objc.checkOsVersionInternal('NSOrderedSet.count', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.count', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); } /// countByEnumeratingWithState:objects:count: int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { - return _objc_msgSend_1b5ysjl(this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, state, buffer, len); + ffi.Pointer state, + ffi.Pointer> buffer, + int len, + ) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + buffer, + len, + ); } /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// indexOfObject: int indexOfObject_(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal('NSOrderedSet.indexOfObject:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_1vd1c5m( - this.ref.pointer, _sel_indexOfObject_, object.ref.pointer); + this.ref.pointer, + _sel_indexOfObject_, + object.ref.pointer, + ); } /// init NSOrderedSet init() { - objc.checkOsVersionInternal('NSOrderedSet.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSOrderedSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithArray: NSOrderedSet initWithArray_(NSArray array) { - objc.checkOsVersionInternal('NSOrderedSet.initWithArray:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithArray_, array.ref.pointer); + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithArray:copyItems: NSOrderedSet initWithArray_copyItems_(NSArray set, bool flag) { - objc.checkOsVersionInternal('NSOrderedSet.initWithArray:copyItems:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, set.ref.pointer, flag); + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + set.ref.pointer, + flag, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithArray:range:copyItems: NSOrderedSet initWithArray_range_copyItems_( - NSArray set, NSRange range, bool flag) { - objc.checkOsVersionInternal('NSOrderedSet.initWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_w9bq5x(this.ref.retainAndReturnPointer(), - _sel_initWithArray_range_copyItems_, set.ref.pointer, range, flag); + NSArray set, + NSRange range, + bool flag, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_range_copyItems_, + set.ref.pointer, + range, + flag, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSOrderedSet? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSOrderedSet.castFromPointer(_ret, retain: false, release: true); @@ -8972,86 +12116,148 @@ class NSOrderedSet extends NSObject /// initWithObject: NSOrderedSet initWithObject_(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal('NSOrderedSet.initWithObject:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObject_, object.ref.pointer); + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_, + object.ref.pointer, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithObjects: NSOrderedSet initWithObjects_(objc.ObjCObjectBase firstObj) { - objc.checkOsVersionInternal('NSOrderedSet.initWithObjects:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, firstObj.ref.pointer); + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithObjects:count: NSOrderedSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - objc.checkOsVersionInternal('NSOrderedSet.initWithObjects:count:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_zmbtbd(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, objects, cnt); + ffi.Pointer> objects, + int cnt, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + cnt, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithOrderedSet: NSOrderedSet initWithOrderedSet_(NSOrderedSet set) { - objc.checkOsVersionInternal('NSOrderedSet.initWithOrderedSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_, set.ref.pointer); + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_, + set.ref.pointer, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithOrderedSet:copyItems: NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet set, bool flag) { - objc.checkOsVersionInternal('NSOrderedSet.initWithOrderedSet:copyItems:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_copyItems_, set.ref.pointer, flag); + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_copyItems_, + set.ref.pointer, + flag, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithOrderedSet:range:copyItems: NSOrderedSet initWithOrderedSet_range_copyItems_( - NSOrderedSet set, NSRange range, bool flag) { + NSOrderedSet set, + NSRange range, + bool flag, + ) { objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_w9bq5x(this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_range_copyItems_, set.ref.pointer, range, flag); + 'NSOrderedSet.initWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_range_copyItems_, + set.ref.pointer, + range, + flag, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithSet: NSOrderedSet initWithSet_(NSSet set) { - objc.checkOsVersionInternal('NSOrderedSet.initWithSet:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), _sel_initWithSet_, set.ref.pointer); + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set.ref.pointer, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// initWithSet:copyItems: NSOrderedSet initWithSet_copyItems_(NSSet set, bool flag) { - objc.checkOsVersionInternal('NSOrderedSet.initWithSet:copyItems:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, set.ref.pointer, flag); + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set.ref.pointer, + flag, + ); return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); } /// objectAtIndex: objc.ObjCObjectBase objectAtIndex_(int idx) { - objc.checkOsVersionInternal('NSOrderedSet.objectAtIndex:', - iOS: (false, (5, 0, 0)), macOS: (false, (10, 7, 0))); - final _ret = - _objc_msgSend_14hpxwa(this.ref.pointer, _sel_objectAtIndex_, idx); + objc.checkOsVersionInternal( + 'NSOrderedSet.objectAtIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_objectAtIndex_, + idx, + ); return objc.ObjCObjectBase(_ret, retain: true, release: true); } @@ -9073,55 +12279,85 @@ class NSOrderedSet extends NSObject /// NSOutputStream class NSOutputStream extends NSStream { - NSOutputStream._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSOutputStream._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSOutputStream] that points to the same underlying object as [other]. NSOutputStream.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSOutputStream] that wraps the given raw object pointer. - NSOutputStream.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSOutputStream.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSOutputStream]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSOutputStream); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOutputStream, + ); } /// outputStreamToBuffer:capacity: static NSOutputStream outputStreamToBuffer_capacity_( - ffi.Pointer buffer, int capacity) { - final _ret = _objc_msgSend_158ju31(_class_NSOutputStream, - _sel_outputStreamToBuffer_capacity_, buffer, capacity); + ffi.Pointer buffer, + int capacity, + ) { + final _ret = _objc_msgSend_158ju31( + _class_NSOutputStream, + _sel_outputStreamToBuffer_capacity_, + buffer, + capacity, + ); return NSOutputStream.castFromPointer(_ret, retain: true, release: true); } /// outputStreamToFileAtPath:append: static NSOutputStream outputStreamToFileAtPath_append_( - NSString path, bool shouldAppend) { - final _ret = _objc_msgSend_17amj0z(_class_NSOutputStream, - _sel_outputStreamToFileAtPath_append_, path.ref.pointer, shouldAppend); + NSString path, + bool shouldAppend, + ) { + final _ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamToFileAtPath_append_, + path.ref.pointer, + shouldAppend, + ); return NSOutputStream.castFromPointer(_ret, retain: true, release: true); } /// outputStreamToMemory static NSOutputStream outputStreamToMemory() { - final _ret = - _objc_msgSend_151sglz(_class_NSOutputStream, _sel_outputStreamToMemory); + final _ret = _objc_msgSend_151sglz( + _class_NSOutputStream, + _sel_outputStreamToMemory, + ); return NSOutputStream.castFromPointer(_ret, retain: true, release: true); } /// outputStreamWithURL:append: static NSOutputStream? outputStreamWithURL_append_( - NSURL url, bool shouldAppend) { - objc.checkOsVersionInternal('NSOutputStream.outputStreamWithURL:append:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - final _ret = _objc_msgSend_17amj0z(_class_NSOutputStream, - _sel_outputStreamWithURL_append_, url.ref.pointer, shouldAppend); + NSURL url, + bool shouldAppend, + ) { + objc.checkOsVersionInternal( + 'NSOutputStream.outputStreamWithURL:append:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamWithURL_append_, + url.ref.pointer, + shouldAppend, + ); return _ret.address == 0 ? null : NSOutputStream.castFromPointer(_ret, retain: true, release: true); @@ -9134,16 +12370,26 @@ class NSOutputStream extends NSStream { /// initToBuffer:capacity: NSOutputStream initToBuffer_capacity_( - ffi.Pointer buffer, int capacity) { - final _ret = _objc_msgSend_158ju31(this.ref.retainAndReturnPointer(), - _sel_initToBuffer_capacity_, buffer, capacity); + ffi.Pointer buffer, + int capacity, + ) { + final _ret = _objc_msgSend_158ju31( + this.ref.retainAndReturnPointer(), + _sel_initToBuffer_capacity_, + buffer, + capacity, + ); return NSOutputStream.castFromPointer(_ret, retain: false, release: true); } /// initToFileAtPath:append: NSOutputStream? initToFileAtPath_append_(NSString path, bool shouldAppend) { - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initToFileAtPath_append_, path.ref.pointer, shouldAppend); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initToFileAtPath_append_, + path.ref.pointer, + shouldAppend, + ); return _ret.address == 0 ? null : NSOutputStream.castFromPointer(_ret, retain: false, release: true); @@ -9152,16 +12398,25 @@ class NSOutputStream extends NSStream { /// initToMemory NSOutputStream initToMemory() { final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), _sel_initToMemory); + this.ref.retainAndReturnPointer(), + _sel_initToMemory, + ); return NSOutputStream.castFromPointer(_ret, retain: false, release: true); } /// initWithURL:append: NSOutputStream? initWithURL_append_(NSURL url, bool shouldAppend) { - objc.checkOsVersionInternal('NSOutputStream.initWithURL:append:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithURL_append_, url.ref.pointer, shouldAppend); + objc.checkOsVersionInternal( + 'NSOutputStream.initWithURL:append:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithURL_append_, + url.ref.pointer, + shouldAppend, + ); return _ret.address == 0 ? null : NSOutputStream.castFromPointer(_ret, retain: false, release: true); @@ -9170,7 +12425,11 @@ class NSOutputStream extends NSStream { /// write:maxLength: int write_maxLength_(ffi.Pointer buffer, int len) { return _objc_msgSend_11e9f5x( - this.ref.pointer, _sel_write_maxLength_, buffer, len); + this.ref.pointer, + _sel_write_maxLength_, + buffer, + len, + ); } } @@ -9184,46 +12443,60 @@ final class NSRange extends ffi.Struct { /// NSRunLoop class NSRunLoop extends objc.ObjCObjectBase { - NSRunLoop._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSRunLoop._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSRunLoop] that points to the same underlying object as [other]. NSRunLoop.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSRunLoop] that wraps the given raw object pointer. - NSRunLoop.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSRunLoop.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSRunLoop]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSRunLoop); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSRunLoop, + ); } } /// NSSecureCoding interface class NSSecureCoding extends objc.ObjCProtocolBase implements NSCoding { - NSSecureCoding._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSSecureCoding._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSSecureCoding] that points to the same underlying object as [other]. NSSecureCoding.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSSecureCoding] that wraps the given raw object pointer. - NSSecureCoding.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSSecureCoding.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSSecureCoding]. static bool conformsTo(objc.ObjCObjectBase obj) { return _objc_msgSend_e3qsqz( - obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSSecureCoding); + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSSecureCoding, + ); } /// Returns the [objc.Protocol] object for this protocol. @@ -9235,26 +12508,30 @@ interface class NSSecureCoding extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSSecureCoding implement( - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { + static NSSecureCoding implement({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); NSSecureCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); return NSSecureCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSSecureCoding protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { NSSecureCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); @@ -9266,17 +12543,21 @@ interface class NSSecureCoding extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSSecureCoding implementAsListener( - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { + static NSSecureCoding implementAsListener({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); - NSSecureCoding.encodeWithCoder_ - .implementAsListener(builder, encodeWithCoder_); + NSSecureCoding.encodeWithCoder_.implementAsListener( + builder, + encodeWithCoder_, + ); NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); return NSSecureCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSSecureCoding protocol to an existing @@ -9284,12 +12565,16 @@ interface class NSSecureCoding extends objc.ObjCProtocolBase /// be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener(objc.ObjCProtocolBuilder builder, - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { - NSSecureCoding.encodeWithCoder_ - .implementAsListener(builder, encodeWithCoder_); + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSSecureCoding.encodeWithCoder_.implementAsListener( + builder, + encodeWithCoder_, + ); NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); } @@ -9300,17 +12585,21 @@ interface class NSSecureCoding extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSSecureCoding implementAsBlocking( - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { + static NSSecureCoding implementAsBlocking({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); - NSSecureCoding.encodeWithCoder_ - .implementAsBlocking(builder, encodeWithCoder_); + NSSecureCoding.encodeWithCoder_.implementAsBlocking( + builder, + encodeWithCoder_, + ); NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); return NSSecureCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSSecureCoding protocol to an existing @@ -9318,12 +12607,16 @@ interface class NSSecureCoding extends objc.ObjCProtocolBase /// listeners will be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking(objc.ObjCProtocolBuilder builder, - {required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true}) { - NSSecureCoding.encodeWithCoder_ - .implementAsBlocking(builder, encodeWithCoder_); + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSSecureCoding.encodeWithCoder_.implementAsBlocking( + builder, + encodeWithCoder_, + ); NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); builder.addProtocol($protocol); } @@ -9331,72 +12624,93 @@ interface class NSSecureCoding extends objc.ObjCProtocolBase /// encodeWithCoder: static final encodeWithCoder_ = objc.ObjCProtocolListenableMethod( - _protocol_NSSecureCoding, - _sel_encodeWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSecureCoding, - _sel_encodeWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1)), - (void Function(NSCoder) func) => ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( - (ffi.Pointer _, NSCoder arg1) => func(arg1)), - (void Function(NSCoder) func) => ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( - (ffi.Pointer _, NSCoder arg1) => func(arg1)), - ); + _protocol_NSSecureCoding, + _sel_encodeWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSecureCoding, + _sel_encodeWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); /// initWithCoder: static final initWithCoder_ = objc.ObjCProtocolMethod( - _protocol_NSSecureCoding, - _sel_initWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>( - _ObjectiveCBindings_protocolTrampoline_xr62hr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSecureCoding, - _sel_initWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (Dartinstancetype? Function(NSCoder) func) => - ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1)), - ); + _protocol_NSSecureCoding, + _sel_initWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSecureCoding, + _sel_initWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (Dartinstancetype? Function(NSCoder) func) => + ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); } /// NSSet class NSSet extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - NSSet._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSSet] that points to the same underlying object as [other]. NSSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSSet] that wraps the given raw object pointer. - NSSet.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSSet]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSSet); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSSet, + ); } /// alloc @@ -9426,36 +12740,54 @@ class NSSet extends NSObject /// setWithArray: static NSSet setWithArray_(NSArray array) { final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, _sel_setWithArray_, array.ref.pointer); + _class_NSSet, + _sel_setWithArray_, + array.ref.pointer, + ); return NSSet.castFromPointer(_ret, retain: true, release: true); } /// setWithObject: static NSSet setWithObject_(objc.ObjCObjectBase object) { final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, _sel_setWithObject_, object.ref.pointer); + _class_NSSet, + _sel_setWithObject_, + object.ref.pointer, + ); return NSSet.castFromPointer(_ret, retain: true, release: true); } /// setWithObjects: static NSSet setWithObjects_(objc.ObjCObjectBase firstObj) { final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, _sel_setWithObjects_, firstObj.ref.pointer); + _class_NSSet, + _sel_setWithObjects_, + firstObj.ref.pointer, + ); return NSSet.castFromPointer(_ret, retain: true, release: true); } /// setWithObjects:count: static NSSet setWithObjects_count_( - ffi.Pointer> objects, int cnt) { + ffi.Pointer> objects, + int cnt, + ) { final _ret = _objc_msgSend_zmbtbd( - _class_NSSet, _sel_setWithObjects_count_, objects, cnt); + _class_NSSet, + _sel_setWithObjects_count_, + objects, + cnt, + ); return NSSet.castFromPointer(_ret, retain: true, release: true); } /// setWithSet: static NSSet setWithSet_(NSSet set) { - final _ret = - _objc_msgSend_1sotr3r(_class_NSSet, _sel_setWithSet_, set.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithSet_, + set.ref.pointer, + ); return NSSet.castFromPointer(_ret, retain: true, release: true); } @@ -9471,39 +12803,59 @@ class NSSet extends NSObject /// countByEnumeratingWithState:objects:count: int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { - return _objc_msgSend_1b5ysjl(this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, state, buffer, len); + ffi.Pointer state, + ffi.Pointer> buffer, + int len, + ) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + buffer, + len, + ); } /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// init NSSet init() { - objc.checkOsVersionInternal('NSSet.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSSet.castFromPointer(_ret, retain: false, release: true); } /// initWithArray: NSSet initWithArray_(NSArray array) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithArray_, array.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); return NSSet.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSSet? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSSet.castFromPointer(_ret, retain: false, release: true); @@ -9511,37 +12863,56 @@ class NSSet extends NSObject /// initWithObjects: NSSet initWithObjects_(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, firstObj.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); return NSSet.castFromPointer(_ret, retain: false, release: true); } /// initWithObjects:count: NSSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _objc_msgSend_zmbtbd(this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, objects, cnt); + ffi.Pointer> objects, + int cnt, + ) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + cnt, + ); return NSSet.castFromPointer(_ret, retain: false, release: true); } /// initWithSet: NSSet initWithSet_(NSSet set) { final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), _sel_initWithSet_, set.ref.pointer); + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set.ref.pointer, + ); return NSSet.castFromPointer(_ret, retain: false, release: true); } /// initWithSet:copyItems: NSSet initWithSet_copyItems_(NSSet set, bool flag) { - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, set.ref.pointer, flag); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set.ref.pointer, + flag, + ); return NSSet.castFromPointer(_ret, retain: false, release: true); } /// member: objc.ObjCObjectBase? member_(objc.ObjCObjectBase object) { final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_member_, object.ref.pointer); + this.ref.pointer, + _sel_member_, + object.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -9565,31 +12936,38 @@ enum NSSortOptions { const NSSortOptions(this.value); static NSSortOptions fromValue(int value) => switch (value) { - 1 => NSSortConcurrent, - 16 => NSSortStable, - _ => throw ArgumentError('Unknown value for NSSortOptions: $value'), - }; + 1 => NSSortConcurrent, + 16 => NSSortStable, + _ => throw ArgumentError('Unknown value for NSSortOptions: $value'), + }; } /// NSStream class NSStream extends NSObject { - NSStream._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSStream._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSStream] that points to the same underlying object as [other]. NSStream.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSStream] that wraps the given raw object pointer. - NSStream.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSStream.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSStream]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSStream); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSStream, + ); } /// alloc @@ -9600,8 +12978,11 @@ class NSStream extends NSObject { /// allocWithZone: static NSStream allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSStream, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSStream, + _sel_allocWithZone_, + zone, + ); return NSStream.castFromPointer(_ret, retain: false, release: true); } @@ -9632,10 +13013,15 @@ class NSStream extends NSObject { /// init NSStream init() { - objc.checkOsVersionInternal('NSStream.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSStream.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSStream.castFromPointer(_ret, retain: false, release: true); } @@ -9647,7 +13033,10 @@ class NSStream extends NSObject { /// propertyForKey: objc.ObjCObjectBase? propertyForKey_(NSString key) { final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_propertyForKey_, key.ref.pointer); + this.ref.pointer, + _sel_propertyForKey_, + key.ref.pointer, + ); return _ret.address == 0 ? null : objc.ObjCObjectBase(_ret, retain: true, release: true); @@ -9655,8 +13044,12 @@ class NSStream extends NSObject { /// removeFromRunLoop:forMode: void removeFromRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { - _objc_msgSend_pfv6jd(this.ref.pointer, _sel_removeFromRunLoop_forMode_, - aRunLoop.ref.pointer, mode.ref.pointer); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_removeFromRunLoop_forMode_, + aRunLoop.ref.pointer, + mode.ref.pointer, + ); } /// retain @@ -9667,8 +13060,12 @@ class NSStream extends NSObject { /// scheduleInRunLoop:forMode: void scheduleInRunLoop_forMode_(NSRunLoop aRunLoop, NSString mode) { - _objc_msgSend_pfv6jd(this.ref.pointer, _sel_scheduleInRunLoop_forMode_, - aRunLoop.ref.pointer, mode.ref.pointer); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_scheduleInRunLoop_forMode_, + aRunLoop.ref.pointer, + mode.ref.pointer, + ); } /// self @@ -9680,13 +13077,20 @@ class NSStream extends NSObject { /// setDelegate: set delegate(NSStreamDelegate? value) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setDelegate_, value?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_setDelegate_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// setProperty:forKey: bool setProperty_forKey_(objc.ObjCObjectBase? property, NSString key) { - return _objc_msgSend_1lsax7n(this.ref.pointer, _sel_setProperty_forKey_, - property?.ref.pointer ?? ffi.nullptr, key.ref.pointer); + return _objc_msgSend_1lsax7n( + this.ref.pointer, + _sel_setProperty_forKey_, + property?.ref.pointer ?? ffi.nullptr, + key.ref.pointer, + ); } /// streamError @@ -9710,23 +13114,30 @@ class NSStream extends NSObject { /// NSStreamDelegate interface class NSStreamDelegate extends objc.ObjCProtocolBase implements NSObjectProtocol { - NSStreamDelegate._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + NSStreamDelegate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [NSStreamDelegate] that points to the same underlying object as [other]. NSStreamDelegate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSStreamDelegate] that wraps the given raw object pointer. - NSStreamDelegate.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSStreamDelegate.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSStreamDelegate]. static bool conformsTo(objc.ObjCObjectBase obj) { return _objc_msgSend_e3qsqz( - obj.ref.pointer, _sel_conformsToProtocol_, _protocol_NSStreamDelegate); + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSStreamDelegate, + ); } /// Returns the [objc.Protocol] object for this protocol. @@ -9738,26 +13149,34 @@ interface class NSStreamDelegate extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSStreamDelegate implement( - {void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true}) { + static NSStreamDelegate implement({ + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); - NSStreamDelegate.stream_handleEvent_ - .implement(builder, stream_handleEvent_); + NSStreamDelegate.stream_handleEvent_.implement( + builder, + stream_handleEvent_, + ); builder.addProtocol($protocol); return NSStreamDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSStreamDelegate protocol to an existing /// [objc.ObjCProtocolBuilder]. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder(objc.ObjCProtocolBuilder builder, - {void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true}) { - NSStreamDelegate.stream_handleEvent_ - .implement(builder, stream_handleEvent_); + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + NSStreamDelegate.stream_handleEvent_.implement( + builder, + stream_handleEvent_, + ); builder.addProtocol($protocol); } @@ -9767,15 +13186,19 @@ interface class NSStreamDelegate extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSStreamDelegate implementAsListener( - {void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true}) { + static NSStreamDelegate implementAsListener({ + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); - NSStreamDelegate.stream_handleEvent_ - .implementAsListener(builder, stream_handleEvent_); + NSStreamDelegate.stream_handleEvent_.implementAsListener( + builder, + stream_handleEvent_, + ); builder.addProtocol($protocol); return NSStreamDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSStreamDelegate protocol to an existing @@ -9783,11 +13206,15 @@ interface class NSStreamDelegate extends objc.ObjCProtocolBase /// be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener(objc.ObjCProtocolBuilder builder, - {void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true}) { - NSStreamDelegate.stream_handleEvent_ - .implementAsListener(builder, stream_handleEvent_); + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + NSStreamDelegate.stream_handleEvent_.implementAsListener( + builder, + stream_handleEvent_, + ); builder.addProtocol($protocol); } @@ -9797,15 +13224,19 @@ interface class NSStreamDelegate extends objc.ObjCProtocolBase /// /// If `$keepIsolateAlive` is true, this protocol will keep this isolate /// alive until it is garbage collected by both Dart and ObjC. - static NSStreamDelegate implementAsBlocking( - {void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true}) { + static NSStreamDelegate implementAsBlocking({ + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); - NSStreamDelegate.stream_handleEvent_ - .implementAsBlocking(builder, stream_handleEvent_); + NSStreamDelegate.stream_handleEvent_.implementAsBlocking( + builder, + stream_handleEvent_, + ); builder.addProtocol($protocol); return NSStreamDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive)); + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); } /// Adds the implementation of the NSStreamDelegate protocol to an existing @@ -9813,47 +13244,56 @@ interface class NSStreamDelegate extends objc.ObjCProtocolBase /// listeners will be. /// /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking(objc.ObjCProtocolBuilder builder, - {void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true}) { - NSStreamDelegate.stream_handleEvent_ - .implementAsBlocking(builder, stream_handleEvent_); + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + NSStreamDelegate.stream_handleEvent_.implementAsBlocking( + builder, + stream_handleEvent_, + ); builder.addProtocol($protocol); } /// stream:handleEvent: static final stream_handleEvent_ = objc.ObjCProtocolListenableMethod( - _protocol_NSStreamDelegate, - _sel_stream_handleEvent_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>( - _ObjectiveCBindings_protocolTrampoline_hoampi) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSStreamDelegate, - _sel_stream_handleEvent_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSStream, NSStreamEvent) func) => - ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.fromFunction( - (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => - func(arg1, arg2)), - (void Function(NSStream, NSStreamEvent) func) => - ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.listener( - (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => - func(arg1, arg2)), - (void Function(NSStream, NSStreamEvent) func) => - ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.blocking( - (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => - func(arg1, arg2)), - ); + _protocol_NSStreamDelegate, + _sel_stream_handleEvent_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_hoampi) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSStreamDelegate, + _sel_stream_handleEvent_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSStream, NSStreamEvent) func) => + ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.fromFunction( + (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => + func(arg1, arg2), + ), + (void Function(NSStream, NSStreamEvent) func) => + ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.listener( + (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => + func(arg1, arg2), + ), + (void Function(NSStream, NSStreamEvent) func) => + ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.blocking( + (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => + func(arg1, arg2), + ), + ); } enum NSStreamEvent { @@ -9868,14 +13308,14 @@ enum NSStreamEvent { const NSStreamEvent(this.value); static NSStreamEvent fromValue(int value) => switch (value) { - 0 => NSStreamEventNone, - 1 => NSStreamEventOpenCompleted, - 2 => NSStreamEventHasBytesAvailable, - 4 => NSStreamEventHasSpaceAvailable, - 8 => NSStreamEventErrorOccurred, - 16 => NSStreamEventEndEncountered, - _ => throw ArgumentError('Unknown value for NSStreamEvent: $value'), - }; + 0 => NSStreamEventNone, + 1 => NSStreamEventOpenCompleted, + 2 => NSStreamEventHasBytesAvailable, + 4 => NSStreamEventHasSpaceAvailable, + 8 => NSStreamEventErrorOccurred, + 16 => NSStreamEventEndEncountered, + _ => throw ArgumentError('Unknown value for NSStreamEvent: $value'), + }; } enum NSStreamStatus { @@ -9892,16 +13332,16 @@ enum NSStreamStatus { const NSStreamStatus(this.value); static NSStreamStatus fromValue(int value) => switch (value) { - 0 => NSStreamStatusNotOpen, - 1 => NSStreamStatusOpening, - 2 => NSStreamStatusOpen, - 3 => NSStreamStatusReading, - 4 => NSStreamStatusWriting, - 5 => NSStreamStatusAtEnd, - 6 => NSStreamStatusClosed, - 7 => NSStreamStatusError, - _ => throw ArgumentError('Unknown value for NSStreamStatus: $value'), - }; + 0 => NSStreamStatusNotOpen, + 1 => NSStreamStatusOpening, + 2 => NSStreamStatusOpen, + 3 => NSStreamStatusReading, + 4 => NSStreamStatusWriting, + 5 => NSStreamStatusAtEnd, + 6 => NSStreamStatusClosed, + 7 => NSStreamStatusError, + _ => throw ArgumentError('Unknown value for NSStreamStatus: $value'), + }; } /// NSString @@ -9914,23 +13354,30 @@ class NSString extends NSObject return nsstr; } - NSString._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSString._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSString] that points to the same underlying object as [other]. NSString.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSString] that wraps the given raw object pointer. - NSString.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSString.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSString]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSString); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSString, + ); } /// alloc @@ -9941,34 +13388,43 @@ class NSString extends NSObject /// allocWithZone: static NSString allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSString, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSString, + _sel_allocWithZone_, + zone, + ); return NSString.castFromPointer(_ret, retain: false, release: true); } /// localizedStringWithFormat: static NSString localizedStringWithFormat_(NSString format) { final _ret = _objc_msgSend_1sotr3r( - _class_NSString, _sel_localizedStringWithFormat_, format.ref.pointer); + _class_NSString, + _sel_localizedStringWithFormat_, + format.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: static NSString? - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - NSString format, - NSString validFormatSpecifiers, - ffi.Pointer> error) { - objc.checkOsVersionInternal( - 'NSString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error); + _class_NSString, + _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -9982,19 +13438,22 @@ class NSString extends NSObject /// objectWithItemProviderData:typeIdentifier:error: static NSString? objectWithItemProviderData_typeIdentifier_error_( - NSData data, - NSString typeIdentifier, - ffi.Pointer> outError) { + NSData data, + NSString typeIdentifier, + ffi.Pointer> outError, + ) { objc.checkOsVersionInternal( - 'NSString.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSString.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - outError); + _class_NSString, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + outError, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -10008,9 +13467,15 @@ class NSString extends NSObject /// stringWithCString:encoding: static NSString? stringWithCString_encoding_( - ffi.Pointer cString, int enc) { + ffi.Pointer cString, + int enc, + ) { final _ret = _objc_msgSend_erqryg( - _class_NSString, _sel_stringWithCString_encoding_, cString, enc); + _class_NSString, + _sel_stringWithCString_encoding_, + cString, + enc, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -10018,21 +13483,31 @@ class NSString extends NSObject /// stringWithCharacters:length: static NSString stringWithCharacters_length_( - ffi.Pointer characters, int length) { + ffi.Pointer characters, + int length, + ) { final _ret = _objc_msgSend_9x4k8x( - _class_NSString, _sel_stringWithCharacters_length_, characters, length); + _class_NSString, + _sel_stringWithCharacters_length_, + characters, + length, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// stringWithContentsOfFile:encoding:error: static NSString? stringWithContentsOfFile_encoding_error_( - NSString path, int enc, ffi.Pointer> error) { + NSString path, + int enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1nomli1( - _class_NSString, - _sel_stringWithContentsOfFile_encoding_error_, - path.ref.pointer, - enc, - error); + _class_NSString, + _sel_stringWithContentsOfFile_encoding_error_, + path.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -10040,15 +13515,17 @@ class NSString extends NSObject /// stringWithContentsOfFile:usedEncoding:error: static NSString? stringWithContentsOfFile_usedEncoding_error_( - NSString path, - ffi.Pointer enc, - ffi.Pointer> error) { + NSString path, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1alewu7( - _class_NSString, - _sel_stringWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - enc, - error); + _class_NSString, + _sel_stringWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -10056,13 +13533,17 @@ class NSString extends NSObject /// stringWithContentsOfURL:encoding:error: static NSString? stringWithContentsOfURL_encoding_error_( - NSURL url, int enc, ffi.Pointer> error) { + NSURL url, + int enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1nomli1( - _class_NSString, - _sel_stringWithContentsOfURL_encoding_error_, - url.ref.pointer, - enc, - error); + _class_NSString, + _sel_stringWithContentsOfURL_encoding_error_, + url.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -10070,15 +13551,17 @@ class NSString extends NSObject /// stringWithContentsOfURL:usedEncoding:error: static NSString? stringWithContentsOfURL_usedEncoding_error_( - NSURL url, - ffi.Pointer enc, - ffi.Pointer> error) { + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1alewu7( - _class_NSString, - _sel_stringWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - enc, - error); + _class_NSString, + _sel_stringWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -10087,22 +13570,32 @@ class NSString extends NSObject /// stringWithFormat: static NSString stringWithFormat_(NSString format) { final _ret = _objc_msgSend_1sotr3r( - _class_NSString, _sel_stringWithFormat_, format.ref.pointer); + _class_NSString, + _sel_stringWithFormat_, + format.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// stringWithString: static NSString stringWithString_(NSString string) { final _ret = _objc_msgSend_1sotr3r( - _class_NSString, _sel_stringWithString_, string.ref.pointer); + _class_NSString, + _sel_stringWithString_, + string.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// stringWithUTF8String: static NSString? stringWithUTF8String_( - ffi.Pointer nullTerminatedCString) { + ffi.Pointer nullTerminatedCString, + ) { final _ret = _objc_msgSend_56zxyn( - _class_NSString, _sel_stringWithUTF8String_, nullTerminatedCString); + _class_NSString, + _sel_stringWithUTF8String_, + nullTerminatedCString, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -10110,19 +13603,22 @@ class NSString extends NSObject /// stringWithValidatedFormat:validFormatSpecifiers:error: static NSString? stringWithValidatedFormat_validFormatSpecifiers_error_( - NSString format, - NSString validFormatSpecifiers, - ffi.Pointer> error) { + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error, + ) { objc.checkOsVersionInternal( - 'NSString.stringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSString.stringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error); + _class_NSString, + _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -10142,29 +13638,48 @@ class NSString extends NSObject /// characterAtIndex: int characterAtIndex_(int index) { return _objc_msgSend_1deg8x( - this.ref.pointer, _sel_characterAtIndex_, index); + this.ref.pointer, + _sel_characterAtIndex_, + index, + ); } /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// init NSString init() { - objc.checkOsVersionInternal('NSString.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSString.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSString.castFromPointer(_ret, retain: false, release: true); } /// initWithBytes:length:encoding: NSString? initWithBytes_length_encoding_( - ffi.Pointer bytes, int len, int encoding) { - final _ret = _objc_msgSend_9b3h4v(this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_encoding_, bytes, len, encoding); + ffi.Pointer bytes, + int len, + int encoding, + ) { + final _ret = _objc_msgSend_9b3h4v( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_encoding_, + bytes, + len, + encoding, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10172,14 +13687,19 @@ class NSString extends NSObject /// initWithBytesNoCopy:length:encoding:freeWhenDone: NSString? initWithBytesNoCopy_length_encoding_freeWhenDone_( - ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + ffi.Pointer bytes, + int len, + int encoding, + bool freeBuffer, + ) { final _ret = _objc_msgSend_k4j8m3( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, - bytes, - len, - encoding, - freeBuffer); + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, + bytes, + len, + encoding, + freeBuffer, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10187,9 +13707,15 @@ class NSString extends NSObject /// initWithCString:encoding: NSString? initWithCString_encoding_( - ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _objc_msgSend_erqryg(this.ref.retainAndReturnPointer(), - _sel_initWithCString_encoding_, nullTerminatedCString, encoding); + ffi.Pointer nullTerminatedCString, + int encoding, + ) { + final _ret = _objc_msgSend_erqryg( + this.ref.retainAndReturnPointer(), + _sel_initWithCString_encoding_, + nullTerminatedCString, + encoding, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10197,28 +13723,41 @@ class NSString extends NSObject /// initWithCharacters:length: NSString initWithCharacters_length_( - ffi.Pointer characters, int length) { - final _ret = _objc_msgSend_9x4k8x(this.ref.retainAndReturnPointer(), - _sel_initWithCharacters_length_, characters, length); + ffi.Pointer characters, + int length, + ) { + final _ret = _objc_msgSend_9x4k8x( + this.ref.retainAndReturnPointer(), + _sel_initWithCharacters_length_, + characters, + length, + ); return NSString.castFromPointer(_ret, retain: false, release: true); } /// initWithCharactersNoCopy:length:freeWhenDone: NSString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { + ffi.Pointer characters, + int length, + bool freeBuffer, + ) { final _ret = _objc_msgSend_lh0jh5( - this.ref.retainAndReturnPointer(), - _sel_initWithCharactersNoCopy_length_freeWhenDone_, - characters, - length, - freeBuffer); + this.ref.retainAndReturnPointer(), + _sel_initWithCharactersNoCopy_length_freeWhenDone_, + characters, + length, + freeBuffer, + ); return NSString.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSString? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10226,13 +13765,17 @@ class NSString extends NSObject /// initWithContentsOfFile:encoding:error: NSString? initWithContentsOfFile_encoding_error_( - NSString path, int enc, ffi.Pointer> error) { + NSString path, + int enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_encoding_error_, - path.ref.pointer, - enc, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_encoding_error_, + path.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10240,15 +13783,17 @@ class NSString extends NSObject /// initWithContentsOfFile:usedEncoding:error: NSString? initWithContentsOfFile_usedEncoding_error_( - NSString path, - ffi.Pointer enc, - ffi.Pointer> error) { + NSString path, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - enc, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10256,13 +13801,17 @@ class NSString extends NSObject /// initWithContentsOfURL:encoding:error: NSString? initWithContentsOfURL_encoding_error_( - NSURL url, int enc, ffi.Pointer> error) { + NSURL url, + int enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_encoding_error_, - url.ref.pointer, - enc, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_encoding_error_, + url.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10270,15 +13819,17 @@ class NSString extends NSObject /// initWithContentsOfURL:usedEncoding:error: NSString? initWithContentsOfURL_usedEncoding_error_( - NSURL url, - ffi.Pointer enc, - ffi.Pointer> error) { + NSURL url, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - enc, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + enc, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10286,8 +13837,12 @@ class NSString extends NSObject /// initWithData:encoding: NSString? initWithData_encoding_(NSData data, int encoding) { - final _ret = _objc_msgSend_1k4kd9s(this.ref.retainAndReturnPointer(), - _sel_initWithData_encoding_, data.ref.pointer, encoding); + final _ret = _objc_msgSend_1k4kd9s( + this.ref.retainAndReturnPointer(), + _sel_initWithData_encoding_, + data.ref.pointer, + encoding, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10295,33 +13850,45 @@ class NSString extends NSObject /// initWithFormat: NSString initWithFormat_(NSString format) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithFormat_, format.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_, + format.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: false, release: true); } /// initWithFormat:locale: NSString initWithFormat_locale_( - NSString format, objc.ObjCObjectBase? locale) { + NSString format, + objc.ObjCObjectBase? locale, + ) { final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithFormat_locale_, - format.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_locale_, + format.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: false, release: true); } /// initWithString: NSString initWithString_(NSString aString) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithString_, aString.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithString_, + aString.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: false, release: true); } /// initWithUTF8String: NSString? initWithUTF8String_(ffi.Pointer nullTerminatedCString) { - final _ret = _objc_msgSend_56zxyn(this.ref.retainAndReturnPointer(), - _sel_initWithUTF8String_, nullTerminatedCString); + final _ret = _objc_msgSend_56zxyn( + this.ref.retainAndReturnPointer(), + _sel_initWithUTF8String_, + nullTerminatedCString, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10332,19 +13899,22 @@ class NSString extends NSObject /// iOS: introduced 16.0.0 /// macOS: introduced 13.0.0 NSString? initWithValidatedFormat_validFormatSpecifiers_error_( - NSString format, - NSString validFormatSpecifiers, - ffi.Pointer> error) { + NSString format, + NSString validFormatSpecifiers, + ffi.Pointer> error, + ) { objc.checkOsVersionInternal( - 'NSString.initWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0))); + 'NSString.initWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10355,21 +13925,24 @@ class NSString extends NSObject /// iOS: introduced 16.0.0 /// macOS: introduced 13.0.0 NSString? initWithValidatedFormat_validFormatSpecifiers_locale_error_( - NSString format, - NSString validFormatSpecifiers, - objc.ObjCObjectBase? locale, - ffi.Pointer> error) { - objc.checkOsVersionInternal( - 'NSString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0))); + NSString format, + NSString validFormatSpecifiers, + objc.ObjCObjectBase? locale, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); final _ret = _objc_msgSend_1k0ezzm( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr, - error); + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + error, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: false, release: true); @@ -10408,18 +13981,19 @@ enum NSStringCompareOptions { const NSStringCompareOptions(this.value); static NSStringCompareOptions fromValue(int value) => switch (value) { - 1 => NSCaseInsensitiveSearch, - 2 => NSLiteralSearch, - 4 => NSBackwardsSearch, - 8 => NSAnchoredSearch, - 64 => NSNumericSearch, - 128 => NSDiacriticInsensitiveSearch, - 256 => NSWidthInsensitiveSearch, - 512 => NSForcedOrderingSearch, - 1024 => NSRegularExpressionSearch, - _ => throw ArgumentError( - 'Unknown value for NSStringCompareOptions: $value'), - }; + 1 => NSCaseInsensitiveSearch, + 2 => NSLiteralSearch, + 4 => NSBackwardsSearch, + 8 => NSAnchoredSearch, + 64 => NSNumericSearch, + 128 => NSDiacriticInsensitiveSearch, + 256 => NSWidthInsensitiveSearch, + 512 => NSForcedOrderingSearch, + 1024 => NSRegularExpressionSearch, + _ => throw ArgumentError( + 'Unknown value for NSStringCompareOptions: $value', + ), + }; } enum NSStringEncodingConversionOptions { @@ -10434,7 +14008,8 @@ enum NSStringEncodingConversionOptions { 1 => NSStringEncodingConversionAllowLossy, 2 => NSStringEncodingConversionExternalRepresentation, _ => throw ArgumentError( - 'Unknown value for NSStringEncodingConversionOptions: $value'), + 'Unknown value for NSStringEncodingConversionOptions: $value', + ), }; } @@ -10454,19 +14029,20 @@ enum NSStringEnumerationOptions { const NSStringEnumerationOptions(this.value); static NSStringEnumerationOptions fromValue(int value) => switch (value) { - 0 => NSStringEnumerationByLines, - 1 => NSStringEnumerationByParagraphs, - 2 => NSStringEnumerationByComposedCharacterSequences, - 3 => NSStringEnumerationByWords, - 4 => NSStringEnumerationBySentences, - 5 => NSStringEnumerationByCaretPositions, - 6 => NSStringEnumerationByDeletionClusters, - 256 => NSStringEnumerationReverse, - 512 => NSStringEnumerationSubstringNotRequired, - 1024 => NSStringEnumerationLocalized, - _ => throw ArgumentError( - 'Unknown value for NSStringEnumerationOptions: $value'), - }; + 0 => NSStringEnumerationByLines, + 1 => NSStringEnumerationByParagraphs, + 2 => NSStringEnumerationByComposedCharacterSequences, + 3 => NSStringEnumerationByWords, + 4 => NSStringEnumerationBySentences, + 5 => NSStringEnumerationByCaretPositions, + 6 => NSStringEnumerationByDeletionClusters, + 256 => NSStringEnumerationReverse, + 512 => NSStringEnumerationSubstringNotRequired, + 1024 => NSStringEnumerationLocalized, + _ => throw ArgumentError( + 'Unknown value for NSStringEnumerationOptions: $value', + ), + }; } /// NSStringExtensionMethods @@ -10474,7 +14050,9 @@ extension NSStringExtensionMethods on NSString { /// availableStringEncodings static ffi.Pointer getAvailableStringEncodings() { return _objc_msgSend_1h2q612( - _class_NSString, _sel_availableStringEncodings); + _class_NSString, + _sel_availableStringEncodings, + ); } /// defaultCStringEncoding @@ -10485,7 +14063,10 @@ extension NSStringExtensionMethods on NSString { /// localizedNameOfStringEncoding: static NSString localizedNameOfStringEncoding_(int encoding) { final _ret = _objc_msgSend_14hpxwa( - _class_NSString, _sel_localizedNameOfStringEncoding_, encoding); + _class_NSString, + _sel_localizedNameOfStringEncoding_, + encoding, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } @@ -10496,127 +14077,184 @@ extension NSStringExtensionMethods on NSString { /// boolValue bool get boolValue { - objc.checkOsVersionInternal('NSString.boolValue', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSString.boolValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_boolValue); } /// cStringUsingEncoding: ffi.Pointer cStringUsingEncoding_(int encoding) { return _objc_msgSend_1jtxufi( - this.ref.pointer, _sel_cStringUsingEncoding_, encoding); + this.ref.pointer, + _sel_cStringUsingEncoding_, + encoding, + ); } /// canBeConvertedToEncoding: bool canBeConvertedToEncoding_(int encoding) { return _objc_msgSend_6peh6o( - this.ref.pointer, _sel_canBeConvertedToEncoding_, encoding); + this.ref.pointer, + _sel_canBeConvertedToEncoding_, + encoding, + ); } /// capitalizedString NSString get capitalizedString { - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_capitalizedString); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_capitalizedString, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// capitalizedStringWithLocale: NSString capitalizedStringWithLocale_(NSLocale? locale) { - objc.checkOsVersionInternal('NSString.capitalizedStringWithLocale:', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_capitalizedStringWithLocale_, locale?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSString.capitalizedStringWithLocale:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_capitalizedStringWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// caseInsensitiveCompare: NSComparisonResult caseInsensitiveCompare_(NSString string) { final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, _sel_caseInsensitiveCompare_, string.ref.pointer); + this.ref.pointer, + _sel_caseInsensitiveCompare_, + string.ref.pointer, + ); return NSComparisonResult.fromValue(_ret); } /// commonPrefixWithString:options: NSString commonPrefixWithString_options_( - NSString str, NSStringCompareOptions mask) { - final _ret = _objc_msgSend_diypgk(this.ref.pointer, - _sel_commonPrefixWithString_options_, str.ref.pointer, mask.value); + NSString str, + NSStringCompareOptions mask, + ) { + final _ret = _objc_msgSend_diypgk( + this.ref.pointer, + _sel_commonPrefixWithString_options_, + str.ref.pointer, + mask.value, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// compare: NSComparisonResult compare_(NSString string) { final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, _sel_compare_, string.ref.pointer); + this.ref.pointer, + _sel_compare_, + string.ref.pointer, + ); return NSComparisonResult.fromValue(_ret); } /// compare:options: NSComparisonResult compare_options_( - NSString string, NSStringCompareOptions mask) { - final _ret = _objc_msgSend_pg1fnv(this.ref.pointer, _sel_compare_options_, - string.ref.pointer, mask.value); + NSString string, + NSStringCompareOptions mask, + ) { + final _ret = _objc_msgSend_pg1fnv( + this.ref.pointer, + _sel_compare_options_, + string.ref.pointer, + mask.value, + ); return NSComparisonResult.fromValue(_ret); } /// compare:options:range: - NSComparisonResult compare_options_range_(NSString string, - NSStringCompareOptions mask, NSRange rangeOfReceiverToCompare) { + NSComparisonResult compare_options_range_( + NSString string, + NSStringCompareOptions mask, + NSRange rangeOfReceiverToCompare, + ) { final _ret = _objc_msgSend_xrqic1( - this.ref.pointer, - _sel_compare_options_range_, - string.ref.pointer, - mask.value, - rangeOfReceiverToCompare); + this.ref.pointer, + _sel_compare_options_range_, + string.ref.pointer, + mask.value, + rangeOfReceiverToCompare, + ); return NSComparisonResult.fromValue(_ret); } /// compare:options:range:locale: NSComparisonResult compare_options_range_locale_( - NSString string, - NSStringCompareOptions mask, - NSRange rangeOfReceiverToCompare, - objc.ObjCObjectBase? locale) { + NSString string, + NSStringCompareOptions mask, + NSRange rangeOfReceiverToCompare, + objc.ObjCObjectBase? locale, + ) { final _ret = _objc_msgSend_1895u4n( - this.ref.pointer, - _sel_compare_options_range_locale_, - string.ref.pointer, - mask.value, - rangeOfReceiverToCompare, - locale?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_compare_options_range_locale_, + string.ref.pointer, + mask.value, + rangeOfReceiverToCompare, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSComparisonResult.fromValue(_ret); } /// componentsSeparatedByCharactersInSet: NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet separator) { objc.checkOsVersionInternal( - 'NSString.componentsSeparatedByCharactersInSet:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_componentsSeparatedByCharactersInSet_, separator.ref.pointer); + 'NSString.componentsSeparatedByCharactersInSet:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_componentsSeparatedByCharactersInSet_, + separator.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// componentsSeparatedByString: NSArray componentsSeparatedByString_(NSString separator) { - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_componentsSeparatedByString_, separator.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_componentsSeparatedByString_, + separator.ref.pointer, + ); return NSArray.castFromPointer(_ret, retain: true, release: true); } /// containsString: bool containsString_(NSString str) { - objc.checkOsVersionInternal('NSString.containsString:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSString.containsString:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_containsString_, str.ref.pointer); + this.ref.pointer, + _sel_containsString_, + str.ref.pointer, + ); } /// dataUsingEncoding: NSData? dataUsingEncoding_(int encoding) { final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, _sel_dataUsingEncoding_, encoding); + this.ref.pointer, + _sel_dataUsingEncoding_, + encoding, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: true, release: true); @@ -10624,8 +14262,12 @@ extension NSStringExtensionMethods on NSString { /// dataUsingEncoding:allowLossyConversion: NSData? dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { - final _ret = _objc_msgSend_hiwitm(this.ref.pointer, - _sel_dataUsingEncoding_allowLossyConversion_, encoding, lossy); + final _ret = _objc_msgSend_hiwitm( + this.ref.pointer, + _sel_dataUsingEncoding_allowLossyConversion_, + encoding, + lossy, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: true, release: true); @@ -10634,14 +14276,18 @@ extension NSStringExtensionMethods on NSString { /// decomposedStringWithCanonicalMapping NSString get decomposedStringWithCanonicalMapping { final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_decomposedStringWithCanonicalMapping); + this.ref.pointer, + _sel_decomposedStringWithCanonicalMapping, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// decomposedStringWithCompatibilityMapping NSString get decomposedStringWithCompatibilityMapping { final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_decomposedStringWithCompatibilityMapping); + this.ref.pointer, + _sel_decomposedStringWithCompatibilityMapping, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } @@ -10672,79 +14318,105 @@ extension NSStringExtensionMethods on NSString { /// getBytes:maxLength:usedLength:encoding:options:range:remainingRange: bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( - ffi.Pointer buffer, - int maxBufferCount, - ffi.Pointer usedBufferCount, - int encoding, - NSStringEncodingConversionOptions options, - NSRange range, - ffi.Pointer leftover) { + ffi.Pointer buffer, + int maxBufferCount, + ffi.Pointer usedBufferCount, + int encoding, + NSStringEncodingConversionOptions options, + NSRange range, + ffi.Pointer leftover, + ) { return _objc_msgSend_i30zh3( - this.ref.pointer, - _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_, - buffer, - maxBufferCount, - usedBufferCount, - encoding, - options.value, - range, - leftover); + this.ref.pointer, + _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_, + buffer, + maxBufferCount, + usedBufferCount, + encoding, + options.value, + range, + leftover, + ); } /// getCString:maxLength:encoding: bool getCString_maxLength_encoding_( - ffi.Pointer buffer, int maxBufferCount, int encoding) { - return _objc_msgSend_1lv8yz3(this.ref.pointer, - _sel_getCString_maxLength_encoding_, buffer, maxBufferCount, encoding); + ffi.Pointer buffer, + int maxBufferCount, + int encoding, + ) { + return _objc_msgSend_1lv8yz3( + this.ref.pointer, + _sel_getCString_maxLength_encoding_, + buffer, + maxBufferCount, + encoding, + ); } /// getCharacters:range: void getCharacters_range_( - ffi.Pointer buffer, NSRange range) { + ffi.Pointer buffer, + NSRange range, + ) { _objc_msgSend_898fog( - this.ref.pointer, _sel_getCharacters_range_, buffer, range); + this.ref.pointer, + _sel_getCharacters_range_, + buffer, + range, + ); } /// getLineStart:end:contentsEnd:forRange: void getLineStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range) { + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + NSRange range, + ) { _objc_msgSend_ourvf2( - this.ref.pointer, - _sel_getLineStart_end_contentsEnd_forRange_, - startPtr, - lineEndPtr, - contentsEndPtr, - range); + this.ref.pointer, + _sel_getLineStart_end_contentsEnd_forRange_, + startPtr, + lineEndPtr, + contentsEndPtr, + range, + ); } /// getParagraphStart:end:contentsEnd:forRange: void getParagraphStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer parEndPtr, - ffi.Pointer contentsEndPtr, - NSRange range) { + ffi.Pointer startPtr, + ffi.Pointer parEndPtr, + ffi.Pointer contentsEndPtr, + NSRange range, + ) { _objc_msgSend_ourvf2( - this.ref.pointer, - _sel_getParagraphStart_end_contentsEnd_forRange_, - startPtr, - parEndPtr, - contentsEndPtr, - range); + this.ref.pointer, + _sel_getParagraphStart_end_contentsEnd_forRange_, + startPtr, + parEndPtr, + contentsEndPtr, + range, + ); } /// hasPrefix: bool hasPrefix_(NSString str) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_hasPrefix_, str.ref.pointer); + this.ref.pointer, + _sel_hasPrefix_, + str.ref.pointer, + ); } /// hasSuffix: bool hasSuffix_(NSString str) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_hasSuffix_, str.ref.pointer); + this.ref.pointer, + _sel_hasSuffix_, + str.ref.pointer, + ); } /// hash @@ -10759,21 +14431,30 @@ extension NSStringExtensionMethods on NSString { /// integerValue int get integerValue { - objc.checkOsVersionInternal('NSString.integerValue', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSString.integerValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_integerValue); } /// isEqualToString: bool isEqualToString_(NSString aString) { return _objc_msgSend_19nvye5( - this.ref.pointer, _sel_isEqualToString_, aString.ref.pointer); + this.ref.pointer, + _sel_isEqualToString_, + aString.ref.pointer, + ); } /// lengthOfBytesUsingEncoding: int lengthOfBytesUsingEncoding_(int enc) { return _objc_msgSend_12py2ux( - this.ref.pointer, _sel_lengthOfBytesUsingEncoding_, enc); + this.ref.pointer, + _sel_lengthOfBytesUsingEncoding_, + enc, + ); } /// lineRangeForRange: @@ -10781,103 +14462,162 @@ extension NSStringExtensionMethods on NSString { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_uimyc7Stret( - _ptr, this.ref.pointer, _sel_lineRangeForRange_, range) + _ptr, + this.ref.pointer, + _sel_lineRangeForRange_, + range, + ) : _ptr.ref = _objc_msgSend_uimyc7( - this.ref.pointer, _sel_lineRangeForRange_, range); + this.ref.pointer, + _sel_lineRangeForRange_, + range, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// localizedCapitalizedString NSString get localizedCapitalizedString { - objc.checkOsVersionInternal('NSString.localizedCapitalizedString', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); + objc.checkOsVersionInternal( + 'NSString.localizedCapitalizedString', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_localizedCapitalizedString); + this.ref.pointer, + _sel_localizedCapitalizedString, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// localizedCaseInsensitiveCompare: NSComparisonResult localizedCaseInsensitiveCompare_(NSString string) { - final _ret = _objc_msgSend_1ym6zyw(this.ref.pointer, - _sel_localizedCaseInsensitiveCompare_, string.ref.pointer); + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_localizedCaseInsensitiveCompare_, + string.ref.pointer, + ); return NSComparisonResult.fromValue(_ret); } /// localizedCaseInsensitiveContainsString: bool localizedCaseInsensitiveContainsString_(NSString str) { objc.checkOsVersionInternal( - 'NSString.localizedCaseInsensitiveContainsString:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); - return _objc_msgSend_19nvye5(this.ref.pointer, - _sel_localizedCaseInsensitiveContainsString_, str.ref.pointer); + 'NSString.localizedCaseInsensitiveContainsString:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_localizedCaseInsensitiveContainsString_, + str.ref.pointer, + ); } /// localizedCompare: NSComparisonResult localizedCompare_(NSString string) { final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, _sel_localizedCompare_, string.ref.pointer); + this.ref.pointer, + _sel_localizedCompare_, + string.ref.pointer, + ); return NSComparisonResult.fromValue(_ret); } /// localizedLowercaseString NSString get localizedLowercaseString { - objc.checkOsVersionInternal('NSString.localizedLowercaseString', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_localizedLowercaseString); + objc.checkOsVersionInternal( + 'NSString.localizedLowercaseString', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedLowercaseString, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// localizedStandardCompare: NSComparisonResult localizedStandardCompare_(NSString string) { - objc.checkOsVersionInternal('NSString.localizedStandardCompare:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSString.localizedStandardCompare:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, _sel_localizedStandardCompare_, string.ref.pointer); + this.ref.pointer, + _sel_localizedStandardCompare_, + string.ref.pointer, + ); return NSComparisonResult.fromValue(_ret); } /// localizedStandardContainsString: bool localizedStandardContainsString_(NSString str) { - objc.checkOsVersionInternal('NSString.localizedStandardContainsString:', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); - return _objc_msgSend_19nvye5(this.ref.pointer, - _sel_localizedStandardContainsString_, str.ref.pointer); + objc.checkOsVersionInternal( + 'NSString.localizedStandardContainsString:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_localizedStandardContainsString_, + str.ref.pointer, + ); } /// localizedStandardRangeOfString: NSRange localizedStandardRangeOfString_(NSString str) { - objc.checkOsVersionInternal('NSString.localizedStandardRangeOfString:', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); + objc.checkOsVersionInternal( + 'NSString.localizedStandardRangeOfString:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret(_ptr, this.ref.pointer, - _sel_localizedStandardRangeOfString_, str.ref.pointer) - : _ptr.ref = _objc_msgSend_182fzon(this.ref.pointer, - _sel_localizedStandardRangeOfString_, str.ref.pointer); + ? _objc_msgSend_182fzonStret( + _ptr, + this.ref.pointer, + _sel_localizedStandardRangeOfString_, + str.ref.pointer, + ) + : _ptr.ref = _objc_msgSend_182fzon( + this.ref.pointer, + _sel_localizedStandardRangeOfString_, + str.ref.pointer, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// localizedUppercaseString NSString get localizedUppercaseString { - objc.checkOsVersionInternal('NSString.localizedUppercaseString', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_localizedUppercaseString); + objc.checkOsVersionInternal( + 'NSString.localizedUppercaseString', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedUppercaseString, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// longLongValue int get longLongValue { - objc.checkOsVersionInternal('NSString.longLongValue', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSString.longLongValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_1k101e3(this.ref.pointer, _sel_longLongValue); } @@ -10889,17 +14629,26 @@ extension NSStringExtensionMethods on NSString { /// lowercaseStringWithLocale: NSString lowercaseStringWithLocale_(NSLocale? locale) { - objc.checkOsVersionInternal('NSString.lowercaseStringWithLocale:', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_lowercaseStringWithLocale_, locale?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSString.lowercaseStringWithLocale:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_lowercaseStringWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// maximumLengthOfBytesUsingEncoding: int maximumLengthOfBytesUsingEncoding_(int enc) { return _objc_msgSend_12py2ux( - this.ref.pointer, _sel_maximumLengthOfBytesUsingEncoding_, enc); + this.ref.pointer, + _sel_maximumLengthOfBytesUsingEncoding_, + enc, + ); } /// paragraphRangeForRange: @@ -10907,26 +14656,38 @@ extension NSStringExtensionMethods on NSString { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_uimyc7Stret( - _ptr, this.ref.pointer, _sel_paragraphRangeForRange_, range) + _ptr, + this.ref.pointer, + _sel_paragraphRangeForRange_, + range, + ) : _ptr.ref = _objc_msgSend_uimyc7( - this.ref.pointer, _sel_paragraphRangeForRange_, range); + this.ref.pointer, + _sel_paragraphRangeForRange_, + range, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// precomposedStringWithCanonicalMapping NSString get precomposedStringWithCanonicalMapping { final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_precomposedStringWithCanonicalMapping); + this.ref.pointer, + _sel_precomposedStringWithCanonicalMapping, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// precomposedStringWithCompatibilityMapping NSString get precomposedStringWithCompatibilityMapping { final _ret = _objc_msgSend_151sglz( - this.ref.pointer, _sel_precomposedStringWithCompatibilityMapping); + this.ref.pointer, + _sel_precomposedStringWithCompatibilityMapping, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } @@ -10934,19 +14695,29 @@ extension NSStringExtensionMethods on NSString { NSRange rangeOfCharacterFromSet_(NSCharacterSet searchSet) { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret(_ptr, this.ref.pointer, - _sel_rangeOfCharacterFromSet_, searchSet.ref.pointer) - : _ptr.ref = _objc_msgSend_182fzon(this.ref.pointer, - _sel_rangeOfCharacterFromSet_, searchSet.ref.pointer); + ? _objc_msgSend_182fzonStret( + _ptr, + this.ref.pointer, + _sel_rangeOfCharacterFromSet_, + searchSet.ref.pointer, + ) + : _ptr.ref = _objc_msgSend_182fzon( + this.ref.pointer, + _sel_rangeOfCharacterFromSet_, + searchSet.ref.pointer, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// rangeOfCharacterFromSet:options: NSRange rangeOfCharacterFromSet_options_( - NSCharacterSet searchSet, NSStringCompareOptions mask) { + NSCharacterSet searchSet, + NSStringCompareOptions mask, + ) { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_102xxo4Stret( @@ -10954,21 +14725,27 @@ extension NSStringExtensionMethods on NSString { this.ref.pointer, _sel_rangeOfCharacterFromSet_options_, searchSet.ref.pointer, - mask.value) + mask.value, + ) : _ptr.ref = _objc_msgSend_102xxo4( this.ref.pointer, _sel_rangeOfCharacterFromSet_options_, searchSet.ref.pointer, - mask.value); + mask.value, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// rangeOfCharacterFromSet:options:range: - NSRange rangeOfCharacterFromSet_options_range_(NSCharacterSet searchSet, - NSStringCompareOptions mask, NSRange rangeOfReceiverToSearch) { + NSRange rangeOfCharacterFromSet_options_range_( + NSCharacterSet searchSet, + NSStringCompareOptions mask, + NSRange rangeOfReceiverToSearch, + ) { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_1nmlvqcStret( @@ -10977,16 +14754,19 @@ extension NSStringExtensionMethods on NSString { _sel_rangeOfCharacterFromSet_options_range_, searchSet.ref.pointer, mask.value, - rangeOfReceiverToSearch) + rangeOfReceiverToSearch, + ) : _ptr.ref = _objc_msgSend_1nmlvqc( this.ref.pointer, _sel_rangeOfCharacterFromSet_options_range_, searchSet.ref.pointer, mask.value, - rangeOfReceiverToSearch); + rangeOfReceiverToSearch, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } @@ -10994,31 +14774,48 @@ extension NSStringExtensionMethods on NSString { NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_d3i1uyStret(_ptr, this.ref.pointer, - _sel_rangeOfComposedCharacterSequenceAtIndex_, index) - : _ptr.ref = _objc_msgSend_d3i1uy(this.ref.pointer, - _sel_rangeOfComposedCharacterSequenceAtIndex_, index); + ? _objc_msgSend_d3i1uyStret( + _ptr, + this.ref.pointer, + _sel_rangeOfComposedCharacterSequenceAtIndex_, + index, + ) + : _ptr.ref = _objc_msgSend_d3i1uy( + this.ref.pointer, + _sel_rangeOfComposedCharacterSequenceAtIndex_, + index, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// rangeOfComposedCharacterSequencesForRange: NSRange rangeOfComposedCharacterSequencesForRange_(NSRange range) { objc.checkOsVersionInternal( - 'NSString.rangeOfComposedCharacterSequencesForRange:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0))); + 'NSString.rangeOfComposedCharacterSequencesForRange:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_uimyc7Stret(_ptr, this.ref.pointer, - _sel_rangeOfComposedCharacterSequencesForRange_, range) - : _ptr.ref = _objc_msgSend_uimyc7(this.ref.pointer, - _sel_rangeOfComposedCharacterSequencesForRange_, range); + ? _objc_msgSend_uimyc7Stret( + _ptr, + this.ref.pointer, + _sel_rangeOfComposedCharacterSequencesForRange_, + range, + ) + : _ptr.ref = _objc_msgSend_uimyc7( + this.ref.pointer, + _sel_rangeOfComposedCharacterSequencesForRange_, + range, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } @@ -11026,34 +14823,57 @@ extension NSStringExtensionMethods on NSString { NSRange rangeOfString_(NSString searchString) { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret(_ptr, this.ref.pointer, - _sel_rangeOfString_, searchString.ref.pointer) + ? _objc_msgSend_182fzonStret( + _ptr, + this.ref.pointer, + _sel_rangeOfString_, + searchString.ref.pointer, + ) : _ptr.ref = _objc_msgSend_182fzon( - this.ref.pointer, _sel_rangeOfString_, searchString.ref.pointer); + this.ref.pointer, + _sel_rangeOfString_, + searchString.ref.pointer, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// rangeOfString:options: NSRange rangeOfString_options_( - NSString searchString, NSStringCompareOptions mask) { + NSString searchString, + NSStringCompareOptions mask, + ) { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants - ? _objc_msgSend_102xxo4Stret(_ptr, this.ref.pointer, - _sel_rangeOfString_options_, searchString.ref.pointer, mask.value) - : _ptr.ref = _objc_msgSend_102xxo4(this.ref.pointer, - _sel_rangeOfString_options_, searchString.ref.pointer, mask.value); + ? _objc_msgSend_102xxo4Stret( + _ptr, + this.ref.pointer, + _sel_rangeOfString_options_, + searchString.ref.pointer, + mask.value, + ) + : _ptr.ref = _objc_msgSend_102xxo4( + this.ref.pointer, + _sel_rangeOfString_options_, + searchString.ref.pointer, + mask.value, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// rangeOfString:options:range: - NSRange rangeOfString_options_range_(NSString searchString, - NSStringCompareOptions mask, NSRange rangeOfReceiverToSearch) { + NSRange rangeOfString_options_range_( + NSString searchString, + NSStringCompareOptions mask, + NSRange rangeOfReceiverToSearch, + ) { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_1nmlvqcStret( @@ -11062,27 +14882,34 @@ extension NSStringExtensionMethods on NSString { _sel_rangeOfString_options_range_, searchString.ref.pointer, mask.value, - rangeOfReceiverToSearch) + rangeOfReceiverToSearch, + ) : _ptr.ref = _objc_msgSend_1nmlvqc( this.ref.pointer, _sel_rangeOfString_options_range_, searchString.ref.pointer, mask.value, - rangeOfReceiverToSearch); + rangeOfReceiverToSearch, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// rangeOfString:options:range:locale: NSRange rangeOfString_options_range_locale_( - NSString searchString, - NSStringCompareOptions mask, - NSRange rangeOfReceiverToSearch, - NSLocale? locale) { - objc.checkOsVersionInternal('NSString.rangeOfString:options:range:locale:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + NSString searchString, + NSStringCompareOptions mask, + NSRange rangeOfReceiverToSearch, + NSLocale? locale, + ) { + objc.checkOsVersionInternal( + 'NSString.rangeOfString:options:range:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_gg0462Stret( @@ -11092,17 +14919,20 @@ extension NSStringExtensionMethods on NSString { searchString.ref.pointer, mask.value, rangeOfReceiverToSearch, - locale?.ref.pointer ?? ffi.nullptr) + locale?.ref.pointer ?? ffi.nullptr, + ) : _ptr.ref = _objc_msgSend_gg0462( this.ref.pointer, _sel_rangeOfString_options_range_locale_, searchString.ref.pointer, mask.value, rangeOfReceiverToSearch, - locale?.ref.pointer ?? ffi.nullptr); + locale?.ref.pointer ?? ffi.nullptr, + ); final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree); + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } @@ -11114,27 +14944,39 @@ extension NSStringExtensionMethods on NSString { /// stringByAppendingFormat: NSString stringByAppendingFormat_(NSString format) { final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_stringByAppendingFormat_, format.ref.pointer); + this.ref.pointer, + _sel_stringByAppendingFormat_, + format.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// stringByAppendingString: NSString stringByAppendingString_(NSString aString) { final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, _sel_stringByAppendingString_, aString.ref.pointer); + this.ref.pointer, + _sel_stringByAppendingString_, + aString.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// stringByApplyingTransform:reverse: NSString? stringByApplyingTransform_reverse_( - NSString transform, bool reverse) { - objc.checkOsVersionInternal('NSString.stringByApplyingTransform:reverse:', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); + NSString transform, + bool reverse, + ) { + objc.checkOsVersionInternal( + 'NSString.stringByApplyingTransform:reverse:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_17amj0z( - this.ref.pointer, - _sel_stringByApplyingTransform_reverse_, - transform.ref.pointer, - reverse); + this.ref.pointer, + _sel_stringByApplyingTransform_reverse_, + transform.ref.pointer, + reverse, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -11142,104 +14984,137 @@ extension NSStringExtensionMethods on NSString { /// stringByFoldingWithOptions:locale: NSString stringByFoldingWithOptions_locale_( - NSStringCompareOptions options, NSLocale? locale) { - objc.checkOsVersionInternal('NSString.stringByFoldingWithOptions:locale:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + NSStringCompareOptions options, + NSLocale? locale, + ) { + objc.checkOsVersionInternal( + 'NSString.stringByFoldingWithOptions:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_11cbyu0( - this.ref.pointer, - _sel_stringByFoldingWithOptions_locale_, - options.value, - locale?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_stringByFoldingWithOptions_locale_, + options.value, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// stringByPaddingToLength:withString:startingAtIndex: NSString stringByPaddingToLength_withString_startingAtIndex_( - int newLength, NSString padString, int padIndex) { + int newLength, + NSString padString, + int padIndex, + ) { final _ret = _objc_msgSend_1tfztp( - this.ref.pointer, - _sel_stringByPaddingToLength_withString_startingAtIndex_, - newLength, - padString.ref.pointer, - padIndex); + this.ref.pointer, + _sel_stringByPaddingToLength_withString_startingAtIndex_, + newLength, + padString.ref.pointer, + padIndex, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// stringByReplacingCharactersInRange:withString: NSString stringByReplacingCharactersInRange_withString_( - NSRange range, NSString replacement) { + NSRange range, + NSString replacement, + ) { objc.checkOsVersionInternal( - 'NSString.stringByReplacingCharactersInRange:withString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0))); + 'NSString.stringByReplacingCharactersInRange:withString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_bstjp9( - this.ref.pointer, - _sel_stringByReplacingCharactersInRange_withString_, - range, - replacement.ref.pointer); + this.ref.pointer, + _sel_stringByReplacingCharactersInRange_withString_, + range, + replacement.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// stringByReplacingOccurrencesOfString:withString: NSString stringByReplacingOccurrencesOfString_withString_( - NSString target, NSString replacement) { + NSString target, + NSString replacement, + ) { objc.checkOsVersionInternal( - 'NSString.stringByReplacingOccurrencesOfString:withString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0))); + 'NSString.stringByReplacingOccurrencesOfString:withString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_15qeuct( - this.ref.pointer, - _sel_stringByReplacingOccurrencesOfString_withString_, - target.ref.pointer, - replacement.ref.pointer); + this.ref.pointer, + _sel_stringByReplacingOccurrencesOfString_withString_, + target.ref.pointer, + replacement.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// stringByReplacingOccurrencesOfString:withString:options:range: NSString stringByReplacingOccurrencesOfString_withString_options_range_( - NSString target, - NSString replacement, - NSStringCompareOptions options, - NSRange searchRange) { - objc.checkOsVersionInternal( - 'NSString.stringByReplacingOccurrencesOfString:withString:options:range:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0))); + NSString target, + NSString replacement, + NSStringCompareOptions options, + NSRange searchRange, + ) { + objc.checkOsVersionInternal( + 'NSString.stringByReplacingOccurrencesOfString:withString:options:range:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_2u4jm6( - this.ref.pointer, - _sel_stringByReplacingOccurrencesOfString_withString_options_range_, - target.ref.pointer, - replacement.ref.pointer, - options.value, - searchRange); + this.ref.pointer, + _sel_stringByReplacingOccurrencesOfString_withString_options_range_, + target.ref.pointer, + replacement.ref.pointer, + options.value, + searchRange, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// stringByTrimmingCharactersInSet: NSString stringByTrimmingCharactersInSet_(NSCharacterSet set) { - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_stringByTrimmingCharactersInSet_, set.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_stringByTrimmingCharactersInSet_, + set.ref.pointer, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// substringFromIndex: NSString substringFromIndex_(int from) { - final _ret = - _objc_msgSend_14hpxwa(this.ref.pointer, _sel_substringFromIndex_, from); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_substringFromIndex_, + from, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// substringToIndex: NSString substringToIndex_(int to) { - final _ret = - _objc_msgSend_14hpxwa(this.ref.pointer, _sel_substringToIndex_, to); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_substringToIndex_, + to, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// substringWithRange: NSString substringWithRange_(NSRange range) { final _ret = _objc_msgSend_1k1o1s7( - this.ref.pointer, _sel_substringWithRange_, range); + this.ref.pointer, + _sel_substringWithRange_, + range, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } @@ -11251,77 +15126,100 @@ extension NSStringExtensionMethods on NSString { /// uppercaseStringWithLocale: NSString uppercaseStringWithLocale_(NSLocale? locale) { - objc.checkOsVersionInternal('NSString.uppercaseStringWithLocale:', - iOS: (false, (6, 0, 0)), macOS: (false, (10, 8, 0))); - final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, - _sel_uppercaseStringWithLocale_, locale?.ref.pointer ?? ffi.nullptr); + objc.checkOsVersionInternal( + 'NSString.uppercaseStringWithLocale:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_uppercaseStringWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); return NSString.castFromPointer(_ret, retain: true, release: true); } /// writeToFile:atomically:encoding:error: bool writeToFile_atomically_encoding_error_( - NSString path, - bool useAuxiliaryFile, - int enc, - ffi.Pointer> error) { + NSString path, + bool useAuxiliaryFile, + int enc, + ffi.Pointer> error, + ) { return _objc_msgSend_dv3z6r( - this.ref.pointer, - _sel_writeToFile_atomically_encoding_error_, - path.ref.pointer, - useAuxiliaryFile, - enc, - error); + this.ref.pointer, + _sel_writeToFile_atomically_encoding_error_, + path.ref.pointer, + useAuxiliaryFile, + enc, + error, + ); } /// writeToURL:atomically:encoding:error: - bool writeToURL_atomically_encoding_error_(NSURL url, bool useAuxiliaryFile, - int enc, ffi.Pointer> error) { + bool writeToURL_atomically_encoding_error_( + NSURL url, + bool useAuxiliaryFile, + int enc, + ffi.Pointer> error, + ) { return _objc_msgSend_dv3z6r( - this.ref.pointer, - _sel_writeToURL_atomically_encoding_error_, - url.ref.pointer, - useAuxiliaryFile, - enc, - error); + this.ref.pointer, + _sel_writeToURL_atomically_encoding_error_, + url.ref.pointer, + useAuxiliaryFile, + enc, + error, + ); } } /// NSURL class NSURL extends NSObject implements NSSecureCoding, NSCopying { - NSURL._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSURL._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSURL] that points to the same underlying object as [other]. NSURL.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURL] that wraps the given raw object pointer. - NSURL.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURL.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURL]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSURL); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURL, + ); } /// URLByResolvingAliasFileAtURL:options:error: static NSURL? URLByResolvingAliasFileAtURL_options_error_( - NSURL url, - NSURLBookmarkResolutionOptions options, - ffi.Pointer> error) { + NSURL url, + NSURLBookmarkResolutionOptions options, + ffi.Pointer> error, + ) { objc.checkOsVersionInternal( - 'NSURL.URLByResolvingAliasFileAtURL:options:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0))); + 'NSURL.URLByResolvingAliasFileAtURL:options:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); final _ret = _objc_msgSend_1tiux5i( - _class_NSURL, - _sel_URLByResolvingAliasFileAtURL_options_error_, - url.ref.pointer, - options.value, - error); + _class_NSURL, + _sel_URLByResolvingAliasFileAtURL_options_error_, + url.ref.pointer, + options.value, + error, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: true, release: true); @@ -11329,24 +15227,27 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: static NSURL? - URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( - NSData bookmarkData, - NSURLBookmarkResolutionOptions options, - NSURL? relativeURL, - ffi.Pointer isStale, - ffi.Pointer> error) { - objc.checkOsVersionInternal( - 'NSURL.URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0))); + URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + NSData bookmarkData, + NSURLBookmarkResolutionOptions options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSURL.URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_1ceswyu( - _class_NSURL, - _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, - bookmarkData.ref.pointer, - options.value, - relativeURL?.ref.pointer ?? ffi.nullptr, - isStale, - error); + _class_NSURL, + _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, + bookmarkData.ref.pointer, + options.value, + relativeURL?.ref.pointer ?? ffi.nullptr, + isStale, + error, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: true, release: true); @@ -11354,23 +15255,30 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// URLWithDataRepresentation:relativeToURL: static NSURL URLWithDataRepresentation_relativeToURL_( - NSData data, NSURL? baseURL) { + NSData data, + NSURL? baseURL, + ) { objc.checkOsVersionInternal( - 'NSURL.URLWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0))); + 'NSURL.URLWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_URLWithDataRepresentation_relativeToURL_, - data.ref.pointer, - baseURL?.ref.pointer ?? ffi.nullptr); + _class_NSURL, + _sel_URLWithDataRepresentation_relativeToURL_, + data.ref.pointer, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return NSURL.castFromPointer(_ret, retain: true, release: true); } /// URLWithString: static NSURL? URLWithString_(NSString URLString) { final _ret = _objc_msgSend_1sotr3r( - _class_NSURL, _sel_URLWithString_, URLString.ref.pointer); + _class_NSURL, + _sel_URLWithString_, + URLString.ref.pointer, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: true, release: true); @@ -11381,16 +15289,20 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// iOS: introduced 17.0.0 /// macOS: introduced 14.0.0 static NSURL? URLWithString_encodingInvalidCharacters_( - NSString URLString, bool encodingInvalidCharacters) { + NSString URLString, + bool encodingInvalidCharacters, + ) { objc.checkOsVersionInternal( - 'NSURL.URLWithString:encodingInvalidCharacters:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0))); + 'NSURL.URLWithString:encodingInvalidCharacters:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); final _ret = _objc_msgSend_17amj0z( - _class_NSURL, - _sel_URLWithString_encodingInvalidCharacters_, - URLString.ref.pointer, - encodingInvalidCharacters); + _class_NSURL, + _sel_URLWithString_encodingInvalidCharacters_, + URLString.ref.pointer, + encodingInvalidCharacters, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: true, release: true); @@ -11398,12 +15310,15 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// URLWithString:relativeToURL: static NSURL? URLWithString_relativeToURL_( - NSString URLString, NSURL? baseURL) { + NSString URLString, + NSURL? baseURL, + ) { final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_URLWithString_relativeToURL_, - URLString.ref.pointer, - baseURL?.ref.pointer ?? ffi.nullptr); + _class_NSURL, + _sel_URLWithString_relativeToURL_, + URLString.ref.pointer, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: true, release: true); @@ -11411,16 +15326,20 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// absoluteURLWithDataRepresentation:relativeToURL: static NSURL absoluteURLWithDataRepresentation_relativeToURL_( - NSData data, NSURL? baseURL) { + NSData data, + NSURL? baseURL, + ) { objc.checkOsVersionInternal( - 'NSURL.absoluteURLWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0))); + 'NSURL.absoluteURLWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_absoluteURLWithDataRepresentation_relativeToURL_, - data.ref.pointer, - baseURL?.ref.pointer ?? ffi.nullptr); + _class_NSURL, + _sel_absoluteURLWithDataRepresentation_relativeToURL_, + data.ref.pointer, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return NSURL.castFromPointer(_ret, retain: true, release: true); } @@ -11438,14 +15357,20 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// bookmarkDataWithContentsOfURL:error: static NSData? bookmarkDataWithContentsOfURL_error_( - NSURL bookmarkFileURL, ffi.Pointer> error) { - objc.checkOsVersionInternal('NSURL.bookmarkDataWithContentsOfURL:error:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + NSURL bookmarkFileURL, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSURL.bookmarkDataWithContentsOfURL:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_1lhpu4m( - _class_NSURL, - _sel_bookmarkDataWithContentsOfURL_error_, - bookmarkFileURL.ref.pointer, - error); + _class_NSURL, + _sel_bookmarkDataWithContentsOfURL_error_, + bookmarkFileURL.ref.pointer, + error, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: true, release: true); @@ -11453,61 +15378,85 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// fileURLWithFileSystemRepresentation:isDirectory:relativeToURL: static NSURL fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( - ffi.Pointer path, bool isDir, NSURL? baseURL) { + ffi.Pointer path, + bool isDir, + NSURL? baseURL, + ) { objc.checkOsVersionInternal( - 'NSURL.fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURL.fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_1n40f6p( - _class_NSURL, - _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, - path, - isDir, - baseURL?.ref.pointer ?? ffi.nullptr); + _class_NSURL, + _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, + path, + isDir, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return NSURL.castFromPointer(_ret, retain: true, release: true); } /// fileURLWithPath: static NSURL fileURLWithPath_(NSString path) { final _ret = _objc_msgSend_1sotr3r( - _class_NSURL, _sel_fileURLWithPath_, path.ref.pointer); + _class_NSURL, + _sel_fileURLWithPath_, + path.ref.pointer, + ); return NSURL.castFromPointer(_ret, retain: true, release: true); } /// fileURLWithPath:isDirectory: static NSURL fileURLWithPath_isDirectory_(NSString path, bool isDir) { - objc.checkOsVersionInternal('NSURL.fileURLWithPath:isDirectory:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); - final _ret = _objc_msgSend_17amj0z(_class_NSURL, - _sel_fileURLWithPath_isDirectory_, path.ref.pointer, isDir); + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPath:isDirectory:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSURL, + _sel_fileURLWithPath_isDirectory_, + path.ref.pointer, + isDir, + ); return NSURL.castFromPointer(_ret, retain: true, release: true); } /// fileURLWithPath:isDirectory:relativeToURL: static NSURL fileURLWithPath_isDirectory_relativeToURL_( - NSString path, bool isDir, NSURL? baseURL) { + NSString path, + bool isDir, + NSURL? baseURL, + ) { objc.checkOsVersionInternal( - 'NSURL.fileURLWithPath:isDirectory:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0))); + 'NSURL.fileURLWithPath:isDirectory:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_1ged0jd( - _class_NSURL, - _sel_fileURLWithPath_isDirectory_relativeToURL_, - path.ref.pointer, - isDir, - baseURL?.ref.pointer ?? ffi.nullptr); + _class_NSURL, + _sel_fileURLWithPath_isDirectory_relativeToURL_, + path.ref.pointer, + isDir, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return NSURL.castFromPointer(_ret, retain: true, release: true); } /// fileURLWithPath:relativeToURL: static NSURL fileURLWithPath_relativeToURL_(NSString path, NSURL? baseURL) { - objc.checkOsVersionInternal('NSURL.fileURLWithPath:relativeToURL:', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPath:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_fileURLWithPath_relativeToURL_, - path.ref.pointer, - baseURL?.ref.pointer ?? ffi.nullptr); + _class_NSURL, + _sel_fileURLWithPath_relativeToURL_, + path.ref.pointer, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return NSURL.castFromPointer(_ret, retain: true, release: true); } @@ -11519,19 +15468,22 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// objectWithItemProviderData:typeIdentifier:error: static NSURL? objectWithItemProviderData_typeIdentifier_error_( - NSData data, - NSString typeIdentifier, - ffi.Pointer> outError) { + NSData data, + NSString typeIdentifier, + ffi.Pointer> outError, + ) { objc.checkOsVersionInternal( - 'NSURL.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0))); + 'NSURL.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); final _ret = _objc_msgSend_1pnyuds( - _class_NSURL, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - outError); + _class_NSURL, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + outError, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: true, release: true); @@ -11539,14 +15491,20 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// resourceValuesForKeys:fromBookmarkData: static NSDictionary? resourceValuesForKeys_fromBookmarkData_( - NSArray keys, NSData bookmarkData) { - objc.checkOsVersionInternal('NSURL.resourceValuesForKeys:fromBookmarkData:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + NSArray keys, + NSData bookmarkData, + ) { + objc.checkOsVersionInternal( + 'NSURL.resourceValuesForKeys:fromBookmarkData:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_resourceValuesForKeys_fromBookmarkData_, - keys.ref.pointer, - bookmarkData.ref.pointer); + _class_NSURL, + _sel_resourceValuesForKeys_fromBookmarkData_, + keys.ref.pointer, + bookmarkData.ref.pointer, + ); return _ret.address == 0 ? null : NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -11559,19 +15517,24 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// writeBookmarkData:toURL:options:error: static bool writeBookmarkData_toURL_options_error_( - NSData bookmarkData, - NSURL bookmarkFileURL, - int options, - ffi.Pointer> error) { - objc.checkOsVersionInternal('NSURL.writeBookmarkData:toURL:options:error:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + NSData bookmarkData, + NSURL bookmarkFileURL, + int options, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSURL.writeBookmarkData:toURL:options:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); return _objc_msgSend_1vxoo9h( - _class_NSURL, - _sel_writeBookmarkData_toURL_options_error_, - bookmarkData.ref.pointer, - bookmarkFileURL.ref.pointer, - options, - error); + _class_NSURL, + _sel_writeBookmarkData_toURL_options_error_, + bookmarkData.ref.pointer, + bookmarkFileURL.ref.pointer, + options, + error, + ); } /// absoluteString @@ -11600,22 +15563,25 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error: NSData? - bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( - NSURLBookmarkCreationOptions options, - NSArray? keys, - NSURL? relativeURL, - ffi.Pointer> error) { - objc.checkOsVersionInternal( - 'NSURL.bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0))); + bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( + NSURLBookmarkCreationOptions options, + NSArray? keys, + NSURL? relativeURL, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSURL.bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_1wt9a7r( - this.ref.pointer, - _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_, - options.value, - keys?.ref.pointer ?? ffi.nullptr, - relativeURL?.ref.pointer ?? ffi.nullptr, - error); + this.ref.pointer, + _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_, + options.value, + keys?.ref.pointer ?? ffi.nullptr, + relativeURL?.ref.pointer ?? ffi.nullptr, + error, + ); return _ret.address == 0 ? null : NSData.castFromPointer(_ret, retain: true, release: true); @@ -11623,23 +15589,34 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// dataRepresentation NSData get dataRepresentation { - objc.checkOsVersionInternal('NSURL.dataRepresentation', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_dataRepresentation); + objc.checkOsVersionInternal( + 'NSURL.dataRepresentation', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_dataRepresentation, + ); return NSData.castFromPointer(_ret, retain: true, release: true); } /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// filePathURL NSURL? get filePathURL { - objc.checkOsVersionInternal('NSURL.filePathURL', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSURL.filePathURL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_filePathURL); return _ret.address == 0 ? null @@ -11648,8 +15625,11 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// fileReferenceURL NSURL? fileReferenceURL() { - objc.checkOsVersionInternal('NSURL.fileReferenceURL', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSURL.fileReferenceURL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fileReferenceURL); return _ret.address == 0 ? null @@ -11658,10 +15638,15 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// fileSystemRepresentation ffi.Pointer get fileSystemRepresentation { - objc.checkOsVersionInternal('NSURL.fileSystemRepresentation', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURL.fileSystemRepresentation', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); return _objc_msgSend_1fuqfwb( - this.ref.pointer, _sel_fileSystemRepresentation); + this.ref.pointer, + _sel_fileSystemRepresentation, + ); } /// fragment @@ -11674,28 +15659,49 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// getFileSystemRepresentation:maxLength: bool getFileSystemRepresentation_maxLength_( - ffi.Pointer buffer, int maxBufferLength) { - objc.checkOsVersionInternal('NSURL.getFileSystemRepresentation:maxLength:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - return _objc_msgSend_8cymbm(this.ref.pointer, - _sel_getFileSystemRepresentation_maxLength_, buffer, maxBufferLength); + ffi.Pointer buffer, + int maxBufferLength, + ) { + objc.checkOsVersionInternal( + 'NSURL.getFileSystemRepresentation:maxLength:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_8cymbm( + this.ref.pointer, + _sel_getFileSystemRepresentation_maxLength_, + buffer, + maxBufferLength, + ); } /// getResourceValue:forKey:error: bool getResourceValue_forKey_error_( - ffi.Pointer> value, - NSString key, - ffi.Pointer> error) { - objc.checkOsVersionInternal('NSURL.getResourceValue:forKey:error:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - return _objc_msgSend_1j9bhml(this.ref.pointer, - _sel_getResourceValue_forKey_error_, value, key.ref.pointer, error); + ffi.Pointer> value, + NSString key, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSURL.getResourceValue:forKey:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1j9bhml( + this.ref.pointer, + _sel_getResourceValue_forKey_error_, + value, + key.ref.pointer, + error, + ); } /// hasDirectoryPath bool get hasDirectoryPath { - objc.checkOsVersionInternal('NSURL.hasDirectoryPath', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); + objc.checkOsVersionInternal( + 'NSURL.hasDirectoryPath', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_hasDirectoryPath); } @@ -11709,48 +15715,60 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// init NSURL init() { - objc.checkOsVersionInternal('NSURL.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSURL.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSURL.castFromPointer(_ret, retain: false, release: true); } /// initAbsoluteURLWithDataRepresentation:relativeToURL: NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( - NSData data, NSURL? baseURL) { + NSData data, + NSURL? baseURL, + ) { objc.checkOsVersionInternal( - 'NSURL.initAbsoluteURLWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0))); + 'NSURL.initAbsoluteURLWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_, - data.ref.pointer, - baseURL?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_, + data.ref.pointer, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return NSURL.castFromPointer(_ret, retain: false, release: true); } /// initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: NSURL? - initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( - NSData bookmarkData, - NSURLBookmarkResolutionOptions options, - NSURL? relativeURL, - ffi.Pointer isStale, - ffi.Pointer> error) { - objc.checkOsVersionInternal( - 'NSURL.initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0))); + initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + NSData bookmarkData, + NSURLBookmarkResolutionOptions options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSURL.initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_1ceswyu( - this.ref.retainAndReturnPointer(), - _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, - bookmarkData.ref.pointer, - options.value, - relativeURL?.ref.pointer ?? ffi.nullptr, - isStale, - error); + this.ref.retainAndReturnPointer(), + _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, + bookmarkData.ref.pointer, + options.value, + relativeURL?.ref.pointer ?? ffi.nullptr, + isStale, + error, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: false, release: true); @@ -11758,68 +15776,95 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL: NSURL initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( - ffi.Pointer path, bool isDir, NSURL? baseURL) { + ffi.Pointer path, + bool isDir, + NSURL? baseURL, + ) { objc.checkOsVersionInternal( - 'NSURL.initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0))); + 'NSURL.initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); final _ret = _objc_msgSend_1n40f6p( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, - path, - isDir, - baseURL?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, + path, + isDir, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return NSURL.castFromPointer(_ret, retain: false, release: true); } /// initFileURLWithPath: NSURL initFileURLWithPath_(NSString path) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_, path.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_, + path.ref.pointer, + ); return NSURL.castFromPointer(_ret, retain: false, release: true); } /// initFileURLWithPath:isDirectory: NSURL initFileURLWithPath_isDirectory_(NSString path, bool isDir) { - objc.checkOsVersionInternal('NSURL.initFileURLWithPath:isDirectory:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); - final _ret = _objc_msgSend_17amj0z(this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_isDirectory_, path.ref.pointer, isDir); + objc.checkOsVersionInternal( + 'NSURL.initFileURLWithPath:isDirectory:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_isDirectory_, + path.ref.pointer, + isDir, + ); return NSURL.castFromPointer(_ret, retain: false, release: true); } /// initFileURLWithPath:isDirectory:relativeToURL: NSURL initFileURLWithPath_isDirectory_relativeToURL_( - NSString path, bool isDir, NSURL? baseURL) { + NSString path, + bool isDir, + NSURL? baseURL, + ) { objc.checkOsVersionInternal( - 'NSURL.initFileURLWithPath:isDirectory:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0))); + 'NSURL.initFileURLWithPath:isDirectory:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_1ged0jd( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_isDirectory_relativeToURL_, - path.ref.pointer, - isDir, - baseURL?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_isDirectory_relativeToURL_, + path.ref.pointer, + isDir, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return NSURL.castFromPointer(_ret, retain: false, release: true); } /// initFileURLWithPath:relativeToURL: NSURL initFileURLWithPath_relativeToURL_(NSString path, NSURL? baseURL) { - objc.checkOsVersionInternal('NSURL.initFileURLWithPath:relativeToURL:', - iOS: (false, (9, 0, 0)), macOS: (false, (10, 11, 0))); + objc.checkOsVersionInternal( + 'NSURL.initFileURLWithPath:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_relativeToURL_, - path.ref.pointer, - baseURL?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_relativeToURL_, + path.ref.pointer, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return NSURL.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSURL? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: false, release: true); @@ -11828,21 +15873,26 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// initWithDataRepresentation:relativeToURL: NSURL initWithDataRepresentation_relativeToURL_(NSData data, NSURL? baseURL) { objc.checkOsVersionInternal( - 'NSURL.initWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0))); + 'NSURL.initWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithDataRepresentation_relativeToURL_, - data.ref.pointer, - baseURL?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithDataRepresentation_relativeToURL_, + data.ref.pointer, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return NSURL.castFromPointer(_ret, retain: false, release: true); } /// initWithString: NSURL? initWithString_(NSString URLString) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithString_, URLString.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithString_, + URLString.ref.pointer, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: false, release: true); @@ -11853,16 +15903,20 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// iOS: introduced 17.0.0 /// macOS: introduced 14.0.0 NSURL? initWithString_encodingInvalidCharacters_( - NSString URLString, bool encodingInvalidCharacters) { + NSString URLString, + bool encodingInvalidCharacters, + ) { objc.checkOsVersionInternal( - 'NSURL.initWithString:encodingInvalidCharacters:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0))); + 'NSURL.initWithString:encodingInvalidCharacters:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithString_encodingInvalidCharacters_, - URLString.ref.pointer, - encodingInvalidCharacters); + this.ref.retainAndReturnPointer(), + _sel_initWithString_encodingInvalidCharacters_, + URLString.ref.pointer, + encodingInvalidCharacters, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: false, release: true); @@ -11871,10 +15925,11 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// initWithString:relativeToURL: NSURL? initWithString_relativeToURL_(NSString URLString, NSURL? baseURL) { final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithString_relativeToURL_, - URLString.ref.pointer, - baseURL?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithString_relativeToURL_, + URLString.ref.pointer, + baseURL?.ref.pointer ?? ffi.nullptr, + ); return _ret.address == 0 ? null : NSURL.castFromPointer(_ret, retain: false, release: true); @@ -11882,8 +15937,11 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// isFileReferenceURL bool isFileReferenceURL() { - objc.checkOsVersionInternal('NSURL.isFileReferenceURL', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSURL.isFileReferenceURL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isFileReferenceURL); } @@ -11895,8 +15953,11 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// iOS: introduced 2.0.0, deprecated 13.0.0 /// macOS: introduced 10.2.0, deprecated 10.15.0 NSString? get parameterString { - objc.checkOsVersionInternal('NSURL.parameterString', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 2, 0))); + objc.checkOsVersionInternal( + 'NSURL.parameterString', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_parameterString); return _ret.address == 0 ? null @@ -11951,23 +16012,34 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// removeAllCachedResourceValues void removeAllCachedResourceValues() { - objc.checkOsVersionInternal('NSURL.removeAllCachedResourceValues', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.checkOsVersionInternal( + 'NSURL.removeAllCachedResourceValues', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllCachedResourceValues); } /// removeCachedResourceValueForKey: void removeCachedResourceValueForKey_(NSString key) { - objc.checkOsVersionInternal('NSURL.removeCachedResourceValueForKey:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); - _objc_msgSend_xtuoz7(this.ref.pointer, - _sel_removeCachedResourceValueForKey_, key.ref.pointer); + objc.checkOsVersionInternal( + 'NSURL.removeCachedResourceValueForKey:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeCachedResourceValueForKey_, + key.ref.pointer, + ); } /// resourceSpecifier NSString? get resourceSpecifier { - final _ret = - _objc_msgSend_151sglz(this.ref.pointer, _sel_resourceSpecifier); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_resourceSpecifier, + ); return _ret.address == 0 ? null : NSString.castFromPointer(_ret, retain: true, release: true); @@ -11975,11 +16047,20 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// resourceValuesForKeys:error: NSDictionary? resourceValuesForKeys_error_( - NSArray keys, ffi.Pointer> error) { - objc.checkOsVersionInternal('NSURL.resourceValuesForKeys:error:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - final _ret = _objc_msgSend_1lhpu4m(this.ref.pointer, - _sel_resourceValuesForKeys_error_, keys.ref.pointer, error); + NSArray keys, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSURL.resourceValuesForKeys:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1lhpu4m( + this.ref.pointer, + _sel_resourceValuesForKeys_error_, + keys.ref.pointer, + error, + ); return _ret.address == 0 ? null : NSDictionary.castFromPointer(_ret, retain: true, release: true); @@ -11994,37 +16075,59 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { } /// setResourceValue:forKey:error: - bool setResourceValue_forKey_error_(objc.ObjCObjectBase? value, NSString key, - ffi.Pointer> error) { - objc.checkOsVersionInternal('NSURL.setResourceValue:forKey:error:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + bool setResourceValue_forKey_error_( + objc.ObjCObjectBase? value, + NSString key, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSURL.setResourceValue:forKey:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); return _objc_msgSend_6z4k82( - this.ref.pointer, - _sel_setResourceValue_forKey_error_, - value?.ref.pointer ?? ffi.nullptr, - key.ref.pointer, - error); + this.ref.pointer, + _sel_setResourceValue_forKey_error_, + value?.ref.pointer ?? ffi.nullptr, + key.ref.pointer, + error, + ); } /// setResourceValues:error: - bool setResourceValues_error_(NSDictionary keyedValues, - ffi.Pointer> error) { - objc.checkOsVersionInternal('NSURL.setResourceValues:error:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); - return _objc_msgSend_l9p60w(this.ref.pointer, _sel_setResourceValues_error_, - keyedValues.ref.pointer, error); + bool setResourceValues_error_( + NSDictionary keyedValues, + ffi.Pointer> error, + ) { + objc.checkOsVersionInternal( + 'NSURL.setResourceValues:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_l9p60w( + this.ref.pointer, + _sel_setResourceValues_error_, + keyedValues.ref.pointer, + error, + ); } /// setTemporaryResourceValue:forKey: void setTemporaryResourceValue_forKey_( - objc.ObjCObjectBase? value, NSString key) { - objc.checkOsVersionInternal('NSURL.setTemporaryResourceValue:forKey:', - iOS: (false, (7, 0, 0)), macOS: (false, (10, 9, 0))); + objc.ObjCObjectBase? value, + NSString key, + ) { + objc.checkOsVersionInternal( + 'NSURL.setTemporaryResourceValue:forKey:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_setTemporaryResourceValue_forKey_, - value?.ref.pointer ?? ffi.nullptr, - key.ref.pointer); + this.ref.pointer, + _sel_setTemporaryResourceValue_forKey_, + value?.ref.pointer ?? ffi.nullptr, + key.ref.pointer, + ); } /// standardizedURL @@ -12037,18 +16140,28 @@ class NSURL extends NSObject implements NSSecureCoding, NSCopying { /// startAccessingSecurityScopedResource bool startAccessingSecurityScopedResource() { - objc.checkOsVersionInternal('NSURL.startAccessingSecurityScopedResource', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSURL.startAccessingSecurityScopedResource', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 7, 0)), + ); return _objc_msgSend_91o635( - this.ref.pointer, _sel_startAccessingSecurityScopedResource); + this.ref.pointer, + _sel_startAccessingSecurityScopedResource, + ); } /// stopAccessingSecurityScopedResource void stopAccessingSecurityScopedResource() { - objc.checkOsVersionInternal('NSURL.stopAccessingSecurityScopedResource', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 7, 0))); + objc.checkOsVersionInternal( + 'NSURL.stopAccessingSecurityScopedResource', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 7, 0)), + ); _objc_msgSend_1pl9qdv( - this.ref.pointer, _sel_stopAccessingSecurityScopedResource); + this.ref.pointer, + _sel_stopAccessingSecurityScopedResource, + ); } /// user @@ -12075,15 +16188,16 @@ enum NSURLBookmarkCreationOptions { const NSURLBookmarkCreationOptions(this.value); static NSURLBookmarkCreationOptions fromValue(int value) => switch (value) { - 256 => NSURLBookmarkCreationPreferFileIDResolution, - 512 => NSURLBookmarkCreationMinimalBookmark, - 1024 => NSURLBookmarkCreationSuitableForBookmarkFile, - 2048 => NSURLBookmarkCreationWithSecurityScope, - 4096 => NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess, - 536870912 => NSURLBookmarkCreationWithoutImplicitSecurityScope, - _ => throw ArgumentError( - 'Unknown value for NSURLBookmarkCreationOptions: $value'), - }; + 256 => NSURLBookmarkCreationPreferFileIDResolution, + 512 => NSURLBookmarkCreationMinimalBookmark, + 1024 => NSURLBookmarkCreationSuitableForBookmarkFile, + 2048 => NSURLBookmarkCreationWithSecurityScope, + 4096 => NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess, + 536870912 => NSURLBookmarkCreationWithoutImplicitSecurityScope, + _ => throw ArgumentError( + 'Unknown value for NSURLBookmarkCreationOptions: $value', + ), + }; } enum NSURLBookmarkResolutionOptions { @@ -12096,34 +16210,42 @@ enum NSURLBookmarkResolutionOptions { const NSURLBookmarkResolutionOptions(this.value); static NSURLBookmarkResolutionOptions fromValue(int value) => switch (value) { - 256 => NSURLBookmarkResolutionWithoutUI, - 512 => NSURLBookmarkResolutionWithoutMounting, - 1024 => NSURLBookmarkResolutionWithSecurityScope, - 32768 => NSURLBookmarkResolutionWithoutImplicitStartAccessing, - _ => throw ArgumentError( - 'Unknown value for NSURLBookmarkResolutionOptions: $value'), - }; + 256 => NSURLBookmarkResolutionWithoutUI, + 512 => NSURLBookmarkResolutionWithoutMounting, + 1024 => NSURLBookmarkResolutionWithSecurityScope, + 32768 => NSURLBookmarkResolutionWithoutImplicitStartAccessing, + _ => throw ArgumentError( + 'Unknown value for NSURLBookmarkResolutionOptions: $value', + ), + }; } /// NSURLHandle class NSURLHandle extends NSObject { - NSURLHandle._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSURLHandle._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSURLHandle] that points to the same underlying object as [other]. NSURLHandle.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSURLHandle] that wraps the given raw object pointer. - NSURLHandle.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSURLHandle.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSURLHandle]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSURLHandle); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLHandle, + ); } /// alloc @@ -12134,8 +16256,11 @@ class NSURLHandle extends NSObject { /// allocWithZone: static NSURLHandle allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSURLHandle, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSURLHandle, + _sel_allocWithZone_, + zone, + ); return NSURLHandle.castFromPointer(_ret, retain: false, release: true); } @@ -12153,10 +16278,15 @@ class NSURLHandle extends NSObject { /// init NSURLHandle init() { - objc.checkOsVersionInternal('NSURLHandle.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSURLHandle.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSURLHandle.castFromPointer(_ret, retain: false, release: true); } @@ -12186,33 +16316,40 @@ enum NSURLHandleStatus { const NSURLHandleStatus(this.value); static NSURLHandleStatus fromValue(int value) => switch (value) { - 0 => NSURLHandleNotLoaded, - 1 => NSURLHandleLoadSucceeded, - 2 => NSURLHandleLoadInProgress, - 3 => NSURLHandleLoadFailed, - _ => throw ArgumentError('Unknown value for NSURLHandleStatus: $value'), - }; + 0 => NSURLHandleNotLoaded, + 1 => NSURLHandleLoadSucceeded, + 2 => NSURLHandleLoadInProgress, + 3 => NSURLHandleLoadFailed, + _ => throw ArgumentError('Unknown value for NSURLHandleStatus: $value'), + }; } /// NSValue class NSValue extends NSObject implements NSCopying, NSSecureCoding { - NSValue._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSValue._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSValue] that points to the same underlying object as [other]. NSValue.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSValue] that wraps the given raw object pointer. - NSValue.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSValue.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSValue]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSValue); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSValue, + ); } /// alloc @@ -12223,8 +16360,11 @@ class NSValue extends NSObject implements NSCopying, NSSecureCoding { /// allocWithZone: static NSValue allocWithZone_(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSValue, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSValue, + _sel_allocWithZone_, + zone, + ); return NSValue.castFromPointer(_ret, retain: false, release: true); } @@ -12242,37 +16382,57 @@ class NSValue extends NSObject implements NSCopying, NSSecureCoding { /// encodeWithCoder: void encodeWithCoder_(NSCoder coder) { _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_encodeWithCoder_, coder.ref.pointer); + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); } /// getValue:size: void getValue_size_(ffi.Pointer value, int size) { - objc.checkOsVersionInternal('NSValue.getValue:size:', - iOS: (false, (11, 0, 0)), macOS: (false, (10, 13, 0))); + objc.checkOsVersionInternal( + 'NSValue.getValue:size:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); _objc_msgSend_zuf90e(this.ref.pointer, _sel_getValue_size_, value, size); } /// init NSValue init() { - objc.checkOsVersionInternal('NSValue.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSValue.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSValue.castFromPointer(_ret, retain: false, release: true); } /// initWithBytes:objCType: NSValue initWithBytes_objCType_( - ffi.Pointer value, ffi.Pointer type) { - final _ret = _objc_msgSend_e9mncn(this.ref.retainAndReturnPointer(), - _sel_initWithBytes_objCType_, value, type); + ffi.Pointer value, + ffi.Pointer type, + ) { + final _ret = _objc_msgSend_e9mncn( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_objCType_, + value, + type, + ); return NSValue.castFromPointer(_ret, retain: false, release: true); } /// initWithCoder: NSValue? initWithCoder_(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r(this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, coder.ref.pointer); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); return _ret.address == 0 ? null : NSValue.castFromPointer(_ret, retain: false, release: true); @@ -12290,57 +16450,72 @@ class NSValue extends NSObject implements NSCopying, NSSecureCoding { final class NSZone extends ffi.Opaque {} ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline) .cast(); ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSArray_ffiVoid_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSArray_ffiVoid_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_NSArray_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// 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. - static objc.ObjCBlock)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_NSArray_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_NSArray_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -12351,81 +16526,111 @@ abstract final class ObjCBlock_NSArray_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - NSArray Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSArray_ffiVoid_closureCallable, - (ffi.Pointer arg0) => - fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + NSArray Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSArray_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock)>`. extension ObjCBlock_NSArray_ffiVoid_CallExtension on objc.ObjCBlock)> { NSArray call(ffi.Pointer arg0) => NSArray.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0), - retain: true, - release: true); -} - -int _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); +} + +int +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable = +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline, - 0) + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline, + 0, + ) .cast(); -int _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as int Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +int +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as int Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); ffi.Pointer - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable = +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable = ffi.Pointer.fromFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline, - 0) + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline, + 0, + ) .cast(); /// Construction methods for `objc.ObjCBlock, NSString)>`. abstract final class ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock, NSString)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock, NSString)>( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSString)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -12433,16 +16638,24 @@ abstract final class ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NS /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock, NSString)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock, NSString)>( - objc.newPointerBlock(_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSString)>( + objc.newPointerBlock( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -12452,91 +16665,122 @@ abstract final class ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NS /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSString)> fromFunction( - NSItemProviderRepresentationVisibility Function( - ffi.Pointer, NSString) - fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSString)>( - objc.newClosureBlock( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSString.castFromPointer(arg1, retain: true, release: true)).value, - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock, NSString)> + fromFunction( + NSItemProviderRepresentationVisibility Function( + ffi.Pointer, + NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSString)>( + objc.newClosureBlock( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSString.castFromPointer(arg1, retain: true, release: true), + ).value, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, NSString)>`. extension ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_CallExtension on objc.ObjCBlock, NSString)> { NSItemProviderRepresentationVisibility call( - ffi.Pointer arg0, NSString arg1) => - NSItemProviderRepresentationVisibility.fromValue(ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>()( - ref.pointer, arg0, arg1.ref.pointer)); + ffi.Pointer arg0, + NSString arg1, + ) => NSItemProviderRepresentationVisibility.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer), + ); } ffi.Pointer _ObjCBlock_NSString_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_NSString_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSString_ffiVoid_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSString_ffiVoid_fnPtrTrampoline) .cast(); ffi.Pointer _ObjCBlock_NSString_ffiVoid_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_NSString_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSString_ffiVoid_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSString_ffiVoid_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_NSString_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// 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. - static objc.ObjCBlock)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_NSString_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_NSString_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -12547,69 +16791,85 @@ abstract final class ObjCBlock_NSString_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - NSString Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSString_ffiVoid_closureCallable, - (ffi.Pointer arg0) => - fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + NSString Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSString_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock)>`. extension ObjCBlock_NSString_ffiVoid_CallExtension on objc.ObjCBlock)> { NSString call(ffi.Pointer arg0) => NSString.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0), - retain: true, - release: true); -} + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); +} int _ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline, 0) + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline, 0) .cast(); int _ObjCBlock_NSUInteger_ffiVoid_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - (objc.getBlockClosure(block) as int Function(ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_NSUInteger_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSUInteger_ffiVoid_closureTrampoline, 0) + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSUInteger_ffiVoid_closureTrampoline, 0) .cast(); /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_NSUInteger_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -12617,16 +16877,19 @@ abstract final class ObjCBlock_NSUInteger_ffiVoid { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -12637,15 +16900,18 @@ abstract final class ObjCBlock_NSUInteger_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - fromFunction(int Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSUInteger_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive), - retain: false, - release: true); + fromFunction( + int Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSUInteger_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock)>`. @@ -12653,87 +16919,114 @@ extension ObjCBlock_NSUInteger_ffiVoid_CallExtension on objc.ObjCBlock)> { int call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0); + int Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); } -int _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - ffi.UnsignedLong arg3)>>() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>()(arg0, arg1, arg2, arg3); -ffi.Pointer - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline, - 0) - .cast(); -int _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3) => - (objc.getBlockClosure(block) as int Function( +int +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + ffi.UnsignedLong arg3, + ) + > + >() + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - int))(arg0, arg1, arg2, arg3); + int, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable = +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline, - 0) + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline, + 0, + ) + .cast(); +int +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, +) => + (objc.getBlockClosure(block) + as int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ))(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable = + ffi.Pointer.fromFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline, + 0, + ) .cast(); /// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>(pointer, retain: retain, release: release); + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -12741,21 +17034,41 @@ abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObj /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer> arg2, ffi.UnsignedLong arg3)>> ptr) => - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>( - objc.newPointerBlock(_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + ffi.UnsignedLong arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -12765,86 +17078,132 @@ abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObj /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)> - fromFunction(int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>( - objc.newClosureBlock( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable, - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3) => - fn(arg0, arg1, arg2, arg3), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + fromFunction( + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, + ) => fn(arg0, arg1, arg2, arg3), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. extension ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_CallExtension - on objc.ObjCBlock< - ffi.UnsignedLong Function( + on + objc.ObjCBlock< + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.UnsignedLong)> { - int call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer> arg2, int arg3) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - ffi.UnsignedLong arg3)>>() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>()(ref.pointer, arg0, arg1, arg2, arg3); + ffi.UnsignedLong, + ) + > { + int call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + ffi.UnsignedLong arg3, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >()(ref.pointer, arg0, arg1, arg2, arg3); } ffi.Pointer _ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0)>>() - .asFunction Function(ffi.Pointer)>()( - arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction Function(ffi.Pointer)>()(arg0); ffi.Pointer _ObjCBlock_NSZone_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline) .cast(); ffi.Pointer _ObjCBlock_NSZone_ffiVoid_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_NSZone_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_NSZone_ffiVoid_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSZone_ffiVoid_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. abstract final class ObjCBlock_NSZone_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock Function(ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -12852,16 +17211,18 @@ abstract final class ObjCBlock_NSZone_ffiVoid { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_NSZone_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newPointerBlock(_ObjCBlock_NSZone_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -12872,13 +17233,18 @@ abstract final class ObjCBlock_NSZone_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock Function(ffi.Pointer)> - fromFunction(ffi.Pointer Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock Function(ffi.Pointer)>( - objc.newClosureBlock(_ObjCBlock_NSZone_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + fromFunction( + ffi.Pointer Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newClosureBlock( + _ObjCBlock_NSZone_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. @@ -12886,45 +17252,62 @@ extension ObjCBlock_NSZone_ffiVoid_CallExtension on objc.ObjCBlock Function(ffi.Pointer)> { ffi.Pointer call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); } bool _ObjCBlock_bool_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_bool_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_bool_ffiVoid_fnPtrTrampoline, false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_fnPtrTrampoline, false) .cast(); bool _ObjCBlock_bool_ffiVoid_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => + ffi.Pointer block, + ffi.Pointer arg0, +) => (objc.getBlockClosure(block) as bool Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_bool_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_bool_ffiVoid_closureTrampoline, false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_closureTrampoline, false) .cast(); /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_bool_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -12932,15 +17315,16 @@ abstract final class ObjCBlock_bool_ffiVoid { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -12951,13 +17335,17 @@ abstract final class ObjCBlock_bool_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - bool Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock(_ObjCBlock_bool_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + bool Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock)>`. @@ -12965,55 +17353,76 @@ extension ObjCBlock_bool_ffiVoid_CallExtension on objc.ObjCBlock)> { bool call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0); + bool Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); } bool _ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer _ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline, false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline, false) .cast(); bool _ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); ffi.Pointer _ObjCBlock_bool_ffiVoid_Protocol_closureCallable = ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline, false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline, false) .cast(); /// Construction methods for `objc.ObjCBlock, Protocol)>`. abstract final class ObjCBlock_bool_ffiVoid_Protocol { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock, Protocol)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock, Protocol)>( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, Protocol)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -13021,16 +17430,24 @@ abstract final class ObjCBlock_bool_ffiVoid_Protocol { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock, Protocol)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock, Protocol)>( - objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, Protocol)>( + objc.newPointerBlock( + _ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -13040,97 +17457,133 @@ abstract final class ObjCBlock_bool_ffiVoid_Protocol { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, Protocol)> fromFunction( - bool Function(ffi.Pointer, Protocol) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, Protocol)>( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_Protocol_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, Protocol.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock, Protocol)> + fromFunction( + bool Function(ffi.Pointer, Protocol) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, Protocol)>( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_Protocol_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, Protocol.castFromPointer(arg1, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, Protocol)>`. extension ObjCBlock_bool_ffiVoid_Protocol_CallExtension on objc.ObjCBlock, Protocol)> { bool call(ffi.Pointer arg0, Protocol arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>()( - ref.pointer, arg0, arg1.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); } bool _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline, false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline, false) .cast(); bool _ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline, false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline, false) .cast(); /// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. abstract final class ObjCBlock_bool_ffiVoid_objcObjCObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)>( - pointer, - retain: retain, - release: release); + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); /// 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. - static objc.ObjCBlock, ffi.Pointer)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock, ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -13141,97 +17594,143 @@ abstract final class ObjCBlock_bool_ffiVoid_objcObjCObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer)> fromFunction( - bool Function(ffi.Pointer, objc.ObjCObjectBase) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, objc.ObjCObjectBase(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + bool Function(ffi.Pointer, objc.ObjCObjectBase) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, objc.ObjCObjectBase(arg1, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ffiVoid_objcObjCObject_CallExtension on objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer)> { - bool call(ffi.Pointer arg0, objc.ObjCObjectBase arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>()( - ref.pointer, arg0, arg1.ref.pointer); +extension ObjCBlock_bool_ffiVoid_objcObjCObject_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > { + bool call(ffi.Pointer arg0, objc.ObjCObjectBase arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); } bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable = + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable = ffi.Pointer.fromFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline, false) + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline, false) .cast(); /// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. abstract final class ObjCBlock_bool_ffiVoid_objcObjCSelector { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)>( - pointer, - retain: retain, - release: release); + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); /// 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. - static objc.ObjCBlock, ffi.Pointer)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock, ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -13242,127 +17741,168 @@ abstract final class ObjCBlock_bool_ffiVoid_objcObjCSelector { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer)> - fromFunction(bool Function(ffi.Pointer, ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, arg1), - keepIsolateAlive), - retain: false, - release: true); + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + bool Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. extension ObjCBlock_bool_ffiVoid_objcObjCSelector_CallExtension - on objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)> { + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > { bool call(ffi.Pointer arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, arg1); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); } void - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2); +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable = +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline) - .cast(); -void - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable = +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline, + ) .cast(); void - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline, + ) ..keepIsolateAlive = false; void - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -13371,55 +17911,74 @@ void } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>`. abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>, - ffi.Pointer, - NSDictionary)> - castFromPointer(ffi.Pointer pointer, {bool retain = false, bool release = false}) => + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary)>(pointer, retain: retain, release: release); + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -13427,17 +17986,40 @@ abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCO /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>, - ffi.Pointer, - NSDictionary)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> ptr) => + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary)>(objc.newPointerBlock(_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable, ptr.cast()), retain: false, release: true); + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -13447,19 +18029,51 @@ abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCO /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)> - fromFunction(void Function(objc.ObjCBlock?, NSError)>, objc.ObjCObjectBase, NSDictionary) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) => fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer(arg0, retain: true, release: true), - objc.ObjCObjectBase(arg1, retain: true, release: true), - NSDictionary.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + fromFunction( + void Function( + objc.ObjCBlock?, NSError)>, + objc.ObjCObjectBase, + NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: true, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: true, release: true), + NSDictionary.castFromPointer(arg2, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -13471,40 +18085,51 @@ abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCO /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>, - ffi.Pointer, - NSDictionary)> listener( - void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>, - objc.ObjCObjectBase, - NSDictionary) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + listener( + void Function( + objc.ObjCBlock?, NSError)>, + objc.ObjCObjectBase, + NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer(arg0, - retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - NSDictionary.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _ObjectiveCBindings_wrapListenerBlock_1b3bb6a(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>, - ffi.Pointer, - NSDictionary)>(wrapper, retain: false, release: true); + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -13518,128 +18143,167 @@ abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCO /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>, - ffi.Pointer, - NSDictionary)> blocking( - void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>, - objc.ObjCObjectBase, - NSDictionary) - fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + blocking( + void Function( + objc.ObjCBlock?, NSError)>, + objc.ObjCObjectBase, + NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer(arg0, - retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - NSDictionary.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer(arg0, - retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - NSDictionary.castFromPointer(arg2, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>, - ffi.Pointer, - NSDictionary)>(wrapper, retain: false, release: true); + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>`. extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_CallExtension - on objc.ObjCBlock< - ffi.Void Function( + on + objc.ObjCBlock< + ffi.Void Function( objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>, + ffi.Void Function(ffi.Pointer?, NSError) + >, ffi.Pointer, - NSDictionary)> { + NSDictionary, + ) + > { void call( - objc.ObjCBlock?, NSError)> - arg0, - objc.ObjCObjectBase arg1, - NSDictionary arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); + objc.ObjCBlock?, NSError)> + arg0, + objc.ObjCObjectBase arg1, + NSDictionary arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); } void _ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => + ffi.Pointer block, + ffi.Pointer arg0, +) => (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer arg0, +) { (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_ffiVoid_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); } catch (e) { @@ -13650,46 +18314,68 @@ void _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// 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. - static objc.ObjCBlock)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -13700,13 +18386,17 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock(_ObjCBlock_ffiVoid_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -13718,16 +18408,21 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _ObjectiveCBindings_wrapListenerBlock_ovsamd(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>(wrapper, - retain: false, release: true); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -13741,23 +18436,31 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _ObjectiveCBindings_wrapBlockingBlock_ovsamd( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>(wrapper, - retain: false, release: true); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); } } @@ -13766,69 +18469,103 @@ extension ObjCBlock_ffiVoid_ffiVoid_CallExtension on objc.ObjCBlock)> { void call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0); + void Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); } void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -13837,45 +18574,55 @@ void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSCoder)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock, NSCoder)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock, NSCoder)>( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSCoder)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -13883,16 +18630,24 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock, NSCoder)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => - objc.ObjCBlock, NSCoder)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSCoder)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -13902,18 +18657,20 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSCoder)> fromFunction( - void Function(ffi.Pointer, NSCoder) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSCoder)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSCoder.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock, NSCoder)> + fromFunction( + void Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSCoder)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -13925,20 +18682,23 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock, NSCoder)> - listener(void Function(ffi.Pointer, NSCoder) fn, - {bool keepIsolateAlive = true}) { + listener( + void Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _ObjectiveCBindings_wrapListenerBlock_18v1jvf(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock, NSCoder)>( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -13952,29 +18712,35 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock, NSCoder)> - blocking(void Function(ffi.Pointer, NSCoder) fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock, NSCoder)>( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } } @@ -13982,94 +18748,125 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { extension ObjCBlock_ffiVoid_ffiVoid_NSCoder_CallExtension on objc.ObjCBlock, NSCoder)> { void call(ffi.Pointer arg0, NSCoder arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>()( - ref.pointer, arg0, arg1.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); } void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2)>>() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer, - int)>()(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2) => - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer, int))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable = +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2) { - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer, int))(arg0, arg1, arg2); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)> - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline, + ) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) { try { - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer, int))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -14078,67 +18875,95 @@ void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)> - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)> - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable = + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, + ) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock, NSStream, ffi.UnsignedLong)>`. abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, - ffi.UnsignedLong)>(pointer, retain: retain, release: release); + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >(pointer, retain: retain, release: release); /// 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. - static objc - .ObjCBlock, NSStream, ffi.UnsignedLong)> - fromFunctionPointer( - ffi.Pointer arg0, ffi.Pointer arg1, ffi.UnsignedLong arg2)>> - ptr) => - objc.ObjCBlock, NSStream, ffi.UnsignedLong)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -14148,20 +18973,32 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSStream, ffi.UnsignedLong)> fromFunction( - void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock, NSStream, ffi.UnsignedLong)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1, int arg2) => - fn( - arg0, - NSStream.castFromPointer(arg1, retain: true, release: true), - NSStreamEvent.fromValue(arg2)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: true, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -14173,25 +19010,32 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong)> - listener(void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - int arg2) => - fn( - arg0, - NSStream.castFromPointer(arg1, retain: false, release: true), - NSStreamEvent.fromValue(arg2)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: false, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); final wrapper = _ObjectiveCBindings_wrapListenerBlock_hoampi(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, - ffi.UnsignedLong)>(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -14205,126 +19049,170 @@ abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong)> - blocking(void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, - {bool keepIsolateAlive = true}) { + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - int arg2) => - fn( - arg0, - NSStream.castFromPointer(arg1, retain: false, release: true), - NSStreamEvent.fromValue(arg2)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: false, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1, - int arg2) => - fn( - arg0, - NSStream.castFromPointer(arg1, retain: false, release: true), - NSStreamEvent.fromValue(arg2)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: false, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); final wrapper = _ObjectiveCBindings_wrapBlockingBlock_hoampi( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, - ffi.UnsignedLong)>(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock, NSStream, ffi.UnsignedLong)>`. extension ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_CallExtension - on objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong)> { + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > { void call(ffi.Pointer arg0, NSStream arg1, NSStreamEvent arg2) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>()(ref.pointer, arg0, arg1.ref.pointer, arg2.value); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.value); } void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable = +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); ffi.Pointer - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable = +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { try { - (objc.getBlockClosure(block) as void Function(ffi.Pointer, - ffi.Pointer))(arg0, arg1); + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -14333,62 +19221,88 @@ void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline, + ) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock?, NSError)>`. abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock?, NSError)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, - NSError)>(pointer, retain: retain, release: release); + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock?, NSError)>( + pointer, + retain: retain, + release: release, + ); /// 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. - static objc.ObjCBlock?, NSError)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) => + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock?, NSError)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.newPointerBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -14398,20 +19312,34 @@ abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?, NSError)> fromFunction( - void Function(NSSecureCoding?, NSError) fn, - {bool keepIsolateAlive = true}) => + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + fromFunction( + void Function(NSSecureCoding?, NSError) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock?, NSError)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer(arg0, retain: true, release: true), - NSError.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: true, + release: true, + ), + NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -14422,28 +19350,35 @@ abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock?, NSError)> - listener(void Function(NSSecureCoding?, NSError) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + listener( + void Function(NSSecureCoding?, NSError) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer(arg0, - retain: false, release: true), - NSError.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Pointer?, NSError) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -14456,107 +19391,150 @@ abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc - .ObjCBlock?, NSError)> - blocking(void Function(NSSecureCoding?, NSError) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + blocking( + void Function(NSSecureCoding?, NSError) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer(arg0, - retain: false, release: true), - NSError.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, - ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer(arg0, - retain: false, release: true), - NSError.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Pointer?, NSError) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock?, NSError)>`. -extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError_CallExtension on objc - .ObjCBlock?, NSError)> { +extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > { void call(NSSecureCoding? arg0, NSError arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1.ref.pointer); -} - -instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - instancetype Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - instancetype Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1.ref.pointer); +} + +instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable = ffi.Pointer.fromFunction< - instancetype Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline) + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline) .cast(); instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as instancetype Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as instancetype Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable = ffi.Pointer.fromFunction< - instancetype Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline) + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>`. abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, NSCoder)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder)>(pointer, retain: retain, release: release); + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -14564,16 +19542,35 @@ abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, NSCoder)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, NSCoder)>( - objc.newPointerBlock( - _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + >( + objc.newPointerBlock( + _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -14583,121 +19580,180 @@ abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)> - fromFunction( - Dartinstancetype? Function(ffi.Pointer, NSCoder) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>( - objc.newClosureBlock( - _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSCoder.castFromPointer(arg1, retain: true, release: true)) - ?.ref - .retainAndReturnPointer() ?? - ffi.nullptr, - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > + fromFunction( + Dartinstancetype? Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + >( + objc.newClosureBlock( + _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0, + NSCoder.castFromPointer(arg1, retain: true, release: true), + )?.ref.retainAndReturnPointer() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>`. extension ObjCBlock_instancetype_ffiVoid_NSCoder_CallExtension - on objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, NSCoder)> { - Dartinstancetype? call(ffi.Pointer arg0, NSCoder arg1) => ref - .pointer.ref.invoke + on + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > { + Dartinstancetype? call(ffi.Pointer arg0, NSCoder arg1) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction, ffi.Pointer, ffi.Pointer)>() - (ref.pointer, arg0, arg1.ref.pointer) + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer) .address == 0 ? null : objc.ObjCObjectBase( ref.pointer.ref.invoke - .cast block, ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction, ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0, arg1.ref.pointer), + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer), retain: false, - release: true); + release: true, + ); } instancetype - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3)>>() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>()( - arg0, arg1, arg2, arg3); +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable = +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable = ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>( - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline) - .cast(); -instancetype - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3) => - (objc.getBlockClosure(block) as instancetype Function( + instancetype Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>))(arg0, arg1, arg2, arg3); + ffi.Pointer>, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline) + .cast(); +instancetype +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +) => + (objc.getBlockClosure(block) + as instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable = +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable = ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>( - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline) + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>`. abstract final class ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, NSData, NSString, ffi.Pointer>)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>)>(pointer, - retain: retain, release: release); + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -14705,18 +19761,41 @@ abstract final class ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Pointer? Function(ffi.Pointer, NSData, - NSString, ffi.Pointer>)> - fromFunctionPointer(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer> arg3)>> ptr) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>)>( - objc.newPointerBlock(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + >( + objc.newPointerBlock( + _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -14726,113 +19805,199 @@ abstract final class ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)> - fromFunction(Dartinstancetype? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>( - objc.newClosureBlock( - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable, - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3) => - fn(arg0, NSData.castFromPointer(arg1, retain: true, release: true), NSString.castFromPointer(arg2, retain: true, release: true), arg3)?.ref.retainAndAutorelease() ?? ffi.nullptr, - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > + fromFunction( + Dartinstancetype? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + >( + objc.newClosureBlock( + _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) => + fn( + arg0, + NSData.castFromPointer(arg1, retain: true, release: true), + NSString.castFromPointer(arg2, retain: true, release: true), + arg3, + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>`. extension ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_CallExtension - on objc.ObjCBlock< - ffi.Pointer? Function(ffi.Pointer, NSData, - NSString, ffi.Pointer>)> { - Dartinstancetype? call(ffi.Pointer arg0, NSData arg1, NSString arg2, ffi.Pointer> arg3) => ref - .pointer.ref.invoke + on + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > { + Dartinstancetype? call( + ffi.Pointer arg0, + NSData arg1, + NSString arg2, + ffi.Pointer> arg3, + ) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3)>>() - .asFunction< + ffi.NativeFunction< instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>() - (ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3) + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3) .address == 0 ? null : objc.ObjCObjectBase( - ref.pointer.ref.invoke.cast block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer> arg3)>>().asFunction, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3), + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3), retain: true, - release: true); + release: true, + ); } ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) .cast(); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); +_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. abstract final class ObjCBlock_objcObjCObject_ffiVoid { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock Function(ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); /// 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. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -14842,89 +20007,123 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock Function(ffi.Pointer)> - fromFunction(objc.ObjCObjectBase Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, - (ffi.Pointer arg0) => - fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension on objc - .ObjCBlock Function(ffi.Pointer)> { +extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0), - retain: true, - release: true); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); } ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>()(arg0, arg1); +_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline) .cast(); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +_ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)>`. abstract final class ObjCBlock_objcObjCObject_ffiVoid_NSZone { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, ffi.Pointer)>(pointer, - retain: retain, release: release); + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -14932,15 +20131,35 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid_NSZone { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, ffi.Pointer)> - fromFunctionPointer(ffi.Pointer Function(ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) => - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -14950,99 +20169,141 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid_NSZone { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)> - fromFunction(objc.ObjCObjectBase Function(ffi.Pointer, ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, arg1).ref.retainAndReturnPointer(), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1).ref.retainAndReturnPointer(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)>`. extension ObjCBlock_objcObjCObject_ffiVoid_NSZone_CallExtension - on objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, ffi.Pointer)> { + on + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > { objc.ObjCObjectBase call( - ffi.Pointer arg0, ffi.Pointer arg1) => - objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, arg1), - retain: false, - release: true); + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1), + retain: false, + release: true, + ); } ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>()(arg0, arg1); +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable = +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline) .cast(); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable = +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - pointer, - retain: retain, - release: release); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -15050,15 +20311,35 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)> - fromFunctionPointer(ffi.Pointer Function(ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -15068,109 +20349,157 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)> fromFunction( - objc.ObjCObjectBase Function( - ffi.Pointer, ffi.Pointer) - fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, arg1).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function( + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_CallExtension - on objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)> { + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > { objc.ObjCObjectBase call( - ffi.Pointer arg0, ffi.Pointer arg1) => - objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0, arg1), - retain: true, - release: true); + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1), + retain: true, + release: true, + ); } ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2); +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable = +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline) - .cast(); -ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline, + ) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable = +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline, + ) .cast(); /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(pointer, - retain: retain, release: release); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -15178,17 +20507,38 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCO /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - fromFunctionPointer(ffi.Pointer Function(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> ptr) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -15198,123 +20548,180 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCO /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)> - fromFunction(objc.ObjCObjectBase Function(ffi.Pointer, ffi.Pointer, objc.ObjCObjectBase) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable, - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) => - fn(arg0, arg1, objc.ObjCObjectBase(arg2, retain: true, release: true)) - .ref - .retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function( + ffi.Pointer, + ffi.Pointer, + objc.ObjCObjectBase, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + arg1, + objc.ObjCObjectBase(arg2, retain: true, release: true), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_CallExtension - on objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> { - objc.ObjCObjectBase call(ffi.Pointer arg0, - ffi.Pointer arg1, objc.ObjCObjectBase arg2) => - objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0, arg1, arg2.ref.pointer), - retain: true, - release: true); + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.ObjCObjectBase call( + ffi.Pointer arg0, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2.ref.pointer), + retain: true, + release: true, + ); } ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(arg0, arg1, arg2, arg3); +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable = +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline) - .cast(); -ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2, arg3); + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline, + ) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable = +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline, + ) .cast(); /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(pointer, retain: retain, release: release); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -15322,21 +20729,41 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCO /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)> - fromFunctionPointer(ffi.Pointer Function(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3)>> ptr) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -15346,84 +20773,131 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCO /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)> - fromFunction(objc.ObjCObjectBase Function(ffi.Pointer, ffi.Pointer, objc.ObjCObjectBase, objc.ObjCObjectBase) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable, - (ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3) => - fn(arg0, arg1, objc.ObjCObjectBase(arg2, retain: true, release: true), objc.ObjCObjectBase(arg3, retain: true, release: true)).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function( + ffi.Pointer, + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + arg1, + objc.ObjCObjectBase(arg2, retain: true, release: true), + objc.ObjCObjectBase(arg3, retain: true, release: true), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_CallExtension - on objc.ObjCBlock< - ffi.Pointer Function( + on + objc.ObjCBlock< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)> { + ffi.Pointer, + ) + > { objc.ObjCObjectBase call( - ffi.Pointer arg0, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2, - objc.ObjCObjectBase arg3) => - objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0, arg1, arg2.ref.pointer, arg3.ref.pointer), - retain: true, - release: true); + ffi.Pointer arg0, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + objc.ObjCObjectBase arg3, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2.ref.pointer, arg3.ref.pointer), + retain: true, + release: true, + ); } /// Protocol class Protocol extends objc.ObjCObjectBase { - Protocol._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super(pointer, retain: retain, release: release); + Protocol._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); /// Constructs a [Protocol] that points to the same underlying object as [other]. Protocol.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [Protocol] that wraps the given raw object pointer. - Protocol.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + Protocol.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [Protocol]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_Protocol); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_Protocol, + ); } } -late final _class_DOBJCDartInputStreamAdapter = - objc.getClass("DOBJCDartInputStreamAdapter"); +late final _class_DOBJCDartInputStreamAdapter = objc.getClass( + "DOBJCDartInputStreamAdapter", +); late final _class_DOBJCDartProtocol = objc.getClass("DOBJCDartProtocol"); -late final _class_DOBJCDartProtocolBuilder = - objc.getClass("DOBJCDartProtocolBuilder"); +late final _class_DOBJCDartProtocolBuilder = objc.getClass( + "DOBJCDartProtocolBuilder", +); late final _class_NSArray = objc.getClass("NSArray"); late final _class_NSCharacterSet = objc.getClass("NSCharacterSet"); late final _class_NSCoder = objc.getClass("NSCoder"); @@ -15448,8 +20922,9 @@ late final _class_NSMutableString = objc.getClass("NSMutableString"); late final _class_NSNotification = objc.getClass("NSNotification"); late final _class_NSNumber = objc.getClass("NSNumber"); late final _class_NSObject = objc.getClass("NSObject"); -late final _class_NSOrderedCollectionDifference = - objc.getClass("NSOrderedCollectionDifference"); +late final _class_NSOrderedCollectionDifference = objc.getClass( + "NSOrderedCollectionDifference", +); late final _class_NSOrderedSet = objc.getClass("NSOrderedSet"); late final _class_NSOutputStream = objc.getClass("NSOutputStream"); late final _class_NSRunLoop = objc.getClass("NSRunLoop"); @@ -15462,2105 +20937,3185 @@ late final _class_NSValue = objc.getClass("NSValue"); late final _class_Protocol = objc.getClass("Protocol"); final _objc_msgSend_102xxo4 = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() - .asFunction< + ffi.NativeFunction< NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_102xxo4Stret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_11cbyu0 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); final _objc_msgSend_11e9f5x = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_11spmsz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_122v0cv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer>, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer>, - int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer>, + int, + ) + >(); final _objc_msgSend_12py2ux = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, int)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_13mclwd = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Char)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Char, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_13yqbb6 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_14hpxwa = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_14hvw5k = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_151sglz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_158ju31 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_15bolr3 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_15qeuct = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_161ne8y = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); final _objc_msgSend_16f0drb = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.LongLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_16fy0up = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_17amj0z = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); final _objc_msgSend_182fzon = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - NSRange Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_182fzonStret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1895u4n = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ffi.Pointer)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ffi.Pointer, + ) + >(); final _objc_msgSend_18qun1e = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_19lrthf = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + >(); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1alewu7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); -final _objc_msgSend_1b5ysjl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>>() + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>(); -final _objc_msgSend_1bvics1 = objc.msgSendPointer + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1b5ysjl = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>(); -final _objc_msgSend_1ceswyu = objc.msgSendPointer + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_1bvics1 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( ffi.Pointer, - ffi.UnsignedLong, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >() .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ceswyu = objc.msgSendPointer + .cast< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1co9mn4 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedShort)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedShort, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, int)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1d8s65w = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange)>>() - .asFunction< + ffi.NativeFunction< NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); final _objc_msgSend_1d8s65wStret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); final _objc_msgSend_1d9e4oe = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1deg8x = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedShort Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.UnsignedShort Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, int)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1dydpdi = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int, + ) + >(); final _objc_msgSend_1e3pm0z = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_1efxbd8 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_1ffoev1 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>, - ffi.Pointer)>>() + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); final _objc_msgSend_1fuqfwb = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1ged0jd = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); final _objc_msgSend_1gypgok = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); final _objc_msgSend_1h2q612 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1hz7y9r = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_1i2r70j = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>, ffi.Pointer, - ffi.Pointer)>>() + ) + > + >, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1i9r4xy = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1iyq28l = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); final _objc_msgSend_1j9bhml = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1jtxufi = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1jwityx = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Short Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_1k0ezzm = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1k101e3 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.LongLong Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_1k1o1s7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSRange)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_1k4kd9s = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1k745tv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1ko4qka = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedChar Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedChar Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_1lhpu4m = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1lsax7n = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1lv8yz3 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, int)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); final _objc_msgSend_1n40f6p = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); final _objc_msgSend_1njucl2 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedShort)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedShort, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1nmlvqc = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange)>>() - .asFunction< + ffi.NativeFunction< NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); final _objc_msgSend_1nmlvqcStret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); final _objc_msgSend_1nomli1 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1oteutl = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_1ozwf6k = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); final _objc_msgSend_1p4gbjy = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLongLong Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_1pa9f4m = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1pnyuds = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1qv0eq4 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1s2gdyk = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1sotr3r = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1srf6wk = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1t6aok9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); final _objc_msgSend_1tfztp = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedLong)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1tiux5i = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1tv4uax = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(); final _objc_msgSend_1ukqyt8 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1vd1c5m = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1vnlaqg = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1vxoo9h = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1wdb8ji = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1wt9a7r = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1x2hskc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLongLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLongLong, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1xi08ar = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); final _objc_msgSend_1ya1kjn = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int64)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_1ym6zyw = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_2cgrxl = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Float Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Float Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_2u4jm6 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); final _objc_msgSend_3cbdpb = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_3ctkt6 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_3l8zum = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_3nbx5e = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_3pyzne = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_56zxyn = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_68x6r1 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Short)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Short, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_6ex6p5 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_6peh6o = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, int)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_6z4k82 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_7g3u2y = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_7kpg7m = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_7uautw = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedChar)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedChar, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_8321cp = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); final _objc_msgSend_898fog = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_89xgla = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); final _objc_msgSend_8cymbm = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_91o635 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_9b3h4v = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); final _objc_msgSend_9x4k8x = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_bfp043 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); final _objc_msgSend_bstjp9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(); final _objc_msgSend_c0vg4w = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_cfx8ce = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_d3i1uy = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSRange Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - NSRange Function(ffi.Pointer, - ffi.Pointer, int)>(); + NSRange Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_d3i1uyStret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_dbvvll = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_degb40 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedInt)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_diypgk = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_djsa9o = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_dv3z6r = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.UnsignedLong, - ffi.Pointer>)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + int, + ffi.Pointer>, + ) + >(); final _objc_msgSend_e3qsqz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_e9mncn = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_eh32gn = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, NSRange, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(); final _objc_msgSend_erqryg = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_et8cuh = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Float)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, double)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); final _objc_msgSend_gcjqkl = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); final _objc_msgSend_gerswc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Uint8)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint8, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, int)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_gg0462 = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ffi.Pointer, + ) + >(); final _objc_msgSend_gg0462Stret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ffi.Pointer, + ) + >(); final _objc_msgSend_gx50so = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_hiwitm = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong, ffi.Bool)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, bool)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); final _objc_msgSend_i30zh3 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - NSRange, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - int, - int, - NSRange, - ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + int, + int, + NSRange, + ffi.Pointer, + ) + >(); final _objc_msgSend_jsclrq = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedInt)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, int)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_k4j8m3 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Bool)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - bool)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + bool, + ) + >(); final _objc_msgSend_l9p60w = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); final _objc_msgSend_lh0jh5 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); final _objc_msgSend_mabicu = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_n2svg2 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int, + ) + >(); final _objc_msgSend_o16d3k = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSRange, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSRange, + ) + >(); final _objc_msgSend_oa8mke = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, double)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); final _objc_msgSend_otx1t4 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong, ffi.Long)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Long, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); final _objc_msgSend_ourvf2 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_p4nurx = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, NSRange)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, NSRange)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_pfv6jd = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_pg1fnv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_qm9f5w = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, NSRange)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, NSRange)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_qugqlf = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_rc4ypv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); final _objc_msgSend_s92gih = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_sz90oi = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_ud8gg = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedShort Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedShort Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_uimyc7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - NSRange Function(ffi.Pointer, - ffi.Pointer, NSRange)>>() + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - NSRange Function(ffi.Pointer, - ffi.Pointer, NSRange)>(); + NSRange Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_uimyc7Stret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_w9bq5x = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Bool)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - bool)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + bool, + ) + >(); final _objc_msgSend_xmlz1t = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Char Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Char Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_xpqfd7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, NSRange)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); final _objc_msgSend_xrqic1 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange)>>() + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_xw2lbc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); final _objc_msgSend_zmbtbd = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); final _objc_msgSend_zuf90e = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_zug4wi = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); late final _protocol_NSCoding = objc.getProtocol("NSCoding"); late final _protocol_NSCopying = objc.getProtocol("NSCopying"); late final _protocol_NSFastEnumeration = objc.getProtocol("NSFastEnumeration"); -late final _protocol_NSItemProviderReading = - objc.getProtocol("NSItemProviderReading"); -late final _protocol_NSItemProviderWriting = - objc.getProtocol("NSItemProviderWriting"); +late final _protocol_NSItemProviderReading = objc.getProtocol( + "NSItemProviderReading", +); +late final _protocol_NSItemProviderWriting = objc.getProtocol( + "NSItemProviderWriting", +); late final _protocol_NSMutableCopying = objc.getProtocol("NSMutableCopying"); late final _protocol_NSObject = objc.getProtocol("NSObject"); late final _protocol_NSSecureCoding = objc.getProtocol("NSSecureCoding"); late final _protocol_NSStreamDelegate = objc.getProtocol("NSStreamDelegate"); -late final _sel_URLByResolvingAliasFileAtURL_options_error_ = - objc.registerName("URLByResolvingAliasFileAtURL:options:error:"); +late final _sel_URLByResolvingAliasFileAtURL_options_error_ = objc.registerName( + "URLByResolvingAliasFileAtURL:options:error:", +); late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = objc.registerName( - "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); -late final _sel_URLWithDataRepresentation_relativeToURL_ = - objc.registerName("URLWithDataRepresentation:relativeToURL:"); + "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", + ); +late final _sel_URLWithDataRepresentation_relativeToURL_ = objc.registerName( + "URLWithDataRepresentation:relativeToURL:", +); late final _sel_URLWithString_ = objc.registerName("URLWithString:"); -late final _sel_URLWithString_encodingInvalidCharacters_ = - objc.registerName("URLWithString:encodingInvalidCharacters:"); -late final _sel_URLWithString_relativeToURL_ = - objc.registerName("URLWithString:relativeToURL:"); +late final _sel_URLWithString_encodingInvalidCharacters_ = objc.registerName( + "URLWithString:encodingInvalidCharacters:", +); +late final _sel_URLWithString_relativeToURL_ = objc.registerName( + "URLWithString:relativeToURL:", +); late final _sel_UTF8String = objc.registerName("UTF8String"); late final _sel_absoluteString = objc.registerName("absoluteString"); late final _sel_absoluteURL = objc.registerName("absoluteURL"); -late final _sel_absoluteURLWithDataRepresentation_relativeToURL_ = - objc.registerName("absoluteURLWithDataRepresentation:relativeToURL:"); +late final _sel_absoluteURLWithDataRepresentation_relativeToURL_ = objc + .registerName("absoluteURLWithDataRepresentation:relativeToURL:"); late final _sel_addData_ = objc.registerName("addData:"); -late final _sel_addEntriesFromDictionary_ = - objc.registerName("addEntriesFromDictionary:"); +late final _sel_addEntriesFromDictionary_ = objc.registerName( + "addEntriesFromDictionary:", +); late final _sel_addIndex_ = objc.registerName("addIndex:"); late final _sel_addIndexesInRange_ = objc.registerName("addIndexesInRange:"); late final _sel_addIndexes_ = objc.registerName("addIndexes:"); late final _sel_addObject_ = objc.registerName("addObject:"); -late final _sel_addObjectsFromArray_ = - objc.registerName("addObjectsFromArray:"); +late final _sel_addObjectsFromArray_ = objc.registerName( + "addObjectsFromArray:", +); late final _sel_addObjects_count_ = objc.registerName("addObjects:count:"); late final _sel_addProtocol_ = objc.registerName("addProtocol:"); late final _sel_allKeys = objc.registerName("allKeys"); @@ -17569,83 +24124,109 @@ late final _sel_allObjects = objc.registerName("allObjects"); late final _sel_allValues = objc.registerName("allValues"); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); -late final _sel_alphanumericCharacterSet = - objc.registerName("alphanumericCharacterSet"); +late final _sel_alphanumericCharacterSet = objc.registerName( + "alphanumericCharacterSet", +); late final _sel_anyObject = objc.registerName("anyObject"); late final _sel_appendBytes_length_ = objc.registerName("appendBytes:length:"); late final _sel_appendData_ = objc.registerName("appendData:"); late final _sel_array = objc.registerName("array"); -late final _sel_arrayByAddingObject_ = - objc.registerName("arrayByAddingObject:"); -late final _sel_arrayByAddingObjectsFromArray_ = - objc.registerName("arrayByAddingObjectsFromArray:"); +late final _sel_arrayByAddingObject_ = objc.registerName( + "arrayByAddingObject:", +); +late final _sel_arrayByAddingObjectsFromArray_ = objc.registerName( + "arrayByAddingObjectsFromArray:", +); late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); -late final _sel_arrayWithObjects_count_ = - objc.registerName("arrayWithObjects:count:"); +late final _sel_arrayWithObjects_count_ = objc.registerName( + "arrayWithObjects:count:", +); late final _sel_autorelease = objc.registerName("autorelease"); -late final _sel_availableStringEncodings = - objc.registerName("availableStringEncodings"); +late final _sel_availableStringEncodings = objc.registerName( + "availableStringEncodings", +); late final _sel_baseURL = objc.registerName("baseURL"); -late final _sel_bitmapRepresentation = - objc.registerName("bitmapRepresentation"); -late final _sel_bookmarkDataWithContentsOfURL_error_ = - objc.registerName("bookmarkDataWithContentsOfURL:error:"); +late final _sel_bitmapRepresentation = objc.registerName( + "bitmapRepresentation", +); +late final _sel_bookmarkDataWithContentsOfURL_error_ = objc.registerName( + "bookmarkDataWithContentsOfURL:error:", +); late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_ = objc.registerName( - "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); + "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:", + ); late final _sel_boolValue = objc.registerName("boolValue"); late final _sel_buildInstance_ = objc.registerName("buildInstance:"); late final _sel_bytes = objc.registerName("bytes"); -late final _sel_cStringUsingEncoding_ = - objc.registerName("cStringUsingEncoding:"); -late final _sel_canBeConvertedToEncoding_ = - objc.registerName("canBeConvertedToEncoding:"); -late final _sel_canLoadObjectOfClass_ = - objc.registerName("canLoadObjectOfClass:"); -late final _sel_capitalizedLetterCharacterSet = - objc.registerName("capitalizedLetterCharacterSet"); +late final _sel_cStringUsingEncoding_ = objc.registerName( + "cStringUsingEncoding:", +); +late final _sel_canBeConvertedToEncoding_ = objc.registerName( + "canBeConvertedToEncoding:", +); +late final _sel_canLoadObjectOfClass_ = objc.registerName( + "canLoadObjectOfClass:", +); +late final _sel_capitalizedLetterCharacterSet = objc.registerName( + "capitalizedLetterCharacterSet", +); late final _sel_capitalizedString = objc.registerName("capitalizedString"); -late final _sel_capitalizedStringWithLocale_ = - objc.registerName("capitalizedStringWithLocale:"); -late final _sel_caseInsensitiveCompare_ = - objc.registerName("caseInsensitiveCompare:"); +late final _sel_capitalizedStringWithLocale_ = objc.registerName( + "capitalizedStringWithLocale:", +); +late final _sel_caseInsensitiveCompare_ = objc.registerName( + "caseInsensitiveCompare:", +); late final _sel_charValue = objc.registerName("charValue"); late final _sel_characterAtIndex_ = objc.registerName("characterAtIndex:"); late final _sel_characterIsMember_ = objc.registerName("characterIsMember:"); -late final _sel_characterSetWithBitmapRepresentation_ = - objc.registerName("characterSetWithBitmapRepresentation:"); -late final _sel_characterSetWithCharactersInString_ = - objc.registerName("characterSetWithCharactersInString:"); -late final _sel_characterSetWithContentsOfFile_ = - objc.registerName("characterSetWithContentsOfFile:"); -late final _sel_characterSetWithRange_ = - objc.registerName("characterSetWithRange:"); +late final _sel_characterSetWithBitmapRepresentation_ = objc.registerName( + "characterSetWithBitmapRepresentation:", +); +late final _sel_characterSetWithCharactersInString_ = objc.registerName( + "characterSetWithCharactersInString:", +); +late final _sel_characterSetWithContentsOfFile_ = objc.registerName( + "characterSetWithContentsOfFile:", +); +late final _sel_characterSetWithRange_ = objc.registerName( + "characterSetWithRange:", +); late final _sel_class = objc.registerName("class"); late final _sel_close = objc.registerName("close"); late final _sel_code = objc.registerName("code"); -late final _sel_commonPrefixWithString_options_ = - objc.registerName("commonPrefixWithString:options:"); +late final _sel_commonPrefixWithString_options_ = objc.registerName( + "commonPrefixWithString:options:", +); late final _sel_compare_ = objc.registerName("compare:"); late final _sel_compare_options_ = objc.registerName("compare:options:"); -late final _sel_compare_options_range_ = - objc.registerName("compare:options:range:"); -late final _sel_compare_options_range_locale_ = - objc.registerName("compare:options:range:locale:"); -late final _sel_componentsJoinedByString_ = - objc.registerName("componentsJoinedByString:"); -late final _sel_componentsSeparatedByCharactersInSet_ = - objc.registerName("componentsSeparatedByCharactersInSet:"); -late final _sel_componentsSeparatedByString_ = - objc.registerName("componentsSeparatedByString:"); -late final _sel_compressedDataUsingAlgorithm_error_ = - objc.registerName("compressedDataUsingAlgorithm:error:"); +late final _sel_compare_options_range_ = objc.registerName( + "compare:options:range:", +); +late final _sel_compare_options_range_locale_ = objc.registerName( + "compare:options:range:locale:", +); +late final _sel_componentsJoinedByString_ = objc.registerName( + "componentsJoinedByString:", +); +late final _sel_componentsSeparatedByCharactersInSet_ = objc.registerName( + "componentsSeparatedByCharactersInSet:", +); +late final _sel_componentsSeparatedByString_ = objc.registerName( + "componentsSeparatedByString:", +); +late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( + "compressedDataUsingAlgorithm:error:", +); late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); late final _sel_containsIndex_ = objc.registerName("containsIndex:"); -late final _sel_containsIndexesInRange_ = - objc.registerName("containsIndexesInRange:"); +late final _sel_containsIndexesInRange_ = objc.registerName( + "containsIndexesInRange:", +); late final _sel_containsIndexes_ = objc.registerName("containsIndexes:"); late final _sel_containsObject_ = objc.registerName("containsObject:"); late final _sel_containsString_ = objc.registerName("containsString:"); @@ -17653,146 +24234,198 @@ late final _sel_controlCharacterSet = objc.registerName("controlCharacterSet"); late final _sel_copy = objc.registerName("copy"); late final _sel_copyWithZone_ = objc.registerName("copyWithZone:"); late final _sel_count = objc.registerName("count"); -late final _sel_countByEnumeratingWithState_objects_count_ = - objc.registerName("countByEnumeratingWithState:objects:count:"); -late final _sel_countOfIndexesInRange_ = - objc.registerName("countOfIndexesInRange:"); +late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( + "countByEnumeratingWithState:objects:count:", +); +late final _sel_countOfIndexesInRange_ = objc.registerName( + "countOfIndexesInRange:", +); late final _sel_data = objc.registerName("data"); late final _sel_dataRepresentation = objc.registerName("dataRepresentation"); late final _sel_dataUsingEncoding_ = objc.registerName("dataUsingEncoding:"); -late final _sel_dataUsingEncoding_allowLossyConversion_ = - objc.registerName("dataUsingEncoding:allowLossyConversion:"); -late final _sel_dataWithBytesNoCopy_length_ = - objc.registerName("dataWithBytesNoCopy:length:"); -late final _sel_dataWithBytesNoCopy_length_freeWhenDone_ = - objc.registerName("dataWithBytesNoCopy:length:freeWhenDone:"); -late final _sel_dataWithBytes_length_ = - objc.registerName("dataWithBytes:length:"); +late final _sel_dataUsingEncoding_allowLossyConversion_ = objc.registerName( + "dataUsingEncoding:allowLossyConversion:", +); +late final _sel_dataWithBytesNoCopy_length_ = objc.registerName( + "dataWithBytesNoCopy:length:", +); +late final _sel_dataWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( + "dataWithBytesNoCopy:length:freeWhenDone:", +); +late final _sel_dataWithBytes_length_ = objc.registerName( + "dataWithBytes:length:", +); late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); -late final _sel_dataWithContentsOfFile_ = - objc.registerName("dataWithContentsOfFile:"); -late final _sel_dataWithContentsOfFile_options_error_ = - objc.registerName("dataWithContentsOfFile:options:error:"); -late final _sel_dataWithContentsOfURL_ = - objc.registerName("dataWithContentsOfURL:"); -late final _sel_dataWithContentsOfURL_options_error_ = - objc.registerName("dataWithContentsOfURL:options:error:"); +late final _sel_dataWithContentsOfFile_ = objc.registerName( + "dataWithContentsOfFile:", +); +late final _sel_dataWithContentsOfFile_options_error_ = objc.registerName( + "dataWithContentsOfFile:options:error:", +); +late final _sel_dataWithContentsOfURL_ = objc.registerName( + "dataWithContentsOfURL:", +); +late final _sel_dataWithContentsOfURL_options_error_ = objc.registerName( + "dataWithContentsOfURL:options:error:", +); late final _sel_dataWithData_ = objc.registerName("dataWithData:"); late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); late final _sel_date = objc.registerName("date"); -late final _sel_dateByAddingTimeInterval_ = - objc.registerName("dateByAddingTimeInterval:"); -late final _sel_dateWithTimeIntervalSince1970_ = - objc.registerName("dateWithTimeIntervalSince1970:"); -late final _sel_dateWithTimeIntervalSinceNow_ = - objc.registerName("dateWithTimeIntervalSinceNow:"); -late final _sel_dateWithTimeIntervalSinceReferenceDate_ = - objc.registerName("dateWithTimeIntervalSinceReferenceDate:"); -late final _sel_dateWithTimeInterval_sinceDate_ = - objc.registerName("dateWithTimeInterval:sinceDate:"); +late final _sel_dateByAddingTimeInterval_ = objc.registerName( + "dateByAddingTimeInterval:", +); +late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( + "dateWithTimeIntervalSince1970:", +); +late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( + "dateWithTimeIntervalSinceNow:", +); +late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( + "dateWithTimeIntervalSinceReferenceDate:", +); +late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( + "dateWithTimeInterval:sinceDate:", +); late final _sel_dealloc = objc.registerName("dealloc"); late final _sel_debugDescription = objc.registerName("debugDescription"); -late final _sel_decimalDigitCharacterSet = - objc.registerName("decimalDigitCharacterSet"); -late final _sel_decomposableCharacterSet = - objc.registerName("decomposableCharacterSet"); -late final _sel_decomposedStringWithCanonicalMapping = - objc.registerName("decomposedStringWithCanonicalMapping"); -late final _sel_decomposedStringWithCompatibilityMapping = - objc.registerName("decomposedStringWithCompatibilityMapping"); -late final _sel_decompressedDataUsingAlgorithm_error_ = - objc.registerName("decompressedDataUsingAlgorithm:error:"); -late final _sel_defaultCStringEncoding = - objc.registerName("defaultCStringEncoding"); +late final _sel_decimalDigitCharacterSet = objc.registerName( + "decimalDigitCharacterSet", +); +late final _sel_decomposableCharacterSet = objc.registerName( + "decomposableCharacterSet", +); +late final _sel_decomposedStringWithCanonicalMapping = objc.registerName( + "decomposedStringWithCanonicalMapping", +); +late final _sel_decomposedStringWithCompatibilityMapping = objc.registerName( + "decomposedStringWithCompatibilityMapping", +); +late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( + "decompressedDataUsingAlgorithm:error:", +); +late final _sel_defaultCStringEncoding = objc.registerName( + "defaultCStringEncoding", +); late final _sel_delegate = objc.registerName("delegate"); late final _sel_description = objc.registerName("description"); -late final _sel_descriptionInStringsFileFormat = - objc.registerName("descriptionInStringsFileFormat"); -late final _sel_descriptionWithLocale_ = - objc.registerName("descriptionWithLocale:"); -late final _sel_descriptionWithLocale_indent_ = - objc.registerName("descriptionWithLocale:indent:"); +late final _sel_descriptionInStringsFileFormat = objc.registerName( + "descriptionInStringsFileFormat", +); +late final _sel_descriptionWithLocale_ = objc.registerName( + "descriptionWithLocale:", +); +late final _sel_descriptionWithLocale_indent_ = objc.registerName( + "descriptionWithLocale:indent:", +); late final _sel_dictionary = objc.registerName("dictionary"); -late final _sel_dictionaryWithCapacity_ = - objc.registerName("dictionaryWithCapacity:"); -late final _sel_dictionaryWithDictionary_ = - objc.registerName("dictionaryWithDictionary:"); -late final _sel_dictionaryWithObject_forKey_ = - objc.registerName("dictionaryWithObject:forKey:"); -late final _sel_dictionaryWithObjectsAndKeys_ = - objc.registerName("dictionaryWithObjectsAndKeys:"); -late final _sel_dictionaryWithObjects_forKeys_ = - objc.registerName("dictionaryWithObjects:forKeys:"); -late final _sel_dictionaryWithObjects_forKeys_count_ = - objc.registerName("dictionaryWithObjects:forKeys:count:"); -late final _sel_doesNotRecognizeSelector_ = - objc.registerName("doesNotRecognizeSelector:"); +late final _sel_dictionaryWithCapacity_ = objc.registerName( + "dictionaryWithCapacity:", +); +late final _sel_dictionaryWithDictionary_ = objc.registerName( + "dictionaryWithDictionary:", +); +late final _sel_dictionaryWithObject_forKey_ = objc.registerName( + "dictionaryWithObject:forKey:", +); +late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( + "dictionaryWithObjectsAndKeys:", +); +late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( + "dictionaryWithObjects:forKeys:", +); +late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( + "dictionaryWithObjects:forKeys:count:", +); +late final _sel_doesNotRecognizeSelector_ = objc.registerName( + "doesNotRecognizeSelector:", +); late final _sel_domain = objc.registerName("domain"); late final _sel_doubleValue = objc.registerName("doubleValue"); late final _sel_earlierDate_ = objc.registerName("earlierDate:"); late final _sel_encodeWithCoder_ = objc.registerName("encodeWithCoder:"); -late final _sel_errorWithDomain_code_userInfo_ = - objc.registerName("errorWithDomain:code:userInfo:"); -late final _sel_exchangeObjectAtIndex_withObjectAtIndex_ = - objc.registerName("exchangeObjectAtIndex:withObjectAtIndex:"); +late final _sel_errorWithDomain_code_userInfo_ = objc.registerName( + "errorWithDomain:code:userInfo:", +); +late final _sel_exchangeObjectAtIndex_withObjectAtIndex_ = objc.registerName( + "exchangeObjectAtIndex:withObjectAtIndex:", +); late final _sel_fastestEncoding = objc.registerName("fastestEncoding"); late final _sel_filePathURL = objc.registerName("filePathURL"); late final _sel_fileReferenceURL = objc.registerName("fileReferenceURL"); -late final _sel_fileSystemRepresentation = - objc.registerName("fileSystemRepresentation"); +late final _sel_fileSystemRepresentation = objc.registerName( + "fileSystemRepresentation", +); late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = objc.registerName( - "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); + "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", + ); late final _sel_fileURLWithPath_ = objc.registerName("fileURLWithPath:"); -late final _sel_fileURLWithPath_isDirectory_ = - objc.registerName("fileURLWithPath:isDirectory:"); -late final _sel_fileURLWithPath_isDirectory_relativeToURL_ = - objc.registerName("fileURLWithPath:isDirectory:relativeToURL:"); -late final _sel_fileURLWithPath_relativeToURL_ = - objc.registerName("fileURLWithPath:relativeToURL:"); +late final _sel_fileURLWithPath_isDirectory_ = objc.registerName( + "fileURLWithPath:isDirectory:", +); +late final _sel_fileURLWithPath_isDirectory_relativeToURL_ = objc.registerName( + "fileURLWithPath:isDirectory:relativeToURL:", +); +late final _sel_fileURLWithPath_relativeToURL_ = objc.registerName( + "fileURLWithPath:relativeToURL:", +); late final _sel_firstIndex = objc.registerName("firstIndex"); late final _sel_firstObject = objc.registerName("firstObject"); -late final _sel_firstObjectCommonWithArray_ = - objc.registerName("firstObjectCommonWithArray:"); +late final _sel_firstObjectCommonWithArray_ = objc.registerName( + "firstObjectCommonWithArray:", +); late final _sel_floatValue = objc.registerName("floatValue"); late final _sel_forwardInvocation_ = objc.registerName("forwardInvocation:"); -late final _sel_forwardingTargetForSelector_ = - objc.registerName("forwardingTargetForSelector:"); +late final _sel_forwardingTargetForSelector_ = objc.registerName( + "forwardingTargetForSelector:", +); late final _sel_fragment = objc.registerName("fragment"); late final _sel_frameLength = objc.registerName("frameLength"); -late final _sel_getArgumentTypeAtIndex_ = - objc.registerName("getArgumentTypeAtIndex:"); +late final _sel_getArgumentTypeAtIndex_ = objc.registerName( + "getArgumentTypeAtIndex:", +); late final _sel_getBuffer_length_ = objc.registerName("getBuffer:length:"); late final _sel_getBytes_length_ = objc.registerName("getBytes:length:"); late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_ = objc.registerName( - "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"); + "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:", + ); late final _sel_getBytes_range_ = objc.registerName("getBytes:range:"); -late final _sel_getCString_maxLength_encoding_ = - objc.registerName("getCString:maxLength:encoding:"); -late final _sel_getCharacters_range_ = - objc.registerName("getCharacters:range:"); -late final _sel_getDOBJCDartProtocolMethodForSelector_ = - objc.registerName("getDOBJCDartProtocolMethodForSelector:"); -late final _sel_getFileSystemRepresentation_maxLength_ = - objc.registerName("getFileSystemRepresentation:maxLength:"); -late final _sel_getIndexes_maxCount_inIndexRange_ = - objc.registerName("getIndexes:maxCount:inIndexRange:"); -late final _sel_getLineStart_end_contentsEnd_forRange_ = - objc.registerName("getLineStart:end:contentsEnd:forRange:"); -late final _sel_getObjects_andKeys_count_ = - objc.registerName("getObjects:andKeys:count:"); +late final _sel_getCString_maxLength_encoding_ = objc.registerName( + "getCString:maxLength:encoding:", +); +late final _sel_getCharacters_range_ = objc.registerName( + "getCharacters:range:", +); +late final _sel_getDOBJCDartProtocolMethodForSelector_ = objc.registerName( + "getDOBJCDartProtocolMethodForSelector:", +); +late final _sel_getFileSystemRepresentation_maxLength_ = objc.registerName( + "getFileSystemRepresentation:maxLength:", +); +late final _sel_getIndexes_maxCount_inIndexRange_ = objc.registerName( + "getIndexes:maxCount:inIndexRange:", +); +late final _sel_getLineStart_end_contentsEnd_forRange_ = objc.registerName( + "getLineStart:end:contentsEnd:forRange:", +); +late final _sel_getObjects_andKeys_count_ = objc.registerName( + "getObjects:andKeys:count:", +); late final _sel_getObjects_range_ = objc.registerName("getObjects:range:"); -late final _sel_getParagraphStart_end_contentsEnd_forRange_ = - objc.registerName("getParagraphStart:end:contentsEnd:forRange:"); -late final _sel_getResourceValue_forKey_error_ = - objc.registerName("getResourceValue:forKey:error:"); +late final _sel_getParagraphStart_end_contentsEnd_forRange_ = objc.registerName( + "getParagraphStart:end:contentsEnd:forRange:", +); +late final _sel_getResourceValue_forKey_error_ = objc.registerName( + "getResourceValue:forKey:error:", +); late final _sel_getValue_size_ = objc.registerName("getValue:size:"); late final _sel_hasBytesAvailable = objc.registerName("hasBytesAvailable"); late final _sel_hasChanges = objc.registerName("hasChanges"); late final _sel_hasDirectoryPath = objc.registerName("hasDirectoryPath"); -late final _sel_hasItemConformingToTypeIdentifier_ = - objc.registerName("hasItemConformingToTypeIdentifier:"); +late final _sel_hasItemConformingToTypeIdentifier_ = objc.registerName( + "hasItemConformingToTypeIdentifier:", +); late final _sel_hasMemberInPlane_ = objc.registerName("hasMemberInPlane:"); late final _sel_hasPrefix_ = objc.registerName("hasPrefix:"); late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_ = objc @@ -17806,225 +24439,302 @@ late final _sel_illegalCharacterSet = objc.registerName("illegalCharacterSet"); late final _sel_implementMethod_withBlock_withTrampoline_withSignature_ = objc .registerName("implementMethod:withBlock:withTrampoline:withSignature:"); late final _sel_increaseLengthBy_ = objc.registerName("increaseLengthBy:"); -late final _sel_indexGreaterThanIndex_ = - objc.registerName("indexGreaterThanIndex:"); -late final _sel_indexGreaterThanOrEqualToIndex_ = - objc.registerName("indexGreaterThanOrEqualToIndex:"); +late final _sel_indexGreaterThanIndex_ = objc.registerName( + "indexGreaterThanIndex:", +); +late final _sel_indexGreaterThanOrEqualToIndex_ = objc.registerName( + "indexGreaterThanOrEqualToIndex:", +); late final _sel_indexLessThanIndex_ = objc.registerName("indexLessThanIndex:"); -late final _sel_indexLessThanOrEqualToIndex_ = - objc.registerName("indexLessThanOrEqualToIndex:"); -late final _sel_indexOfObjectIdenticalTo_ = - objc.registerName("indexOfObjectIdenticalTo:"); -late final _sel_indexOfObjectIdenticalTo_inRange_ = - objc.registerName("indexOfObjectIdenticalTo:inRange:"); +late final _sel_indexLessThanOrEqualToIndex_ = objc.registerName( + "indexLessThanOrEqualToIndex:", +); +late final _sel_indexOfObjectIdenticalTo_ = objc.registerName( + "indexOfObjectIdenticalTo:", +); +late final _sel_indexOfObjectIdenticalTo_inRange_ = objc.registerName( + "indexOfObjectIdenticalTo:inRange:", +); late final _sel_indexOfObject_ = objc.registerName("indexOfObject:"); -late final _sel_indexOfObject_inRange_ = - objc.registerName("indexOfObject:inRange:"); +late final _sel_indexOfObject_inRange_ = objc.registerName( + "indexOfObject:inRange:", +); late final _sel_indexSet = objc.registerName("indexSet"); late final _sel_indexSetWithIndex_ = objc.registerName("indexSetWithIndex:"); -late final _sel_indexSetWithIndexesInRange_ = - objc.registerName("indexSetWithIndexesInRange:"); +late final _sel_indexSetWithIndexesInRange_ = objc.registerName( + "indexSetWithIndexesInRange:", +); late final _sel_init = objc.registerName("init"); -late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_ = - objc.registerName("initAbsoluteURLWithDataRepresentation:relativeToURL:"); +late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_ = objc + .registerName("initAbsoluteURLWithDataRepresentation:relativeToURL:"); late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = objc.registerName( - "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); + "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", + ); late final _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_ = objc.registerName( - "initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort:"); + "initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort:", + ); late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = objc.registerName( - "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); -late final _sel_initFileURLWithPath_ = - objc.registerName("initFileURLWithPath:"); -late final _sel_initFileURLWithPath_isDirectory_ = - objc.registerName("initFileURLWithPath:isDirectory:"); -late final _sel_initFileURLWithPath_isDirectory_relativeToURL_ = - objc.registerName("initFileURLWithPath:isDirectory:relativeToURL:"); -late final _sel_initFileURLWithPath_relativeToURL_ = - objc.registerName("initFileURLWithPath:relativeToURL:"); -late final _sel_initToBuffer_capacity_ = - objc.registerName("initToBuffer:capacity:"); -late final _sel_initToFileAtPath_append_ = - objc.registerName("initToFileAtPath:append:"); + "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", + ); +late final _sel_initFileURLWithPath_ = objc.registerName( + "initFileURLWithPath:", +); +late final _sel_initFileURLWithPath_isDirectory_ = objc.registerName( + "initFileURLWithPath:isDirectory:", +); +late final _sel_initFileURLWithPath_isDirectory_relativeToURL_ = objc + .registerName("initFileURLWithPath:isDirectory:relativeToURL:"); +late final _sel_initFileURLWithPath_relativeToURL_ = objc.registerName( + "initFileURLWithPath:relativeToURL:", +); +late final _sel_initToBuffer_capacity_ = objc.registerName( + "initToBuffer:capacity:", +); +late final _sel_initToFileAtPath_append_ = objc.registerName( + "initToFileAtPath:append:", +); late final _sel_initToMemory = objc.registerName("initToMemory"); late final _sel_initWithArray_ = objc.registerName("initWithArray:"); -late final _sel_initWithArray_copyItems_ = - objc.registerName("initWithArray:copyItems:"); -late final _sel_initWithArray_range_copyItems_ = - objc.registerName("initWithArray:range:copyItems:"); -late final _sel_initWithBase64EncodedData_options_ = - objc.registerName("initWithBase64EncodedData:options:"); -late final _sel_initWithBase64EncodedString_options_ = - objc.registerName("initWithBase64EncodedString:options:"); +late final _sel_initWithArray_copyItems_ = objc.registerName( + "initWithArray:copyItems:", +); +late final _sel_initWithArray_range_copyItems_ = objc.registerName( + "initWithArray:range:copyItems:", +); +late final _sel_initWithBase64EncodedData_options_ = objc.registerName( + "initWithBase64EncodedData:options:", +); +late final _sel_initWithBase64EncodedString_options_ = objc.registerName( + "initWithBase64EncodedString:options:", +); late final _sel_initWithBool_ = objc.registerName("initWithBool:"); -late final _sel_initWithBytesNoCopy_length_ = - objc.registerName("initWithBytesNoCopy:length:"); -late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_ = - objc.registerName("initWithBytesNoCopy:length:encoding:freeWhenDone:"); -late final _sel_initWithBytesNoCopy_length_freeWhenDone_ = - objc.registerName("initWithBytesNoCopy:length:freeWhenDone:"); -late final _sel_initWithBytes_length_ = - objc.registerName("initWithBytes:length:"); -late final _sel_initWithBytes_length_encoding_ = - objc.registerName("initWithBytes:length:encoding:"); -late final _sel_initWithBytes_objCType_ = - objc.registerName("initWithBytes:objCType:"); -late final _sel_initWithCString_encoding_ = - objc.registerName("initWithCString:encoding:"); +late final _sel_initWithBytesNoCopy_length_ = objc.registerName( + "initWithBytesNoCopy:length:", +); +late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_ = objc + .registerName("initWithBytesNoCopy:length:encoding:freeWhenDone:"); +late final _sel_initWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( + "initWithBytesNoCopy:length:freeWhenDone:", +); +late final _sel_initWithBytes_length_ = objc.registerName( + "initWithBytes:length:", +); +late final _sel_initWithBytes_length_encoding_ = objc.registerName( + "initWithBytes:length:encoding:", +); +late final _sel_initWithBytes_objCType_ = objc.registerName( + "initWithBytes:objCType:", +); +late final _sel_initWithCString_encoding_ = objc.registerName( + "initWithCString:encoding:", +); late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); late final _sel_initWithChanges_ = objc.registerName("initWithChanges:"); late final _sel_initWithChar_ = objc.registerName("initWithChar:"); -late final _sel_initWithCharactersNoCopy_length_freeWhenDone_ = - objc.registerName("initWithCharactersNoCopy:length:freeWhenDone:"); -late final _sel_initWithCharacters_length_ = - objc.registerName("initWithCharacters:length:"); +late final _sel_initWithCharactersNoCopy_length_freeWhenDone_ = objc + .registerName("initWithCharactersNoCopy:length:freeWhenDone:"); +late final _sel_initWithCharacters_length_ = objc.registerName( + "initWithCharacters:length:", +); late final _sel_initWithClassName_ = objc.registerName("initWithClassName:"); late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); -late final _sel_initWithContentsOfFile_ = - objc.registerName("initWithContentsOfFile:"); -late final _sel_initWithContentsOfFile_encoding_error_ = - objc.registerName("initWithContentsOfFile:encoding:error:"); -late final _sel_initWithContentsOfFile_options_error_ = - objc.registerName("initWithContentsOfFile:options:error:"); -late final _sel_initWithContentsOfFile_usedEncoding_error_ = - objc.registerName("initWithContentsOfFile:usedEncoding:error:"); -late final _sel_initWithContentsOfURL_ = - objc.registerName("initWithContentsOfURL:"); -late final _sel_initWithContentsOfURL_encoding_error_ = - objc.registerName("initWithContentsOfURL:encoding:error:"); -late final _sel_initWithContentsOfURL_options_error_ = - objc.registerName("initWithContentsOfURL:options:error:"); -late final _sel_initWithContentsOfURL_usedEncoding_error_ = - objc.registerName("initWithContentsOfURL:usedEncoding:error:"); -late final _sel_initWithDataRepresentation_relativeToURL_ = - objc.registerName("initWithDataRepresentation:relativeToURL:"); +late final _sel_initWithContentsOfFile_ = objc.registerName( + "initWithContentsOfFile:", +); +late final _sel_initWithContentsOfFile_encoding_error_ = objc.registerName( + "initWithContentsOfFile:encoding:error:", +); +late final _sel_initWithContentsOfFile_options_error_ = objc.registerName( + "initWithContentsOfFile:options:error:", +); +late final _sel_initWithContentsOfFile_usedEncoding_error_ = objc.registerName( + "initWithContentsOfFile:usedEncoding:error:", +); +late final _sel_initWithContentsOfURL_ = objc.registerName( + "initWithContentsOfURL:", +); +late final _sel_initWithContentsOfURL_encoding_error_ = objc.registerName( + "initWithContentsOfURL:encoding:error:", +); +late final _sel_initWithContentsOfURL_options_error_ = objc.registerName( + "initWithContentsOfURL:options:error:", +); +late final _sel_initWithContentsOfURL_usedEncoding_error_ = objc.registerName( + "initWithContentsOfURL:usedEncoding:error:", +); +late final _sel_initWithDataRepresentation_relativeToURL_ = objc.registerName( + "initWithDataRepresentation:relativeToURL:", +); late final _sel_initWithData_ = objc.registerName("initWithData:"); -late final _sel_initWithData_encoding_ = - objc.registerName("initWithData:encoding:"); +late final _sel_initWithData_encoding_ = objc.registerName( + "initWithData:encoding:", +); late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); -late final _sel_initWithDictionary_copyItems_ = - objc.registerName("initWithDictionary:copyItems:"); -late final _sel_initWithDomain_code_userInfo_ = - objc.registerName("initWithDomain:code:userInfo:"); +late final _sel_initWithDictionary_copyItems_ = objc.registerName( + "initWithDictionary:copyItems:", +); +late final _sel_initWithDomain_code_userInfo_ = objc.registerName( + "initWithDomain:code:userInfo:", +); late final _sel_initWithDouble_ = objc.registerName("initWithDouble:"); late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); late final _sel_initWithFloat_ = objc.registerName("initWithFloat:"); late final _sel_initWithFormat_ = objc.registerName("initWithFormat:"); -late final _sel_initWithFormat_locale_ = - objc.registerName("initWithFormat:locale:"); +late final _sel_initWithFormat_locale_ = objc.registerName( + "initWithFormat:locale:", +); late final _sel_initWithIndexSet_ = objc.registerName("initWithIndexSet:"); late final _sel_initWithIndex_ = objc.registerName("initWithIndex:"); -late final _sel_initWithIndexesInRange_ = - objc.registerName("initWithIndexesInRange:"); +late final _sel_initWithIndexesInRange_ = objc.registerName( + "initWithIndexesInRange:", +); late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_ = objc.registerName( - "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:"); + "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:", + ); late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_ = objc.registerName( - "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:"); + "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:", + ); late final _sel_initWithInt_ = objc.registerName("initWithInt:"); late final _sel_initWithInteger_ = objc.registerName("initWithInteger:"); -late final _sel_initWithItem_typeIdentifier_ = - objc.registerName("initWithItem:typeIdentifier:"); +late final _sel_initWithItem_typeIdentifier_ = objc.registerName( + "initWithItem:typeIdentifier:", +); late final _sel_initWithLength_ = objc.registerName("initWithLength:"); late final _sel_initWithLongLong_ = objc.registerName("initWithLongLong:"); late final _sel_initWithLong_ = objc.registerName("initWithLong:"); -late final _sel_initWithName_object_userInfo_ = - objc.registerName("initWithName:object:userInfo:"); +late final _sel_initWithName_object_userInfo_ = objc.registerName( + "initWithName:object:userInfo:", +); late final _sel_initWithObject_ = objc.registerName("initWithObject:"); -late final _sel_initWithObjectsAndKeys_ = - objc.registerName("initWithObjectsAndKeys:"); +late final _sel_initWithObjectsAndKeys_ = objc.registerName( + "initWithObjectsAndKeys:", +); late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); -late final _sel_initWithObjects_count_ = - objc.registerName("initWithObjects:count:"); -late final _sel_initWithObjects_forKeys_ = - objc.registerName("initWithObjects:forKeys:"); -late final _sel_initWithObjects_forKeys_count_ = - objc.registerName("initWithObjects:forKeys:count:"); +late final _sel_initWithObjects_count_ = objc.registerName( + "initWithObjects:count:", +); +late final _sel_initWithObjects_forKeys_ = objc.registerName( + "initWithObjects:forKeys:", +); +late final _sel_initWithObjects_forKeys_count_ = objc.registerName( + "initWithObjects:forKeys:count:", +); late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); -late final _sel_initWithOrderedSet_copyItems_ = - objc.registerName("initWithOrderedSet:copyItems:"); -late final _sel_initWithOrderedSet_range_copyItems_ = - objc.registerName("initWithOrderedSet:range:copyItems:"); +late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( + "initWithOrderedSet:copyItems:", +); +late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( + "initWithOrderedSet:range:copyItems:", +); late final _sel_initWithSet_ = objc.registerName("initWithSet:"); -late final _sel_initWithSet_copyItems_ = - objc.registerName("initWithSet:copyItems:"); +late final _sel_initWithSet_copyItems_ = objc.registerName( + "initWithSet:copyItems:", +); late final _sel_initWithShort_ = objc.registerName("initWithShort:"); late final _sel_initWithString_ = objc.registerName("initWithString:"); -late final _sel_initWithString_encodingInvalidCharacters_ = - objc.registerName("initWithString:encodingInvalidCharacters:"); -late final _sel_initWithString_relativeToURL_ = - objc.registerName("initWithString:relativeToURL:"); -late final _sel_initWithTimeIntervalSince1970_ = - objc.registerName("initWithTimeIntervalSince1970:"); -late final _sel_initWithTimeIntervalSinceNow_ = - objc.registerName("initWithTimeIntervalSinceNow:"); -late final _sel_initWithTimeIntervalSinceReferenceDate_ = - objc.registerName("initWithTimeIntervalSinceReferenceDate:"); -late final _sel_initWithTimeInterval_sinceDate_ = - objc.registerName("initWithTimeInterval:sinceDate:"); +late final _sel_initWithString_encodingInvalidCharacters_ = objc.registerName( + "initWithString:encodingInvalidCharacters:", +); +late final _sel_initWithString_relativeToURL_ = objc.registerName( + "initWithString:relativeToURL:", +); +late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( + "initWithTimeIntervalSince1970:", +); +late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( + "initWithTimeIntervalSinceNow:", +); +late final _sel_initWithTimeIntervalSinceReferenceDate_ = objc.registerName( + "initWithTimeIntervalSinceReferenceDate:", +); +late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( + "initWithTimeInterval:sinceDate:", +); late final _sel_initWithURL_ = objc.registerName("initWithURL:"); late final _sel_initWithURL_append_ = objc.registerName("initWithURL:append:"); late final _sel_initWithUTF8String_ = objc.registerName("initWithUTF8String:"); -late final _sel_initWithUnsignedChar_ = - objc.registerName("initWithUnsignedChar:"); -late final _sel_initWithUnsignedInt_ = - objc.registerName("initWithUnsignedInt:"); -late final _sel_initWithUnsignedInteger_ = - objc.registerName("initWithUnsignedInteger:"); -late final _sel_initWithUnsignedLongLong_ = - objc.registerName("initWithUnsignedLongLong:"); -late final _sel_initWithUnsignedLong_ = - objc.registerName("initWithUnsignedLong:"); -late final _sel_initWithUnsignedShort_ = - objc.registerName("initWithUnsignedShort:"); -late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_ = - objc.registerName("initWithValidatedFormat:validFormatSpecifiers:error:"); +late final _sel_initWithUnsignedChar_ = objc.registerName( + "initWithUnsignedChar:", +); +late final _sel_initWithUnsignedInt_ = objc.registerName( + "initWithUnsignedInt:", +); +late final _sel_initWithUnsignedInteger_ = objc.registerName( + "initWithUnsignedInteger:", +); +late final _sel_initWithUnsignedLongLong_ = objc.registerName( + "initWithUnsignedLongLong:", +); +late final _sel_initWithUnsignedLong_ = objc.registerName( + "initWithUnsignedLong:", +); +late final _sel_initWithUnsignedShort_ = objc.registerName( + "initWithUnsignedShort:", +); +late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_ = objc + .registerName("initWithValidatedFormat:validFormatSpecifiers:error:"); late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_ = objc.registerName( - "initWithValidatedFormat:validFormatSpecifiers:locale:error:"); + "initWithValidatedFormat:validFormatSpecifiers:locale:error:", + ); late final _sel_initialize = objc.registerName("initialize"); -late final _sel_inputStreamWithData_ = - objc.registerName("inputStreamWithData:"); -late final _sel_inputStreamWithFileAtPath_ = - objc.registerName("inputStreamWithFileAtPath:"); -late final _sel_inputStreamWithPort_ = - objc.registerName("inputStreamWithPort:"); +late final _sel_inputStreamWithData_ = objc.registerName( + "inputStreamWithData:", +); +late final _sel_inputStreamWithFileAtPath_ = objc.registerName( + "inputStreamWithFileAtPath:", +); +late final _sel_inputStreamWithPort_ = objc.registerName( + "inputStreamWithPort:", +); late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); -late final _sel_insertObject_atIndex_ = - objc.registerName("insertObject:atIndex:"); -late final _sel_insertObjects_atIndexes_ = - objc.registerName("insertObjects:atIndexes:"); +late final _sel_insertObject_atIndex_ = objc.registerName( + "insertObject:atIndex:", +); +late final _sel_insertObjects_atIndexes_ = objc.registerName( + "insertObjects:atIndexes:", +); late final _sel_insertions = objc.registerName("insertions"); -late final _sel_instanceMethodForSelector_ = - objc.registerName("instanceMethodForSelector:"); -late final _sel_instanceMethodSignatureForSelector_ = - objc.registerName("instanceMethodSignatureForSelector:"); -late final _sel_instancesRespondToSelector_ = - objc.registerName("instancesRespondToSelector:"); +late final _sel_instanceMethodForSelector_ = objc.registerName( + "instanceMethodForSelector:", +); +late final _sel_instanceMethodSignatureForSelector_ = objc.registerName( + "instanceMethodSignatureForSelector:", +); +late final _sel_instancesRespondToSelector_ = objc.registerName( + "instancesRespondToSelector:", +); late final _sel_intValue = objc.registerName("intValue"); late final _sel_integerValue = objc.registerName("integerValue"); -late final _sel_intersectOrderedSet_ = - objc.registerName("intersectOrderedSet:"); +late final _sel_intersectOrderedSet_ = objc.registerName( + "intersectOrderedSet:", +); late final _sel_intersectSet_ = objc.registerName("intersectSet:"); -late final _sel_intersectsIndexesInRange_ = - objc.registerName("intersectsIndexesInRange:"); -late final _sel_intersectsOrderedSet_ = - objc.registerName("intersectsOrderedSet:"); +late final _sel_intersectsIndexesInRange_ = objc.registerName( + "intersectsIndexesInRange:", +); +late final _sel_intersectsOrderedSet_ = objc.registerName( + "intersectsOrderedSet:", +); late final _sel_intersectsSet_ = objc.registerName("intersectsSet:"); late final _sel_inverseDifference = objc.registerName("inverseDifference"); late final _sel_invertedSet = objc.registerName("invertedSet"); late final _sel_isEqualToArray_ = objc.registerName("isEqualToArray:"); late final _sel_isEqualToData_ = objc.registerName("isEqualToData:"); late final _sel_isEqualToDate_ = objc.registerName("isEqualToDate:"); -late final _sel_isEqualToDictionary_ = - objc.registerName("isEqualToDictionary:"); +late final _sel_isEqualToDictionary_ = objc.registerName( + "isEqualToDictionary:", +); late final _sel_isEqualToIndexSet_ = objc.registerName("isEqualToIndexSet:"); late final _sel_isEqualToNumber_ = objc.registerName("isEqualToNumber:"); -late final _sel_isEqualToOrderedSet_ = - objc.registerName("isEqualToOrderedSet:"); +late final _sel_isEqualToOrderedSet_ = objc.registerName( + "isEqualToOrderedSet:", +); late final _sel_isEqualToSet_ = objc.registerName("isEqualToSet:"); late final _sel_isEqualToString_ = objc.registerName("isEqualToString:"); late final _sel_isEqual_ = objc.registerName("isEqual:"); @@ -18035,97 +24745,127 @@ late final _sel_isMemberOfClass_ = objc.registerName("isMemberOfClass:"); late final _sel_isOneway = objc.registerName("isOneway"); late final _sel_isProxy = objc.registerName("isProxy"); late final _sel_isSubclassOfClass_ = objc.registerName("isSubclassOfClass:"); -late final _sel_isSubsetOfOrderedSet_ = - objc.registerName("isSubsetOfOrderedSet:"); +late final _sel_isSubsetOfOrderedSet_ = objc.registerName( + "isSubsetOfOrderedSet:", +); late final _sel_isSubsetOfSet_ = objc.registerName("isSubsetOfSet:"); late final _sel_isSupersetOfSet_ = objc.registerName("isSupersetOfSet:"); late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = objc.registerName( - "itemProviderVisibilityForRepresentationWithTypeIdentifier:"); + "itemProviderVisibilityForRepresentationWithTypeIdentifier:", + ); late final _sel_keyEnumerator = objc.registerName("keyEnumerator"); -late final _sel_keysSortedByValueUsingSelector_ = - objc.registerName("keysSortedByValueUsingSelector:"); +late final _sel_keysSortedByValueUsingSelector_ = objc.registerName( + "keysSortedByValueUsingSelector:", +); late final _sel_lastIndex = objc.registerName("lastIndex"); late final _sel_lastObject = objc.registerName("lastObject"); late final _sel_laterDate_ = objc.registerName("laterDate:"); late final _sel_length = objc.registerName("length"); -late final _sel_lengthOfBytesUsingEncoding_ = - objc.registerName("lengthOfBytesUsingEncoding:"); +late final _sel_lengthOfBytesUsingEncoding_ = objc.registerName( + "lengthOfBytesUsingEncoding:", +); late final _sel_letterCharacterSet = objc.registerName("letterCharacterSet"); late final _sel_lineRangeForRange_ = objc.registerName("lineRangeForRange:"); late final _sel_load = objc.registerName("load"); -late final _sel_loadItemForTypeIdentifier_options_completionHandler_ = - objc.registerName("loadItemForTypeIdentifier:options:completionHandler:"); -late final _sel_localizedCapitalizedString = - objc.registerName("localizedCapitalizedString"); -late final _sel_localizedCaseInsensitiveCompare_ = - objc.registerName("localizedCaseInsensitiveCompare:"); -late final _sel_localizedCaseInsensitiveContainsString_ = - objc.registerName("localizedCaseInsensitiveContainsString:"); +late final _sel_loadItemForTypeIdentifier_options_completionHandler_ = objc + .registerName("loadItemForTypeIdentifier:options:completionHandler:"); +late final _sel_localizedCapitalizedString = objc.registerName( + "localizedCapitalizedString", +); +late final _sel_localizedCaseInsensitiveCompare_ = objc.registerName( + "localizedCaseInsensitiveCompare:", +); +late final _sel_localizedCaseInsensitiveContainsString_ = objc.registerName( + "localizedCaseInsensitiveContainsString:", +); late final _sel_localizedCompare_ = objc.registerName("localizedCompare:"); -late final _sel_localizedDescription = - objc.registerName("localizedDescription"); -late final _sel_localizedFailureReason = - objc.registerName("localizedFailureReason"); -late final _sel_localizedLowercaseString = - objc.registerName("localizedLowercaseString"); -late final _sel_localizedNameOfStringEncoding_ = - objc.registerName("localizedNameOfStringEncoding:"); -late final _sel_localizedRecoveryOptions = - objc.registerName("localizedRecoveryOptions"); -late final _sel_localizedRecoverySuggestion = - objc.registerName("localizedRecoverySuggestion"); -late final _sel_localizedStandardCompare_ = - objc.registerName("localizedStandardCompare:"); -late final _sel_localizedStandardContainsString_ = - objc.registerName("localizedStandardContainsString:"); -late final _sel_localizedStandardRangeOfString_ = - objc.registerName("localizedStandardRangeOfString:"); -late final _sel_localizedStringWithFormat_ = - objc.registerName("localizedStringWithFormat:"); +late final _sel_localizedDescription = objc.registerName( + "localizedDescription", +); +late final _sel_localizedFailureReason = objc.registerName( + "localizedFailureReason", +); +late final _sel_localizedLowercaseString = objc.registerName( + "localizedLowercaseString", +); +late final _sel_localizedNameOfStringEncoding_ = objc.registerName( + "localizedNameOfStringEncoding:", +); +late final _sel_localizedRecoveryOptions = objc.registerName( + "localizedRecoveryOptions", +); +late final _sel_localizedRecoverySuggestion = objc.registerName( + "localizedRecoverySuggestion", +); +late final _sel_localizedStandardCompare_ = objc.registerName( + "localizedStandardCompare:", +); +late final _sel_localizedStandardContainsString_ = objc.registerName( + "localizedStandardContainsString:", +); +late final _sel_localizedStandardRangeOfString_ = objc.registerName( + "localizedStandardRangeOfString:", +); +late final _sel_localizedStringWithFormat_ = objc.registerName( + "localizedStringWithFormat:", +); late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_ = objc.registerName( - "localizedStringWithValidatedFormat:validFormatSpecifiers:error:"); -late final _sel_localizedUppercaseString = - objc.registerName("localizedUppercaseString"); -late final _sel_longCharacterIsMember_ = - objc.registerName("longCharacterIsMember:"); + "localizedStringWithValidatedFormat:validFormatSpecifiers:error:", + ); +late final _sel_localizedUppercaseString = objc.registerName( + "localizedUppercaseString", +); +late final _sel_longCharacterIsMember_ = objc.registerName( + "longCharacterIsMember:", +); late final _sel_longLongValue = objc.registerName("longLongValue"); late final _sel_longValue = objc.registerName("longValue"); -late final _sel_lowercaseLetterCharacterSet = - objc.registerName("lowercaseLetterCharacterSet"); +late final _sel_lowercaseLetterCharacterSet = objc.registerName( + "lowercaseLetterCharacterSet", +); late final _sel_lowercaseString = objc.registerName("lowercaseString"); -late final _sel_lowercaseStringWithLocale_ = - objc.registerName("lowercaseStringWithLocale:"); -late final _sel_makeObjectsPerformSelector_ = - objc.registerName("makeObjectsPerformSelector:"); -late final _sel_makeObjectsPerformSelector_withObject_ = - objc.registerName("makeObjectsPerformSelector:withObject:"); -late final _sel_maximumLengthOfBytesUsingEncoding_ = - objc.registerName("maximumLengthOfBytesUsingEncoding:"); +late final _sel_lowercaseStringWithLocale_ = objc.registerName( + "lowercaseStringWithLocale:", +); +late final _sel_makeObjectsPerformSelector_ = objc.registerName( + "makeObjectsPerformSelector:", +); +late final _sel_makeObjectsPerformSelector_withObject_ = objc.registerName( + "makeObjectsPerformSelector:withObject:", +); +late final _sel_maximumLengthOfBytesUsingEncoding_ = objc.registerName( + "maximumLengthOfBytesUsingEncoding:", +); late final _sel_member_ = objc.registerName("member:"); late final _sel_methodForSelector_ = objc.registerName("methodForSelector:"); late final _sel_methodReturnLength = objc.registerName("methodReturnLength"); late final _sel_methodReturnType = objc.registerName("methodReturnType"); -late final _sel_methodSignatureForSelector_ = - objc.registerName("methodSignatureForSelector:"); +late final _sel_methodSignatureForSelector_ = objc.registerName( + "methodSignatureForSelector:", +); late final _sel_minusOrderedSet_ = objc.registerName("minusOrderedSet:"); late final _sel_minusSet_ = objc.registerName("minusSet:"); -late final _sel_moveObjectsAtIndexes_toIndex_ = - objc.registerName("moveObjectsAtIndexes:toIndex:"); +late final _sel_moveObjectsAtIndexes_toIndex_ = objc.registerName( + "moveObjectsAtIndexes:toIndex:", +); late final _sel_mutableBytes = objc.registerName("mutableBytes"); late final _sel_mutableCopy = objc.registerName("mutableCopy"); -late final _sel_mutableCopyWithZone_ = - objc.registerName("mutableCopyWithZone:"); +late final _sel_mutableCopyWithZone_ = objc.registerName( + "mutableCopyWithZone:", +); late final _sel_name = objc.registerName("name"); late final _sel_new = objc.registerName("new"); late final _sel_newlineCharacterSet = objc.registerName("newlineCharacterSet"); late final _sel_nextObject = objc.registerName("nextObject"); late final _sel_nonBaseCharacterSet = objc.registerName("nonBaseCharacterSet"); -late final _sel_notificationWithName_object_ = - objc.registerName("notificationWithName:object:"); -late final _sel_notificationWithName_object_userInfo_ = - objc.registerName("notificationWithName:object:userInfo:"); +late final _sel_notificationWithName_object_ = objc.registerName( + "notificationWithName:object:", +); +late final _sel_notificationWithName_object_userInfo_ = objc.registerName( + "notificationWithName:object:userInfo:", +); late final _sel_numberOfArguments = objc.registerName("numberOfArguments"); late final _sel_numberWithBool_ = objc.registerName("numberWithBool:"); late final _sel_numberWithChar_ = objc.registerName("numberWithChar:"); @@ -18136,185 +24876,251 @@ late final _sel_numberWithInteger_ = objc.registerName("numberWithInteger:"); late final _sel_numberWithLongLong_ = objc.registerName("numberWithLongLong:"); late final _sel_numberWithLong_ = objc.registerName("numberWithLong:"); late final _sel_numberWithShort_ = objc.registerName("numberWithShort:"); -late final _sel_numberWithUnsignedChar_ = - objc.registerName("numberWithUnsignedChar:"); -late final _sel_numberWithUnsignedInt_ = - objc.registerName("numberWithUnsignedInt:"); -late final _sel_numberWithUnsignedInteger_ = - objc.registerName("numberWithUnsignedInteger:"); -late final _sel_numberWithUnsignedLongLong_ = - objc.registerName("numberWithUnsignedLongLong:"); -late final _sel_numberWithUnsignedLong_ = - objc.registerName("numberWithUnsignedLong:"); -late final _sel_numberWithUnsignedShort_ = - objc.registerName("numberWithUnsignedShort:"); +late final _sel_numberWithUnsignedChar_ = objc.registerName( + "numberWithUnsignedChar:", +); +late final _sel_numberWithUnsignedInt_ = objc.registerName( + "numberWithUnsignedInt:", +); +late final _sel_numberWithUnsignedInteger_ = objc.registerName( + "numberWithUnsignedInteger:", +); +late final _sel_numberWithUnsignedLongLong_ = objc.registerName( + "numberWithUnsignedLongLong:", +); +late final _sel_numberWithUnsignedLong_ = objc.registerName( + "numberWithUnsignedLong:", +); +late final _sel_numberWithUnsignedShort_ = objc.registerName( + "numberWithUnsignedShort:", +); late final _sel_objCType = objc.registerName("objCType"); late final _sel_object = objc.registerName("object"); late final _sel_objectAtIndex_ = objc.registerName("objectAtIndex:"); -late final _sel_objectAtIndexedSubscript_ = - objc.registerName("objectAtIndexedSubscript:"); +late final _sel_objectAtIndexedSubscript_ = objc.registerName( + "objectAtIndexedSubscript:", +); late final _sel_objectEnumerator = objc.registerName("objectEnumerator"); late final _sel_objectForKey_ = objc.registerName("objectForKey:"); -late final _sel_objectForKeyedSubscript_ = - objc.registerName("objectForKeyedSubscript:"); -late final _sel_objectWithItemProviderData_typeIdentifier_error_ = - objc.registerName("objectWithItemProviderData:typeIdentifier:error:"); +late final _sel_objectForKeyedSubscript_ = objc.registerName( + "objectForKeyedSubscript:", +); +late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc + .registerName("objectWithItemProviderData:typeIdentifier:error:"); late final _sel_objectsAtIndexes_ = objc.registerName("objectsAtIndexes:"); -late final _sel_objectsForKeys_notFoundMarker_ = - objc.registerName("objectsForKeys:notFoundMarker:"); +late final _sel_objectsForKeys_notFoundMarker_ = objc.registerName( + "objectsForKeys:notFoundMarker:", +); late final _sel_open = objc.registerName("open"); late final _sel_orderedSet = objc.registerName("orderedSet"); -late final _sel_orderedSetWithArray_ = - objc.registerName("orderedSetWithArray:"); -late final _sel_orderedSetWithArray_range_copyItems_ = - objc.registerName("orderedSetWithArray:range:copyItems:"); -late final _sel_orderedSetWithCapacity_ = - objc.registerName("orderedSetWithCapacity:"); -late final _sel_orderedSetWithObject_ = - objc.registerName("orderedSetWithObject:"); -late final _sel_orderedSetWithObjects_ = - objc.registerName("orderedSetWithObjects:"); -late final _sel_orderedSetWithObjects_count_ = - objc.registerName("orderedSetWithObjects:count:"); -late final _sel_orderedSetWithOrderedSet_ = - objc.registerName("orderedSetWithOrderedSet:"); -late final _sel_orderedSetWithOrderedSet_range_copyItems_ = - objc.registerName("orderedSetWithOrderedSet:range:copyItems:"); +late final _sel_orderedSetWithArray_ = objc.registerName( + "orderedSetWithArray:", +); +late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( + "orderedSetWithArray:range:copyItems:", +); +late final _sel_orderedSetWithCapacity_ = objc.registerName( + "orderedSetWithCapacity:", +); +late final _sel_orderedSetWithObject_ = objc.registerName( + "orderedSetWithObject:", +); +late final _sel_orderedSetWithObjects_ = objc.registerName( + "orderedSetWithObjects:", +); +late final _sel_orderedSetWithObjects_count_ = objc.registerName( + "orderedSetWithObjects:count:", +); +late final _sel_orderedSetWithOrderedSet_ = objc.registerName( + "orderedSetWithOrderedSet:", +); +late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( + "orderedSetWithOrderedSet:range:copyItems:", +); late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); -late final _sel_orderedSetWithSet_copyItems_ = - objc.registerName("orderedSetWithSet:copyItems:"); -late final _sel_outputStreamToBuffer_capacity_ = - objc.registerName("outputStreamToBuffer:capacity:"); -late final _sel_outputStreamToFileAtPath_append_ = - objc.registerName("outputStreamToFileAtPath:append:"); -late final _sel_outputStreamToMemory = - objc.registerName("outputStreamToMemory"); -late final _sel_outputStreamWithURL_append_ = - objc.registerName("outputStreamWithURL:append:"); -late final _sel_paragraphRangeForRange_ = - objc.registerName("paragraphRangeForRange:"); +late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( + "orderedSetWithSet:copyItems:", +); +late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( + "outputStreamToBuffer:capacity:", +); +late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( + "outputStreamToFileAtPath:append:", +); +late final _sel_outputStreamToMemory = objc.registerName( + "outputStreamToMemory", +); +late final _sel_outputStreamWithURL_append_ = objc.registerName( + "outputStreamWithURL:append:", +); +late final _sel_paragraphRangeForRange_ = objc.registerName( + "paragraphRangeForRange:", +); late final _sel_parameterString = objc.registerName("parameterString"); late final _sel_password = objc.registerName("password"); late final _sel_path = objc.registerName("path"); late final _sel_performSelector_ = objc.registerName("performSelector:"); -late final _sel_performSelector_withObject_ = - objc.registerName("performSelector:withObject:"); -late final _sel_performSelector_withObject_withObject_ = - objc.registerName("performSelector:withObject:withObject:"); +late final _sel_performSelector_withObject_ = objc.registerName( + "performSelector:withObject:", +); +late final _sel_performSelector_withObject_withObject_ = objc.registerName( + "performSelector:withObject:withObject:", +); late final _sel_port = objc.registerName("port"); -late final _sel_precomposedStringWithCanonicalMapping = - objc.registerName("precomposedStringWithCanonicalMapping"); -late final _sel_precomposedStringWithCompatibilityMapping = - objc.registerName("precomposedStringWithCompatibilityMapping"); +late final _sel_precomposedStringWithCanonicalMapping = objc.registerName( + "precomposedStringWithCanonicalMapping", +); +late final _sel_precomposedStringWithCompatibilityMapping = objc.registerName( + "precomposedStringWithCompatibilityMapping", +); late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); -late final _sel_punctuationCharacterSet = - objc.registerName("punctuationCharacterSet"); +late final _sel_punctuationCharacterSet = objc.registerName( + "punctuationCharacterSet", +); late final _sel_query = objc.registerName("query"); -late final _sel_rangeOfCharacterFromSet_ = - objc.registerName("rangeOfCharacterFromSet:"); -late final _sel_rangeOfCharacterFromSet_options_ = - objc.registerName("rangeOfCharacterFromSet:options:"); -late final _sel_rangeOfCharacterFromSet_options_range_ = - objc.registerName("rangeOfCharacterFromSet:options:range:"); -late final _sel_rangeOfComposedCharacterSequenceAtIndex_ = - objc.registerName("rangeOfComposedCharacterSequenceAtIndex:"); -late final _sel_rangeOfComposedCharacterSequencesForRange_ = - objc.registerName("rangeOfComposedCharacterSequencesForRange:"); -late final _sel_rangeOfData_options_range_ = - objc.registerName("rangeOfData:options:range:"); +late final _sel_rangeOfCharacterFromSet_ = objc.registerName( + "rangeOfCharacterFromSet:", +); +late final _sel_rangeOfCharacterFromSet_options_ = objc.registerName( + "rangeOfCharacterFromSet:options:", +); +late final _sel_rangeOfCharacterFromSet_options_range_ = objc.registerName( + "rangeOfCharacterFromSet:options:range:", +); +late final _sel_rangeOfComposedCharacterSequenceAtIndex_ = objc.registerName( + "rangeOfComposedCharacterSequenceAtIndex:", +); +late final _sel_rangeOfComposedCharacterSequencesForRange_ = objc.registerName( + "rangeOfComposedCharacterSequencesForRange:", +); +late final _sel_rangeOfData_options_range_ = objc.registerName( + "rangeOfData:options:range:", +); late final _sel_rangeOfString_ = objc.registerName("rangeOfString:"); -late final _sel_rangeOfString_options_ = - objc.registerName("rangeOfString:options:"); -late final _sel_rangeOfString_options_range_ = - objc.registerName("rangeOfString:options:range:"); -late final _sel_rangeOfString_options_range_locale_ = - objc.registerName("rangeOfString:options:range:locale:"); +late final _sel_rangeOfString_options_ = objc.registerName( + "rangeOfString:options:", +); +late final _sel_rangeOfString_options_range_ = objc.registerName( + "rangeOfString:options:range:", +); +late final _sel_rangeOfString_options_range_locale_ = objc.registerName( + "rangeOfString:options:range:locale:", +); late final _sel_read_maxLength_ = objc.registerName("read:maxLength:"); late final _sel_recoveryAttempter = objc.registerName("recoveryAttempter"); late final _sel_registerClass = objc.registerName("registerClass"); -late final _sel_registerObject_visibility_ = - objc.registerName("registerObject:visibility:"); -late final _sel_registeredTypeIdentifiers = - objc.registerName("registeredTypeIdentifiers"); -late final _sel_registeredTypeIdentifiersWithFileOptions_ = - objc.registerName("registeredTypeIdentifiersWithFileOptions:"); +late final _sel_registerObject_visibility_ = objc.registerName( + "registerObject:visibility:", +); +late final _sel_registeredTypeIdentifiers = objc.registerName( + "registeredTypeIdentifiers", +); +late final _sel_registeredTypeIdentifiersWithFileOptions_ = objc.registerName( + "registeredTypeIdentifiersWithFileOptions:", +); late final _sel_relativePath = objc.registerName("relativePath"); late final _sel_relativeString = objc.registerName("relativeString"); late final _sel_release = objc.registerName("release"); late final _sel_removals = objc.registerName("removals"); -late final _sel_removeAllCachedResourceValues = - objc.registerName("removeAllCachedResourceValues"); +late final _sel_removeAllCachedResourceValues = objc.registerName( + "removeAllCachedResourceValues", +); late final _sel_removeAllIndexes = objc.registerName("removeAllIndexes"); late final _sel_removeAllObjects = objc.registerName("removeAllObjects"); -late final _sel_removeCachedResourceValueForKey_ = - objc.registerName("removeCachedResourceValueForKey:"); -late final _sel_removeFromRunLoop_forMode_ = - objc.registerName("removeFromRunLoop:forMode:"); +late final _sel_removeCachedResourceValueForKey_ = objc.registerName( + "removeCachedResourceValueForKey:", +); +late final _sel_removeFromRunLoop_forMode_ = objc.registerName( + "removeFromRunLoop:forMode:", +); late final _sel_removeIndex_ = objc.registerName("removeIndex:"); -late final _sel_removeIndexesInRange_ = - objc.registerName("removeIndexesInRange:"); +late final _sel_removeIndexesInRange_ = objc.registerName( + "removeIndexesInRange:", +); late final _sel_removeIndexes_ = objc.registerName("removeIndexes:"); late final _sel_removeLastObject = objc.registerName("removeLastObject"); -late final _sel_removeObjectAtIndex_ = - objc.registerName("removeObjectAtIndex:"); +late final _sel_removeObjectAtIndex_ = objc.registerName( + "removeObjectAtIndex:", +); late final _sel_removeObjectForKey_ = objc.registerName("removeObjectForKey:"); -late final _sel_removeObjectIdenticalTo_ = - objc.registerName("removeObjectIdenticalTo:"); -late final _sel_removeObjectIdenticalTo_inRange_ = - objc.registerName("removeObjectIdenticalTo:inRange:"); +late final _sel_removeObjectIdenticalTo_ = objc.registerName( + "removeObjectIdenticalTo:", +); +late final _sel_removeObjectIdenticalTo_inRange_ = objc.registerName( + "removeObjectIdenticalTo:inRange:", +); late final _sel_removeObject_ = objc.registerName("removeObject:"); -late final _sel_removeObject_inRange_ = - objc.registerName("removeObject:inRange:"); -late final _sel_removeObjectsAtIndexes_ = - objc.registerName("removeObjectsAtIndexes:"); -late final _sel_removeObjectsForKeys_ = - objc.registerName("removeObjectsForKeys:"); -late final _sel_removeObjectsInArray_ = - objc.registerName("removeObjectsInArray:"); -late final _sel_removeObjectsInRange_ = - objc.registerName("removeObjectsInRange:"); -late final _sel_replaceBytesInRange_withBytes_ = - objc.registerName("replaceBytesInRange:withBytes:"); -late final _sel_replaceBytesInRange_withBytes_length_ = - objc.registerName("replaceBytesInRange:withBytes:length:"); -late final _sel_replaceCharactersInRange_withString_ = - objc.registerName("replaceCharactersInRange:withString:"); -late final _sel_replaceObjectAtIndex_withObject_ = - objc.registerName("replaceObjectAtIndex:withObject:"); -late final _sel_replaceObjectsAtIndexes_withObjects_ = - objc.registerName("replaceObjectsAtIndexes:withObjects:"); -late final _sel_replaceObjectsInRange_withObjectsFromArray_ = - objc.registerName("replaceObjectsInRange:withObjectsFromArray:"); -late final _sel_replaceObjectsInRange_withObjectsFromArray_range_ = - objc.registerName("replaceObjectsInRange:withObjectsFromArray:range:"); -late final _sel_replaceObjectsInRange_withObjects_count_ = - objc.registerName("replaceObjectsInRange:withObjects:count:"); +late final _sel_removeObject_inRange_ = objc.registerName( + "removeObject:inRange:", +); +late final _sel_removeObjectsAtIndexes_ = objc.registerName( + "removeObjectsAtIndexes:", +); +late final _sel_removeObjectsForKeys_ = objc.registerName( + "removeObjectsForKeys:", +); +late final _sel_removeObjectsInArray_ = objc.registerName( + "removeObjectsInArray:", +); +late final _sel_removeObjectsInRange_ = objc.registerName( + "removeObjectsInRange:", +); +late final _sel_replaceBytesInRange_withBytes_ = objc.registerName( + "replaceBytesInRange:withBytes:", +); +late final _sel_replaceBytesInRange_withBytes_length_ = objc.registerName( + "replaceBytesInRange:withBytes:length:", +); +late final _sel_replaceCharactersInRange_withString_ = objc.registerName( + "replaceCharactersInRange:withString:", +); +late final _sel_replaceObjectAtIndex_withObject_ = objc.registerName( + "replaceObjectAtIndex:withObject:", +); +late final _sel_replaceObjectsAtIndexes_withObjects_ = objc.registerName( + "replaceObjectsAtIndexes:withObjects:", +); +late final _sel_replaceObjectsInRange_withObjectsFromArray_ = objc.registerName( + "replaceObjectsInRange:withObjectsFromArray:", +); +late final _sel_replaceObjectsInRange_withObjectsFromArray_range_ = objc + .registerName("replaceObjectsInRange:withObjectsFromArray:range:"); +late final _sel_replaceObjectsInRange_withObjects_count_ = objc.registerName( + "replaceObjectsInRange:withObjects:count:", +); late final _sel_resetBytesInRange_ = objc.registerName("resetBytesInRange:"); late final _sel_resolveClassMethod_ = objc.registerName("resolveClassMethod:"); -late final _sel_resolveInstanceMethod_ = - objc.registerName("resolveInstanceMethod:"); +late final _sel_resolveInstanceMethod_ = objc.registerName( + "resolveInstanceMethod:", +); late final _sel_resourceSpecifier = objc.registerName("resourceSpecifier"); -late final _sel_resourceValuesForKeys_error_ = - objc.registerName("resourceValuesForKeys:error:"); -late final _sel_resourceValuesForKeys_fromBookmarkData_ = - objc.registerName("resourceValuesForKeys:fromBookmarkData:"); +late final _sel_resourceValuesForKeys_error_ = objc.registerName( + "resourceValuesForKeys:error:", +); +late final _sel_resourceValuesForKeys_fromBookmarkData_ = objc.registerName( + "resourceValuesForKeys:fromBookmarkData:", +); late final _sel_respondsToSelector_ = objc.registerName("respondsToSelector:"); late final _sel_retain = objc.registerName("retain"); late final _sel_retainCount = objc.registerName("retainCount"); -late final _sel_reverseObjectEnumerator = - objc.registerName("reverseObjectEnumerator"); +late final _sel_reverseObjectEnumerator = objc.registerName( + "reverseObjectEnumerator", +); late final _sel_reversedOrderedSet = objc.registerName("reversedOrderedSet"); -late final _sel_scheduleInRunLoop_forMode_ = - objc.registerName("scheduleInRunLoop:forMode:"); +late final _sel_scheduleInRunLoop_forMode_ = objc.registerName( + "scheduleInRunLoop:forMode:", +); late final _sel_scheme = objc.registerName("scheme"); late final _sel_self = objc.registerName("self"); late final _sel_set = objc.registerName("set"); late final _sel_setArray_ = objc.registerName("setArray:"); late final _sel_setByAddingObject_ = objc.registerName("setByAddingObject:"); -late final _sel_setByAddingObjectsFromArray_ = - objc.registerName("setByAddingObjectsFromArray:"); -late final _sel_setByAddingObjectsFromSet_ = - objc.registerName("setByAddingObjectsFromSet:"); +late final _sel_setByAddingObjectsFromArray_ = objc.registerName( + "setByAddingObjectsFromArray:", +); +late final _sel_setByAddingObjectsFromSet_ = objc.registerName( + "setByAddingObjectsFromSet:", +); late final _sel_setData_ = objc.registerName("setData:"); late final _sel_setDelegate_ = objc.registerName("setDelegate:"); late final _sel_setDictionary_ = objc.registerName("setDictionary:"); @@ -18322,90 +25128,116 @@ late final _sel_setDone = objc.registerName("setDone"); late final _sel_setError_ = objc.registerName("setError:"); late final _sel_setLength_ = objc.registerName("setLength:"); late final _sel_setObject_atIndex_ = objc.registerName("setObject:atIndex:"); -late final _sel_setObject_atIndexedSubscript_ = - objc.registerName("setObject:atIndexedSubscript:"); +late final _sel_setObject_atIndexedSubscript_ = objc.registerName( + "setObject:atIndexedSubscript:", +); late final _sel_setObject_forKey_ = objc.registerName("setObject:forKey:"); -late final _sel_setObject_forKeyedSubscript_ = - objc.registerName("setObject:forKeyedSubscript:"); +late final _sel_setObject_forKeyedSubscript_ = objc.registerName( + "setObject:forKeyedSubscript:", +); late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); -late final _sel_setResourceValue_forKey_error_ = - objc.registerName("setResourceValue:forKey:error:"); -late final _sel_setResourceValues_error_ = - objc.registerName("setResourceValues:error:"); +late final _sel_setResourceValue_forKey_error_ = objc.registerName( + "setResourceValue:forKey:error:", +); +late final _sel_setResourceValues_error_ = objc.registerName( + "setResourceValues:error:", +); late final _sel_setSet_ = objc.registerName("setSet:"); late final _sel_setSuggestedName_ = objc.registerName("setSuggestedName:"); -late final _sel_setTemporaryResourceValue_forKey_ = - objc.registerName("setTemporaryResourceValue:forKey:"); +late final _sel_setTemporaryResourceValue_forKey_ = objc.registerName( + "setTemporaryResourceValue:forKey:", +); late final _sel_setWithArray_ = objc.registerName("setWithArray:"); late final _sel_setWithCapacity_ = objc.registerName("setWithCapacity:"); late final _sel_setWithObject_ = objc.registerName("setWithObject:"); late final _sel_setWithObjects_ = objc.registerName("setWithObjects:"); -late final _sel_setWithObjects_count_ = - objc.registerName("setWithObjects:count:"); +late final _sel_setWithObjects_count_ = objc.registerName( + "setWithObjects:count:", +); late final _sel_setWithSet_ = objc.registerName("setWithSet:"); -late final _sel_shiftIndexesStartingAtIndex_by_ = - objc.registerName("shiftIndexesStartingAtIndex:by:"); +late final _sel_shiftIndexesStartingAtIndex_by_ = objc.registerName( + "shiftIndexesStartingAtIndex:by:", +); late final _sel_shortValue = objc.registerName("shortValue"); -late final _sel_signatureWithObjCTypes_ = - objc.registerName("signatureWithObjCTypes:"); +late final _sel_signatureWithObjCTypes_ = objc.registerName( + "signatureWithObjCTypes:", +); late final _sel_smallestEncoding = objc.registerName("smallestEncoding"); -late final _sel_sortUsingFunction_context_ = - objc.registerName("sortUsingFunction:context:"); +late final _sel_sortUsingFunction_context_ = objc.registerName( + "sortUsingFunction:context:", +); late final _sel_sortUsingSelector_ = objc.registerName("sortUsingSelector:"); late final _sel_sortedArrayHint = objc.registerName("sortedArrayHint"); -late final _sel_sortedArrayUsingFunction_context_ = - objc.registerName("sortedArrayUsingFunction:context:"); -late final _sel_sortedArrayUsingFunction_context_hint_ = - objc.registerName("sortedArrayUsingFunction:context:hint:"); -late final _sel_sortedArrayUsingSelector_ = - objc.registerName("sortedArrayUsingSelector:"); +late final _sel_sortedArrayUsingFunction_context_ = objc.registerName( + "sortedArrayUsingFunction:context:", +); +late final _sel_sortedArrayUsingFunction_context_hint_ = objc.registerName( + "sortedArrayUsingFunction:context:hint:", +); +late final _sel_sortedArrayUsingSelector_ = objc.registerName( + "sortedArrayUsingSelector:", +); late final _sel_standardizedURL = objc.registerName("standardizedURL"); -late final _sel_startAccessingSecurityScopedResource = - objc.registerName("startAccessingSecurityScopedResource"); -late final _sel_stopAccessingSecurityScopedResource = - objc.registerName("stopAccessingSecurityScopedResource"); +late final _sel_startAccessingSecurityScopedResource = objc.registerName( + "startAccessingSecurityScopedResource", +); +late final _sel_stopAccessingSecurityScopedResource = objc.registerName( + "stopAccessingSecurityScopedResource", +); late final _sel_streamError = objc.registerName("streamError"); late final _sel_streamStatus = objc.registerName("streamStatus"); late final _sel_stream_handleEvent_ = objc.registerName("stream:handleEvent:"); late final _sel_string = objc.registerName("string"); -late final _sel_stringByAppendingFormat_ = - objc.registerName("stringByAppendingFormat:"); -late final _sel_stringByAppendingString_ = - objc.registerName("stringByAppendingString:"); -late final _sel_stringByApplyingTransform_reverse_ = - objc.registerName("stringByApplyingTransform:reverse:"); -late final _sel_stringByFoldingWithOptions_locale_ = - objc.registerName("stringByFoldingWithOptions:locale:"); -late final _sel_stringByPaddingToLength_withString_startingAtIndex_ = - objc.registerName("stringByPaddingToLength:withString:startingAtIndex:"); -late final _sel_stringByReplacingCharactersInRange_withString_ = - objc.registerName("stringByReplacingCharactersInRange:withString:"); -late final _sel_stringByReplacingOccurrencesOfString_withString_ = - objc.registerName("stringByReplacingOccurrencesOfString:withString:"); +late final _sel_stringByAppendingFormat_ = objc.registerName( + "stringByAppendingFormat:", +); +late final _sel_stringByAppendingString_ = objc.registerName( + "stringByAppendingString:", +); +late final _sel_stringByApplyingTransform_reverse_ = objc.registerName( + "stringByApplyingTransform:reverse:", +); +late final _sel_stringByFoldingWithOptions_locale_ = objc.registerName( + "stringByFoldingWithOptions:locale:", +); +late final _sel_stringByPaddingToLength_withString_startingAtIndex_ = objc + .registerName("stringByPaddingToLength:withString:startingAtIndex:"); +late final _sel_stringByReplacingCharactersInRange_withString_ = objc + .registerName("stringByReplacingCharactersInRange:withString:"); +late final _sel_stringByReplacingOccurrencesOfString_withString_ = objc + .registerName("stringByReplacingOccurrencesOfString:withString:"); late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_ = objc.registerName( - "stringByReplacingOccurrencesOfString:withString:options:range:"); -late final _sel_stringByTrimmingCharactersInSet_ = - objc.registerName("stringByTrimmingCharactersInSet:"); + "stringByReplacingOccurrencesOfString:withString:options:range:", + ); +late final _sel_stringByTrimmingCharactersInSet_ = objc.registerName( + "stringByTrimmingCharactersInSet:", +); late final _sel_stringValue = objc.registerName("stringValue"); -late final _sel_stringWithCString_encoding_ = - objc.registerName("stringWithCString:encoding:"); -late final _sel_stringWithCharacters_length_ = - objc.registerName("stringWithCharacters:length:"); -late final _sel_stringWithContentsOfFile_encoding_error_ = - objc.registerName("stringWithContentsOfFile:encoding:error:"); -late final _sel_stringWithContentsOfFile_usedEncoding_error_ = - objc.registerName("stringWithContentsOfFile:usedEncoding:error:"); -late final _sel_stringWithContentsOfURL_encoding_error_ = - objc.registerName("stringWithContentsOfURL:encoding:error:"); -late final _sel_stringWithContentsOfURL_usedEncoding_error_ = - objc.registerName("stringWithContentsOfURL:usedEncoding:error:"); +late final _sel_stringWithCString_encoding_ = objc.registerName( + "stringWithCString:encoding:", +); +late final _sel_stringWithCharacters_length_ = objc.registerName( + "stringWithCharacters:length:", +); +late final _sel_stringWithContentsOfFile_encoding_error_ = objc.registerName( + "stringWithContentsOfFile:encoding:error:", +); +late final _sel_stringWithContentsOfFile_usedEncoding_error_ = objc + .registerName("stringWithContentsOfFile:usedEncoding:error:"); +late final _sel_stringWithContentsOfURL_encoding_error_ = objc.registerName( + "stringWithContentsOfURL:encoding:error:", +); +late final _sel_stringWithContentsOfURL_usedEncoding_error_ = objc.registerName( + "stringWithContentsOfURL:usedEncoding:error:", +); late final _sel_stringWithFormat_ = objc.registerName("stringWithFormat:"); late final _sel_stringWithString_ = objc.registerName("stringWithString:"); -late final _sel_stringWithUTF8String_ = - objc.registerName("stringWithUTF8String:"); -late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_ = - objc.registerName("stringWithValidatedFormat:validFormatSpecifiers:error:"); +late final _sel_stringWithUTF8String_ = objc.registerName( + "stringWithUTF8String:", +); +late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_ = objc + .registerName("stringWithValidatedFormat:validFormatSpecifiers:error:"); late final _sel_subarrayWithRange_ = objc.registerName("subarrayWithRange:"); late final _sel_subdataWithRange_ = objc.registerName("subdataWithRange:"); late final _sel_substringFromIndex_ = objc.registerName("substringFromIndex:"); @@ -18413,56 +25245,75 @@ late final _sel_substringToIndex_ = objc.registerName("substringToIndex:"); late final _sel_substringWithRange_ = objc.registerName("substringWithRange:"); late final _sel_suggestedName = objc.registerName("suggestedName"); late final _sel_superclass = objc.registerName("superclass"); -late final _sel_supportsSecureCoding = - objc.registerName("supportsSecureCoding"); +late final _sel_supportsSecureCoding = objc.registerName( + "supportsSecureCoding", +); late final _sel_symbolCharacterSet = objc.registerName("symbolCharacterSet"); -late final _sel_timeIntervalSince1970 = - objc.registerName("timeIntervalSince1970"); -late final _sel_timeIntervalSinceDate_ = - objc.registerName("timeIntervalSinceDate:"); -late final _sel_timeIntervalSinceNow = - objc.registerName("timeIntervalSinceNow"); -late final _sel_timeIntervalSinceReferenceDate = - objc.registerName("timeIntervalSinceReferenceDate"); +late final _sel_timeIntervalSince1970 = objc.registerName( + "timeIntervalSince1970", +); +late final _sel_timeIntervalSinceDate_ = objc.registerName( + "timeIntervalSinceDate:", +); +late final _sel_timeIntervalSinceNow = objc.registerName( + "timeIntervalSinceNow", +); +late final _sel_timeIntervalSinceReferenceDate = objc.registerName( + "timeIntervalSinceReferenceDate", +); late final _sel_underlyingErrors = objc.registerName("underlyingErrors"); late final _sel_unionOrderedSet_ = objc.registerName("unionOrderedSet:"); late final _sel_unionSet_ = objc.registerName("unionSet:"); late final _sel_unsignedCharValue = objc.registerName("unsignedCharValue"); late final _sel_unsignedIntValue = objc.registerName("unsignedIntValue"); -late final _sel_unsignedIntegerValue = - objc.registerName("unsignedIntegerValue"); -late final _sel_unsignedLongLongValue = - objc.registerName("unsignedLongLongValue"); +late final _sel_unsignedIntegerValue = objc.registerName( + "unsignedIntegerValue", +); +late final _sel_unsignedLongLongValue = objc.registerName( + "unsignedLongLongValue", +); late final _sel_unsignedLongValue = objc.registerName("unsignedLongValue"); late final _sel_unsignedShortValue = objc.registerName("unsignedShortValue"); -late final _sel_uppercaseLetterCharacterSet = - objc.registerName("uppercaseLetterCharacterSet"); +late final _sel_uppercaseLetterCharacterSet = objc.registerName( + "uppercaseLetterCharacterSet", +); late final _sel_uppercaseString = objc.registerName("uppercaseString"); -late final _sel_uppercaseStringWithLocale_ = - objc.registerName("uppercaseStringWithLocale:"); +late final _sel_uppercaseStringWithLocale_ = objc.registerName( + "uppercaseStringWithLocale:", +); late final _sel_user = objc.registerName("user"); late final _sel_userInfo = objc.registerName("userInfo"); -late final _sel_whitespaceAndNewlineCharacterSet = - objc.registerName("whitespaceAndNewlineCharacterSet"); -late final _sel_whitespaceCharacterSet = - objc.registerName("whitespaceCharacterSet"); -late final _sel_writableTypeIdentifiersForItemProvider = - objc.registerName("writableTypeIdentifiersForItemProvider"); -late final _sel_writeBookmarkData_toURL_options_error_ = - objc.registerName("writeBookmarkData:toURL:options:error:"); -late final _sel_writeToFile_atomically_ = - objc.registerName("writeToFile:atomically:"); -late final _sel_writeToFile_atomically_encoding_error_ = - objc.registerName("writeToFile:atomically:encoding:error:"); -late final _sel_writeToFile_options_error_ = - objc.registerName("writeToFile:options:error:"); -late final _sel_writeToURL_atomically_ = - objc.registerName("writeToURL:atomically:"); -late final _sel_writeToURL_atomically_encoding_error_ = - objc.registerName("writeToURL:atomically:encoding:error:"); +late final _sel_whitespaceAndNewlineCharacterSet = objc.registerName( + "whitespaceAndNewlineCharacterSet", +); +late final _sel_whitespaceCharacterSet = objc.registerName( + "whitespaceCharacterSet", +); +late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( + "writableTypeIdentifiersForItemProvider", +); +late final _sel_writeBookmarkData_toURL_options_error_ = objc.registerName( + "writeBookmarkData:toURL:options:error:", +); +late final _sel_writeToFile_atomically_ = objc.registerName( + "writeToFile:atomically:", +); +late final _sel_writeToFile_atomically_encoding_error_ = objc.registerName( + "writeToFile:atomically:encoding:error:", +); +late final _sel_writeToFile_options_error_ = objc.registerName( + "writeToFile:options:error:", +); +late final _sel_writeToURL_atomically_ = objc.registerName( + "writeToURL:atomically:", +); +late final _sel_writeToURL_atomically_encoding_error_ = objc.registerName( + "writeToURL:atomically:encoding:error:", +); late final _sel_writeToURL_error_ = objc.registerName("writeToURL:error:"); -late final _sel_writeToURL_options_error_ = - objc.registerName("writeToURL:options:error:"); +late final _sel_writeToURL_options_error_ = objc.registerName( + "writeToURL:options:error:", +); late final _sel_write_maxLength_ = objc.registerName("write:maxLength:"); late final _sel_zone = objc.registerName("zone"); typedef instancetype = ffi.Pointer; @@ -18475,9 +25326,9 @@ class _NSArrayIterator implements Iterator { objc.ObjCObjectBase? _current; _NSArrayIterator(Iterable iterable) - : _iterable = iterable, - _length = iterable.length, - _index = 0; + : _iterable = iterable, + _length = iterable.length, + _index = 0; @override objc.ObjCObjectBase get current => _current!; diff --git a/pkgs/objective_c/lib/src/objective_c_native_base.dart b/pkgs/objective_c/lib/src/objective_c_native_base.dart new file mode 100644 index 000000000..e8a6f1590 --- /dev/null +++ b/pkgs/objective_c/lib/src/objective_c_native_base.dart @@ -0,0 +1,6 @@ +// TODO: Put public facing types in this file. + +/// Checks if you are awesome. Spoiler: you are. +class Awesome { + bool get isAwesome => true; +} diff --git a/pkgs/objective_c/lib/src/protocol_builder.dart b/pkgs/objective_c/lib/src/protocol_builder.dart index bbe1b2654..bbc93aa01 100644 --- a/pkgs/objective_c/lib/src/protocol_builder.dart +++ b/pkgs/objective_c/lib/src/protocol_builder.dart @@ -12,6 +12,7 @@ import 'c_bindings_generated.dart' as c; import 'internal.dart' show FailedToLoadProtocolMethodException, GetProtocolName, ObjCBlockBase; import 'objective_c_bindings_generated.dart' as objc; +import 'runtime_bindings_generated.dart' as r; import 'selector.dart'; /// Helper class for building Objective C objects that implement protocols. @@ -30,7 +31,7 @@ class ObjCProtocolBuilder { /// implement methods on [ObjCProtocolMethod] and its subclasses. /// /// Note: You cannot call this method after you have called [build]. - void implementMethod(Pointer sel, Pointer signature, + void implementMethod(Pointer sel, Pointer signature, Pointer trampoline, ObjCBlockBase block) { if (_built) { throw StateError('Protocol is already built'); @@ -82,8 +83,8 @@ class ObjCProtocolBuilder { /// want to implement. The generated bindings will include a /// [ObjCProtocolMethod] for each method of the protocol. class ObjCProtocolMethod { - final Pointer _proto; - final Pointer _sel; + final Pointer _proto; + final Pointer _sel; final Pointer _trampoline; final Pointer? _signature; final ObjCBlockBase Function(T) _createBlock; diff --git a/pkgs/objective_c/lib/src/runtime_bindings_generated.dart b/pkgs/objective_c/lib/src/runtime_bindings_generated.dart new file mode 100644 index 000000000..2b51f8ace --- /dev/null +++ b/pkgs/objective_c/lib/src/runtime_bindings_generated.dart @@ -0,0 +1,145 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// Bindings for `src/objective_c_runtime.h`. +// Regenerate bindings with `dart run tool/generate_code.dart`. + +// ignore_for_file: always_specify_types +// ignore_for_file: camel_case_types +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: unused_element +// coverage:ignore-file + +// AUTO GENERATED FILE, DO NOT EDIT. +// +// Generated by `package:ffigen`. +// ignore_for_file: type=lint +import 'dart:ffi' as ffi; + +@ffi.Array.multi([32]) +@ffi.Native>>(symbol: '_NSConcreteAutoBlock') +external ffi.Array> NSConcreteAutoBlock; + +@ffi.Array.multi([32]) +@ffi.Native>>( + symbol: '_NSConcreteFinalizingBlock', +) +external ffi.Array> NSConcreteFinalizingBlock; + +@ffi.Array.multi([32]) +@ffi.Native>>(symbol: '_NSConcreteGlobalBlock') +external ffi.Array> NSConcreteGlobalBlock; + +@ffi.Array.multi([32]) +@ffi.Native>>(symbol: '_NSConcreteMallocBlock') +external ffi.Array> NSConcreteMallocBlock; + +@ffi.Array.multi([32]) +@ffi.Native>>(symbol: '_NSConcreteStackBlock') +external ffi.Array> NSConcreteStackBlock; + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'objc_retainBlock', + isLeaf: true, +) +external ffi.Pointer blockRetain(ffi.Pointer object); + +@ffi.Native< + ffi.Pointer> Function(ffi.Pointer) +>(symbol: 'objc_copyClassList', isLeaf: true) +external ffi.Pointer> copyClassList( + ffi.Pointer count, +); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'objc_getClass', + isLeaf: true, +) +external ffi.Pointer getClass(ffi.Pointer name); + +@ffi.Native< + ObjCMethodDesc Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Bool, + ) +>(symbol: 'protocol_getMethodDescription', isLeaf: true) +external ObjCMethodDesc getMethodDescription( + ffi.Pointer protocol, + ffi.Pointer sel, + bool isRequiredMethod, + bool isInstanceMethod, +); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'sel_getName', + isLeaf: true, +) +external ffi.Pointer getName(ffi.Pointer sel); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'object_getClass', + isLeaf: true, +) +external ffi.Pointer getObjectClass(ffi.Pointer object); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'objc_getProtocol', + isLeaf: true, +) +external ffi.Pointer getProtocol(ffi.Pointer name); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'protocol_getName', + isLeaf: true, +) +external ffi.Pointer getProtocolName(ffi.Pointer proto); + +@ffi.Native(symbol: 'objc_msgSend') +external void msgSend(); + +@ffi.Native(symbol: 'objc_msgSend_fpret') +external void msgSendFpret(); + +@ffi.Native(symbol: 'objc_msgSend_stret') +external void msgSendStret(); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'objc_autorelease', + isLeaf: true, +) +external ffi.Pointer objectAutorelease( + ffi.Pointer object, +); + +@ffi.Native)>( + symbol: 'objc_release', + isLeaf: true, +) +external void objectRelease(ffi.Pointer object); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'objc_retain', + isLeaf: true, +) +external ffi.Pointer objectRetain(ffi.Pointer object); + +@ffi.Native Function(ffi.Pointer)>( + symbol: 'sel_registerName', + isLeaf: true, +) +external ffi.Pointer registerName(ffi.Pointer name); + +final class ObjCMethodDesc extends ffi.Struct { + external ffi.Pointer name; + + external ffi.Pointer types; +} + +final class ObjCObject extends ffi.Opaque {} + +final class ObjCProtocol extends ffi.Opaque {} + +final class ObjCSelector extends ffi.Opaque {} diff --git a/pkgs/objective_c/lib/src/selector.dart b/pkgs/objective_c/lib/src/selector.dart index 93c79be00..4ba7af056 100644 --- a/pkgs/objective_c/lib/src/selector.dart +++ b/pkgs/objective_c/lib/src/selector.dart @@ -6,7 +6,7 @@ import 'dart:ffi'; import 'package:ffi/ffi.dart'; -import 'c_bindings_generated.dart' as c; +import 'runtime_bindings_generated.dart' as r; import 'internal.dart'; extension StringToSelector on String { @@ -14,12 +14,12 @@ extension StringToSelector on String { /// /// This is equivalent to the Objective-C `@selector()` directive, or the /// `NSSelectorFromString` function. - Pointer toSelector() => registerName(this); + Pointer toSelector() => registerName(this); } -extension SelectorToString on Pointer { +extension SelectorToString on Pointer { /// Returns the string that this Objective-C selector represents. /// /// This is equivalent to the Objective-C `NSSelectorFromString` function. - String toDartString() => c.getName(this).cast().toDartString(); + String toDartString() => r.getName(this).cast().toDartString(); } diff --git a/pkgs/objective_c/macos/Classes/objective_c.c b/pkgs/objective_c/macos/Classes/objective_c.c deleted file mode 100644 index 6d9c021cc..000000000 --- a/pkgs/objective_c/macos/Classes/objective_c.c +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -// Relative import to be able to reuse the C sources. -// See the comment in ../objective_c.podspec for more information. -#include "../../src/objective_c.c" -#include "../../src/include/dart_api_dl.c" diff --git a/pkgs/objective_c/macos/Classes/objective_c.m b/pkgs/objective_c/macos/Classes/objective_c.m deleted file mode 100644 index 745ecab21..000000000 --- a/pkgs/objective_c/macos/Classes/objective_c.m +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -// Relative import to be able to reuse the ObjC sources. -// See the comment in ../objective_c.podspec for more information. -#include "../../src/input_stream_adapter.m" -#include "../../src/objective_c.m" -#include "../../src/objective_c_bindings_generated.m" -#include "../../src/protocol.m" diff --git a/pkgs/objective_c/macos/objective_c.podspec b/pkgs/objective_c/macos/objective_c.podspec deleted file mode 100644 index f3ae43b6b..000000000 --- a/pkgs/objective_c/macos/objective_c.podspec +++ /dev/null @@ -1,27 +0,0 @@ -# -# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. -# Run `pod lib lint objective_c.podspec` to validate before publishing. -# -Pod::Spec.new do |s| - s.name = 'objective_c' - s.version = '0.0.1' - s.summary = 'A library to access Objective C from Flutter that acts as a support library for package:ffigen.' - s.description = <<-DESC -A library to access Objective C from Flutter that acts as a support library for package:ffigen. - DESC - s.homepage = 'http://example.com' - s.license = { :file => '../LICENSE' } - s.author = { 'Your Company' => 'email@example.com' } - - # This will ensure the source files in Classes/ are included in the native - # builds of apps using this FFI plugin. Podspec does not support relative - # paths, so Classes contains a forwarder C file that relatively imports - # `../src/*` so that the C sources can be shared among all target platforms. - s.source = { :path => '.' } - s.source_files = 'Classes/**/*' - s.dependency 'FlutterMacOS' - - s.platform = :osx, '10.11' - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } - s.swift_version = '5.0' -end diff --git a/pkgs/objective_c/pubspec.yaml b/pkgs/objective_c/pubspec.yaml index 0fc387ab3..f272df8e7 100644 --- a/pkgs/objective_c/pubspec.yaml +++ b/pkgs/objective_c/pubspec.yaml @@ -15,13 +15,13 @@ topics: - codegen environment: - sdk: '>=3.4.0 <4.0.0' - flutter: '>=3.22.0' + sdk: '>=3.8.0 <4.0.0' dependencies: + code_assets: ^0.19.0 + hooks: ^0.19.0 ffi: ^2.1.0 - flutter: - sdk: flutter + native_toolchain_c: ^0.16.0 pub_semver: ^2.1.4 dev_dependencies: @@ -29,20 +29,15 @@ dev_dependencies: coverage: ^1.11.0 dart_flutter_team_lints: ^2.0.0 ffigen: ^18.2.0 - flutter_lints: ^3.0.0 - flutter_test: - sdk: flutter test: ^1.21.1 yaml: ^3.1.0 dependency_overrides: + code_assets: + path: ../code_assets + hooks: + path: ../hooks ffigen: - path: ../ffigen/ - -flutter: - plugin: - platforms: - ios: - ffiPlugin: true - macos: - ffiPlugin: true + path: ../ffigen + native_toolchain_c: + path: ../native_toolchain_c diff --git a/pkgs/objective_c/src/CMakeLists.txt b/pkgs/objective_c/src/CMakeLists.txt deleted file mode 100644 index 14fc5b575..000000000 --- a/pkgs/objective_c/src/CMakeLists.txt +++ /dev/null @@ -1,22 +0,0 @@ -# The Flutter tooling requires that developers have CMake 3.10 or later -# installed. You should not increase this version, as doing so will cause -# the plugin to fail to compile for some customers of the plugin. -cmake_minimum_required(VERSION 3.10) - -project(objective_c_library VERSION 0.0.1 LANGUAGES C) - -add_library(objective_c SHARED - "objective_c.c" - "objective_c.m" - "protocol.m" - "include/dart_api_dl.c" -) - -target_link_options(objective_c PRIVATE "-undefined dynamic_lookup") - -set_target_properties(objective_c PROPERTIES - PUBLIC_HEADER objective_c.h - OUTPUT_NAME "objective_c" -) - -target_compile_definitions(objective_c PUBLIC DART_SHARED_LIB) diff --git a/pkgs/objective_c/src/input_stream_adapter.h b/pkgs/objective_c/src/input_stream_adapter.h index 6322fb94f..0457189ae 100644 --- a/pkgs/objective_c/src/input_stream_adapter.h +++ b/pkgs/objective_c/src/input_stream_adapter.h @@ -20,3 +20,5 @@ - (void)setDone; - (void)setError:(NSError *)error; @end + +NSErrorUserInfoKey getLocalizedDescriptionKey(); diff --git a/pkgs/objective_c/src/input_stream_adapter.m b/pkgs/objective_c/src/input_stream_adapter.m index 1dbc386a1..250ccd7ab 100644 --- a/pkgs/objective_c/src/input_stream_adapter.m +++ b/pkgs/objective_c/src/input_stream_adapter.m @@ -7,6 +7,10 @@ #import #include +NSErrorUserInfoKey getLocalizedDescriptionKey() { + return NSLocalizedDescriptionKey; +} + @implementation DOBJCDartInputStreamAdapter { Dart_Port _sendPort; NSCondition *_dataCondition; diff --git a/pkgs/objective_c/src/objective_c.h b/pkgs/objective_c/src/objective_c.h index a389923ee..382933798 100644 --- a/pkgs/objective_c/src/objective_c.h +++ b/pkgs/objective_c/src/objective_c.h @@ -9,6 +9,27 @@ #include "include/dart_api_dl.h" #include "objective_c_runtime.h" +// See https://clang.llvm.org/docs/Block-ABI-Apple.html +typedef struct _ObjCBlockDesc { + unsigned long int reserved; + unsigned long int size; // sizeof(ObjCBlockImpl) + void (*copy_helper)(void *dst, void *src); + void (*dispose_helper)(void *src); + const char *signature; +} ObjCBlockDesc; + +typedef struct _ObjCBlockImpl { + void *isa; // _NSConcreteGlobalBlock + int flags; + int reserved; + void *invoke; // RET (*invoke)(ObjCBlockImpl *, ARGS...); + ObjCBlockDesc *descriptor; + + // Captured variables follow. These are specific to our use case. + void *target; + Dart_Port dispose_port; +} ObjCBlockImpl; + // Initialize the Dart API. FFI_EXPORT intptr_t DOBJC_initializeApi(void *data); diff --git a/pkgs/objective_c/src/objective_c_runtime.h b/pkgs/objective_c/src/objective_c_runtime.h index f911c549f..f466596ac 100644 --- a/pkgs/objective_c/src/objective_c_runtime.h +++ b/pkgs/objective_c/src/objective_c_runtime.h @@ -31,27 +31,6 @@ void objc_msgSend(void); void objc_msgSend_fpret(void); void objc_msgSend_stret(void); -// See https://clang.llvm.org/docs/Block-ABI-Apple.html -typedef struct _ObjCBlockDesc { - unsigned long int reserved; - unsigned long int size; // sizeof(ObjCBlockImpl) - void (*copy_helper)(void *dst, void *src); - void (*dispose_helper)(void *src); - const char *signature; -} ObjCBlockDesc; - -typedef struct _ObjCBlockImpl { - void *isa; // _NSConcreteGlobalBlock - int flags; - int reserved; - void *invoke; // RET (*invoke)(ObjCBlockImpl *, ARGS...); - ObjCBlockDesc *descriptor; - - // Captured variables follow. These are specific to our use case. - void *target; - Dart_Port dispose_port; -} ObjCBlockImpl; - // https://opensource.apple.com/source/libclosure/libclosure-38/Block_private.h extern void *_NSConcreteStackBlock[32]; extern void *_NSConcreteMallocBlock[32]; diff --git a/pkgs/objective_c/test/generate_code_test.dart b/pkgs/objective_c/test/generate_code_test.dart index d42ca8581..c53379200 100644 --- a/pkgs/objective_c/test/generate_code_test.dart +++ b/pkgs/objective_c/test/generate_code_test.dart @@ -22,12 +22,20 @@ void main() { await expectLater(generate_code.run(format: true), completes); // Sanity check the generated code. + final rBindings = + File('lib/src/runtime_bindings_generated.dart').readAsStringSync(); + expect(rBindings, contains('sel_registerName')); + expect(rBindings, contains('objc_msgSend')); + expect(rBindings, contains('_NSConcreteGlobalBlock')); + expect(rBindings, contains('ObjCObject')); + final cBindings = File('lib/src/c_bindings_generated.dart').readAsStringSync(); - expect(cBindings, contains('sel_registerName')); - expect(cBindings, contains('objc_msgSend')); - expect(cBindings, contains('_NSConcreteGlobalBlock')); - expect(cBindings, contains('ObjCBlock')); + expect(cBindings, contains('fillContext')); + expect(cBindings, contains('DOBJC_Context')); + expect(cBindings, contains('Dart_FinalizableHandle')); + expect(cBindings, contains('ILLEGAL_PORT')); + expect(cBindings, contains('ObjCBlockImpl')); final objcBindings = File('lib/src/objective_c_bindings_generated.dart') .readAsStringSync(); diff --git a/pkgs/objective_c/test/ns_input_stream_test.dart b/pkgs/objective_c/test/ns_input_stream_test.dart index 9a77c7c17..7ed2f9ca4 100644 --- a/pkgs/objective_c/test/ns_input_stream_test.dart +++ b/pkgs/objective_c/test/ns_input_stream_test.dart @@ -38,11 +38,6 @@ Future<(int, Uint8List, bool, NSStreamStatus, NSError?)> read( void main() { group('NSInputStream', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - group('toNSInputStream', () { group('empty', () { late NSInputStream inputStream; diff --git a/pkgs/objective_c/test/ns_mutable_data_test.dart b/pkgs/objective_c/test/ns_mutable_data_test.dart index 61fc10d21..f3c4397fc 100644 --- a/pkgs/objective_c/test/ns_mutable_data_test.dart +++ b/pkgs/objective_c/test/ns_mutable_data_test.dart @@ -14,11 +14,6 @@ import 'package:test/test.dart'; void main() { group('NSData', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - group('toNSData', () { test('empty', () { final data = [].toNSMutableData(); diff --git a/pkgs/objective_c/test/nsarray_test.dart b/pkgs/objective_c/test/nsarray_test.dart index ba1721ef2..e19f3a733 100644 --- a/pkgs/objective_c/test/nsarray_test.dart +++ b/pkgs/objective_c/test/nsarray_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('NSArray', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('filled', () { final obj = NSObject(); final array = NSArray.filled(3, obj); diff --git a/pkgs/objective_c/test/nsdata_test.dart b/pkgs/objective_c/test/nsdata_test.dart index 6592568c2..71d291515 100644 --- a/pkgs/objective_c/test/nsdata_test.dart +++ b/pkgs/objective_c/test/nsdata_test.dart @@ -14,11 +14,6 @@ import 'package:test/test.dart'; void main() { group('NSData', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - group('toNSData', () { test('empty', () { final data = [].toNSData(); diff --git a/pkgs/objective_c/test/nsmutablearray_test.dart b/pkgs/objective_c/test/nsmutablearray_test.dart index f095930b6..d9dedddff 100644 --- a/pkgs/objective_c/test/nsmutablearray_test.dart +++ b/pkgs/objective_c/test/nsmutablearray_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('NSMutableArray', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('filled', () { final obj = NSObject(); final array = NSMutableArray.filled(3, obj); diff --git a/pkgs/objective_c/test/nsnumber_test.dart b/pkgs/objective_c/test/nsnumber_test.dart index 768d270fc..bb652bd81 100644 --- a/pkgs/objective_c/test/nsnumber_test.dart +++ b/pkgs/objective_c/test/nsnumber_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('NSNumber', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('from double', () { final n = 1.23.toNSNumber(); diff --git a/pkgs/objective_c/test/nsstring_test.dart b/pkgs/objective_c/test/nsstring_test.dart index cf5131f60..4e79b512d 100644 --- a/pkgs/objective_c/test/nsstring_test.dart +++ b/pkgs/objective_c/test/nsstring_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('NSString', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - for (final s in ['Hello', '🇵🇬', 'Embedded\u0000Null']) { test('NSString to/from Dart string [$s]', () { final ns1 = NSString(s); diff --git a/pkgs/objective_c/test/os_version_test.dart b/pkgs/objective_c/test/os_version_test.dart index 03e186416..a4f454121 100644 --- a/pkgs/objective_c/test/os_version_test.dart +++ b/pkgs/objective_c/test/os_version_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('osVersion', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('getter', () { // macOS 11 was released in 2020 and isn't supported anymore. final oldVersion = Version(11, 0, 0); diff --git a/pkgs/objective_c/test/selector_test.dart b/pkgs/objective_c/test/selector_test.dart index d4e32c7a4..3c4f9a9ea 100644 --- a/pkgs/objective_c/test/selector_test.dart +++ b/pkgs/objective_c/test/selector_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('Selector', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('from String and back', () { expect('hello'.toSelector().toDartString(), 'hello'); expect(''.toSelector().toDartString(), ''); diff --git a/pkgs/objective_c/test/setup.dart b/pkgs/objective_c/test/setup.dart deleted file mode 100644 index 88ab087a0..000000000 --- a/pkgs/objective_c/test/setup.dart +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -// When users import package:objective_c as a plugin, Flutter builds our native -// code automatically. But we want to be able to run tests using `dart test`, so -// we can't use Flutter's build system. So this script builds a dylib containing -// all that native code. - -// ignore_for_file: avoid_print - -import 'dart:ffi'; -import 'dart:io'; - -import 'package:args/args.dart'; - -final cFiles = [ - 'src/objective_c.c', - 'src/include/dart_api_dl.c', - 'test/util.c', -].map(_resolve); -final cMain = _resolve('test/main.c'); -final objCFiles = [ - 'src/input_stream_adapter.m', - 'src/objective_c.m', - 'src/objective_c_bindings_generated.m', - 'src/protocol.m', -].map(_resolve); -const objCFlags = [ - '-x', - 'objective-c', - '-fobjc-arc', -]; -final outputFile = _resolve('test/objective_c.dylib'); - -final _repoDir = () { - var path = Platform.script; - while (path.pathSegments.isNotEmpty) { - path = path.resolve('..'); - if (Directory(path.resolve('.git').toFilePath()).existsSync()) { - return path; - } - } - throw Exception("Can't find .git dir above ${Platform.script}"); -}(); -final _pkgDir = _repoDir.resolve('pkgs/objective_c/'); -String _resolve(String file) => _pkgDir.resolve(file).toFilePath(); - -void _runClang(List flags, String output) { - final args = [ - ...flags, - '-o', - output, - ]; - const exec = 'clang'; - print('Running: $exec ${args.join(" ")}'); - final proc = Process.runSync(exec, args); - print(proc.stdout); - print(proc.stderr); - if (proc.exitCode != 0) { - exitCode = proc.exitCode; - throw Exception('Command failed: $exec ${args.join(" ")}'); - } - print('Generated $output'); -} - -String _buildObject(String input, List flags) { - final output = '$input.o'; - _runClang([...flags, '-c', input, '-fpic', '-I', 'src'], output); - return output; -} - -void _linkLib(List inputs, String output) => - _runClang(['-shared', '-undefined', 'dynamic_lookup', ...inputs], output); - -void _linkMain(List inputs, String output) => - _runClang(['-dead_strip', '-fobjc-arc', ...inputs], output); - -void main(List arguments) { - final parser = ArgParser(); - parser.addFlag('main-thread-dispatcher'); - final args = parser.parse(arguments); - - final flags = [ - if (!args.flag('main-thread-dispatcher')) '-DNO_MAIN_THREAD_DISPATCH', - ]; - final objFiles = [ - for (final src in cFiles) _buildObject(src, flags), - for (final src in objCFiles) _buildObject(src, [...objCFlags, ...flags]), - ]; - _linkLib(objFiles, outputFile); - - // Sanity check that the dylib was created correctly. - final lib = DynamicLibrary.open(outputFile); - lib.lookup('DOBJC_disposeObjCBlockWithClosure'); // objective_c.c - lib.lookup('DOBJC_runOnMainThread'); // objective_c.m - lib.lookup('Dart_InitializeApiDL'); // dart_api_dl.c - lib.lookup('OBJC_CLASS_\$_DOBJCDartProtocol'); // protocol.m - // objective_c_bindings_generated.m - lib.lookup('_ObjectiveCBindings_wrapListenerBlock_ovsamd'); - - // Sanity check that the executable can find FFI symbols. - _linkMain([...objFiles, cMain], '$cMain.exe'); - final result = Process.runSync('$cMain.exe', []); - if (result.exitCode != 0) { - throw Exception('Missing symbols from executable:\n${result.stderr}'); - } -} diff --git a/pkgs/objective_c/tool/data/extra_methods.dart.in b/pkgs/objective_c/tool/data/extra_methods.dart.in index 2de1ebdc8..401e06677 100644 --- a/pkgs/objective_c/tool/data/extra_methods.dart.in +++ b/pkgs/objective_c/tool/data/extra_methods.dart.in @@ -37,7 +37,7 @@ class NSArray with Iterable { } // Extra methods inserted into NSMutableArray by tool/generate_code.dart. -class NSMutableArray with ListMixin { +class NSMutableArray with collection.ListMixin { /// Creates a [NSMutableArray] of the given length with [fill] at each /// position. /// diff --git a/pkgs/objective_c/tool/generate_code.dart b/pkgs/objective_c/tool/generate_code.dart index fcd40e4e0..934822138 100644 --- a/pkgs/objective_c/tool/generate_code.dart +++ b/pkgs/objective_c/tool/generate_code.dart @@ -12,8 +12,10 @@ import 'dart:io'; import 'package:args/args.dart'; import 'package:ffigen/src/executables/ffigen.dart' as ffigen; +const runtimeConfig = 'ffigen_runtime.yaml'; const cConfig = 'ffigen_c.yaml'; const objcConfig = 'ffigen_objc.yaml'; +const runtimeBindings = 'lib/src/runtime_bindings_generated.dart'; const cBindings = 'lib/src/c_bindings_generated.dart'; const objcBindings = 'lib/src/objective_c_bindings_generated.dart'; const extraMethodsFile = 'tool/data/extra_methods.dart.in'; @@ -113,6 +115,9 @@ void mergeExtraMethods( } Future run({required bool format}) async { + print('Generating runtime bindings...'); + await ffigen.main(['--no-format', '-v', 'severe', '--config', runtimeConfig]); + print('Generating C bindings...'); await ffigen.main(['--no-format', '-v', 'severe', '--config', cConfig]); @@ -122,7 +127,7 @@ Future run({required bool format}) async { if (format) { print('Formatting bindings...'); - dartCmd(['format', cBindings, objcBindings]); + dartCmd(['format', runtimeBindings, cBindings, objcBindings]); } } From e7a73d616e07e3f70fb0277e3ffdec87e92e83f6 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 8 May 2025 14:41:53 +1000 Subject: [PATCH 02/29] trying to migrate ffigen --- pkgs/ffigen/pubspec.yaml | 11 +- .../test/native_objc_test/arc_test.dart | 2 - .../native_objc_test/bad_method_test.dart | 2 - .../native_objc_test/bad_override_test.dart | 2 - .../block_annotation_test.dart | 2 - .../native_objc_test/block_inherit_test.dart | 2 - .../test/native_objc_test/block_test.dart | 2 - .../test/native_objc_test/cast_test.dart | 2 - .../test/native_objc_test/category_test.dart | 2 - .../native_objc_test/forward_decl_test.dart | 2 - .../native_objc_test/global_native_test.dart | 2 - .../test/native_objc_test/global_test.dart | 2 - .../inherited_instancetype_test.dart | 2 - .../native_objc_test/is_instance_test.dart | 2 - .../test/native_objc_test/isolate_test.dart | 2 - .../test/native_objc_test/log_test.dart | 2 - .../method_filtering_test.dart | 1 - .../test/native_objc_test/method_test.dart | 2 - .../native_objc_test/native_objc_test.dart | 2 - .../nullable_inheritance_test.dart | 2 - .../test/native_objc_test/nullable_test.dart | 2 - .../test/native_objc_test/property_test.dart | 2 - .../test/native_objc_test/protocol_test.dart | 2 - .../test/native_objc_test/ref_count_test.dart | 2 - .../test/native_objc_test/rename_test.dart | 2 - .../runtime_version_test.dart | 2 - .../native_objc_test/sdk_variable_test.dart | 2 - .../native_objc_test/static_func_test.dart | 2 - .../test/native_objc_test/string_test.dart | 2 - .../native_objc_test/swift_class_test.dart | 2 - .../test/native_objc_test/typedef_test.dart | 2 - pkgs/ffigen/test/setup.dart | 5 - pkgs/objective_c/example/.gitignore | 45 + pkgs/objective_c/example/.metadata | 30 + pkgs/objective_c/example/README.md | 2 - pkgs/objective_c/example/ios/.gitignore | 34 + .../ios/Flutter/AppFrameworkInfo.plist | 2 +- .../example/ios/Flutter/Debug.xcconfig | 1 - .../example/ios/Flutter/Release.xcconfig | 1 - pkgs/objective_c/example/ios/Podfile | 44 - .../ios/Runner.xcodeproj/project.pbxproj | 133 +-- .../xcshareddata/xcschemes/Runner.xcscheme | 3 + .../contents.xcworkspacedata | 3 - .../objective_c/example/ios/Runner/Info.plist | 12 +- pkgs/objective_c/example/lib/main.dart | 2 +- .../macos/Flutter/Flutter-Debug.xcconfig | 2 - .../macos/Flutter/Flutter-Release.xcconfig | 2 - pkgs/objective_c/example/macos/Podfile | 43 - .../macos/Runner.xcodeproj/project.pbxproj | 801 ------------------ .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../xcshareddata/xcschemes/Runner.xcscheme | 98 --- .../contents.xcworkspacedata | 10 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../example/macos/Runner/AppDelegate.swift | 13 - .../AppIcon.appiconset/Contents.json | 68 -- .../AppIcon.appiconset/app_icon_1024.png | Bin 102994 -> 0 bytes .../AppIcon.appiconset/app_icon_128.png | Bin 5680 -> 0 bytes .../AppIcon.appiconset/app_icon_16.png | Bin 520 -> 0 bytes .../AppIcon.appiconset/app_icon_256.png | Bin 14142 -> 0 bytes .../AppIcon.appiconset/app_icon_32.png | Bin 1066 -> 0 bytes .../AppIcon.appiconset/app_icon_512.png | Bin 36406 -> 0 bytes .../AppIcon.appiconset/app_icon_64.png | Bin 2218 -> 0 bytes .../macos/Runner/Base.lproj/MainMenu.xib | 343 -------- .../macos/Runner/Configs/AppInfo.xcconfig | 14 - .../macos/Runner/Configs/Debug.xcconfig | 2 - .../macos/Runner/Configs/Release.xcconfig | 2 - .../macos/Runner/Configs/Warnings.xcconfig | 13 - .../macos/Runner/DebugProfile.entitlements | 12 - .../example/macos/Runner/Info.plist | 32 - .../macos/Runner/MainFlutterWindow.swift | 15 - .../example/macos/Runner/Release.entitlements | 8 - .../macos/RunnerTests/RunnerTests.swift | 12 - pkgs/objective_c/example/pubspec.yaml | 5 +- .../objective_c/example/test/widget_test.dart | 30 + pkgs/objective_c/hook/build.dart | 1 - 75 files changed, 172 insertions(+), 1757 deletions(-) create mode 100644 pkgs/objective_c/example/.gitignore create mode 100644 pkgs/objective_c/example/.metadata create mode 100644 pkgs/objective_c/example/ios/.gitignore delete mode 100644 pkgs/objective_c/example/ios/Podfile delete mode 100644 pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Podfile delete mode 100644 pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj delete mode 100644 pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme delete mode 100644 pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata delete mode 100644 pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 pkgs/objective_c/example/macos/Runner/AppDelegate.swift delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Base.lproj/MainMenu.xib delete mode 100644 pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements delete mode 100644 pkgs/objective_c/example/macos/Runner/Info.plist delete mode 100644 pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift delete mode 100644 pkgs/objective_c/example/macos/Runner/Release.entitlements delete mode 100644 pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift create mode 100644 pkgs/objective_c/example/test/widget_test.dart diff --git a/pkgs/ffigen/pubspec.yaml b/pkgs/ffigen/pubspec.yaml index 0a02d1d42..0d849d97a 100644 --- a/pkgs/ffigen/pubspec.yaml +++ b/pkgs/ffigen/pubspec.yaml @@ -45,8 +45,11 @@ dev_dependencies: test: ^1.16.2 dependency_overrides: - # package:objective_c has a flutter dependency, so `dart test` must be run - # using the dart from the flutter SDK. - # See https://github.com/dart-lang/native/issues/1068 + code_assets: + path: ../code_assets + hooks: + path: ../hooks + native_toolchain_c: + path: ../native_toolchain_c objective_c: - path: ../objective_c/ + path: ../objective_c diff --git a/pkgs/ffigen/test/native_objc_test/arc_test.dart b/pkgs/ffigen/test/native_objc_test/arc_test.dart index aaa77cb52..905d0ae71 100644 --- a/pkgs/ffigen/test/native_objc_test/arc_test.dart +++ b/pkgs/ffigen/test/native_objc_test/arc_test.dart @@ -22,8 +22,6 @@ void main() { group('ARC', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); lib = ArcTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); diff --git a/pkgs/ffigen/test/native_objc_test/bad_method_test.dart b/pkgs/ffigen/test/native_objc_test/bad_method_test.dart index 7a46b04a9..a059ec8d9 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_method_test.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_method_test.dart @@ -16,8 +16,6 @@ import 'util.dart'; void main() { group('bad_method_test', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/bad_override_test.dart b/pkgs/ffigen/test/native_objc_test/bad_override_test.dart index f6cfed7c9..bea623d96 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_override_test.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_override_test.dart @@ -18,8 +18,6 @@ import 'util.dart'; void main() { group('bad overrides', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test.dart b/pkgs/ffigen/test/native_objc_test/block_annotation_test.dart index 7ad5c0cd4..bf165ff53 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test.dart @@ -36,8 +36,6 @@ void main() { // correct block type. setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); lib = diff --git a/pkgs/ffigen/test/native_objc_test/block_inherit_test.dart b/pkgs/ffigen/test/native_objc_test/block_inherit_test.dart index 90b39b4ce..263acac73 100644 --- a/pkgs/ffigen/test/native_objc_test/block_inherit_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_inherit_test.dart @@ -21,8 +21,6 @@ import 'util.dart'; void main() { group('Block inheritance', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/block_test.dart b/pkgs/ffigen/test/native_objc_test/block_test.dart index 6c08ec09e..791c62828 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test.dart @@ -52,8 +52,6 @@ void main() { group('Blocks', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); lib = BlockTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); diff --git a/pkgs/ffigen/test/native_objc_test/cast_test.dart b/pkgs/ffigen/test/native_objc_test/cast_test.dart index ab0411e25..711bc0dbf 100644 --- a/pkgs/ffigen/test/native_objc_test/cast_test.dart +++ b/pkgs/ffigen/test/native_objc_test/cast_test.dart @@ -20,8 +20,6 @@ void main() { group('cast', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/category_test.dart b/pkgs/ffigen/test/native_objc_test/category_test.dart index c18a3e36d..7515f2a9e 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test.dart @@ -18,8 +18,6 @@ import 'util.dart'; void main() { group('categories', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/forward_decl_test.dart b/pkgs/ffigen/test/native_objc_test/forward_decl_test.dart index 92e55e8ae..014631ecc 100644 --- a/pkgs/ffigen/test/native_objc_test/forward_decl_test.dart +++ b/pkgs/ffigen/test/native_objc_test/forward_decl_test.dart @@ -16,8 +16,6 @@ import 'util.dart'; void main() { group('forward decl', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/global_native_test.dart b/pkgs/ffigen/test/native_objc_test/global_native_test.dart index 7d90ebd32..957d5a6bb 100644 --- a/pkgs/ffigen/test/native_objc_test/global_native_test.dart +++ b/pkgs/ffigen/test/native_objc_test/global_native_test.dart @@ -18,8 +18,6 @@ import 'util.dart'; void main() { group('global using @Native', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/global_test.dart b/pkgs/ffigen/test/native_objc_test/global_test.dart index f91f82f4b..d4d8a01ab 100644 --- a/pkgs/ffigen/test/native_objc_test/global_test.dart +++ b/pkgs/ffigen/test/native_objc_test/global_test.dart @@ -20,8 +20,6 @@ void main() { late GlobalTestObjCLibrary lib; setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); lib = GlobalTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); diff --git a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test.dart b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test.dart index cfc3670d5..55fc1c38c 100644 --- a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test.dart +++ b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test.dart @@ -18,8 +18,6 @@ import 'util.dart'; void main() { group('inheritedInstancetype', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/is_instance_test.dart b/pkgs/ffigen/test/native_objc_test/is_instance_test.dart index d63c6fa51..c6befac95 100644 --- a/pkgs/ffigen/test/native_objc_test/is_instance_test.dart +++ b/pkgs/ffigen/test/native_objc_test/is_instance_test.dart @@ -18,8 +18,6 @@ import 'util.dart'; void main() { group('isInstance', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test.dart b/pkgs/ffigen/test/native_objc_test/isolate_test.dart index 26b54d697..9da8d176e 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test.dart +++ b/pkgs/ffigen/test/native_objc_test/isolate_test.dart @@ -20,8 +20,6 @@ import 'util.dart'; void main() { group('isolate', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/log_test.dart b/pkgs/ffigen/test/native_objc_test/log_test.dart index 3411396a3..3ee973205 100644 --- a/pkgs/ffigen/test/native_objc_test/log_test.dart +++ b/pkgs/ffigen/test/native_objc_test/log_test.dart @@ -18,8 +18,6 @@ import 'util.dart'; void main() { group('log_test', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/method_filtering_test.dart b/pkgs/ffigen/test/native_objc_test/method_filtering_test.dart index 509d81221..9b00ed489 100644 --- a/pkgs/ffigen/test/native_objc_test/method_filtering_test.dart +++ b/pkgs/ffigen/test/native_objc_test/method_filtering_test.dart @@ -24,7 +24,6 @@ void main() { group('no version info', () { late final String bindings; setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. generateBindingsForCoverage('method_filtering'); bindings = File('test/native_objc_test/method_filtering_bindings.dart') .readAsStringSync(); diff --git a/pkgs/ffigen/test/native_objc_test/method_test.dart b/pkgs/ffigen/test/native_objc_test/method_test.dart index b8a9c8ac0..c4d8ff954 100644 --- a/pkgs/ffigen/test/native_objc_test/method_test.dart +++ b/pkgs/ffigen/test/native_objc_test/method_test.dart @@ -19,8 +19,6 @@ void main() { group('method calls', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/native_objc_test.dart b/pkgs/ffigen/test/native_objc_test/native_objc_test.dart index deb1bc961..b3f7bdea3 100644 --- a/pkgs/ffigen/test/native_objc_test/native_objc_test.dart +++ b/pkgs/ffigen/test/native_objc_test/native_objc_test.dart @@ -17,8 +17,6 @@ import 'util.dart'; void main() { group('native_objc_test', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test.dart b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test.dart index 593390eec..9279c1db2 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test.dart @@ -21,8 +21,6 @@ void main() { late NSObject obj; group('Nullable inheritance', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_test.dart b/pkgs/ffigen/test/native_objc_test/nullable_test.dart index f093e26be..6e0e641d5 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_test.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_test.dart @@ -20,8 +20,6 @@ void main() { late NSObject obj; group('Nullability', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/property_test.dart b/pkgs/ffigen/test/native_objc_test/property_test.dart index 8001d4410..0975b71b5 100644 --- a/pkgs/ffigen/test/native_objc_test/property_test.dart +++ b/pkgs/ffigen/test/native_objc_test/property_test.dart @@ -20,8 +20,6 @@ void main() { group('properties', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/protocol_test.dart b/pkgs/ffigen/test/native_objc_test/protocol_test.dart index 232c443f5..ce36c2218 100644 --- a/pkgs/ffigen/test/native_objc_test/protocol_test.dart +++ b/pkgs/ffigen/test/native_objc_test/protocol_test.dart @@ -29,8 +29,6 @@ void main() { group('protocol', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); lib = ProtocolTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); diff --git a/pkgs/ffigen/test/native_objc_test/ref_count_test.dart b/pkgs/ffigen/test/native_objc_test/ref_count_test.dart index 217eaea18..88337a5b9 100644 --- a/pkgs/ffigen/test/native_objc_test/ref_count_test.dart +++ b/pkgs/ffigen/test/native_objc_test/ref_count_test.dart @@ -22,8 +22,6 @@ void main() { group('Reference counting', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); lib = RefCountTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); diff --git a/pkgs/ffigen/test/native_objc_test/rename_test.dart b/pkgs/ffigen/test/native_objc_test/rename_test.dart index 93a3ac6dc..9d7a8e6a4 100644 --- a/pkgs/ffigen/test/native_objc_test/rename_test.dart +++ b/pkgs/ffigen/test/native_objc_test/rename_test.dart @@ -17,8 +17,6 @@ import 'util.dart'; void main() { group('rename_test', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/runtime_version_test.dart b/pkgs/ffigen/test/native_objc_test/runtime_version_test.dart index d66e894ad..4a5c50c1e 100644 --- a/pkgs/ffigen/test/native_objc_test/runtime_version_test.dart +++ b/pkgs/ffigen/test/native_objc_test/runtime_version_test.dart @@ -18,8 +18,6 @@ import 'util.dart'; void main() { group('runtime version check', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test.dart index 32c98d2c1..6fa48ddc6 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test.dart @@ -17,8 +17,6 @@ void main() { late String bindings; setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/static_func_test.dart b/pkgs/ffigen/test/native_objc_test/static_func_test.dart index 16e34911b..d2a608372 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_test.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_test.dart @@ -28,8 +28,6 @@ void main() { group('static functions', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); lib = StaticFuncTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); diff --git a/pkgs/ffigen/test/native_objc_test/string_test.dart b/pkgs/ffigen/test/native_objc_test/string_test.dart index f1e8a788a..e1c637743 100644 --- a/pkgs/ffigen/test/native_objc_test/string_test.dart +++ b/pkgs/ffigen/test/native_objc_test/string_test.dart @@ -18,8 +18,6 @@ import 'util.dart'; void main() { group('string', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/swift_class_test.dart b/pkgs/ffigen/test/native_objc_test/swift_class_test.dart index 03b1357c2..a152d8cb7 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_class_test.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_class_test.dart @@ -16,8 +16,6 @@ import 'util.dart'; void main() { group('swift_class_test', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/swift_class_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/typedef_test.dart b/pkgs/ffigen/test/native_objc_test/typedef_test.dart index 926832913..97cc4f185 100644 --- a/pkgs/ffigen/test/native_objc_test/typedef_test.dart +++ b/pkgs/ffigen/test/native_objc_test/typedef_test.dart @@ -16,8 +16,6 @@ import 'util.dart'; void main() { group('typedef', () { setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('../objective_c/test/objective_c.dylib'); final dylib = File('test/native_objc_test/objc_test.dylib'); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/setup.dart b/pkgs/ffigen/test/setup.dart index 56d99bc6d..13b5b5a74 100644 --- a/pkgs/ffigen/test/setup.dart +++ b/pkgs/ffigen/test/setup.dart @@ -33,10 +33,5 @@ Future main(List arguments) async { final args = parser.parse(arguments); await _run('native_test', 'build_test_dylib.dart', []); - if (Platform.isMacOS) { - await _run('native_objc_test', 'setup.dart', [ - if (args.flag('main-thread-dispatcher')) '--main-thread-dispatcher', - ]); - } print('\nSuccess :)\n'); } diff --git a/pkgs/objective_c/example/.gitignore b/pkgs/objective_c/example/.gitignore new file mode 100644 index 000000000..79c113f9b --- /dev/null +++ b/pkgs/objective_c/example/.gitignore @@ -0,0 +1,45 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.build/ +.buildlog/ +.history +.svn/ +.swiftpm/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.pub-cache/ +.pub/ +/build/ + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release diff --git a/pkgs/objective_c/example/.metadata b/pkgs/objective_c/example/.metadata new file mode 100644 index 000000000..faddd8982 --- /dev/null +++ b/pkgs/objective_c/example/.metadata @@ -0,0 +1,30 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "0d2ee2c49cf51adf3eb933ba557ac6a05f2128c3" + channel: "master" + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 0d2ee2c49cf51adf3eb933ba557ac6a05f2128c3 + base_revision: 0d2ee2c49cf51adf3eb933ba557ac6a05f2128c3 + - platform: ios + create_revision: 0d2ee2c49cf51adf3eb933ba557ac6a05f2128c3 + base_revision: 0d2ee2c49cf51adf3eb933ba557ac6a05f2128c3 + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/pkgs/objective_c/example/README.md b/pkgs/objective_c/example/README.md index ef2deb7f6..1690cef71 100644 --- a/pkgs/objective_c/example/README.md +++ b/pkgs/objective_c/example/README.md @@ -1,5 +1,3 @@ # objective_c example Demonstrates how to use the objective_c plugin. - -TODO(https://github.com/dart-lang/native/issues/1068): Migrate to native assets. diff --git a/pkgs/objective_c/example/ios/.gitignore b/pkgs/objective_c/example/ios/.gitignore new file mode 100644 index 000000000..7a7f9873a --- /dev/null +++ b/pkgs/objective_c/example/ios/.gitignore @@ -0,0 +1,34 @@ +**/dgph +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/ephemeral/ +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist b/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist index 7c5696400..1dc6cf765 100644 --- a/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist +++ b/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist @@ -21,6 +21,6 @@ CFBundleVersion 1.0 MinimumOSVersion - 12.0 + 13.0 diff --git a/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig b/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig index ec97fc6f3..592ceee85 100644 --- a/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig +++ b/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig @@ -1,2 +1 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" #include "Generated.xcconfig" diff --git a/pkgs/objective_c/example/ios/Flutter/Release.xcconfig b/pkgs/objective_c/example/ios/Flutter/Release.xcconfig index c4855bfe2..592ceee85 100644 --- a/pkgs/objective_c/example/ios/Flutter/Release.xcconfig +++ b/pkgs/objective_c/example/ios/Flutter/Release.xcconfig @@ -1,2 +1 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" #include "Generated.xcconfig" diff --git a/pkgs/objective_c/example/ios/Podfile b/pkgs/objective_c/example/ios/Podfile deleted file mode 100644 index d97f17e22..000000000 --- a/pkgs/objective_c/example/ios/Podfile +++ /dev/null @@ -1,44 +0,0 @@ -# Uncomment this line to define a global platform for your project -# platform :ios, '12.0' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_ios_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) - target 'RunnerTests' do - inherit! :search_paths - end -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_ios_build_settings(target) - end -end diff --git a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj b/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj index 8f49bdf9e..ccf29221f 100644 --- a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj +++ b/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj @@ -7,11 +7,9 @@ objects = { /* Begin PBXBuildFile section */ - 0016C0D0D056FCD78A6A33E8 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5349C2B3D454EF3220FB3306 /* Pods_RunnerTests.framework */; }; 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; - 4D7C7CB911925A31801A2F1E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B910B6B0374F2338E70D6AC /* Pods_Runner.framework */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; @@ -42,16 +40,11 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 0B910B6B0374F2338E70D6AC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 5349C2B3D454EF3220FB3306 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 5898EAFA36C90FEB069D15C8 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; - 5E623BDE574BD3F02055F373 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; - 6F2BCFFFCABF2D8A79F17D26 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; @@ -62,9 +55,6 @@ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - B6F1E5A6A7CC24D81665E0BA /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; - F794A460162AE19694C18D43 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; - FFB0D24362152330E942673E /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -72,30 +62,12 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 4D7C7CB911925A31801A2F1E /* Pods_Runner.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B209388E6951AC88C18EE569 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 0016C0D0D056FCD78A6A33E8 /* Pods_RunnerTests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 2961EE994295B641DF59D533 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 0B910B6B0374F2338E70D6AC /* Pods_Runner.framework */, - 5349C2B3D454EF3220FB3306 /* Pods_RunnerTests.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; 331C8082294A63A400263BE5 /* RunnerTests */ = { isa = PBXGroup; children = ( @@ -122,8 +94,6 @@ 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, 331C8082294A63A400263BE5 /* RunnerTests */, - 97F4D88CC18AF014179906AC /* Pods */, - 2961EE994295B641DF59D533 /* Frameworks */, ); sourceTree = ""; }; @@ -151,20 +121,6 @@ path = Runner; sourceTree = ""; }; - 97F4D88CC18AF014179906AC /* Pods */ = { - isa = PBXGroup; - children = ( - FFB0D24362152330E942673E /* Pods-Runner.debug.xcconfig */, - 6F2BCFFFCABF2D8A79F17D26 /* Pods-Runner.release.xcconfig */, - B6F1E5A6A7CC24D81665E0BA /* Pods-Runner.profile.xcconfig */, - 5E623BDE574BD3F02055F373 /* Pods-RunnerTests.debug.xcconfig */, - F794A460162AE19694C18D43 /* Pods-RunnerTests.release.xcconfig */, - 5898EAFA36C90FEB069D15C8 /* Pods-RunnerTests.profile.xcconfig */, - ); - name = Pods; - path = Pods; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -172,10 +128,8 @@ isa = PBXNativeTarget; buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; buildPhases = ( - 11218719EF64897AFE1F9EE8 /* [CP] Check Pods Manifest.lock */, 331C807D294A63A400263BE5 /* Sources */, 331C807F294A63A400263BE5 /* Resources */, - B209388E6951AC88C18EE569 /* Frameworks */, ); buildRules = ( ); @@ -191,14 +145,12 @@ isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( - E0D32FA7EF8A23FC0FD30465 /* [CP] Check Pods Manifest.lock */, 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, - 98CA06E4ED3E0BFB8A3C613F /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -270,28 +222,6 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 11218719EF64897AFE1F9EE8 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; alwaysOutOfDate = 1; @@ -323,45 +253,6 @@ shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; }; - 98CA06E4ED3E0BFB8A3C613F /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - E0D32FA7EF8A23FC0FD30465 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -455,7 +346,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -471,13 +362,14 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = SGAF77B4L2; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample; + PRODUCT_BUNDLE_IDENTIFIER = "objective-c.example"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; @@ -487,14 +379,13 @@ }; 331C8088294A63A400263BE5 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 5E623BDE574BD3F02055F373 /* Pods-RunnerTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -505,14 +396,13 @@ }; 331C8089294A63A400263BE5 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F794A460162AE19694C18D43 /* Pods-RunnerTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -521,14 +411,13 @@ }; 331C808A294A63A400263BE5 /* Profile */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 5898EAFA36C90FEB069D15C8 /* Pods-RunnerTests.profile.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -584,7 +473,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -635,7 +524,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -653,13 +542,14 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = SGAF77B4L2; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample; + PRODUCT_BUNDLE_IDENTIFIER = "objective-c.example"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -675,13 +565,14 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = SGAF77B4L2; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample; + PRODUCT_BUNDLE_IDENTIFIER = "objective-c.example"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; diff --git a/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 8e3ca5dfe..e3773d42e 100644 --- a/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -26,6 +26,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit" shouldUseLaunchSchemeArgsEnv = "YES"> diff --git a/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata index 21a3cc14c..1d526a16e 100644 --- a/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata +++ b/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -4,7 +4,4 @@ - - diff --git a/pkgs/objective_c/example/ios/Runner/Info.plist b/pkgs/objective_c/example/ios/Runner/Info.plist index 8bbbc6dc9..f15383a85 100644 --- a/pkgs/objective_c/example/ios/Runner/Info.plist +++ b/pkgs/objective_c/example/ios/Runner/Info.plist @@ -2,10 +2,12 @@ + CADisableMinimumFrameDurationOnPhone + CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName - Objective C + Example CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -13,7 +15,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - objective_c_example + example CFBundlePackageType APPL CFBundleShortVersionString @@ -24,6 +26,8 @@ $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS + UIApplicationSupportsIndirectInputEvents + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile @@ -41,9 +45,5 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight - CADisableMinimumFrameDurationOnPhone - - UIApplicationSupportsIndirectInputEvents - diff --git a/pkgs/objective_c/example/lib/main.dart b/pkgs/objective_c/example/lib/main.dart index 1c2d1d35b..27ae28dd5 100644 --- a/pkgs/objective_c/example/lib/main.dart +++ b/pkgs/objective_c/example/lib/main.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. diff --git a/pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig b/pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig deleted file mode 100644 index 4b81f9b2d..000000000 --- a/pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" -#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig b/pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig deleted file mode 100644 index 5caa9d157..000000000 --- a/pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" -#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/pkgs/objective_c/example/macos/Podfile b/pkgs/objective_c/example/macos/Podfile deleted file mode 100644 index c795730db..000000000 --- a/pkgs/objective_c/example/macos/Podfile +++ /dev/null @@ -1,43 +0,0 @@ -platform :osx, '10.14' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_macos_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) - target 'RunnerTests' do - inherit! :search_paths - end -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_macos_build_settings(target) - end -end diff --git a/pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj b/pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj deleted file mode 100644 index 7fb6863fb..000000000 --- a/pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj +++ /dev/null @@ -1,801 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 54; - objects = { - -/* Begin PBXAggregateTarget section */ - 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; - buildPhases = ( - 33CC111E2044C6BF0003C045 /* ShellScript */, - ); - dependencies = ( - ); - name = "Flutter Assemble"; - productName = FLX; - }; -/* End PBXAggregateTarget section */ - -/* Begin PBXBuildFile section */ - 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; - 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; - 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; - 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; - 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; - 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; - 5C3BF24AE85F5C730B12E1C3 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76CD4A3B26D45B1D35ED40BC /* Pods_Runner.framework */; }; - 98677E5D0F050EAF7F207C67 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A9FB1952D96C5AEFCA4D69B /* Pods_RunnerTests.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 33CC10E52044A3C60003C045 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 33CC10EC2044A3C60003C045; - remoteInfo = Runner; - }; - 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 33CC10E52044A3C60003C045 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 33CC111A2044C6BA0003C045; - remoteInfo = FLX; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 33CC110E2044A8840003C045 /* Bundle Framework */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - ); - name = "Bundle Framework"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 253A21F847FB1AF244672D0E /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; - 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; - 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; - 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; - 33CC10ED2044A3C60003C045 /* objective_c_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = objective_c_example.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; - 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; - 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; - 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; - 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; - 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; - 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; - 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; - 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; - 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; - 6A9FB1952D96C5AEFCA4D69B /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 76CD4A3B26D45B1D35ED40BC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; - 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; - AC25B0021603A0772CA9840F /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; - E5900647B1760244CA95C2A6 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; - E739196F186306D59FB11177 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; - ECD2E4ECDB0FCE6DA971A318 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; - EE079268A4FB02480F3FCA89 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 331C80D2294CF70F00263BE5 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 98677E5D0F050EAF7F207C67 /* Pods_RunnerTests.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 33CC10EA2044A3C60003C045 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 5C3BF24AE85F5C730B12E1C3 /* Pods_Runner.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 331C80D6294CF71000263BE5 /* RunnerTests */ = { - isa = PBXGroup; - children = ( - 331C80D7294CF71000263BE5 /* RunnerTests.swift */, - ); - path = RunnerTests; - sourceTree = ""; - }; - 33BA886A226E78AF003329D5 /* Configs */ = { - isa = PBXGroup; - children = ( - 33E5194F232828860026EE4D /* AppInfo.xcconfig */, - 9740EEB21CF90195004384FC /* Debug.xcconfig */, - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, - 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, - ); - path = Configs; - sourceTree = ""; - }; - 33CC10E42044A3C60003C045 = { - isa = PBXGroup; - children = ( - 33FAB671232836740065AC1E /* Runner */, - 33CEB47122A05771004F2AC0 /* Flutter */, - 331C80D6294CF71000263BE5 /* RunnerTests */, - 33CC10EE2044A3C60003C045 /* Products */, - D73912EC22F37F3D000D13A0 /* Frameworks */, - 96BE0B041091E6177B65072F /* Pods */, - ); - sourceTree = ""; - }; - 33CC10EE2044A3C60003C045 /* Products */ = { - isa = PBXGroup; - children = ( - 33CC10ED2044A3C60003C045 /* objective_c_example.app */, - 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 33CC11242044D66E0003C045 /* Resources */ = { - isa = PBXGroup; - children = ( - 33CC10F22044A3C60003C045 /* Assets.xcassets */, - 33CC10F42044A3C60003C045 /* MainMenu.xib */, - 33CC10F72044A3C60003C045 /* Info.plist */, - ); - name = Resources; - path = ..; - sourceTree = ""; - }; - 33CEB47122A05771004F2AC0 /* Flutter */ = { - isa = PBXGroup; - children = ( - 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, - 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, - 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, - 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, - ); - path = Flutter; - sourceTree = ""; - }; - 33FAB671232836740065AC1E /* Runner */ = { - isa = PBXGroup; - children = ( - 33CC10F02044A3C60003C045 /* AppDelegate.swift */, - 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, - 33E51913231747F40026EE4D /* DebugProfile.entitlements */, - 33E51914231749380026EE4D /* Release.entitlements */, - 33CC11242044D66E0003C045 /* Resources */, - 33BA886A226E78AF003329D5 /* Configs */, - ); - path = Runner; - sourceTree = ""; - }; - 96BE0B041091E6177B65072F /* Pods */ = { - isa = PBXGroup; - children = ( - EE079268A4FB02480F3FCA89 /* Pods-Runner.debug.xcconfig */, - E739196F186306D59FB11177 /* Pods-Runner.release.xcconfig */, - E5900647B1760244CA95C2A6 /* Pods-Runner.profile.xcconfig */, - ECD2E4ECDB0FCE6DA971A318 /* Pods-RunnerTests.debug.xcconfig */, - AC25B0021603A0772CA9840F /* Pods-RunnerTests.release.xcconfig */, - 253A21F847FB1AF244672D0E /* Pods-RunnerTests.profile.xcconfig */, - ); - name = Pods; - path = Pods; - sourceTree = ""; - }; - D73912EC22F37F3D000D13A0 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 76CD4A3B26D45B1D35ED40BC /* Pods_Runner.framework */, - 6A9FB1952D96C5AEFCA4D69B /* Pods_RunnerTests.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 331C80D4294CF70F00263BE5 /* RunnerTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; - buildPhases = ( - DD8A915821E91B2D640F20A1 /* [CP] Check Pods Manifest.lock */, - 331C80D1294CF70F00263BE5 /* Sources */, - 331C80D2294CF70F00263BE5 /* Frameworks */, - 331C80D3294CF70F00263BE5 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 331C80DA294CF71000263BE5 /* PBXTargetDependency */, - ); - name = RunnerTests; - productName = RunnerTests; - productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 33CC10EC2044A3C60003C045 /* Runner */ = { - isa = PBXNativeTarget; - buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; - buildPhases = ( - FF16D30B988DB2BCD781BB14 /* [CP] Check Pods Manifest.lock */, - 33CC10E92044A3C60003C045 /* Sources */, - 33CC10EA2044A3C60003C045 /* Frameworks */, - 33CC10EB2044A3C60003C045 /* Resources */, - 33CC110E2044A8840003C045 /* Bundle Framework */, - 3399D490228B24CF009A79C7 /* ShellScript */, - 774CDE4872C6F2C91B1264E0 /* [CP] Embed Pods Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 33CC11202044C79F0003C045 /* PBXTargetDependency */, - ); - name = Runner; - productName = Runner; - productReference = 33CC10ED2044A3C60003C045 /* objective_c_example.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 33CC10E52044A3C60003C045 /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = YES; - LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 1510; - ORGANIZATIONNAME = ""; - TargetAttributes = { - 331C80D4294CF70F00263BE5 = { - CreatedOnToolsVersion = 14.0; - TestTargetID = 33CC10EC2044A3C60003C045; - }; - 33CC10EC2044A3C60003C045 = { - CreatedOnToolsVersion = 9.2; - LastSwiftMigration = 1100; - ProvisioningStyle = Automatic; - SystemCapabilities = { - com.apple.Sandbox = { - enabled = 1; - }; - }; - }; - 33CC111A2044C6BA0003C045 = { - CreatedOnToolsVersion = 9.2; - ProvisioningStyle = Manual; - }; - }; - }; - buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 33CC10E42044A3C60003C045; - productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 33CC10EC2044A3C60003C045 /* Runner */, - 331C80D4294CF70F00263BE5 /* RunnerTests */, - 33CC111A2044C6BA0003C045 /* Flutter Assemble */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 331C80D3294CF70F00263BE5 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 33CC10EB2044A3C60003C045 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, - 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 3399D490228B24CF009A79C7 /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - alwaysOutOfDate = 1; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - ); - outputFileListPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; - }; - 33CC111E2044C6BF0003C045 /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - Flutter/ephemeral/FlutterInputs.xcfilelist, - ); - inputPaths = ( - Flutter/ephemeral/tripwire, - ); - outputFileListPaths = ( - Flutter/ephemeral/FlutterOutputs.xcfilelist, - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; - }; - 774CDE4872C6F2C91B1264E0 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - DD8A915821E91B2D640F20A1 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - FF16D30B988DB2BCD781BB14 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 331C80D1294CF70F00263BE5 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 33CC10E92044A3C60003C045 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, - 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, - 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 33CC10EC2044A3C60003C045 /* Runner */; - targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; - }; - 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; - targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { - isa = PBXVariantGroup; - children = ( - 33CC10F52044A3C60003C045 /* Base */, - ); - name = MainMenu.xib; - path = Runner; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 331C80DB294CF71000263BE5 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = ECD2E4ECDB0FCE6DA971A318 /* Pods-RunnerTests.debug.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/objective_c_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/objective_c_example"; - }; - name = Debug; - }; - 331C80DC294CF71000263BE5 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = AC25B0021603A0772CA9840F /* Pods-RunnerTests.release.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/objective_c_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/objective_c_example"; - }; - name = Release; - }; - 331C80DD294CF71000263BE5 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 253A21F847FB1AF244672D0E /* Pods-RunnerTests.profile.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/objective_c_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/objective_c_example"; - }; - name = Profile; - }; - 338D0CE9231458BD00FA5F75 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CODE_SIGN_IDENTITY = "-"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = macosx; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - }; - name = Profile; - }; - 338D0CEA231458BD00FA5F75 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 5.0; - }; - name = Profile; - }; - 338D0CEB231458BD00FA5F75 /* Profile */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Manual; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Profile; - }; - 33CC10F92044A3C60003C045 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CODE_SIGN_IDENTITY = "-"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 33CC10FA2044A3C60003C045 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CODE_SIGN_IDENTITY = "-"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = macosx; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - }; - name = Release; - }; - 33CC10FC2044A3C60003C045 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 33CC10FD2044A3C60003C045 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - 33CC111C2044C6BA0003C045 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Manual; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 33CC111D2044C6BA0003C045 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 331C80DB294CF71000263BE5 /* Debug */, - 331C80DC294CF71000263BE5 /* Release */, - 331C80DD294CF71000263BE5 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 33CC10F92044A3C60003C045 /* Debug */, - 33CC10FA2044A3C60003C045 /* Release */, - 338D0CE9231458BD00FA5F75 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 33CC10FC2044A3C60003C045 /* Debug */, - 33CC10FD2044A3C60003C045 /* Release */, - 338D0CEA231458BD00FA5F75 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 33CC111C2044C6BA0003C045 /* Debug */, - 33CC111D2044C6BA0003C045 /* Release */, - 338D0CEB231458BD00FA5F75 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 33CC10E52044A3C60003C045 /* Project object */; -} diff --git a/pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme deleted file mode 100644 index c87f47847..000000000 --- a/pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 21a3cc14c..000000000 --- a/pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/pkgs/objective_c/example/macos/Runner/AppDelegate.swift b/pkgs/objective_c/example/macos/Runner/AppDelegate.swift deleted file mode 100644 index b3c176141..000000000 --- a/pkgs/objective_c/example/macos/Runner/AppDelegate.swift +++ /dev/null @@ -1,13 +0,0 @@ -import Cocoa -import FlutterMacOS - -@main -class AppDelegate: FlutterAppDelegate { - override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { - return true - } - - override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { - return true - } -} diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index a2ec33f19..000000000 --- a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "size" : "16x16", - "idiom" : "mac", - "filename" : "app_icon_16.png", - "scale" : "1x" - }, - { - "size" : "16x16", - "idiom" : "mac", - "filename" : "app_icon_32.png", - "scale" : "2x" - }, - { - "size" : "32x32", - "idiom" : "mac", - "filename" : "app_icon_32.png", - "scale" : "1x" - }, - { - "size" : "32x32", - "idiom" : "mac", - "filename" : "app_icon_64.png", - "scale" : "2x" - }, - { - "size" : "128x128", - "idiom" : "mac", - "filename" : "app_icon_128.png", - "scale" : "1x" - }, - { - "size" : "128x128", - "idiom" : "mac", - "filename" : "app_icon_256.png", - "scale" : "2x" - }, - { - "size" : "256x256", - "idiom" : "mac", - "filename" : "app_icon_256.png", - "scale" : "1x" - }, - { - "size" : "256x256", - "idiom" : "mac", - "filename" : "app_icon_512.png", - "scale" : "2x" - }, - { - "size" : "512x512", - "idiom" : "mac", - "filename" : "app_icon_512.png", - "scale" : "1x" - }, - { - "size" : "512x512", - "idiom" : "mac", - "filename" : "app_icon_1024.png", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png deleted file mode 100644 index 82b6f9d9a33e198f5747104729e1fcef999772a5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 102994 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ⅅ8MglG&ER{i5lN315cO?EdHNLrg? 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 z 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 Pe7HEdAEg|=c=LY&YVNkY diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png deleted file mode 100644 index 13b35eba55c6dabc3aac36f33d859266c18fa0d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5680 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 diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png deleted file mode 100644 index 0a3f5fa40fb3d1e0710331a48de5d256da3f275d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 520 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 diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png deleted file mode 100644 index 2f1632cfddf3d9dade342351e627a0a75609fb46..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2218 zcmV;b2vzrqP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91K%fHv1ONa40RR91KmY&$07g+lumAuE6iGxuRCodHTWf3-RTMruyW6Fu zQYeUM04eX6D5c0FCjKKPrco1(K`<0SL=crI{PC3-^hZU0kQie$gh-5!7z6SH6Q0J% zqot*`H1q{R5fHFYS}dje@;kG=v$L0(yY0?wY2%*c?A&{2?!D*x?m71{of2gv!$5|C z3>qG_BW}7K_yUcT3A5C6QD<+{aq?x;MAUyAiJn#Jv8_zZtQ{P zTRzbL3U9!qVuZzS$xKU10KiW~Bgdcv1-!uAhQxf3a7q+dU6lj?yoO4Lq4TUN4}h{N z*fIM=SS8|C2$(T>w$`t@3Tka!(r!7W`x z-isCVgQD^mG-MJ;XtJuK3V{Vy72GQ83KRWsHU?e*wrhKk=ApIYeDqLi;JI1e zuvv}5^Dc=k7F7?nm3nIw$NVmU-+R>> zyqOR$-2SDpJ}Pt;^RkJytDVXNTsu|mI1`~G7yw`EJR?VkGfNdqK9^^8P`JdtTV&tX4CNcV4 z&N06nZa??Fw1AgQOUSE2AmPE@WO(Fvo`%m`cDgiv(fAeRA%3AGXUbsGw{7Q`cY;1BI#ac3iN$$Hw z0LT0;xc%=q)me?Y*$xI@GRAw?+}>=9D+KTk??-HJ4=A>`V&vKFS75@MKdSF1JTq{S zc1!^8?YA|t+uKigaq!sT;Z!&0F2=k7F0PIU;F$leJLaw2UI6FL^w}OG&!;+b%ya1c z1n+6-inU<0VM-Y_s5iTElq)ThyF?StVcebpGI znw#+zLx2@ah{$_2jn+@}(zJZ{+}_N9BM;z)0yr|gF-4=Iyu@hI*Lk=-A8f#bAzc9f z`Kd6K--x@t04swJVC3JK1cHY-Hq+=|PN-VO;?^_C#;coU6TDP7Bt`;{JTG;!+jj(` zw5cLQ-(Cz-Tlb`A^w7|R56Ce;Wmr0)$KWOUZ6ai0PhzPeHwdl0H(etP zUV`va_i0s-4#DkNM8lUlqI7>YQLf)(lz9Q3Uw`)nc(z3{m5ZE77Ul$V%m)E}3&8L0 z-XaU|eB~Is08eORPk;=<>!1w)Kf}FOVS2l&9~A+@R#koFJ$Czd%Y(ENTV&A~U(IPI z;UY+gf+&6ioZ=roly<0Yst8ck>(M=S?B-ys3mLdM&)ex!hbt+ol|T6CTS+Sc0jv(& z7ijdvFwBq;0a{%3GGwkDKTeG`b+lyj0jjS1OMkYnepCdoosNY`*zmBIo*981BU%%U z@~$z0V`OVtIbEx5pa|Tct|Lg#ZQf5OYMUMRD>Wdxm5SAqV2}3!ceE-M2 z@O~lQ0OiKQp}o9I;?uxCgYVV?FH|?Riri*U$Zi_`V2eiA>l zdSm6;SEm6#T+SpcE8Ro_f2AwxzI z44hfe^WE3!h@W3RDyA_H440cpmYkv*)6m1XazTqw%=E5Xv7^@^^T7Q2wxr+Z2kVYr - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig deleted file mode 100644 index 50d7b8686..000000000 --- a/pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig +++ /dev/null @@ -1,14 +0,0 @@ -// Application-level settings for the Runner target. -// -// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the -// future. If not, the values below would default to using the project name when this becomes a -// 'flutter create' template. - -// The application's name. By default this is also the title of the Flutter window. -PRODUCT_NAME = objective_c_example - -// The application's bundle identifier -PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample - -// The copyright displayed in application information -PRODUCT_COPYRIGHT = Copyright © 2024 com.github.dart_lang. All rights reserved. diff --git a/pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig deleted file mode 100644 index 36b0fd946..000000000 --- a/pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "../../Flutter/Flutter-Debug.xcconfig" -#include "Warnings.xcconfig" diff --git a/pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig deleted file mode 100644 index dff4f4956..000000000 --- a/pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "../../Flutter/Flutter-Release.xcconfig" -#include "Warnings.xcconfig" diff --git a/pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig deleted file mode 100644 index 42bcbf478..000000000 --- a/pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig +++ /dev/null @@ -1,13 +0,0 @@ -WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings -GCC_WARN_UNDECLARED_SELECTOR = YES -CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES -CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE -CLANG_WARN__DUPLICATE_METHOD_MATCH = YES -CLANG_WARN_PRAGMA_PACK = YES -CLANG_WARN_STRICT_PROTOTYPES = YES -CLANG_WARN_COMMA = YES -GCC_WARN_STRICT_SELECTOR_MATCH = YES -CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES -CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES -GCC_WARN_SHADOW = YES -CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements b/pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements deleted file mode 100644 index dddb8a30c..000000000 --- a/pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements +++ /dev/null @@ -1,12 +0,0 @@ - - - - - com.apple.security.app-sandbox - - com.apple.security.cs.allow-jit - - com.apple.security.network.server - - - diff --git a/pkgs/objective_c/example/macos/Runner/Info.plist b/pkgs/objective_c/example/macos/Runner/Info.plist deleted file mode 100644 index 4789daa6a..000000000 --- a/pkgs/objective_c/example/macos/Runner/Info.plist +++ /dev/null @@ -1,32 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIconFile - - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - LSMinimumSystemVersion - $(MACOSX_DEPLOYMENT_TARGET) - NSHumanReadableCopyright - $(PRODUCT_COPYRIGHT) - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - - diff --git a/pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift b/pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift deleted file mode 100644 index 3cc05eb23..000000000 --- a/pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift +++ /dev/null @@ -1,15 +0,0 @@ -import Cocoa -import FlutterMacOS - -class MainFlutterWindow: NSWindow { - override func awakeFromNib() { - let flutterViewController = FlutterViewController() - let windowFrame = self.frame - self.contentViewController = flutterViewController - self.setFrame(windowFrame, display: true) - - RegisterGeneratedPlugins(registry: flutterViewController) - - super.awakeFromNib() - } -} diff --git a/pkgs/objective_c/example/macos/Runner/Release.entitlements b/pkgs/objective_c/example/macos/Runner/Release.entitlements deleted file mode 100644 index 852fa1a47..000000000 --- a/pkgs/objective_c/example/macos/Runner/Release.entitlements +++ /dev/null @@ -1,8 +0,0 @@ - - - - - com.apple.security.app-sandbox - - - diff --git a/pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift b/pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift deleted file mode 100644 index 61f3bd1fc..000000000 --- a/pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift +++ /dev/null @@ -1,12 +0,0 @@ -import Cocoa -import FlutterMacOS -import XCTest - -class RunnerTests: XCTestCase { - - func testExample() { - // If you add code to the Runner application, consider adding tests here. - // See https://developer.apple.com/documentation/xctest for more information about using XCTest. - } - -} diff --git a/pkgs/objective_c/example/pubspec.yaml b/pkgs/objective_c/example/pubspec.yaml index f5312e8a3..0aab5e9ab 100644 --- a/pkgs/objective_c/example/pubspec.yaml +++ b/pkgs/objective_c/example/pubspec.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +# Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. @@ -17,11 +17,12 @@ dependencies: sdk: flutter objective_c: path: .. + cupertino_icons: ^1.0.8 dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^3.0.0 + flutter_lints: ^5.0.0 flutter: uses-material-design: true diff --git a/pkgs/objective_c/example/test/widget_test.dart b/pkgs/objective_c/example/test/widget_test.dart new file mode 100644 index 000000000..092d222f7 --- /dev/null +++ b/pkgs/objective_c/example/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility in the flutter_test package. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:example/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +} diff --git a/pkgs/objective_c/hook/build.dart b/pkgs/objective_c/hook/build.dart index d75e86a64..7680993bc 100644 --- a/pkgs/objective_c/hook/build.dart +++ b/pkgs/objective_c/hook/build.dart @@ -99,7 +99,6 @@ class Builder { final relativeInput = input.substring(_rootDir.length); final output = '${_tempOutDir.resolve(relativeInput).path}.o'; File(output).parent.createSync(recursive: true); - stderr.writeln(output); await _compile([ ...flags, '-c', From 67c3534285e88e739874139f3b42615b65f5ba00 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 26 May 2025 10:09:31 +1000 Subject: [PATCH 03/29] WIP --- pkgs/ffigen/test/native_objc_test/.gitignore | 1 + .../test/native_objc_test/block_bindings.dart | 4068 +++++++++++++++++ .../test/native_objc_test/block_bindings.m | 236 + .../test/native_objc_test/block_test.dart | 10 +- pkgs/ffigen/test/native_objc_test/setup.dart | 8 +- .../lib/src/c_bindings_generated.dart | 2 + pkgs/objective_c/lib/src/internal.dart | 9 +- pkgs/objective_c/src/objective_c_runtime.h | 1 + 8 files changed, 4323 insertions(+), 12 deletions(-) create mode 100644 pkgs/ffigen/test/native_objc_test/block_bindings.dart create mode 100644 pkgs/ffigen/test/native_objc_test/block_bindings.m diff --git a/pkgs/ffigen/test/native_objc_test/.gitignore b/pkgs/ffigen/test/native_objc_test/.gitignore index 24a8c4487..5929b07b3 100644 --- a/pkgs/ffigen/test/native_objc_test/.gitignore +++ b/pkgs/ffigen/test/native_objc_test/.gitignore @@ -2,4 +2,5 @@ *_bindings.m *_bindings.dart.m *-Swift.h +!block_bindings.* *.o diff --git a/pkgs/ffigen/test/native_objc_test/block_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_bindings.dart new file mode 100644 index 000000000..22fe4b896 --- /dev/null +++ b/pkgs/ffigen/test/native_objc_test/block_bindings.dart @@ -0,0 +1,4068 @@ +// ignore_for_file: camel_case_types, non_constant_identifier_names, unnecessary_non_null_assertion, unused_element, unused_field + +// AUTO GENERATED FILE, DO NOT EDIT. +// +// Generated by `package:ffigen`. +// ignore_for_file: type=lint +import 'dart:ffi' as ffi; +import 'package:objective_c/objective_c.dart' as objc; +import 'package:ffi/ffi.dart' as pkg_ffi; + +/// Tests calling Objective-C blocks. +class BlockTestObjCLibrary { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + BlockTestObjCLibrary(ffi.DynamicLibrary dynamicLibrary) + : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + BlockTestObjCLibrary.fromLookup( + ffi.Pointer Function(String symbolName) + lookup) + : _lookup = lookup; + + void objc_autoreleasePoolPop( + ffi.Pointer pool, + ) { + return _objc_autoreleasePoolPop( + pool, + ); + } + + late final _objc_autoreleasePoolPopPtr = + _lookup)>>( + 'objc_autoreleasePoolPop'); + late final _objc_autoreleasePoolPop = _objc_autoreleasePoolPopPtr + .asFunction)>(); + + ffi.Pointer objc_autoreleasePoolPush() { + return _objc_autoreleasePoolPush(); + } + + late final _objc_autoreleasePoolPushPtr = + _lookup Function()>>( + 'objc_autoreleasePoolPush'); + late final _objc_autoreleasePoolPush = _objc_autoreleasePoolPushPtr + .asFunction Function()>(); +} + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>() +external ffi.Pointer + _BlockTestObjCLibrary_protocolTrampoline_1mbt9g9( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapListenerBlock_f167m6( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapListenerBlock_ru30ue( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapListenerBlock_li50va( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapBlockingBlock_li50va( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapListenerBlock_yhkuco( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapListenerBlock_1bqef4y( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) +external ffi.Pointer + _BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +late final _class_NSThread = objc.getClass("NSThread"); +late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + bool Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_currentThread = objc.registerName("currentThread"); +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); +void _ObjCBlock_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, +) => + block.ref.target + .cast>() + .asFunction()(); +ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = ffi.Pointer + .fromFunction)>( + _ObjCBlock_ffiVoid_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_closureTrampoline( + ffi.Pointer block, +) => + (objc.getBlockClosure(block) as void Function())(); +ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = ffi.Pointer + .fromFunction)>( + _ObjCBlock_ffiVoid_closureTrampoline) + .cast(); + +void _ObjCBlock_ffiVoid_sharedTrampoline( + ffi.Pointer block, +) { + objc.blockRetain(block.cast()); // Move to block object? + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block)>>() + .asFunction)>()( + block, + ); +} +ffi.NativeCallable)> + _ObjCBlock_ffiVoid_sharedCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer)>.isolateGroupShared( + _ObjCBlock_ffiVoid_sharedTrampoline) + ..keepIsolateAlive = false; + +void _ObjCBlock_ffiVoid_listenerTrampoline( + ffi.Pointer block, +) { + (objc.getBlockClosure(block) as void Function())(); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable)> + _ObjCBlock_ffiVoid_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_blockingTrampoline( + ffi.Pointer block, ffi.Pointer waiter) { + try { + (objc.getBlockClosure(block) as void Function())(); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_blockingCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_blockingListenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr) => + objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction(void Function() fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_closureCallable, () => fn(), keepIsolateAlive), + retain: false, + release: true); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener(void Function() fn, + {bool keepIsolateAlive = true}) { + final wrapper = objc.newClosureBlock( + _ObjCBlock_ffiVoid_sharedCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast()); + return objc.ObjCBlock(wrapper, + retain: true, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking(void Function() fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( + raw, rawListener, objc.objCContext); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_CallExtension + on objc.ObjCBlock { + void call() => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block)>>() + .asFunction)>()( + ref.pointer, + ); +} + +late final _sel_detachNewThreadWithBlock_ = + objc.registerName("detachNewThreadWithBlock:"); +final _objc_msgSend_f167m6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_detachNewThreadSelector_toTarget_withObject_ = + objc.registerName("detachNewThreadSelector:toTarget:withObject:"); +final _objc_msgSend_lzbvjm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); +late final _sel_isMultiThreaded = objc.registerName("isMultiThreaded"); +final _objc_msgSend_91o635 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + bool Function( + ffi.Pointer, ffi.Pointer)>(); +late final _sel_threadDictionary = objc.registerName("threadDictionary"); +late final _sel_sleepUntilDate_ = objc.registerName("sleepUntilDate:"); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_sleepForTimeInterval_ = + objc.registerName("sleepForTimeInterval:"); +final _objc_msgSend_hwm8nu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Double)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer, double)>(); +late final _sel_exit = objc.registerName("exit"); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + void Function( + ffi.Pointer, ffi.Pointer)>(); +late final _sel_threadPriority = objc.registerName("threadPriority"); +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + double Function( + ffi.Pointer, ffi.Pointer)>(); +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + double Function( + ffi.Pointer, ffi.Pointer)>(); +late final _sel_setThreadPriority_ = objc.registerName("setThreadPriority:"); +final _objc_msgSend_18chyc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, + ffi.Pointer, ffi.Double)>>() + .asFunction< + bool Function(ffi.Pointer, + ffi.Pointer, double)>(); +late final _sel_qualityOfService = objc.registerName("qualityOfService"); +final _objc_msgSend_oi8iq9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + int Function( + ffi.Pointer, ffi.Pointer)>(); +late final _sel_setQualityOfService_ = + objc.registerName("setQualityOfService:"); +final _objc_msgSend_n2da1l = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer, int)>(); +late final _sel_callStackReturnAddresses = + objc.registerName("callStackReturnAddresses"); +late final _sel_callStackSymbols = objc.registerName("callStackSymbols"); +late final _sel_name = objc.registerName("name"); +late final _sel_setName_ = objc.registerName("setName:"); +late final _sel_stackSize = objc.registerName("stackSize"); +final _objc_msgSend_xw2lbc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + int Function( + ffi.Pointer, ffi.Pointer)>(); +late final _sel_setStackSize_ = objc.registerName("setStackSize:"); +final _objc_msgSend_1i9r4xy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer, int)>(); +late final _sel_isMainThread = objc.registerName("isMainThread"); +late final _sel_mainThread = objc.registerName("mainThread"); +typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = objc.ObjCObjectBase; +late final _sel_init = objc.registerName("init"); +late final _sel_initWithTarget_selector_object_ = + objc.registerName("initWithTarget:selector:object:"); +final _objc_msgSend_1eldwyi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); +late final _sel_initWithBlock_ = objc.registerName("initWithBlock:"); +final _objc_msgSend_nnxkei = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_isExecuting = objc.registerName("isExecuting"); +late final _sel_isFinished = objc.registerName("isFinished"); +late final _sel_isCancelled = objc.registerName("isCancelled"); +late final _sel_cancel = objc.registerName("cancel"); +late final _sel_start = objc.registerName("start"); +late final _sel_main = objc.registerName("main"); +late final _sel_new = objc.registerName("new"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_alloc = objc.registerName("alloc"); + +/// NSThread +class NSThread extends objc.NSObject { + NSThread._(ffi.Pointer pointer, + {bool retain = false, bool release = false}) + : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSThread] that points to the same underlying object as [other]. + NSThread.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSThread] that wraps the given raw object pointer. + NSThread.castFromPointer(ffi.Pointer other, + {bool retain = false, bool release = false}) + : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSThread]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, _sel_isKindOfClass_, _class_NSThread); + } + + /// currentThread + static NSThread getCurrentThread() { + final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_currentThread); + return NSThread.castFromPointer(_ret, retain: true, release: true); + } + + /// detachNewThreadWithBlock: + static void detachNewThreadWithBlock( + objc.ObjCBlock block) { + objc.checkOsVersionInternal('NSThread.detachNewThreadWithBlock:', + iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0))); + _objc_msgSend_f167m6( + _class_NSThread, _sel_detachNewThreadWithBlock_, block.ref.pointer); + } + + /// detachNewThreadSelector:toTarget:withObject: + static void detachNewThreadSelector(ffi.Pointer selector, + {required objc.ObjCObjectBase toTarget, + objc.ObjCObjectBase? withObject}) { + _objc_msgSend_lzbvjm( + _class_NSThread, + _sel_detachNewThreadSelector_toTarget_withObject_, + selector, + toTarget.ref.pointer, + withObject?.ref.pointer ?? ffi.nullptr); + } + + /// isMultiThreaded + static bool isMultiThreaded() { + return _objc_msgSend_91o635(_class_NSThread, _sel_isMultiThreaded); + } + + /// threadDictionary + objc.NSMutableDictionary get threadDictionary { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_threadDictionary); + return objc.NSMutableDictionary.castFromPointer(_ret, + retain: true, release: true); + } + + /// sleepUntilDate: + static void sleepUntilDate(objc.NSDate date) { + _objc_msgSend_xtuoz7( + _class_NSThread, _sel_sleepUntilDate_, date.ref.pointer); + } + + /// sleepForTimeInterval: + static void sleepForTimeInterval(double ti) { + _objc_msgSend_hwm8nu(_class_NSThread, _sel_sleepForTimeInterval_, ti); + } + + /// exit + static void exit() { + _objc_msgSend_1pl9qdv(_class_NSThread, _sel_exit); + } + + /// threadPriority + static double threadPriority() { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(_class_NSThread, _sel_threadPriority) + : _objc_msgSend_1ukqyt8(_class_NSThread, _sel_threadPriority); + } + + /// setThreadPriority: + static bool setThreadPriority(double p) { + return _objc_msgSend_18chyc(_class_NSThread, _sel_setThreadPriority_, p); + } + + /// threadPriority + double get threadPriority$1 { + objc.checkOsVersionInternal('NSThread.threadPriority', + iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_threadPriority) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_threadPriority); + } + + /// setThreadPriority: + set threadPriority$1(double value) { + objc.checkOsVersionInternal('NSThread.setThreadPriority:', + iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + _objc_msgSend_hwm8nu(this.ref.pointer, _sel_setThreadPriority_, value); + } + + /// qualityOfService + objc.NSQualityOfService get qualityOfService { + objc.checkOsVersionInternal('NSThread.qualityOfService', + iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + final _ret = _objc_msgSend_oi8iq9(this.ref.pointer, _sel_qualityOfService); + return objc.NSQualityOfService.fromValue(_ret); + } + + /// setQualityOfService: + set qualityOfService(objc.NSQualityOfService value) { + objc.checkOsVersionInternal('NSThread.setQualityOfService:', + iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + _objc_msgSend_n2da1l( + this.ref.pointer, _sel_setQualityOfService_, value.value); + } + + /// callStackReturnAddresses + static objc.NSArray getCallStackReturnAddresses() { + objc.checkOsVersionInternal('NSThread.callStackReturnAddresses', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + final _ret = + _objc_msgSend_151sglz(_class_NSThread, _sel_callStackReturnAddresses); + return objc.NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// callStackSymbols + static objc.NSArray getCallStackSymbols() { + objc.checkOsVersionInternal('NSThread.callStackSymbols', + iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_callStackSymbols); + return objc.NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// name + objc.NSString? get name { + objc.checkOsVersionInternal('NSThread.name', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_name); + return _ret.address == 0 + ? null + : objc.NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// setName: + set name(objc.NSString? value) { + objc.checkOsVersionInternal('NSThread.setName:', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + _objc_msgSend_xtuoz7( + this.ref.pointer, _sel_setName_, value?.ref.pointer ?? ffi.nullptr); + } + + /// stackSize + int get stackSize { + objc.checkOsVersionInternal('NSThread.stackSize', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_stackSize); + } + + /// setStackSize: + set stackSize(int value) { + objc.checkOsVersionInternal('NSThread.setStackSize:', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_setStackSize_, value); + } + + /// isMainThread + bool get isMainThread { + objc.checkOsVersionInternal('NSThread.isMainThread', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isMainThread); + } + + /// isMainThread + static bool getIsMainThread$1() { + objc.checkOsVersionInternal('NSThread.isMainThread', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + return _objc_msgSend_91o635(_class_NSThread, _sel_isMainThread); + } + + /// mainThread + static NSThread getMainThread() { + objc.checkOsVersionInternal('NSThread.mainThread', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_mainThread); + return NSThread.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSThread init() { + objc.checkOsVersionInternal('NSThread.init', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + final _ret = + _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + return NSThread.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithTarget:selector:object: + NSThread initWithTarget(objc.ObjCObjectBase target, + {required ffi.Pointer selector, + objc.ObjCObjectBase? object}) { + objc.checkOsVersionInternal('NSThread.initWithTarget:selector:object:', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + final _ret = _objc_msgSend_1eldwyi( + this.ref.retainAndReturnPointer(), + _sel_initWithTarget_selector_object_, + target.ref.pointer, + selector, + object?.ref.pointer ?? ffi.nullptr); + return NSThread.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBlock: + NSThread initWithBlock(objc.ObjCBlock block) { + objc.checkOsVersionInternal('NSThread.initWithBlock:', + iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0))); + final _ret = _objc_msgSend_nnxkei(this.ref.retainAndReturnPointer(), + _sel_initWithBlock_, block.ref.pointer); + return NSThread.castFromPointer(_ret, retain: false, release: true); + } + + /// isExecuting + bool get executing { + objc.checkOsVersionInternal('NSThread.isExecuting', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isExecuting); + } + + /// isFinished + bool get finished { + objc.checkOsVersionInternal('NSThread.isFinished', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isFinished); + } + + /// isCancelled + bool get cancelled { + objc.checkOsVersionInternal('NSThread.isCancelled', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isCancelled); + } + + /// cancel + void cancel() { + objc.checkOsVersionInternal('NSThread.cancel', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_cancel); + } + + /// start + void start() { + objc.checkOsVersionInternal('NSThread.start', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_start); + } + + /// main + void main() { + objc.checkOsVersionInternal('NSThread.main', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_main); + } + + /// new + static NSThread new$() { + final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_new); + return NSThread.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSThread allocWithZone(ffi.Pointer zone) { + final _ret = + _objc_msgSend_1cwp428(_class_NSThread, _sel_allocWithZone_, zone); + return NSThread.castFromPointer(_ret, retain: false, release: true); + } + + /// alloc + static NSThread alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_alloc); + return NSThread.castFromPointer(_ret, retain: false, release: true); + } + + /// Returns a new instance of NSThread constructed with the default `new` method. + factory NSThread() => new$(); +} + +final class Vec2 extends ffi.Struct { + @ffi.Double() + external double x; + + @ffi.Double() + external double y; +} + +final class Vec4 extends ffi.Struct { + @ffi.Double() + external double x; + + @ffi.Double() + external double y; + + @ffi.Double() + external double z; + + @ffi.Double() + external double w; +} + +late final _class_DummyObject = objc.getClass("DummyObject"); +late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); +final _objc_msgSend_129vhbw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_initWithCounter_ = objc.registerName("initWithCounter:"); +late final _sel_setCounter_ = objc.registerName("setCounter:"); +final _objc_msgSend_yhkuco = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_dealloc = objc.registerName("dealloc"); +late final _sel_self = objc.registerName("self"); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer)>()(arg0); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer + _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc + .ObjCBlock Function(ffi.Pointer)> + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer)>( + pointer, + retain: retain, + release: release); + + /// 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. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock Function(ffi.Pointer)>( + objc.newPointerBlock(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc + .ObjCBlock Function(ffi.Pointer)> + fromFunction(objc.ObjCObjectBase Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer)>( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, + (ffi.Pointer arg0) => + fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive), + retain: false, + release: true); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension on objc + .ObjCBlock Function(ffi.Pointer)> { + objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0), + retain: true, + release: true); +} + +late final _sel_retain = objc.registerName("retain"); +late final _sel_autorelease = objc.registerName("autorelease"); + +/// DummyObject +class DummyObject extends objc.NSObject { + DummyObject._(ffi.Pointer pointer, + {bool retain = false, bool release = false}) + : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [DummyObject] that points to the same underlying object as [other]. + DummyObject.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [DummyObject] that wraps the given raw object pointer. + DummyObject.castFromPointer(ffi.Pointer other, + {bool retain = false, bool release = false}) + : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [DummyObject]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, _sel_isKindOfClass_, _class_DummyObject); + } + + /// newWithCounter: + static DummyObject newWithCounter(ffi.Pointer _counter) { + final _ret = _objc_msgSend_129vhbw( + _class_DummyObject, _sel_newWithCounter_, _counter); + return DummyObject.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCounter: + DummyObject initWithCounter(ffi.Pointer _counter) { + final _ret = _objc_msgSend_129vhbw( + this.ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter); + return DummyObject.castFromPointer(_ret, retain: false, release: true); + } + + /// setCounter: + void setCounter(ffi.Pointer _counter) { + _objc_msgSend_yhkuco(this.ref.pointer, _sel_setCounter_, _counter); + } + + /// dealloc + void dealloc() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); + } + + /// init + DummyObject init() { + objc.checkOsVersionInternal('DummyObject.init', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + final _ret = + _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + return DummyObject.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static DummyObject new$() { + final _ret = _objc_msgSend_151sglz(_class_DummyObject, _sel_new); + return DummyObject.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static DummyObject allocWithZone(ffi.Pointer zone) { + final _ret = + _objc_msgSend_1cwp428(_class_DummyObject, _sel_allocWithZone_, zone); + return DummyObject.castFromPointer(_ret, retain: false, release: true); + } + + /// alloc + static DummyObject alloc() { + final _ret = _objc_msgSend_151sglz(_class_DummyObject, _sel_alloc); + return DummyObject.castFromPointer(_ret, retain: false, release: true); + } + + /// self + DummyObject self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return DummyObject.castFromPointer(_ret, retain: true, release: true); + } + + /// retain + DummyObject retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return DummyObject.castFromPointer(_ret, retain: true, release: true); + } + + /// autorelease + DummyObject autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return DummyObject.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of DummyObject constructed with the default `new` method. + factory DummyObject() => new$(); +} + +int _ObjCBlock_Int32_Int32_fnPtrTrampoline( + ffi.Pointer block, int arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +ffi.Pointer _ObjCBlock_Int32_Int32_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Int32)>( + _ObjCBlock_Int32_Int32_fnPtrTrampoline, 0) + .cast(); +int _ObjCBlock_Int32_Int32_closureTrampoline( + ffi.Pointer block, int arg0) => + (objc.getBlockClosure(block) as int Function(int))(arg0); +ffi.Pointer _ObjCBlock_Int32_Int32_closureCallable = + ffi.Pointer.fromFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Int32)>( + _ObjCBlock_Int32_Int32_closureTrampoline, 0) + .cast(); + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_Int32_Int32 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_Int32_Int32_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + int Function(int) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock(_ObjCBlock_Int32_Int32_closureCallable, + (int arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_Int32_Int32_CallExtension + on objc.ObjCBlock { + int call(int arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer block, ffi.Int32 arg0)>>() + .asFunction, int)>()( + ref.pointer, arg0); +} + +typedef IntBlock = ffi.Pointer; +typedef DartIntBlock = objc.ObjCBlock; +double _ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline( + ffi.Pointer block, double arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +ffi.Pointer _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Float Function(ffi.Pointer, ffi.Float)>( + _ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline, 0.0) + .cast(); +double _ObjCBlock_ffiFloat_ffiFloat_closureTrampoline( + ffi.Pointer block, double arg0) => + (objc.getBlockClosure(block) as double Function(double))(arg0); +ffi.Pointer _ObjCBlock_ffiFloat_ffiFloat_closureCallable = + ffi.Pointer.fromFunction< + ffi.Float Function(ffi.Pointer, ffi.Float)>( + _ObjCBlock_ffiFloat_ffiFloat_closureTrampoline, 0.0) + .cast(); + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiFloat_ffiFloat { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + double Function(double) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock(_ObjCBlock_ffiFloat_ffiFloat_closureCallable, + (double arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiFloat_ffiFloat_CallExtension + on objc.ObjCBlock { + double call(double arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer block, ffi.Float arg0)>>() + .asFunction< + double Function( + ffi.Pointer, double)>()(ref.pointer, arg0); +} + +typedef FloatBlock = ffi.Pointer; +typedef DartFloatBlock = objc.ObjCBlock; +double _ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline( + ffi.Pointer block, double arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +ffi.Pointer _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Double Function( + ffi.Pointer, ffi.Double)>( + _ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline, 0.0) + .cast(); +double _ObjCBlock_ffiDouble_ffiDouble_closureTrampoline( + ffi.Pointer block, double arg0) => + (objc.getBlockClosure(block) as double Function(double))(arg0); +ffi.Pointer _ObjCBlock_ffiDouble_ffiDouble_closureCallable = + ffi.Pointer.fromFunction< + ffi.Double Function( + ffi.Pointer, ffi.Double)>( + _ObjCBlock_ffiDouble_ffiDouble_closureTrampoline, 0.0) + .cast(); + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiDouble_ffiDouble { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + double Function(double) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock(_ObjCBlock_ffiDouble_ffiDouble_closureCallable, + (double arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiDouble_ffiDouble_CallExtension + on objc.ObjCBlock { + double call(double arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer block, ffi.Double arg0)>>() + .asFunction< + double Function( + ffi.Pointer, double)>()(ref.pointer, arg0); +} + +typedef DoubleBlock = ffi.Pointer; +typedef DartDoubleBlock = objc.ObjCBlock; +Vec4 _ObjCBlock_Vec4_Vec4_fnPtrTrampoline( + ffi.Pointer block, Vec4 arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +ffi.Pointer _ObjCBlock_Vec4_Vec4_fnPtrCallable = ffi.Pointer + .fromFunction, Vec4)>( + _ObjCBlock_Vec4_Vec4_fnPtrTrampoline) + .cast(); +Vec4 _ObjCBlock_Vec4_Vec4_closureTrampoline( + ffi.Pointer block, Vec4 arg0) => + (objc.getBlockClosure(block) as Vec4 Function(Vec4))(arg0); +ffi.Pointer _ObjCBlock_Vec4_Vec4_closureCallable = ffi.Pointer + .fromFunction, Vec4)>( + _ObjCBlock_Vec4_Vec4_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_Vec4_Vec4 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr) => + objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_Vec4_Vec4_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + Vec4 Function(Vec4) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock(_ObjCBlock_Vec4_Vec4_closureCallable, + (Vec4 arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_Vec4_Vec4_CallExtension + on objc.ObjCBlock { + Vec4 call(Vec4 arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + Vec4 Function( + ffi.Pointer block, Vec4 arg0)>>() + .asFunction, Vec4)>()( + ref.pointer, arg0); +} + +typedef Vec4Block = ffi.Pointer; +typedef DartVec4Block = objc.ObjCBlock; +typedef VoidBlock = ffi.Pointer; +typedef DartVoidBlock = objc.ObjCBlock; +void _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>>() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0) { + try { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable = ffi + .NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_objcObjCSelector { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock)>( + pointer, + retain: retain, + release: release); + + /// 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. + static objc.ObjCBlock)> fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction(void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive), + retain: false, + release: true); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + listener(void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> + blocking(void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( + raw, rawListener, objc.objCContext); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_objcObjCSelector_CallExtension + on objc.ObjCBlock)> { + void call(ffi.Pointer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0); +} + +typedef SelectorBlock = ffi.Pointer; +typedef DartSelectorBlock + = objc.ObjCBlock)>; +ffi.Pointer _ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer)>()(arg0); +ffi.Pointer _ObjCBlock_DummyObject_DummyObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline) + .cast(); +ffi.Pointer + _ObjCBlock_DummyObject_DummyObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_DummyObject_DummyObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_DummyObject_DummyObject_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_DummyObject_DummyObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_DummyObject_DummyObject_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + DummyObject Function(DummyObject) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_DummyObject_DummyObject_closureCallable, + (ffi.Pointer arg0) => fn( + DummyObject.castFromPointer(arg0, + retain: true, release: true)) + .ref + .retainAndAutorelease(), + keepIsolateAlive), + retain: false, + release: true); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_DummyObject_DummyObject_CallExtension + on objc.ObjCBlock { + DummyObject call(DummyObject arg0) => DummyObject.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>()( + ref.pointer, arg0.ref.pointer), + retain: true, + release: true); +} + +typedef ObjectBlock = ffi.Pointer; +typedef DartObjectBlock = objc.ObjCBlock; +ffi.Pointer + _ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer)>()(arg0); +ffi.Pointer _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline) + .cast(); +ffi.Pointer + _ObjCBlock_DummyObject_DummyObject$1_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_DummyObject_DummyObject$1_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_DummyObject_DummyObject$1_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_DummyObject_DummyObject$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable, + ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + DummyObject? Function(DummyObject?) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_DummyObject_DummyObject$1_closureCallable, + (ffi.Pointer arg0) => + fn(arg0.address == 0 + ? null + : DummyObject.castFromPointer(arg0, retain: true, release: true)) + ?.ref + .retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive), + retain: false, + release: true); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_DummyObject_DummyObject$1_CallExtension + on objc.ObjCBlock { + DummyObject? call(DummyObject? arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer, ffi.Pointer)>() + (ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) + .address == + 0 + ? null + : DummyObject.castFromPointer( + ref.pointer.ref.invoke + .cast Function(ffi.Pointer block, ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), + retain: true, + release: true); +} + +typedef NullableObjectBlock = ffi.Pointer; +typedef DartNullableObjectBlock + = objc.ObjCBlock; +ffi.Pointer _ObjCBlock_NSString_NSString_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer)>()(arg0); +ffi.Pointer _ObjCBlock_NSString_NSString_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_NSString_NSString_fnPtrTrampoline) + .cast(); +ffi.Pointer _ObjCBlock_NSString_NSString_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_NSString_NSString_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_NSString_NSString_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_NSString_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_NSString_NSString_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + objc.NSString? Function(objc.NSString?) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_NSString_NSString_closureCallable, + (ffi.Pointer arg0) => + fn(arg0.address == 0 ? null : objc.NSString.castFromPointer(arg0, retain: true, release: true)) + ?.ref + .retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive), + retain: false, + release: true); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_NSString_NSString_CallExtension + on objc.ObjCBlock { + objc.NSString? call(objc.NSString? arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer, ffi.Pointer)>() + (ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) + .address == + 0 + ? null + : objc.NSString.castFromPointer( + ref.pointer.ref.invoke + .cast Function(ffi.Pointer block, ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), + retain: true, + release: true); +} + +IntBlock _ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline( + ffi.Pointer block, IntBlock arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +ffi.Pointer _ObjCBlock_IntBlock_IntBlock_fnPtrCallable = + ffi.Pointer.fromFunction< + IntBlock Function(ffi.Pointer, + IntBlock)>(_ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline) + .cast(); +IntBlock _ObjCBlock_IntBlock_IntBlock_closureTrampoline( + ffi.Pointer block, IntBlock arg0) => + (objc.getBlockClosure(block) as IntBlock Function(IntBlock))(arg0); +ffi.Pointer _ObjCBlock_IntBlock_IntBlock_closureCallable = + ffi.Pointer.fromFunction< + IntBlock Function(ffi.Pointer, + IntBlock)>(_ObjCBlock_IntBlock_IntBlock_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(objc.ObjCBlock)>`. +abstract final class ObjCBlock_IntBlock_IntBlock { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)> + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)>(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)> + fromFunctionPointer(ffi.Pointer> ptr) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_IntBlock_IntBlock_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function(objc.ObjCBlock)> + fromFunction(DartIntBlock Function(DartIntBlock) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_IntBlock_IntBlock_closureCallable, + (IntBlock arg0) => + fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, retain: true, release: true)).ref.retainAndAutorelease(), + keepIsolateAlive), + retain: false, + release: true); +} + +/// Call operator for `objc.ObjCBlock Function(objc.ObjCBlock)>`. +extension ObjCBlock_IntBlock_IntBlock_CallExtension on objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)> { + DartIntBlock call(DartIntBlock arg0) => ObjCBlock_Int32_Int32.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + IntBlock Function( + ffi.Pointer block, IntBlock arg0)>>() + .asFunction< + IntBlock Function(ffi.Pointer, + IntBlock)>()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true); +} + +typedef BlockBlock = ffi.Pointer; +typedef DartBlockBlock = objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)>; +void _ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline( + ffi.Pointer block, IntBlock arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + IntBlock)>(_ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_IntBlock_closureTrampoline( + ffi.Pointer block, IntBlock arg0) => + (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_IntBlock_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + IntBlock)>(_ObjCBlock_ffiVoid_IntBlock_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_IntBlock_listenerTrampoline( + ffi.Pointer block, IntBlock arg0) { + (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable, IntBlock)> + _ObjCBlock_ffiVoid_IntBlock_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + IntBlock)>.listener(_ObjCBlock_ffiVoid_IntBlock_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + IntBlock arg0) { + try { + (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer, IntBlock)> + _ObjCBlock_ffiVoid_IntBlock_blockingCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, IntBlock)>.isolateLocal( + _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer, IntBlock)> + _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + IntBlock)>.listener(_ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_IntBlock { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)> + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock)>(pointer, + retain: retain, release: release); + + /// 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. + static objc + .ObjCBlock)> + fromFunctionPointer( + ffi.Pointer> + ptr) => + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)> fromFunction( + void Function(DartIntBlock) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_IntBlock_closureCallable, + (IntBlock arg0) => + fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)> + listener(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_IntBlock_listenerCallable.nativeFunction.cast(), + (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, + retain: false, release: true)), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_f167m6(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)>( + wrapper, + retain: false, + release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)> + blocking(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_IntBlock_blockingCallable.nativeFunction.cast(), + (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, + retain: false, release: true)), + keepIsolateAlive); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable.nativeFunction + .cast(), + (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, + retain: false, release: true)), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( + raw, rawListener, objc.objCContext); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)>( + wrapper, + retain: false, + release: true); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_IntBlock_CallExtension on objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)> { + void call(DartIntBlock arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, IntBlock arg0)>>() + .asFunction< + void Function(ffi.Pointer, IntBlock)>()( + ref.pointer, arg0.ref.pointer); +} + +typedef ListenerBlock = ffi.Pointer; +typedef DartListenerBlock = objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)>; +void _ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>>() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_DummyObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_DummyObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_DummyObject_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline( + ffi.Pointer block, ffi.Pointer arg0) { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0) { + try { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable = ffi + .NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_DummyObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(DummyObject) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject_closureCallable, + (ffi.Pointer arg0) => fn( + DummyObject.castFromPointer(arg0, + retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(DummyObject) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(DummyObject) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( + raw, rawListener, objc.objCContext); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_DummyObject_CallExtension + on objc.ObjCBlock { + void call(DummyObject arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0.ref.pointer); +} + +typedef ObjectListenerBlock = ffi.Pointer; +typedef DartObjectListenerBlock + = objc.ObjCBlock; +void _ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>>() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_DummyObject$1_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline( + ffi.Pointer block, ffi.Pointer arg0) { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0) { + try { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable = ffi + .NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_DummyObject$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(DummyObject?) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject$1_closureCallable, + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : DummyObject.castFromPointer(arg0, + retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(DummyObject?) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(DummyObject?) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( + raw, rawListener, objc.objCContext); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_DummyObject$1_CallExtension + on objc.ObjCBlock { + void call(DummyObject? arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()( + ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); +} + +typedef NullableListenerBlock = ffi.Pointer; +typedef DartNullableListenerBlock + = objc.ObjCBlock; +void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline( + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + Vec2 arg0, Vec4 arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function( + Vec2, Vec4, ffi.Pointer)>()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, Vec2, Vec4, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline( + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2) => + (objc.getBlockClosure(block) as void Function( + Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, Vec2, Vec4, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline( + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2) { + (objc.getBlockClosure(block) as void Function( + Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, Vec2, Vec4, + ffi.Pointer)> + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, Vec2, Vec4, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2) { + try { + (objc.getBlockClosure(block) as void Function( + Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, Vec2, Vec4, ffi.Pointer)> + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, Vec2, Vec4, ffi.Pointer)> + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable = ffi + .NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(Vec2 arg0, Vec4 arg1, + ffi.Pointer arg2)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(Vec2, Vec4, objc.NSObject) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable, + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(Vec2, Vec4, objc.NSObject) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable.nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true)), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_ru30ue(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(Vec2, Vec4, objc.NSObject) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable.nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true)), + keepIsolateAlive); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable + .nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true)), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( + raw, rawListener, objc.objCContext); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_CallExtension + on objc.ObjCBlock { + void call(Vec2 arg0, Vec4 arg1, objc.NSObject arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, Vec2, Vec4, + ffi.Pointer)>()( + ref.pointer, arg0, arg1, arg2.ref.pointer); +} + +typedef StructListenerBlock = ffi.Pointer; +typedef DartStructListenerBlock + = objc.ObjCBlock; +void _ObjCBlock_ffiVoid_NSString_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>>() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_NSString_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSString_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_NSString_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSString_listenerTrampoline( + ffi.Pointer block, ffi.Pointer arg0) { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_NSString_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSString_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0) { + try { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_NSString_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_NSString_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_NSString_blockingListenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSString_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(objc.NSString) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_closureCallable, + (ffi.Pointer arg0) => fn( + objc.NSString.castFromPointer(arg0, + retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(objc.NSString) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(objc.NSString) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn( + objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( + raw, rawListener, objc.objCContext); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSString_CallExtension + on objc.ObjCBlock { + void call(objc.NSString arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0.ref.pointer); +} + +typedef NSStringListenerBlock = ffi.Pointer; +typedef DartNSStringListenerBlock + = objc.ObjCBlock; +void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline( + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32 arg0, Vec4 arg1, + ffi.Pointer arg2)>>() + .asFunction)>()( + arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Int32, + Vec4, ffi.Pointer)>( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline( + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2) => + (objc.getBlockClosure(block) as void Function( + int, Vec4, ffi.Pointer))(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, ffi.Int32, + Vec4, ffi.Pointer)>( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline( + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2) { + (objc.getBlockClosure(block) as void Function( + int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Int32, Vec4, + ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Int32, Vec4, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, + Vec4 arg1, + ffi.Pointer arg2) { + try { + (objc.getBlockClosure(block) as void Function( + int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Int32, Vec4, ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Int32, Vec4, ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable = ffi + .NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { + /// Returns a block that wraps the given raw block pointer. + static objc + .ObjCBlock)> + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>( + pointer, + retain: retain, + release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)> fromFunctionPointer( + ffi.Pointer arg2)>> + ptr) => + objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)> fromFunction( + void Function(int, Vec4, ffi.Pointer) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable, + (int arg0, Vec4 arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive), + retain: false, + release: true); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc + .ObjCBlock)> + listener(void Function(int, Vec4, ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable.nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_li50va(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>(wrapper, + retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc + .ObjCBlock)> + blocking(void Function(int, Vec4, ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable.nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable + .nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_li50va( + raw, rawListener, objc.objCContext); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>(wrapper, + retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_CallExtension on objc + .ObjCBlock)> { + void call(int arg0, Vec4 arg1, ffi.Pointer arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Int32 arg0, Vec4 arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, int, Vec4, + ffi.Pointer)>()(ref.pointer, arg0, arg1, arg2); +} + +typedef NoTrampolineListenerBlock = ffi.Pointer; +typedef DartNoTrampolineListenerBlock + = objc.ObjCBlock)>; +void _ObjCBlock_ffiVoid_Int32_fnPtrTrampoline( + ffi.Pointer block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_Int32_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_Int32_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_Int32_closureTrampoline( + ffi.Pointer block, ffi.Pointer arg0) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_Int32_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_Int32_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_Int32_listenerTrampoline( + ffi.Pointer block, ffi.Pointer arg0) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Int32_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_Int32_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0) { + try { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_blockingCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_Int32_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_blockingListenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Int32_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_Int32 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock)>(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_ffiVoid_Int32_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock)>( + objc.newClosureBlock(_ObjCBlock_ffiVoid_Int32_closureCallable, + (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_yhkuco(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock)>(wrapper, + retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( + raw, rawListener, objc.objCContext); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock)>(wrapper, + retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_Int32_CallExtension + on objc.ObjCBlock)> { + void call(ffi.Pointer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0); +} + +void _ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline( + ffi.Pointer block, int arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_Int32$1_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + ffi.Int32)>(_ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_Int32$1_closureTrampoline( + ffi.Pointer block, int arg0) => + (objc.getBlockClosure(block) as void Function(int))(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_Int32$1_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer, + ffi.Int32)>(_ObjCBlock_ffiVoid_Int32$1_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_Int32$1_listenerTrampoline( + ffi.Pointer block, int arg0) { + (objc.getBlockClosure(block) as void Function(int))(arg0); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Int32)> + _ObjCBlock_ffiVoid_Int32$1_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Int32)>.listener(_ObjCBlock_ffiVoid_Int32$1_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + int arg0) { + try { + (objc.getBlockClosure(block) as void Function(int))(arg0); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Int32)> + _ObjCBlock_ffiVoid_Int32$1_blockingCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>.isolateLocal( + _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Int32)> + _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>.listener(_ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_Int32$1 { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_Int32$1_fnPtrCallable, ptr.cast()), + retain: false, + release: true); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(int) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock(_ObjCBlock_ffiVoid_Int32$1_closureCallable, + (int arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(int) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32$1_listenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_1bqef4y(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(int) fn, + {bool keepIsolateAlive = true}) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32$1_blockingCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable.nativeFunction + .cast(), + (int arg0) => fn(arg0), + keepIsolateAlive); + final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( + raw, rawListener, objc.objCContext); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock(wrapper, + retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_Int32$1_CallExtension + on objc.ObjCBlock { + void call(int arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, ffi.Int32 arg0)>>() + .asFunction, int)>()( + ref.pointer, arg0); +} + +late final _class_BlockTester = objc.getClass("BlockTester"); +late final _sel_setup_ = objc.registerName("setup:"); +final _objc_msgSend_ovsamd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_newFromBlock_ = objc.registerName("newFromBlock:"); +late final _sel_newFromMultiplier_ = objc.registerName("newFromMultiplier:"); +final _objc_msgSend_aclumu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int)>(); +late final _sel_newFromListener_ = objc.registerName("newFromListener:"); +late final _sel_call_ = objc.registerName("call:"); +final _objc_msgSend_zo3bvx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>() + .asFunction< + int Function(ffi.Pointer, + ffi.Pointer, int)>(); +late final _sel_getBlock = objc.registerName("getBlock"); +final _objc_msgSend_uwvaik = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); +late final _sel_pokeBlock = objc.registerName("pokeBlock"); +late final _sel_callOnSameThread_ = objc.registerName("callOnSameThread:"); +late final _sel_callOnSameThreadOutsideIsolate_ = + objc.registerName("callOnSameThreadOutsideIsolate:"); +late final _sel_callOnNewThread_ = objc.registerName("callOnNewThread:"); +late final _sel_callWithBlockOnNewThread_ = + objc.registerName("callWithBlockOnNewThread:"); +late final _sel_callFloatBlock_ = objc.registerName("callFloatBlock:"); +final _objc_msgSend_o8bnms = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + double Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +final _objc_msgSend_o8bnmsFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + double Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_callDoubleBlock_ = objc.registerName("callDoubleBlock:"); +final _objc_msgSend_8mj2fv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + double Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +final _objc_msgSend_8mj2fvFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + double Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_callVec4Block_ = objc.registerName("callVec4Block:"); +final _objc_msgSend_1gew1vm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + Vec4 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + Vec4 Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +final _objc_msgSend_1gew1vmStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_callSelectorBlock_ = objc.registerName("callSelectorBlock:"); +late final _sel_callObjectBlock_ = objc.registerName("callObjectBlock:"); +late final _sel_callNullableObjectBlock_ = + objc.registerName("callNullableObjectBlock:"); +late final _sel_callNullableStringBlock_ = + objc.registerName("callNullableStringBlock:"); +late final _sel_callListener_ = objc.registerName("callListener:"); +late final _sel_callObjectListener_ = objc.registerName("callObjectListener:"); +late final _sel_callNullableListener_ = + objc.registerName("callNullableListener:"); +late final _sel_callStructListener_ = objc.registerName("callStructListener:"); +late final _sel_callNSStringListener_x_ = + objc.registerName("callNSStringListener:x:"); +final _objc_msgSend_po4t03 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); +late final _sel_callNoTrampolineListener_ = + objc.registerName("callNoTrampolineListener:"); +late final _sel_newBlock_withMult_ = objc.registerName("newBlock:withMult:"); +final _objc_msgSend_jevgay = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); +late final _sel_newBlockBlock_ = objc.registerName("newBlockBlock:"); +final _objc_msgSend_w43bzz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int)>(); +late final _sel_invokeAndReleaseListenerOnNewThread = + objc.registerName("invokeAndReleaseListenerOnNewThread"); +late final _sel_invokeAndReleaseListener_ = + objc.registerName("invokeAndReleaseListener:"); +late final _sel_blockingBlockTest_resultBlock_ = + objc.registerName("blockingBlockTest:resultBlock:"); +final _objc_msgSend_18yul99 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + +/// BlockTester +class BlockTester extends objc.NSObject { + BlockTester._(ffi.Pointer pointer, + {bool retain = false, bool release = false}) + : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [BlockTester] that points to the same underlying object as [other]. + BlockTester.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [BlockTester] that wraps the given raw object pointer. + BlockTester.castFromPointer(ffi.Pointer other, + {bool retain = false, bool release = false}) + : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [BlockTester]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, _sel_isKindOfClass_, _class_BlockTester); + } + + /// setup: + static void setup(ffi.Pointer apiData) { + _objc_msgSend_ovsamd(_class_BlockTester, _sel_setup_, apiData); + } + + /// newFromBlock: + static BlockTester newFromBlock(DartIntBlock block) { + final _ret = _objc_msgSend_nnxkei( + _class_BlockTester, _sel_newFromBlock_, block.ref.pointer); + return BlockTester.castFromPointer(_ret, retain: false, release: true); + } + + /// newFromMultiplier: + static BlockTester newFromMultiplier(int mult) { + final _ret = + _objc_msgSend_aclumu(_class_BlockTester, _sel_newFromMultiplier_, mult); + return BlockTester.castFromPointer(_ret, retain: false, release: true); + } + + /// newFromListener: + static BlockTester newFromListener(DartObjectListenerBlock block) { + final _ret = _objc_msgSend_nnxkei( + _class_BlockTester, _sel_newFromListener_, block.ref.pointer); + return BlockTester.castFromPointer(_ret, retain: false, release: true); + } + + /// call: + int call(int x) { + return _objc_msgSend_zo3bvx(this.ref.pointer, _sel_call_, x); + } + + /// getBlock + DartIntBlock getBlock() { + final _ret = _objc_msgSend_uwvaik(this.ref.pointer, _sel_getBlock); + return ObjCBlock_Int32_Int32.castFromPointer(_ret, + retain: false, release: true); + } + + /// pokeBlock + void pokeBlock() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_pokeBlock); + } + + /// callOnSameThread: + static void callOnSameThread(DartVoidBlock block) { + _objc_msgSend_f167m6( + _class_BlockTester, _sel_callOnSameThread_, block.ref.pointer); + } + + /// callOnSameThreadOutsideIsolate: + static void callOnSameThreadOutsideIsolate(DartVoidBlock block) { + _objc_msgSend_f167m6(_class_BlockTester, + _sel_callOnSameThreadOutsideIsolate_, block.ref.pointer); + } + + /// callOnNewThread: + static NSThread callOnNewThread(DartVoidBlock block) { + final _ret = _objc_msgSend_nnxkei( + _class_BlockTester, _sel_callOnNewThread_, block.ref.pointer); + return NSThread.castFromPointer(_ret, retain: false, release: true); + } + + /// callWithBlockOnNewThread: + static NSThread callWithBlockOnNewThread(DartListenerBlock block) { + final _ret = _objc_msgSend_nnxkei( + _class_BlockTester, _sel_callWithBlockOnNewThread_, block.ref.pointer); + return NSThread.castFromPointer(_ret, retain: false, release: true); + } + + /// callFloatBlock: + static double callFloatBlock(DartFloatBlock block) { + return objc.useMsgSendVariants + ? _objc_msgSend_o8bnmsFpret( + _class_BlockTester, _sel_callFloatBlock_, block.ref.pointer) + : _objc_msgSend_o8bnms( + _class_BlockTester, _sel_callFloatBlock_, block.ref.pointer); + } + + /// callDoubleBlock: + static double callDoubleBlock(DartDoubleBlock block) { + return objc.useMsgSendVariants + ? _objc_msgSend_8mj2fvFpret( + _class_BlockTester, _sel_callDoubleBlock_, block.ref.pointer) + : _objc_msgSend_8mj2fv( + _class_BlockTester, _sel_callDoubleBlock_, block.ref.pointer); + } + + /// callVec4Block: + static Vec4 callVec4Block(DartVec4Block block) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1gew1vmStret( + _ptr, _class_BlockTester, _sel_callVec4Block_, block.ref.pointer) + : _ptr.ref = _objc_msgSend_1gew1vm( + _class_BlockTester, _sel_callVec4Block_, block.ref.pointer); + final _finalizable = _ptr + .cast() + .asTypedList(ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree); + return ffi.Struct.create(_finalizable); + } + + /// callSelectorBlock: + static void callSelectorBlock(DartSelectorBlock block) { + _objc_msgSend_f167m6( + _class_BlockTester, _sel_callSelectorBlock_, block.ref.pointer); + } + + /// callObjectBlock: + static DummyObject callObjectBlock(DartObjectBlock block) { + final _ret = _objc_msgSend_nnxkei( + _class_BlockTester, _sel_callObjectBlock_, block.ref.pointer); + return DummyObject.castFromPointer(_ret, retain: false, release: true); + } + + /// callNullableObjectBlock: + static DummyObject? callNullableObjectBlock(DartNullableObjectBlock block) { + final _ret = _objc_msgSend_nnxkei( + _class_BlockTester, _sel_callNullableObjectBlock_, block.ref.pointer); + return _ret.address == 0 + ? null + : DummyObject.castFromPointer(_ret, retain: false, release: true); + } + + /// callNullableStringBlock: + static objc.NSString? callNullableStringBlock( + objc.ObjCBlock block) { + final _ret = _objc_msgSend_nnxkei( + _class_BlockTester, _sel_callNullableStringBlock_, block.ref.pointer); + return _ret.address == 0 + ? null + : objc.NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// callListener: + static void callListener(DartListenerBlock block) { + _objc_msgSend_f167m6( + _class_BlockTester, _sel_callListener_, block.ref.pointer); + } + + /// callObjectListener: + static void callObjectListener(DartObjectListenerBlock block) { + _objc_msgSend_f167m6( + _class_BlockTester, _sel_callObjectListener_, block.ref.pointer); + } + + /// callNullableListener: + static void callNullableListener(DartNullableListenerBlock block) { + _objc_msgSend_f167m6( + _class_BlockTester, _sel_callNullableListener_, block.ref.pointer); + } + + /// callStructListener: + static void callStructListener(DartStructListenerBlock block) { + _objc_msgSend_f167m6( + _class_BlockTester, _sel_callStructListener_, block.ref.pointer); + } + + /// callNSStringListener:x: + static void callNSStringListener(DartNSStringListenerBlock block, + {required int x}) { + _objc_msgSend_po4t03( + _class_BlockTester, _sel_callNSStringListener_x_, block.ref.pointer, x); + } + + /// callNoTrampolineListener: + static void callNoTrampolineListener(DartNoTrampolineListenerBlock block) { + _objc_msgSend_f167m6( + _class_BlockTester, _sel_callNoTrampolineListener_, block.ref.pointer); + } + + /// newBlock:withMult: + static DartIntBlock newBlock(DartBlockBlock block, {required int withMult}) { + final _ret = _objc_msgSend_jevgay(_class_BlockTester, + _sel_newBlock_withMult_, block.ref.pointer, withMult); + return ObjCBlock_Int32_Int32.castFromPointer(_ret, + retain: false, release: true); + } + + /// newBlockBlock: + static DartBlockBlock newBlockBlock(int mult) { + final _ret = + _objc_msgSend_w43bzz(_class_BlockTester, _sel_newBlockBlock_, mult); + return ObjCBlock_IntBlock_IntBlock.castFromPointer(_ret, + retain: false, release: true); + } + + /// invokeAndReleaseListenerOnNewThread + void invokeAndReleaseListenerOnNewThread() { + _objc_msgSend_1pl9qdv( + this.ref.pointer, _sel_invokeAndReleaseListenerOnNewThread); + } + + /// invokeAndReleaseListener: + void invokeAndReleaseListener(objc.ObjCObjectBase? _) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_invokeAndReleaseListener_, + _?.ref.pointer ?? ffi.nullptr); + } + + /// blockingBlockTest:resultBlock: + static void blockingBlockTest( + objc.ObjCBlock)> blockingBlock, + {required objc.ObjCBlock resultBlock}) { + _objc_msgSend_18yul99( + _class_BlockTester, + _sel_blockingBlockTest_resultBlock_, + blockingBlock.ref.pointer, + resultBlock.ref.pointer); + } + + /// init + BlockTester init() { + objc.checkOsVersionInternal('BlockTester.init', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + final _ret = + _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + return BlockTester.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static BlockTester new$() { + final _ret = _objc_msgSend_151sglz(_class_BlockTester, _sel_new); + return BlockTester.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static BlockTester allocWithZone(ffi.Pointer zone) { + final _ret = + _objc_msgSend_1cwp428(_class_BlockTester, _sel_allocWithZone_, zone); + return BlockTester.castFromPointer(_ret, retain: false, release: true); + } + + /// alloc + static BlockTester alloc() { + final _ret = _objc_msgSend_151sglz(_class_BlockTester, _sel_alloc); + return BlockTester.castFromPointer(_ret, retain: false, release: true); + } + + /// self + BlockTester self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return BlockTester.castFromPointer(_ret, retain: true, release: true); + } + + /// retain + BlockTester retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return BlockTester.castFromPointer(_ret, retain: true, release: true); + } + + /// autorelease + BlockTester autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return BlockTester.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of BlockTester constructed with the default `new` method. + factory BlockTester() => new$(); +} diff --git a/pkgs/ffigen/test/native_objc_test/block_bindings.m b/pkgs/ffigen/test/native_objc_test/block_bindings.m new file mode 100644 index 000000000..e5dbbcccb --- /dev/null +++ b/pkgs/ffigen/test/native_objc_test/block_bindings.m @@ -0,0 +1,236 @@ +#include +#import +#import +#import "block_test.h" + +#if !__has_feature(objc_arc) +#error "This file must be compiled with ARC enabled" +#endif + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundeclared-selector" + +typedef struct { + int64_t version; + void* (*newWaiter)(void); + void (*awaitWaiter)(void*); + void* (*currentIsolate)(void); + void (*enterIsolate)(void*); + void (*exitIsolate)(void); + int64_t (*getMainPortId)(void); + bool (*getCurrentThreadOwnsIsolate)(int64_t); +} DOBJC_Context; + +id objc_retainBlock(id); + +#define BLOCKING_BLOCK_IMPL(ctx, BLOCK_SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ + assert(ctx->version >= 1); \ + void* targetIsolate = ctx->currentIsolate(); \ + int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ + return BLOCK_SIG { \ + void* currentIsolate = ctx->currentIsolate(); \ + bool mayEnterIsolate = \ + currentIsolate == NULL && \ + ctx->getCurrentThreadOwnsIsolate != NULL && \ + ctx->getCurrentThreadOwnsIsolate(targetPort); \ + if (currentIsolate == targetIsolate || mayEnterIsolate) { \ + if (mayEnterIsolate) { \ + ctx->enterIsolate(targetIsolate); \ + } \ + INVOKE_DIRECT; \ + if (mayEnterIsolate) { \ + ctx->exitIsolate(); \ + } \ + } else { \ + void* waiter = ctx->newWaiter(); \ + INVOKE_LISTENER; \ + ctx->awaitWaiter(waiter); \ + } \ + }; + + +typedef void (^ListenerTrampoline)(); + +typedef void (^BlockingTrampoline)(void * waiter); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline _BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( + BlockingTrampoline block, BlockingTrampoline listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(), { + objc_retainBlock(block); + block(nil); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter); + }); +} + +typedef id (^ProtocolTrampoline)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +id _BlockTestObjCLibrary_protocolTrampoline_1mbt9g9(id target, void * sel) { + return ((ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef void (^ListenerTrampoline_1)(struct objc_selector * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_1 _BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe(ListenerTrampoline_1 block) NS_RETURNS_RETAINED { + return ^void(struct objc_selector * arg0) { + objc_retainBlock(block); + block(arg0); + }; +} + +typedef void (^BlockingTrampoline_1)(void * waiter, struct objc_selector * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_1 _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( + BlockingTrampoline_1 block, BlockingTrampoline_1 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(struct objc_selector * arg0), { + objc_retainBlock(block); + block(nil, arg0); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0); + }); +} + +typedef void (^ListenerTrampoline_2)(id arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_2 _BlockTestObjCLibrary_wrapListenerBlock_f167m6(ListenerTrampoline_2 block) NS_RETURNS_RETAINED { + return ^void(id arg0) { + objc_retainBlock(block); + block(objc_retainBlock(arg0)); + }; +} + +typedef void (^BlockingTrampoline_2)(void * waiter, id arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_2 _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( + BlockingTrampoline_2 block, BlockingTrampoline_2 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0), { + objc_retainBlock(block); + block(nil, objc_retainBlock(arg0)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, objc_retainBlock(arg0)); + }); +} + +typedef void (^ListenerTrampoline_3)(id arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_3 _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(ListenerTrampoline_3 block) NS_RETURNS_RETAINED { + return ^void(id arg0) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0)); + }; +} + +typedef void (^BlockingTrampoline_3)(void * waiter, id arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_3 _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( + BlockingTrampoline_3 block, BlockingTrampoline_3 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0)); + }); +} + +typedef void (^ListenerTrampoline_4)(struct Vec2 arg0, Vec4 arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_4 _BlockTestObjCLibrary_wrapListenerBlock_ru30ue(ListenerTrampoline_4 block) NS_RETURNS_RETAINED { + return ^void(struct Vec2 arg0, Vec4 arg1, id arg2) { + objc_retainBlock(block); + block(arg0, arg1, (__bridge id)(__bridge_retained void*)(arg2)); + }; +} + +typedef void (^BlockingTrampoline_4)(void * waiter, struct Vec2 arg0, Vec4 arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_4 _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( + BlockingTrampoline_4 block, BlockingTrampoline_4 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(struct Vec2 arg0, Vec4 arg1, id arg2), { + objc_retainBlock(block); + block(nil, arg0, arg1, (__bridge id)(__bridge_retained void*)(arg2)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1, (__bridge id)(__bridge_retained void*)(arg2)); + }); +} + +typedef void (^ListenerTrampoline_5)(int32_t arg0, Vec4 arg1, char * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_5 _BlockTestObjCLibrary_wrapListenerBlock_li50va(ListenerTrampoline_5 block) NS_RETURNS_RETAINED { + return ^void(int32_t arg0, Vec4 arg1, char * arg2) { + objc_retainBlock(block); + block(arg0, arg1, arg2); + }; +} + +typedef void (^BlockingTrampoline_5)(void * waiter, int32_t arg0, Vec4 arg1, char * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_5 _BlockTestObjCLibrary_wrapBlockingBlock_li50va( + BlockingTrampoline_5 block, BlockingTrampoline_5 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(int32_t arg0, Vec4 arg1, char * arg2), { + objc_retainBlock(block); + block(nil, arg0, arg1, arg2); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1, arg2); + }); +} + +typedef void (^ListenerTrampoline_6)(int32_t * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_6 _BlockTestObjCLibrary_wrapListenerBlock_yhkuco(ListenerTrampoline_6 block) NS_RETURNS_RETAINED { + return ^void(int32_t * arg0) { + objc_retainBlock(block); + block(arg0); + }; +} + +typedef void (^BlockingTrampoline_6)(void * waiter, int32_t * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_6 _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( + BlockingTrampoline_6 block, BlockingTrampoline_6 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(int32_t * arg0), { + objc_retainBlock(block); + block(nil, arg0); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0); + }); +} + +typedef void (^ListenerTrampoline_7)(int32_t arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_7 _BlockTestObjCLibrary_wrapListenerBlock_1bqef4y(ListenerTrampoline_7 block) NS_RETURNS_RETAINED { + return ^void(int32_t arg0) { + objc_retainBlock(block); + block(arg0); + }; +} + +typedef void (^BlockingTrampoline_7)(void * waiter, int32_t arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_7 _BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( + BlockingTrampoline_7 block, BlockingTrampoline_7 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(int32_t arg0), { + objc_retainBlock(block); + block(nil, arg0); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0); + }); +} +#undef BLOCKING_BLOCK_IMPL + +#pragma clang diagnostic pop diff --git a/pkgs/ffigen/test/native_objc_test/block_test.dart b/pkgs/ffigen/test/native_objc_test/block_test.dart index c43ae66a4..d15fac9ba 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test.dart @@ -58,12 +58,12 @@ void main() { verifySetupFile(dylib); lib = BlockTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); - generateBindingsForCoverage('block'); + // generateBindingsForCoverage('block'); BlockTester.setup(NativeApi.initializeApiDLData); }); - test('BlockTester is working', () { + /*test('BlockTester is working', () { // This doesn't test any Block functionality, just that the BlockTester // itself is working correctly. final blockTester = BlockTester.newFromMultiplier(10); @@ -93,7 +93,7 @@ void main() { blockTester.pokeBlock(); expect(blockTester.call(123), 4123); expect(block(123), 4123); - }); + });*/ test('Listener block same thread', () async { final hasRun = Completer(); @@ -109,7 +109,7 @@ void main() { expect(value, 123); }); - test('Listener block new thread', () async { + /*test('Listener block new thread', () async { final hasRun = Completer(); int value = 0; final block = VoidBlock.listener(() { @@ -1074,7 +1074,7 @@ void main() { return innerValue; }); expect(value, 123); - }, skip: !hasIsolateOwnershipApi); + }, skip: !hasIsolateOwnershipApi);*/ }); } diff --git a/pkgs/ffigen/test/native_objc_test/setup.dart b/pkgs/ffigen/test/native_objc_test/setup.dart index 01e6d54d4..29cc602c3 100644 --- a/pkgs/ffigen/test/native_objc_test/setup.dart +++ b/pkgs/ffigen/test/native_objc_test/setup.dart @@ -124,10 +124,10 @@ Future build(List testNames) async { // Ffigen comes next because it may generate an ObjC file that is compiled // into the dylib. - print('Generating Bindings for Objective C Native Tests...'); - for (final name in testNames) { - await _generateBindings('${name}_config.yaml'); - } + // print('Generating Bindings for Objective C Native Tests...'); + // for (final name in testNames) { + // await _generateBindings('${name}_config.yaml'); + // } // Finally we build the dylib containing all the ObjC test code. print('Building Dynamic Library for Objective C Native Tests...'); diff --git a/pkgs/objective_c/lib/src/c_bindings_generated.dart b/pkgs/objective_c/lib/src/c_bindings_generated.dart index 1e5a4889a..b9cd74143 100644 --- a/pkgs/objective_c/lib/src/c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/c_bindings_generated.dart @@ -276,6 +276,8 @@ final class ObjCBlockImpl extends ffi.Struct { @ffi.Int64() external int dispose_port; + + external ffi.Pointer trampoline; } final class ObjCMethodDesc extends ffi.Struct { diff --git a/pkgs/objective_c/lib/src/internal.dart b/pkgs/objective_c/lib/src/internal.dart index 5f4b4c0c4..f9eac34bd 100644 --- a/pkgs/objective_c/lib/src/internal.dart +++ b/pkgs/objective_c/lib/src/internal.dart @@ -356,7 +356,7 @@ final _closureBlockDesc = _newBlockDesc( Native.addressOf>( c.disposeObjCBlockWithClosure)); -BlockPtr _newBlock(VoidPtr invoke, VoidPtr target, +BlockPtr _newBlock(VoidPtr invoke, VoidPtr target, VoidPtr trampoline, Pointer descriptor, int disposePort, int flags) { final b = calloc.allocate(sizeOf()); b.ref.isa = Native.addressOf>(c.NSConcreteGlobalBlock).cast(); @@ -366,6 +366,7 @@ BlockPtr _newBlock(VoidPtr invoke, VoidPtr target, b.ref.target = target; b.ref.dispose_port = disposePort; b.ref.descriptor = descriptor; + b.ref.trampoline = trampoline; assert(c.isValidBlock(b)); final copy = c.blockRetain(b.cast()).cast(); calloc.free(b); @@ -378,9 +379,11 @@ BlockPtr _newBlock(VoidPtr invoke, VoidPtr target, const int _blockHasCopyDispose = 1 << 25; /// Only for use by ffigen bindings. -BlockPtr newClosureBlock(VoidPtr invoke, Function fn, bool keepIsolateAlive) => +BlockPtr newClosureBlock(VoidPtr invoke, Function fn, bool keepIsolateAlive, + {VoidPtr? trampoline}) => _newBlock( invoke, + trampoline ?? nullptr, _registerBlockClosure(fn, keepIsolateAlive), _closureBlockDesc, _blockClosureDisposer.sendPort.nativePort, @@ -388,7 +391,7 @@ BlockPtr newClosureBlock(VoidPtr invoke, Function fn, bool keepIsolateAlive) => /// Only for use by ffigen bindings. BlockPtr newPointerBlock(VoidPtr invoke, VoidPtr target) => - _newBlock(invoke, target, _pointerBlockDesc, 0, 0); + _newBlock(invoke, nullptr, target, _pointerBlockDesc, 0, 0); typedef _RegEntry = ({ Function closure, diff --git a/pkgs/objective_c/src/objective_c_runtime.h b/pkgs/objective_c/src/objective_c_runtime.h index f911c549f..2acf269a1 100644 --- a/pkgs/objective_c/src/objective_c_runtime.h +++ b/pkgs/objective_c/src/objective_c_runtime.h @@ -50,6 +50,7 @@ typedef struct _ObjCBlockImpl { // Captured variables follow. These are specific to our use case. void *target; Dart_Port dispose_port; + void* trampoline; } ObjCBlockImpl; // https://opensource.apple.com/source/libclosure/libclosure-38/Block_private.h From 79a93fea8cc903db2bc8e9532ba4891c275b1d90 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 26 May 2025 10:20:15 +1000 Subject: [PATCH 04/29] revert example changes --- pkgs/objective_c/example/.gitignore | 45 - pkgs/objective_c/example/.metadata | 30 - pkgs/objective_c/example/README.md | 2 + pkgs/objective_c/example/ios/.gitignore | 34 - .../ios/Flutter/AppFrameworkInfo.plist | 2 +- .../example/ios/Flutter/Debug.xcconfig | 1 + .../example/ios/Flutter/Release.xcconfig | 1 + pkgs/objective_c/example/ios/Podfile | 44 + .../ios/Runner.xcodeproj/project.pbxproj | 133 ++- .../xcshareddata/xcschemes/Runner.xcscheme | 3 - .../contents.xcworkspacedata | 3 + .../objective_c/example/ios/Runner/Info.plist | 12 +- pkgs/objective_c/example/lib/main.dart | 2 +- .../macos/Flutter/Flutter-Debug.xcconfig | 2 + .../macos/Flutter/Flutter-Release.xcconfig | 2 + pkgs/objective_c/example/macos/Podfile | 43 + .../macos/Runner.xcodeproj/project.pbxproj | 801 ++++++++++++++++++ .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/xcschemes/Runner.xcscheme | 98 +++ .../contents.xcworkspacedata | 10 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../example/macos/Runner/AppDelegate.swift | 13 + .../AppIcon.appiconset/Contents.json | 68 ++ .../AppIcon.appiconset/app_icon_1024.png | Bin 0 -> 102994 bytes .../AppIcon.appiconset/app_icon_128.png | Bin 0 -> 5680 bytes .../AppIcon.appiconset/app_icon_16.png | Bin 0 -> 520 bytes .../AppIcon.appiconset/app_icon_256.png | Bin 0 -> 14142 bytes .../AppIcon.appiconset/app_icon_32.png | Bin 0 -> 1066 bytes .../AppIcon.appiconset/app_icon_512.png | Bin 0 -> 36406 bytes .../AppIcon.appiconset/app_icon_64.png | Bin 0 -> 2218 bytes .../macos/Runner/Base.lproj/MainMenu.xib | 343 ++++++++ .../macos/Runner/Configs/AppInfo.xcconfig | 14 + .../macos/Runner/Configs/Debug.xcconfig | 2 + .../macos/Runner/Configs/Release.xcconfig | 2 + .../macos/Runner/Configs/Warnings.xcconfig | 13 + .../macos/Runner/DebugProfile.entitlements | 12 + .../example/macos/Runner/Info.plist | 32 + .../macos/Runner/MainFlutterWindow.swift | 15 + .../example/macos/Runner/Release.entitlements | 8 + .../macos/RunnerTests/RunnerTests.swift | 12 + pkgs/objective_c/example/pubspec.yaml | 5 +- .../objective_c/example/test/widget_test.dart | 30 - 42 files changed, 1688 insertions(+), 165 deletions(-) delete mode 100644 pkgs/objective_c/example/.gitignore delete mode 100644 pkgs/objective_c/example/.metadata delete mode 100644 pkgs/objective_c/example/ios/.gitignore create mode 100644 pkgs/objective_c/example/ios/Podfile create mode 100644 pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig create mode 100644 pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig create mode 100644 pkgs/objective_c/example/macos/Podfile create mode 100644 pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj create mode 100644 pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme create mode 100644 pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata create mode 100644 pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 pkgs/objective_c/example/macos/Runner/AppDelegate.swift create mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png create mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png create mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png create mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png create mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png create mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png create mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png create mode 100644 pkgs/objective_c/example/macos/Runner/Base.lproj/MainMenu.xib create mode 100644 pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig create mode 100644 pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig create mode 100644 pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig create mode 100644 pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig create mode 100644 pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements create mode 100644 pkgs/objective_c/example/macos/Runner/Info.plist create mode 100644 pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift create mode 100644 pkgs/objective_c/example/macos/Runner/Release.entitlements create mode 100644 pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift delete mode 100644 pkgs/objective_c/example/test/widget_test.dart diff --git a/pkgs/objective_c/example/.gitignore b/pkgs/objective_c/example/.gitignore deleted file mode 100644 index 79c113f9b..000000000 --- a/pkgs/objective_c/example/.gitignore +++ /dev/null @@ -1,45 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.build/ -.buildlog/ -.history -.svn/ -.swiftpm/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release diff --git a/pkgs/objective_c/example/.metadata b/pkgs/objective_c/example/.metadata deleted file mode 100644 index faddd8982..000000000 --- a/pkgs/objective_c/example/.metadata +++ /dev/null @@ -1,30 +0,0 @@ -# This file tracks properties of this Flutter project. -# Used by Flutter tool to assess capabilities and perform upgrades etc. -# -# This file should be version controlled and should not be manually edited. - -version: - revision: "0d2ee2c49cf51adf3eb933ba557ac6a05f2128c3" - channel: "master" - -project_type: app - -# Tracks metadata for the flutter migrate command -migration: - platforms: - - platform: root - create_revision: 0d2ee2c49cf51adf3eb933ba557ac6a05f2128c3 - base_revision: 0d2ee2c49cf51adf3eb933ba557ac6a05f2128c3 - - platform: ios - create_revision: 0d2ee2c49cf51adf3eb933ba557ac6a05f2128c3 - base_revision: 0d2ee2c49cf51adf3eb933ba557ac6a05f2128c3 - - # User provided section - - # List of Local paths (relative to this file) that should be - # ignored by the migrate tool. - # - # Files that are not part of the templates will be ignored by default. - unmanaged_files: - - 'lib/main.dart' - - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/pkgs/objective_c/example/README.md b/pkgs/objective_c/example/README.md index 1690cef71..ef2deb7f6 100644 --- a/pkgs/objective_c/example/README.md +++ b/pkgs/objective_c/example/README.md @@ -1,3 +1,5 @@ # objective_c example Demonstrates how to use the objective_c plugin. + +TODO(https://github.com/dart-lang/native/issues/1068): Migrate to native assets. diff --git a/pkgs/objective_c/example/ios/.gitignore b/pkgs/objective_c/example/ios/.gitignore deleted file mode 100644 index 7a7f9873a..000000000 --- a/pkgs/objective_c/example/ios/.gitignore +++ /dev/null @@ -1,34 +0,0 @@ -**/dgph -*.mode1v3 -*.mode2v3 -*.moved-aside -*.pbxuser -*.perspectivev3 -**/*sync/ -.sconsign.dblite -.tags* -**/.vagrant/ -**/DerivedData/ -Icon? -**/Pods/ -**/.symlinks/ -profile -xcuserdata -**/.generated/ -Flutter/App.framework -Flutter/Flutter.framework -Flutter/Flutter.podspec -Flutter/Generated.xcconfig -Flutter/ephemeral/ -Flutter/app.flx -Flutter/app.zip -Flutter/flutter_assets/ -Flutter/flutter_export_environment.sh -ServiceDefinitions.json -Runner/GeneratedPluginRegistrant.* - -# Exceptions to above rules. -!default.mode1v3 -!default.mode2v3 -!default.pbxuser -!default.perspectivev3 diff --git a/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist b/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist index 1dc6cf765..7c5696400 100644 --- a/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist +++ b/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist @@ -21,6 +21,6 @@ CFBundleVersion 1.0 MinimumOSVersion - 13.0 + 12.0 diff --git a/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig b/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig index 592ceee85..ec97fc6f3 100644 --- a/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig +++ b/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig @@ -1 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" #include "Generated.xcconfig" diff --git a/pkgs/objective_c/example/ios/Flutter/Release.xcconfig b/pkgs/objective_c/example/ios/Flutter/Release.xcconfig index 592ceee85..c4855bfe2 100644 --- a/pkgs/objective_c/example/ios/Flutter/Release.xcconfig +++ b/pkgs/objective_c/example/ios/Flutter/Release.xcconfig @@ -1 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" #include "Generated.xcconfig" diff --git a/pkgs/objective_c/example/ios/Podfile b/pkgs/objective_c/example/ios/Podfile new file mode 100644 index 000000000..d97f17e22 --- /dev/null +++ b/pkgs/objective_c/example/ios/Podfile @@ -0,0 +1,44 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '12.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj b/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj index ccf29221f..8f49bdf9e 100644 --- a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj +++ b/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj @@ -7,9 +7,11 @@ objects = { /* Begin PBXBuildFile section */ + 0016C0D0D056FCD78A6A33E8 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5349C2B3D454EF3220FB3306 /* Pods_RunnerTests.framework */; }; 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 4D7C7CB911925A31801A2F1E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B910B6B0374F2338E70D6AC /* Pods_Runner.framework */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; @@ -40,11 +42,16 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 0B910B6B0374F2338E70D6AC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 5349C2B3D454EF3220FB3306 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 5898EAFA36C90FEB069D15C8 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; + 5E623BDE574BD3F02055F373 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; + 6F2BCFFFCABF2D8A79F17D26 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; @@ -55,6 +62,9 @@ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B6F1E5A6A7CC24D81665E0BA /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + F794A460162AE19694C18D43 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; + FFB0D24362152330E942673E /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -62,12 +72,30 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 4D7C7CB911925A31801A2F1E /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B209388E6951AC88C18EE569 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0016C0D0D056FCD78A6A33E8 /* Pods_RunnerTests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 2961EE994295B641DF59D533 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 0B910B6B0374F2338E70D6AC /* Pods_Runner.framework */, + 5349C2B3D454EF3220FB3306 /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; 331C8082294A63A400263BE5 /* RunnerTests */ = { isa = PBXGroup; children = ( @@ -94,6 +122,8 @@ 97C146F01CF9000F007C117D /* Runner */, 97C146EF1CF9000F007C117D /* Products */, 331C8082294A63A400263BE5 /* RunnerTests */, + 97F4D88CC18AF014179906AC /* Pods */, + 2961EE994295B641DF59D533 /* Frameworks */, ); sourceTree = ""; }; @@ -121,6 +151,20 @@ path = Runner; sourceTree = ""; }; + 97F4D88CC18AF014179906AC /* Pods */ = { + isa = PBXGroup; + children = ( + FFB0D24362152330E942673E /* Pods-Runner.debug.xcconfig */, + 6F2BCFFFCABF2D8A79F17D26 /* Pods-Runner.release.xcconfig */, + B6F1E5A6A7CC24D81665E0BA /* Pods-Runner.profile.xcconfig */, + 5E623BDE574BD3F02055F373 /* Pods-RunnerTests.debug.xcconfig */, + F794A460162AE19694C18D43 /* Pods-RunnerTests.release.xcconfig */, + 5898EAFA36C90FEB069D15C8 /* Pods-RunnerTests.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -128,8 +172,10 @@ isa = PBXNativeTarget; buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; buildPhases = ( + 11218719EF64897AFE1F9EE8 /* [CP] Check Pods Manifest.lock */, 331C807D294A63A400263BE5 /* Sources */, 331C807F294A63A400263BE5 /* Resources */, + B209388E6951AC88C18EE569 /* Frameworks */, ); buildRules = ( ); @@ -145,12 +191,14 @@ isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( + E0D32FA7EF8A23FC0FD30465 /* [CP] Check Pods Manifest.lock */, 9740EEB61CF901F6004384FC /* Run Script */, 97C146EA1CF9000F007C117D /* Sources */, 97C146EB1CF9000F007C117D /* Frameworks */, 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + 98CA06E4ED3E0BFB8A3C613F /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -222,6 +270,28 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ + 11218719EF64897AFE1F9EE8 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; alwaysOutOfDate = 1; @@ -253,6 +323,45 @@ shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; }; + 98CA06E4ED3E0BFB8A3C613F /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + E0D32FA7EF8A23FC0FD30465 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -346,7 +455,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -362,14 +471,13 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = SGAF77B4L2; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = "objective-c.example"; + PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; @@ -379,13 +487,14 @@ }; 331C8088294A63A400263BE5 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 5E623BDE574BD3F02055F373 /* Pods-RunnerTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -396,13 +505,14 @@ }; 331C8089294A63A400263BE5 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = F794A460162AE19694C18D43 /* Pods-RunnerTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -411,13 +521,14 @@ }; 331C808A294A63A400263BE5 /* Profile */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 5898EAFA36C90FEB069D15C8 /* Pods-RunnerTests.profile.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.example.example.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -473,7 +584,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -524,7 +635,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -542,14 +653,13 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = SGAF77B4L2; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = "objective-c.example"; + PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -565,14 +675,13 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = SGAF77B4L2; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = "objective-c.example"; + PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; diff --git a/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index e3773d42e..8e3ca5dfe 100644 --- a/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -26,7 +26,6 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit" shouldUseLaunchSchemeArgsEnv = "YES"> diff --git a/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata index 1d526a16e..21a3cc14c 100644 --- a/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata +++ b/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -4,4 +4,7 @@ + + diff --git a/pkgs/objective_c/example/ios/Runner/Info.plist b/pkgs/objective_c/example/ios/Runner/Info.plist index f15383a85..8bbbc6dc9 100644 --- a/pkgs/objective_c/example/ios/Runner/Info.plist +++ b/pkgs/objective_c/example/ios/Runner/Info.plist @@ -2,12 +2,10 @@ - CADisableMinimumFrameDurationOnPhone - CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName - Example + Objective C CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -15,7 +13,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - example + objective_c_example CFBundlePackageType APPL CFBundleShortVersionString @@ -26,8 +24,6 @@ $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS - UIApplicationSupportsIndirectInputEvents - UILaunchStoryboardName LaunchScreen UIMainStoryboardFile @@ -45,5 +41,9 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + diff --git a/pkgs/objective_c/example/lib/main.dart b/pkgs/objective_c/example/lib/main.dart index 27ae28dd5..1c2d1d35b 100644 --- a/pkgs/objective_c/example/lib/main.dart +++ b/pkgs/objective_c/example/lib/main.dart @@ -1,4 +1,4 @@ -// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. diff --git a/pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig b/pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 000000000..4b81f9b2d --- /dev/null +++ b/pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig b/pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 000000000..5caa9d157 --- /dev/null +++ b/pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/pkgs/objective_c/example/macos/Podfile b/pkgs/objective_c/example/macos/Podfile new file mode 100644 index 000000000..c795730db --- /dev/null +++ b/pkgs/objective_c/example/macos/Podfile @@ -0,0 +1,43 @@ +platform :osx, '10.14' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_macos_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_macos_build_settings(target) + end +end diff --git a/pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj b/pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 000000000..7fb6863fb --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,801 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + 5C3BF24AE85F5C730B12E1C3 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76CD4A3B26D45B1D35ED40BC /* Pods_Runner.framework */; }; + 98677E5D0F050EAF7F207C67 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A9FB1952D96C5AEFCA4D69B /* Pods_RunnerTests.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 253A21F847FB1AF244672D0E /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* objective_c_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = objective_c_example.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 6A9FB1952D96C5AEFCA4D69B /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 76CD4A3B26D45B1D35ED40BC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + AC25B0021603A0772CA9840F /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; + E5900647B1760244CA95C2A6 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + E739196F186306D59FB11177 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + ECD2E4ECDB0FCE6DA971A318 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; + EE079268A4FB02480F3FCA89 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 331C80D2294CF70F00263BE5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 98677E5D0F050EAF7F207C67 /* Pods_RunnerTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5C3BF24AE85F5C730B12E1C3 /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C80D6294CF71000263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C80D7294CF71000263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 331C80D6294CF71000263BE5 /* RunnerTests */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + 96BE0B041091E6177B65072F /* Pods */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* objective_c_example.app */, + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + 96BE0B041091E6177B65072F /* Pods */ = { + isa = PBXGroup; + children = ( + EE079268A4FB02480F3FCA89 /* Pods-Runner.debug.xcconfig */, + E739196F186306D59FB11177 /* Pods-Runner.release.xcconfig */, + E5900647B1760244CA95C2A6 /* Pods-Runner.profile.xcconfig */, + ECD2E4ECDB0FCE6DA971A318 /* Pods-RunnerTests.debug.xcconfig */, + AC25B0021603A0772CA9840F /* Pods-RunnerTests.release.xcconfig */, + 253A21F847FB1AF244672D0E /* Pods-RunnerTests.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 76CD4A3B26D45B1D35ED40BC /* Pods_Runner.framework */, + 6A9FB1952D96C5AEFCA4D69B /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C80D4294CF70F00263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + DD8A915821E91B2D640F20A1 /* [CP] Check Pods Manifest.lock */, + 331C80D1294CF70F00263BE5 /* Sources */, + 331C80D2294CF70F00263BE5 /* Frameworks */, + 331C80D3294CF70F00263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C80DA294CF71000263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + FF16D30B988DB2BCD781BB14 /* [CP] Check Pods Manifest.lock */, + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + 774CDE4872C6F2C91B1264E0 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* objective_c_example.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C80D4294CF70F00263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 33CC10EC2044A3C60003C045; + }; + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 331C80D4294CF70F00263BE5 /* RunnerTests */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C80D3294CF70F00263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; + }; + 774CDE4872C6F2C91B1264E0 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + DD8A915821E91B2D640F20A1 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + FF16D30B988DB2BCD781BB14 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C80D1294CF70F00263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; + }; + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 331C80DB294CF71000263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = ECD2E4ECDB0FCE6DA971A318 /* Pods-RunnerTests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/objective_c_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/objective_c_example"; + }; + name = Debug; + }; + 331C80DC294CF71000263BE5 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = AC25B0021603A0772CA9840F /* Pods-RunnerTests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/objective_c_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/objective_c_example"; + }; + name = Release; + }; + 331C80DD294CF71000263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 253A21F847FB1AF244672D0E /* Pods-RunnerTests.profile.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/objective_c_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/objective_c_example"; + }; + name = Profile; + }; + 338D0CE9231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Profile; + }; + 338D0CEA231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Profile; + }; + 338D0CEB231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 33CC10F92044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 33CC10FA2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 33CC10FC2044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 33CC10FD2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 33CC111C2044C6BA0003C045 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 33CC111D2044C6BA0003C045 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C80DB294CF71000263BE5 /* Debug */, + 331C80DC294CF71000263BE5 /* Release */, + 331C80DD294CF71000263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug */, + 33CC10FA2044A3C60003C045 /* Release */, + 338D0CE9231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug */, + 33CC10FD2044A3C60003C045 /* Release */, + 338D0CEA231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug */, + 33CC111D2044C6BA0003C045 /* Release */, + 338D0CEB231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 000000000..c87f47847 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..21a3cc14c --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/pkgs/objective_c/example/macos/Runner/AppDelegate.swift b/pkgs/objective_c/example/macos/Runner/AppDelegate.swift new file mode 100644 index 000000000..b3c176141 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import Cocoa +import FlutterMacOS + +@main +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } +} diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..a2ec33f19 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png new file mode 100644 index 0000000000000000000000000000000000000000..82b6f9d9a33e198f5747104729e1fcef999772a5 GIT binary patch literal 102994 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ⅅ8MglG&ER{i5lN315cO?EdHNLrg? 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 z zKpxF`G*X(YOz2^@7i#D+s-~A1E;3&x%%qL5hkiy^JhYjJ74{hvVmAx*6BH`M`!qGC zO9pjEsR)A-n1`6KLACSL%FS_Kcm+?4*z-V?WAZPs?RkzoijIr~I+oh1^~T`q^dCFvG$Gbd8AnTYBjLKYUmayaQz#S1le7Q^Hyr#;X&h*1wDpm+gZC!rSKom zq|+o&UGpeXtlQ1;?@JukKG!8PGS1Io0z6O}ZeL&DsON^I0K+>Mxv#ohK+;ByAZ`Eb z2orY{j0Pa3edA(#-pJA0AaJ6h& z81Gl(pd#j~mrizktoid14K5ig7u8FvZmLLP%l@dl05IprCyqDB?mA2fc*6UB+49lb zZ8`V9epdo=OeZoiY%zw-w`8DNwTORV_>>3T{r)1-YsGSo0E2s>tix9OBqKFBjg#}G z`pgkCblKMYs!Z)r^(qT_c+}gLhR|gnq!1~Qr|~kt&2@_yswx{i$KEn`8J1W8BGljl zr@GEG#W(s#AKKyuqLp+cl1C}7%`m#-!$15XF{M(M*-fD%+i#mFbP35jlgN3{8#A-dmj&OQtG)!031jTwGMal=&YtPfq2AUWekP9J-JT(p099!L`+yen$ zVH1?kRrhV7(mGKkm_jPP_U@Xd;x=ppk}4WY0Rbr> z0MJM_;$GGxL*P68y%KBqHntF{>X&<{aeI4m6+{TQ%~Zp}v%Pujr)zg5mV;cFKqeA- zQm5`#Sd{B6Rc*4PS-rO(vf>YEdXmOK?>K@`L5}|9q}#t_IE%g+U<-1qw3mr5&v;2A zCQ}BEn9_u;;>n5N#dP0RhCF-_UplC+U(i~Zjh>U5+b8%@p3HK(R*IMQwE!uritb}< zF)AK2?+0@-aE3LYkg`B*&N&m~JWB9>(Z>`aqRwgioU)0w{U1K4?>-#i|ZfhNa9hV)2)(%ch zJMH1twoeZWwkE@I!dz$ma+;9GeACv>Ncupl@+gBSeU_uzfj!$+h&@EACkZG_vwLGA z(?^;rcJu1$5H~xI@6lHIYC-$+b&hF1p`AoAOKqw{t0Fu#X`OGt$)7Q!nmJ=&)xjq@ zHoxT4pcYKSPT5(4yzIuQ^S*N2NJpR4v0?rB-^JuaXNLis?E(l>Jo8mUw(gsFLLOy? zEszHWGaCn|lw$LSwoj{G7Uq(zK0W^VVWu#ms8BMRlF2z%-g`fOXmndgC(na8fc)s` zz$GAoxP+l|+T_S4$r1sLwkV77ew1Gug*`|HiE*?FGLm1q; z^p0A0eqqbmk3?|!CB9DBN1Zof6d7+ zJSn!`VD~tVaqy<*Mw^8dM5v3Bvj2VdVFb=)U3L2eDM3@>n(P z?Rr_=I17+r4fE{>1LBQG0&o97nef67n-aNnVP<{dd6*B!Q344 zZbsAof&jw+;CLeK2d87t9s~YZ5?6Qwf&{NPEBN+)LbjOcZRXNcR&h)x`TtdpI+b!>$E~h0o1L*2OddpR9!Gw~-E^Cj(7i69S<66ak$)AYMv|xG+;uR(`;h zGIV3}?+Qxdjz)s;s}jHY{JPmeo@-tN$H@hxaV@)}K?y~ts~E6H(F|SlsN5oH8g7*h zGiC!8c1doE3U|D}Vul1yPmXuCk*hmyU4MG2ml#V0+(G5I+`L_=3cD$%$I=@*8m-LU-!fn&-sZO1%ls63+w}AiAK`Jv z>`q~ztr&&(gCkFpci+*1Ekdv*MhBCzGfPBj9dM|YEjZk(tWBuz4?MGeq+*)t>Q=z6UXF_w z{QDUT4^JQ8J%hW;d2xGB>Fl4Y-bRT!ttP2GE5jYoI1e(eVK0&V5W+>zludt=nf|UN zi1IV;MK$Fy%$yw<oGeW?JIGjmfGLH$Y;l|T0p1V!N*Jvu zHSAG0WpwPip0vm7%VRq8$2O2>P5b!WBfTz*6dZ4Wd6O9Y(8A;nOuG((y?F`ac_u2( z#~17CoTK)1G<~~Z4jXlout{e&nZbDHyHf(=a?OtaJ(2Q(!g#)Ugw-QQ?A?mN#yN%T zBtJ`sA6Lpg`k>Pi8a7GssiY$eG0Be8LCoQL{GDqi-;j0pLmT!Z)szldvbN7GVcu*S zzb1rEq|M)1qa7rM*I8!<#w7FnQ?{v^? z0`MlS3+`#ZB5$DT4+`7e-Hlp_2G0`*F@STbRJ|!tk3cC~1T%NR-p4s=sTT+RqsMjF zyrp-Jv?CD4Y3N&Zb1gr=%`MFR8;|r)uxQ6*X{OpEhQ~+tu}^n8Wijiy`pSMw0uKNi zSNX^Z1y;WirM0o_x%zft0U2GcLm_2BS`b{Z>g|9VOVr%QF*R?pTpiJsEbj4jLVAyd zTA;x15=f~b0^(e*Vo;Tn;WTJSxpI9LmL($Lxob<^S!k7mGhnnVNnAC*g!$ms0#Q|q zs=25I0<>fUw_&+KU`}5P9wlmjRWdMYh%Np6n?AAHQ;JzG?s(Z9UR`pNh79Nzk~DF+ zX~jy>>f-2bl?drlM8 z3NfIQnrT@pLmv+QA6efWPv!sqe;mh3_RcOj5>Ya;4hhN13dtx*_TJ-=kX_kZQDkPz zIw}#e_dK%au@1*L&iUP^cfH?zf1iK)tHv=t|>-9mMT!;;Vg|svSzWkN7q#t$c4N$Q;tl3EYwef_4q>GO<#I89VhY;`X*hz$n*GZ%f+;uViG z?uLlxD1OIeid}0r9%Ssoc7@vJjZIsZlU9zvYpjhYiOrzD5sq3OC zpf-X;Nb!DLpxqX^zDIK%=46-Z3%i-bac`RIBS5*wcw5Pu>G|kF>TQP$dGRYh#1hwD z{|cbbTOKL>Gb1-;X6?vWLC+KJ_^Ij?KzJ7eZ?^8XNgoYU9^z&>d zsIjX*uOK`#Wu!`>L@y!=XpQcW+mBaRjm|XrB@etLdr}Ob57e7EkE;7a*t7=M#XFL6 za;KHHk-rBNTjp-gS^;ehKNv>K>+_jPQ45J%4><1HyKJ?;T9#~k_23?xD}B&@Wp{%H z($hU+nWR?g!9dsJkgVz(J_Yrdns+m~9V_gQ7Sb`&F4wZZ!k}##j$>O{4{?avCbCZfyW zO$)m7LE=P?$CXHDU_RUD+sYwT;nKI7 zSs_XTv!BuxpJ!7(b~uYfsgzt~mj5(vf2r~`LHwpePs!o2A3zEr@#sxo8HEe8>V||d zBiz0@e&6}p*}!6jsm}I0bN9Mc2(c#jg@;Nu6!Kv&4&P8-UcQ-00WJIO%4OuUn;^jU z;I3r=T3KQtiMQ7&x32eVtB`mCe)9ws^7u%2P`B%Xc}=Qc&O^{FmS^{~Rho}^s`B+H z=1_T);9LRK?{$Vx22!5m)Er8aoPOA8&{7fyt`t@~Vw%gtx~+g3qs8LFR%(2Uny28A6dFYnNQgcUa>Sq=%alFh&8#@1o_qgwve* zVFimnUtL{4aHP6s?FB%bu2SP=e*VGqXC8iuZ-JOc{5%Lx0g|VvyWkdh&FD^Gkc!0N zhoolXvp6GC8wj?Y+V;r*EN+<1ac`-+!8Mqb@Nz)=OqV?4gxhR^t7*+^+AfxxVt(n{ z+fkk|-xSGqmkZa@Q%`;;r`-Z|? z0fR6b@l%pTwK*@xY+(MwBUwf^z+F*~piC64BWTrz}-HS1-XF-IA%?Zs_#F8 zcmUuEZ6Of>YIJOe$&{V;3vIBw7|jSGPeS6cvTMdj96Y~pI-z7InGW;(DhFqaiTTO9@KWvQi9__j0btLZ9 zAa~-Po%^sDFfme4@Yiq}r`BgnYK2eTwCjg9_zC4V{{&_GTm-!qHGVR6JXDjw;}GzF z6lXA{xo1+tQM{9vwb1&sRXPdGDHbEMbnwh}t+%tvcw5p4J4r#hEpDl=A{;Mjc%0)T zsG}v<$^HhdcE)5IJ^iBWK{7?Zn)vb%c!5eIj4 zbT}CGO*u)Od@^LuIC@_2{=AP2-O99NglFudj{!T}0e8wtTQcB@F9QW6$J!0Ye`T+U zXDx84b$!hD#4YzSyZLy~!IIZuFa3%eU zG4eg5?}sZ6Yj29P^-PcXG*8%VzLL$0!oL?c(!oQ+G!kORsa+lsf5YER>PX83R4LgF zgPNQJ#Bo#)MXU%J9k?RWD;c>|as5b5p>xAwau=X5XbERX`_ZHB8_XSNDe`s?n(e>) zGF$G%n6o+W{6A-@4hsIK0*J%jpB#Y*G^B48eQD(CDZR5oBl-P=)r7fH^PLf?!aK6V zwkIM35?l*I6p@;^H}JIDNs-fF*IFN?k?kj(M)QKM%%?dSkf1d$Nly2z(>)oq8z}0H zH?Qa{x&36#W@y04!9zx@x7un@ob$&)V8#f~0n1|jF0kFs4aZ{ND1~QjWHToIY5)LY zrgKDCj@dFCx&-w$QMi=CqD*=`$NqC~2k366pPXl#>Y7A=iQD}f`)+B-pS@LIW_M?9 zlBS_)(vGz!L$#P`?<3Hvonw@B1uJ244y)M?0)z0-hq++sJ0GZ+{oiiH;lFi&wy(C! z0Bv9z^M;`4@)USP)7dhg@K5K&U&|7&-@I0Sk>I+ZH75_xEn>qh9qmc%aA@NEKBsVBgUuK zC=b{w-0oU|)~tAVI zyJ3BAB}%rsjz7qZ?x_XCWe6!_u-{e_3u68Asso0IvwKdxq1lN#%4w>J zi>}P;$JZ>58(ZAjsmSJl6BWUTe`0eGEf3f_yS#H6vx;UJWO7CCK!{)4C}`C$j5gNj|k znb$4QRurEE3tPEe!JzG-a0DmvXePO zSD#Q-qOAjTMm|=aBSnvwHoEbgyVIz@J$hT*legak-hhb}e#%cm2$nR2 zV9A{kc)WT$np=5coPQIskbGMO@Fn2NxPv$@SJZdG6}jV;+%(cH+*RFQ(+DjsJlman zy`D(yN?8MCtjWD3w}Q|jQccb$}BDW%M$zZZnri2+5ls)@@(wQD`jt_GpTKL_^CO&SSCcHbfMX#JXYFI^*947 zPh&S-G=l*C@`E5CU1$m7ao(Q&oSmY7)ZZ#5_fEyYzLsFJwJ%GfErFeRN@7lUbUrL| z$6;gQSNsI91LJvT+$Zb0>g<4g8T{B!U05lfKmoSRH^pB^^8sJ3{8PzVq0NeypMF5k zU3qOqksdq{>AUjm3O~dZx^vS6C$ldgCWszl?xd8-sJ;-kPnISB*-f=L*8XggOx$?u zg%B-QovSjBbj}%sShZv~r?`*6PiiQW;nee<-=+y4}S#}q_BgXIJoSOf$YbE7vXt4;Np zrKzZf6Ny0aES8(-cqmnIGMg&ieYWryBZ0VTB=4<*@auP4NdIk&q(Mt(OLPm|Yl za!0OpC9sA#tk>OsaCSx0;!$5r6naw ztzLBo>#LKaxxsO=yWe%yGilL`A|6E#TK! z+1VRQlo*D?(k0-mlRM+`OMT8kVB*-%ZGv}Aj1u^j!wu*~>L<-T+u?6sX!3C}lQte- zk(6_=iwXsQ0JbRvJDwMnk!c99w~s~uD_4vMB=m~-ft-*|z~$*g4g;pgG~Ap1m@@Fx zWS)8IKSN6`^vVQ8hv^Oc+O(Rt7!U%wVsGP+Y6fyS%GG+v+dIdVfCXPzAV~~li+3m5 ztFQmbE)(#2#Oi@k$1#zUS6ijD_yYsa{+BHZAw+^zAEI3bc(h0qm?|pNf?oS}Km#OG zrOfCKn_-CVO;}DXu|5YE#d8I2o>}vUxYlv&>=+I28WY>a1;uI)HUM_IvpF;Ln4ROT zf!=1rpKihNFUo=R@sD-pT!EOm%%ncl43f;aem^;|A#s3`b6vjeAzO!M-gwc`-Kj~{ zBX)tq64*kJl#TrgW4o%hTY3x$P01nD6a6s2#MmwM$vyX5PU|YngU*wXGK*?f?#Eg$~^OWW3I@of-=XVuu-b%A1Z|nqY_2 z;~jD&=QnB#WGU>;RwFq(I< z34K1fCMwf9F}G%k(&?~2EY&)W*-_z0ReS$;7+I1)zz`)M zpAF{5ZHLPMJhYU z;GE*@hM1NM{G{L94dL$!Y-h6A9K9W=I6AYb`Y=v{(tpyLQz^^Aibea(q()R*TU|-m zozpyr!|-BZ_Dn+$*2|vq2Y@ghHo!-`WjVtU-bab(SJp2*2i-}$UP9^qnF_OIFS~-< zYj^VS!)Wu}vn6!LDIt!HJ1SU-@ce>z8f4cT4R9V@O^Xg9)4`VpjsXm*~@%l^Ux;Rf#Zck`BNXu0Y(!C zj%Z}UAmD00nsOS%Uull)dU(fZgJ$bo>3Oa`8h~Wt)EM?v(ndlTS1p0|E9Pg>=&>58 zghD~%R;YpqZAw;F;M(lx5b_wkVbnd+ER+6A-SYj^1XUgNGn0I~ES|f|5emjyPIW)S z0z8i6)BZt&h(qQxih4HbFYa6~jyeKbc_`QEdLD@9SBGButjw|b^l*oQjDk<7Nig08IK zb`ATVGzK%LP+>9aFM0hr8t+m`uNr?h&8o3Rp$T&ql||K}7GgobFhCViaDH~+F#yC- zt>7T3&_PZ*feTKTyd6vlF~JmEA1f+*>CCE4ex}5N^$4o)YuxX&3T$P0(IS!+kan^J z_p>v#1J8bWELml|S02YAQe-&yVew+kipZr~H-I@yc$=8#rZ-8L<_nDx&Qv3dJDwUX z!)@=h1`~R2M{$J8bM^1O&Gy2oxe1T;K?NA{iv_eYuhpLyc3%xu%z`dVc}Z}%cHGHQ<7P!Q|e?dwnSpL!AUf!B^!?#^Q#W!Ry+7ofwPZ1mZq z(Id0{htmX1W?2cAYWZo_lOtT#+Us-nlP$=CGK|Ri4x0Xh>(|iN9y1 z=9y26A4Y}ViRi9Fxzm{>J`YM>GX1D|$4BY9xJrY{oY2~Z&};B{Zq9Pp!pox`8e#0C z-h~@fohA74(#ws!{7kIe4v6XUX<)9bd)g66Bz%^Y4p0~OF+rY;l$v&7T<3~4y!bv> zR$r#LblZcVgy2lq!ff+>yuR4qCcljQa03x|dTcG7`CHcxh#POtGKt6ymNd_0qF7Wf zBj_KC8{jl!zZ>0neDp19n3sD?HC=|WM3!}cK4zCnu6Uoj*hbV1<#F2BD)@A~y%@VXx+u}Hcn=_s-({PxzmMZ^xJ1SV zoZMY*FarYvO_@z8Lr2ep)%HgIL7rhYa~#X&&V8oYSw zA4m{3{hw1Vb~~26K^xro&e7i9eg^SqK0i}kG3z(!_~E?sjJlSWIWXJqKiHAWTG*SpPcCMD`kEc1gx`R^YkYWz zEN4vEIkj@&e4tC!(_~x`-K$w6CU%X7U2Y z)Y}T5stEyoSsB{H{+xfST3tov~6@lO}2gx#N(rHXiOAHT!dp6FiV8V)B4{L_P_% zmX0rPa^-{1xG6|#uEGo+!v)QAOjRe|jg2ICcXU!|Cr+LMbLHlhJ)ErR*P9*z$NLlt zmYjAUbljq004ZyOco?HJovV7M*Wb2nF8vT2D;3kGi%F)6Kr#TVW>}zTHnUQxoGmD0CY9J`|d%8@}n;_co2q zWr98`R_c@PQbMi}x3bWo4XZj{it6qYj+o*XvNoS4>rF;7WNn;vA*|A!3H}Wh-uk@n z*hV0S+XnX;K;BOoz?&*9_{NnM25s4^^QUt|>R!()^Z6#G3OmL{CU^-IG_M7_a~B+& zCrV;ouC1ljbK(K=ygqAE_-}ewnH2&&t0enS7}I4i0wJgNvCf|P$`|DHku`K`HfDa2=n@DCg8MRi_)vpMR2Mxy4PE2Qe! zD||kNXy=0WeU(43v%md9Hg9Zu#CP%d%C67gk_#pfXs8lf>M=betm(}0fdDKq0{26# z_c?J!Cgo-~*=wswLXkR|W8d+rDdV00`22Ouv=_Hod9bmB!=D$I4r@7DZX7e+0tO!9 zR{0d}A6^K#yRx@ykotO4(WUJsmFvN)d-o-wZ(wcDSUS`8jO-JSAMa4y@MK4fDP`(P zzxQ2})ofiauWKj9{Rm$Yw^?g=?`oO(Vf|T^I+-A+o1#F`>tn59d=FtgVJAV=y;G&` z0GMvtEeil5;e$Ln8-41(UeMl2kYLk%vPl?0+Egg_;g)494o5FsvdeZKP;&&fjw7o{ z|B+e%Z|)8Ts?=>@p|hr!nYXgV=ZjI4Cp#$E>+g^6r7Nd3<>-t=G%B5IyZUI{e{49G zqnIXEB=M@5Ndf1J#l5YWcLG=A4ufF8S{z5Kz-uM?Ni{{%mr);=l0=473h#cIc{K3> zZ-VUw_Ng5^HgWQhs5tQU@qv-YBej9`R$a^|lknX<*+sSVXue8M0#EPBJ6_Liwl*8l z_zoD#!l%WIXJZ$jm?|zUu0LdeP&8IW*(|39&QzKGnem$6--u{ZGtHt#Hro*h)?lu zXGKo-4Hv1WP*VLj;uA6UwGSV*6ro%PRbwR{@tXoCOb=OFTB4ru-|Id!rP5Y6LF*-D zy|t0qDSVPo$ffyoj#CIZV?l3VsPRYye$F^xxv~Z78_fwlCWbwW!nYCR2nx0_+@tg3C_UDMVa2Br=X3hfP}^Cp4Yg=#OK}K zKYVY`V9jEKD!UrCbSX6Xym2T-cg}!n;?;o{mM|zWj0P@D|FO-rQ zKt#ApEh#AX%_f%9!G6`I*K=bSnMIhQ%W5&BOMntzVr*eS;WR;FgM)+k`#+Vze*z&V zkU^I-R|!Nwy<~>eeQ~hJqa2|DdpX15kD=6U73Du;T|VarycBP^n#IZeIJ&H3S9#@oec~poZELqX$DAc>XZyuIqd^GK0Jq~0kI=d zA7gMo8%zmkEdnqMh)tkp?V0I;Tm3`>aU3^~dXw zlhdd3=iygnUgYu#GRhxln}4D?Gokczq?T;RjCk0=fUHy18$lt!-q!%sNxee7No^+N$9d?Es*``)0UJ4SC&FNY0pf z_MlbGdUy$|F}YDvJ9GTCkZbsNKj3DL5;=BGBx8xI;n)=A0d0j6MP7Mi6MQdk@Tux2Qy`oI_&*%EQ0bE?|R>P$rDhcFa8O?JIK zPOpFDa?-L*+Q7RrCg#y5z$l0d>n@+OYo3g>-Z*x&`Jj5|=*UOYaJer6;FAbdtt0O? zrFGUE?!XeUG}G8wMgeTs%+r;3uUU;Nq5EuU{h-g&UOBKhdS`;J=m!~xn*ztv_p@dD zR)tR!P=~5kX)FRsx9)uyuu?0dh%Ht7`PTM@e#Cq!z2ts;O;L)tQ1ipDiWqbGz@o_p z^D=UKR#`S7HAt4vQtD(_SeWyj_av~#tJKlb9>-s5Ykuzx_E1ZNl4)~f=zG$*;-y=T z2ozmFva9az<{2&63fQ?(Q8{IPx@t1LuFcxP-LXVctWh3AwazVTt2)w^*Zn-#eB`bD zSHoAusjOBK5(>uQPGj=ijdOH3jqG?(<5#C{*JQ?Lt~@zow=Ii4Al$Vr!#+Cf-gx)A z`_h(>b@7?*6bYM8%628gGW^rwWoG$mK_eCk`}B&llStfwHf12*{5spmTeNH$4{gCY z@Yuwr*k@%m;T<60bw9z6^WpWi@Bu^qe-g;YAzI+VjgsuZaGA=^G*I{KLy@rIjSpWb zFQNsCp2T;S$VaJtZ<(waRu8y7^X;>YhsWp zM)mKgCeE@K;J4vQSV z&-(Gl5AJCp>K*2-`U|4i;u3p8xo6(isu-38>cY zml1Eo&FBBKJpour?}q&nggpFiGM%m+YX`ng8P+uRnJiMyWcv*_AZ8KAB$w;rfmN8C z<-2EB6TqZO>A~P{*<);wYqZgxQS8E*syOXvGkGxF@s(scud0uv?T)fQ z(DGrwM7lvpitUG~6!*}kZUpBn9PuP`5^nMK@($xI^0Q~axP5qU>L~uF{R_<9&m z({}$$WuD1y-QzMVb3jLPk`~bDJNkw(Dv-6cKUb4uzD= z-w?i0NZ2K}AbT}Zi^uOZ32xmSxJw+6(3j%a!~Tdy-@RxVx6YUw2|V6JX+mSJNclfl zF~SD#eo+lnB=ZpHLl{)E+`sI^-V1Vn!6#Ml_W4aH*Pe(++sNI`M=5L3?X1z0;CJeE zJiX5Mp6JH*=R9W0t(1@>>1y=lP^F=yJil6JxU~I}EpTsBx?rJ5LbCbQ zuLBmmX1MO&!E}khx=+#hCesIB53`IWwqyFtR{AUv7vJ{Q^dn1S0@*^UOmRwctFy&> zd={(J@avBzmu$MbyamRMt_$kfHY<*v)%%&nY4hUDH=$k)$8LHlUG0G3Kv#T~-vQjw z)hXbsNIg?~b-jRw)ir5Q(gfwM+Zk+0haf z+4ER%>T8RnKAoJ-(s&tu&-iZ@A?^J|d z6md=9C4am*v2r=aa&a?~37bc($n#wQ<8UGXL+!RtrRXGSj-2INJ#+3J=}e6nOC}G8 zN~lvCS@rxoq7w$CLg-wx!%V%ymw>~xhUw4cADX*$A}D~{21F$!Y61aHwpdL!QcrsN zl~$s5kk%7HWHkZ43%mOcwlk3RcbKGQ*}K(Fxput)rpE0zH0vY(EyY=blQZ`odG#hD z)~{&r6XkSE(^csqsaMm>2c%xsT2&g_Nab1bTY%fIoNHatDY@C@Ei~v@19|F?szU6SWRS)uDXqNY!48RlAb;S*ijqus; zp;bteR835>3BXML2CewOM<^q3M*ubU`}gnI-oS&(vf=GF|JJB-inGOH_dc1xb|iqR zWgrcNy?1*8)vAlAaiBE%K3Q>5Ygy-#Wf$>FqL|Kvgb&6H?iQC*Z|PN)xZJhH#d#=a z@s9O0oea6Lg}submzNZ{iZ*_okZ$6G*h5YO!dE=7c4=YA9g$y%1xjkVl#|1DShEjM zH3(sS?uRfB3mhW5Wrm} zrY>KpBxM&CC;s5Ie_{o}upN{vdb8x<_$5iiQN49`z`+Zz`&E`yLAim;X&}$HAfKmT zkO2Dgdno95mWMH~h2c4);H=MigT8hyzl|4g;dU7F;p^X>w!fa0zf{^rf?>~ z0w{=F_R}ru{g5i@&xwC%R-!-1x|(k6pSb5_)$f`zyErIvSCs{z`iVvU4x_znFKti!!av6BkRX_=+kEc;*`_rla zB`g4ruCJGT3XVTTrlh3Yj>1>PNIy?sV%Yo*=qaBIOY87_?P04yx6TV?_{~K? zOHEo3|2EA2JAMPYZM!H<{|!s-$r>l5{19icxV`Wf-{<0I>{v&H4FZaCy$B6Ludz{v zRH!!HV#JGP?5(L!Zp#}NlOODgWqjO+yo~+LasPYxH+ht2KjdfCFQr(oovP3?vkFK^5FvPJ4^LD=DpYQi4tUXuY1;erJaBQ79 zHcp(>mKvoD+)bq5SX9siR>(%CL??*D>Snn%p}NfGO4(RY^puLI+j$Pw)NZLb5bKo{s|0L~ z-A3R~;QHMg0bHSgESOM&N&@oF4|8gkPF-nVM=sQ;d}wcS{{!iW-)yQ``D6t#xlh(O zRF0Z@O>0uMz9g)u{P))ptV5lH2(gC8I5i(FDRG5Gp1bgBydKgxJy5gBfK(#D7NzZU zatG}S^z#KL*Do5=K*F7hk(`mbdgI1XoM!8*-};#UzNtEG@Nki#`7)GfV;VlfW^)=` zBaAjK5>gx@wf_D!B!2C6xBK^K4%x|+#?P@5N7tlfWo6xWJD~Wz^cnPfFF($Ixt4!j z9%x^1$on56XZB0Irm^kw-*rd1YVO;(*LbB21@7OPJspo%WO676#~oUMws(zP#+shG+$ns0IC3W z_{kYU>N5<_6=j>*0d}r-?8U+--eXfy2M+opoYL|=I932TMp=&k#tzJ^72OtRJ8BVOvTYPh;@EE=LJLeOk`y?d|Dd9%fWlhON^LnB^6x0LyZqz@imyogJ`$C@Lr9Z4o)ZQz>NCavG$$@e2#r3 z4I=}I5KgV>wl)~_Ja7gLQGju0c1{h%cV&6c`doWWv$>q*=ZLc8J{hBiKXNK?zx2Nr zz!pph;BLU2OaZTv>Pzj(VpSp2&OWNCF<~>NgL!nezhxEgj;&2 zl>z@V#>sykFCnFL?|(j)J3SFr|FFa`n@KbhC2pZB7 z#3>qIn&~mG_Vki=p8_x&CFeD4V7MvgJlk^G7H;(apFxr+7Gc0+1KfI6$@aeF+d7DJ~_-A|H=0?Da#&^Cqb=!=fVz>giW5nw=jWQBS%L^t1EZ@ zCm9;qlG{($@0W3T&l17ownc5pWhfM8Mwn-fLtb7H|IYl)8@QikEc_Le+s60x?&B*m z5kObB5{BD}gGr7l84~vP{N)C~3V;xhBWd%=^j0&KBw3T3-HU`;hqWA3OWW~<8nl-M zfYn-BI0_?g`3$_;&Exw<(G{QM|8)Kq28x9NF-F$>r@_BO)t^T*i-U1bX01<)zC_uE zR@8qEQQ#cm$YbXIUPVO?z7KI$pw@r=-V{V@>dC9Hn==1QBVy_b;#*jR+&f*$AwCl?o&G?2Uk4=*Ej zFK^Yvw*HTO9n!XRBWe++o3)4O!OC9PC=_l_<$M(W8(Akk`zv5?nJifb^rH3N?Hhio zo$=nNmSEz_QFHj|XF!vQEcdqPyZz_4|M_GBH)k)KA9XGRlTJD;3*y1c#?ZWkeaQM* z^`Bf04#Z)ARgrE4rMmlk8E5F=NpaW8xKNd3)-orW$m+kh(W12jQbQ7oi z)=#qbmhkplt}u`FC0sV9sdnb5$E!zX_xlA{4wW&j0*DCm`=1;Sh_sB1xiH@C89Z93;8d)EUk=lPNIZ`o3H`Vd+Ig`=CV}#?PAXvzWk{x96fn z0(rYh<>?PJ>Hd8v@c8=*vm+)>P1k@i2>yMaKw2nihLV6Z;wcdc*E2{8=xNh(FkEe3 zq_pc;ISw&}`?lqKx<4vIa67!xu|P}G$c3MDyg?u^InS?uM6Zzys0QM9ChW>g-ypzA zkOUSfvhTTWq{_>TJ{+kpgwX{@>P5ptiJ1NTO5)8 z8BiLUY_!*AJ$V386^TicK@z0qOPWP#Ea5?}!$_&fQ zOcRKuR^tLX*&CM(ahYftiNg!a=uU|He)2nU2(~iX@Yo|foZp906;o=d%aK09YEW7_ z-yX*;XE#z@?zZ&fQ?2fYX!T8@-$(K5Jo+AkyOM+(944x4B%2NR&avFFJY^9_br5UtzSX5@gmYYm@ z@S$jtqFn18bXQr0IYhQ=+2~ZDB_DRW3d=*B+3q`-*1P$i!GVIG(AMp=vBQ#^_mNxp z(;4Iz#_~&9jZ}}7oW?R;_x8&h?b0N326NJq4~>W^TeI^!o4=G5G{|9ff|`NN5+?ns zL@IWva(*@PXPmVGQ#rgIOY*nnoqNDDy$hd2uMT>wBgzg>YT&BV2U{k1ah1(1j_v0` z@o;6~SUGW=!+j!oa9ko_2^G75?VolPmWk=Pb-h{k=phZga( z88Rp7QzbHkpYG!aug9e^DF63Bi|1#CeAW^CpakO9DTT!p$yhuT8Aq10^cl2O@Zl-2RXr`+zCPj#_FqXs}W2{Qvn2Y{BmNsG45? zB{BF_rVgT$u0 zE8o6|@C>uOK1Ba}!V zx!M$9J1B7#_JSs90cKlucib?T&HqQpLE9YV1?v{gh2NWKEt9FX8;3DePnCL5Z=k)Flp=?-i$<5H4zc z`?2ZZ+p~Y8FYr;m3Vn2(u5Z`Av6#S}zkpQpZ|vNP0DY^I-oa$HXzg+ajQC7%wldRN zfOAL!UwFtuphqqR41v|3He4cQF5;UU9M~lti-k<HSTs^#>-Tf|C2&~#m%6WZAy1jz!Q_-IbpZP z8ht8}UG13lz+N-7+01+RlE)6OT^3px7fn@1|_b7^{bhPet}< z_)77(<^>8-qQ2X(n4faVhm@T0@Z{5HFSWs~EDXtV@7IAMbVUP6;v8^%l3PZ#wOZ-* z*Vk4lRj6OYpAZ_$*`t|tYKmLar&&{5{d+5cst)rQTn`n8>Xi+0zXc6YbTPMgzewFg z23F=+`8=FXXF6b*CDVN$v3|6iy;TSFSYh$qrbhKDcT^U9l zj}3g#zty{k*>s8S+>t|cng#3@Rz`z}njy{*?90mV6_Mkvv=iL9pb0ttHf$7;TxkX1 z-klTGb`2~-Mxx6~+{b-KiFd3XG`p?+6-0PMorB#Q@TY_CH5)En#5WrmHqj;@Fvi1A zeGpO@wuYIPOgRY&02e-U+j7!$LZ#5mS72R3MJS^gfheL5`kQV_n{8}KXaj)V%4b~As zFrQ7yZal}~{ELX@8c#V?2LlM@)g(|;VvcBjEuTJ=`WkOem{DL!+7Lr!U;F!mGm_^~ z+V^T?%bz+8noq9{ybcq16Gzd^fS2`skac)@6|;8X8l6Q19epZ@l^3@1ES!x2XLNA4 z_FI8#x5sq7hXVr83D;_5$sU!*Ye}zyx1wMC?Q{DSgrUx#fM?_Fj@{syA2x2yL^J{S zPPLkQ#O+9E9a^H*USdriL6rGHDt$B!vu~t7^)@_e=(<|SVd!MenX48AP(Z$4WoC9_ zeN;I;hEAr{ZvB^gK*1AWfI~5H0a{Y#2UBjn9`7;3JDrI5leeufemoZol*pDlVTSHP z3#8@6kxsJwUFg9(;)>Xm!{nsFC<7}Xwv_?o=eP)$>vvvj>yw z=YS7{pIOg(u@mJ%G0G^TM@L6>l)?_{_e`(yLxmX%h*D zMJS13@e!}HFR{?GNtq;%=4#zUgfFP^$g|Ax1<`vC&qIPbwGNo}3>ZM?=Evk6r|J&S zi$UD-za)A$kcqu)8)1mG z{FI*zS4{wM6S3;RP-!$0&8!6*;>|%T%HJxZt}cmap#~4vD0Pkx22gBbPo~=2iEMFa zSN<~qRz>jf54?e)>3%j;Gc6C1_YO0C|CDQDt7+bE({$0($tizZ)xn2L?@6_ zR3$`yiwH?E%X*^k*^oQ=z!1GA|E&fXHPR=rIEGq4%0=SGvror2Y%k#d`aPmx5@~7a zdkmPa1d-<`6M%& zp9rn|?C(5SRowEcasXoE$)s`=GvJk9wPt|2VX31T2F}6x3#(&IMqZND*a1muBh9?X zX_HSLo?$y$a;qFx^U1W|YAd%)Gaf|AEHqZ*{PW96FF*&nO-@c?c6t5=K_z@2f$8<^ zY}d|9NRviy7sF$61>@bV$B3*VeDg4DX3qScxVTL~5Go^T?}aG+th- z2`EduJx~ZcSssR;yX%oW&ze|$TF?;>HGHp~Eq?$w&SAD?d#s$$|4F@l*T7}X$7>}7 zRvPwxrPaLO5X-qYiQ7{P^4Ui2GDbq&DJ3Yu`)8zfMi1{>HEq`+uR1bJ4x!#n0D6_M8Zs_# z3mc%u30aK|avL-!XI&?{^%v4OXUr4OzaL*|-HV&M5GPx)SUqYMWw@Ex;%DHx^&FOD zncjYHD@AiYbGx1O(rsKW>Eg}cid)6bqA}!r!G{?x#)c?^k+q_uv%Xh3ha^A^{%wnpRPY({1LqK{NQy>!UjUc8f7x2` zgyLiGpsKlFO75ee2#drn3Glyna)PvUP}e(t6P z(8^W6g23+fzT5gZQQ^L-Yg#^P;QK8FTZAe)*|CKS6(I>8a2aoN+XEkYf2jAF!Zi3! zjS($tF@bu(ypeC>`IZtF;jz`F6A-Y7ZUQBuZxp&q4zHb9cc*!1`T3p9xL9`nWhNVr z!2lf=fCA>;1E&E|yfmrHqB#XnUCu28b*4#eZ{lLL(42#`ui?BO&uZj|d_Fh!Bw8g$ zn@2uezsJz@^XM(T{!CEw+EyG*eaF`FuTN%C zOZg)khBpDobCl(3ud$bhr>EdmuQ^l^Cic|y2m>LM+gsZGYKUAeJE5YUX9}j^JDoojv<}Cm&t+agmp?JE0%d#fo}m_cYogpjn5&egilTvDFz-Df}1i zB4)bXfn$dqb!cCa13DdCgMNehaa&${n5Mw&bxeKfNmHq%e{T_H@WB!H3QgFK2gNpB zP<;xkez-y-Lr(0^P^G!YH~WLut`0=mPXbVN64iv6Nd`s=eUQ;?V((+QU0&B4SF3*{Pm$AVrq;v&)c>VLy_UCe45VEsI@ZWM2TaB# zRU6XaLx0^H=0)Z!$rIu`3*s{Z!W7pU@6aHvX*vUuzME+!B5H}k_gFD)3=f;nI zi1|B!@iO%p;L{!JSEI~vyUByf_{HY=;RuAK##-h!06XFwxYi?xl}oWStJ*P{OcVe~ z_v(y8!+BaLQB`(D(XrL0ReKMn$R)8mU2@$q$Pq; zbZq-$IkP4V(`m}e<)cwnZLrjiA-X0@VY~Gi5-PKX20#Eag!JOw1br%7Rr}`(v@d!u zCo@&wE1SwM=zt~$K!eJ**9GAv!}Cogn9(d0X~BwPkU4gaWh?WVRcE3N?C%_R_D)Vw z(YmJTJ_0~fhItqHPqoIFGQYE2!~?aSRa{vjcDWhy5>oT zGOMFTWfL`aLx-!QL(9r?~D6y9Uhq=af8z!rqg#p zXk%gE-;=@G>MUv7p@P#ni@zP*$YQwA0Dlc21`%pV;p!_F@xI(^eA5&SZ{rU?^Wj}! z6Y%C^eMYilc_~MAwqV`h=I0;WA)MqJ^$IvyJ-O0)*RuLYjTL1TWd|(NbhIZ;nOop( z`4bc=fsxaeI@zc!vvYFFetFRKSMjef2_#oIzzPIxZ4oB0sxKOzX4Wltz#G@LD2Qr5 zm9o~xF;EU*_!O`}IigC{sU%1^$$B@>Fa_H0*>*1Amc^7tnKxcPpr8zZTme`6(0@J| zXfBE;0)lcuv%tqq05V8P2B^)Nhq~qdR|1KCfe>(GeuFaNc)T~zvma>o)FZv;sVD@D zynx%jpd8m<{zI zz44BQcmN85TNhy2plu`Nt$b;sKELSBpW)my@*ZnL{lFaD|7-8c-;zw*wh@(1yH+~o zQd6mwOU~P(B4CS|mX=v+F44&NRvMbQpcpDmU!|BhndzGgrsa}~;RGs*v>~aLX|A9$ zxrCyC3y6ZiciVh3@BH@t1LJY%FM8{e94DY4JQ} zYS0fcOC|N!{@iq*a@H$Qe9ONriBWJrhLhC?o5K2)!=~i)0hGh-mMd~RkqdIGCB(fU zy5*IvHssJ&gxudt>g(3w2{)axskJ_#h96qTc~<{c!`n^f zg+SOfdm8=UI!4%}d%RkXd}yWU1H66h)eDTsQr!qkcZE^zbI#F$k(dn7l7z}@YSv1+ zIcEYw{HJjfg()x7R@zQ&o;LdJ2vi6Fkl?OHM-Ga!%w}co(6=I5LZ>n{9pr~6!z|S$ zq_VfE7##n|{H(t$wPI-D`~L#((@V(MZ>p6Eb8k%4{lIGT;hZ9cg%~HhcbDCd%0RbM zs?uZG1wSL{Z0f+NzDiO?w9~XT^dWptKJ@M~0(@5*az*ZgabU465JN9eFY7vD8Wdz_ zlAIonnlivB;uDXov3sIgoKx2>G6a;@?v0qg;r`RnZ{4wMw2%}(e*c8k`R7sNT@>H} zfUU~mHR~8!4rJTHVlT=v3wz2kx&95Nz?@Tj8)s5E}t{|AFA=d_Y zOTqb{ATx>U``k~NJ2hYk3r#Gn1}|1Xj}jq!9%;{k(?9!WZt1z#{OATvapC-}#$LWi zi2R>~v0v6A<|?Eg)Ye#VyRyr7RJ$N4vFEFfmb1jHF(yZN^rc!ULDen>KWu(D9Z5!P ze(qg(G2HmSqyi2B&W`vo@N=3l?+dXbWn-`1LrY1^_mSilpKLLxQp}@s?=Tqw6Do5Pui*IhPZtaT|GAE&MF$;(4s9Bt5f+vbITElRv3( ze&@3GgY%ltiz;PZXq||TeA+sP9bc(#*G<2ck&zF3W?0$Bxit`EwvZb7jke;810>h3 zb}}!oS_xUbJ^$_PWrSlJ-;v4qq!@|L9uM#ALcMu|+|fni+AqPpu+CtjBrs#Y1jKVU zEc6L$d!2l-MgMi5&7?{Dfxj)qn;mIZudn7I6V$88%05A!PtCQTGSxXKMGh;qXa|fE zJBUmhM!}@e#A?s%bajm+=Ka1WxHZWaj;k#XT{T#;bH9c5zA8txVHEz(EeE*PP9eD9 z<2|evdxmVLj_n@`lp>6@ zy_ZTczm54_lGjPwPaq$dF1HdIks&Mp;%bge$QZnnp${}#&Z3)z95ei@b9;c=kJpY- z$G#RZbgyTi3&d4=3%+gXOSp|g^~^%K1id>re4gTka;7m@WA}bFo`GUbT8-n19VVdO}IkuW(H_iil_S}@$xy(Q*fCcNaD60 zxqsWK5lESLWnKgy^ci@da#k9^aW5)oLzbFxlUVBA&UM~79PF7=rW@Ot`>9(Gju3N{A4%EK0dPuz{=J_LUv|Pe^*x3eq_ExMNjB3?{$+xH^_Y z;e5pH)*~Lo@y=;b=P$Iqp9KR|j(>D-kaI4WeI&&HPFRtbZBMiQ^PwE`pF$Z7#(@UF zP2~&InXDTNx3`4)H2mD8yHl{Jk(|C(VA2vwY}3IRqo*qy9HvN7a!$$hlZqjmb6tZy zp1fLd^be5LmcI`_d3@@A`jLDS!b0qXVvP%y>+DfL86Ie=*TZ)PL??Lk^F};4=dwv; zPRBV>*)f&NE0vtjYHw@vs9l(Dk*g-}ARSciwv!f)E361d_9y<;9b7)PBw$3dh`AZi zAY4)BVh3t>;gR=s)nZW3PT_3bOLDK)eTZT^*m%P!HdC!FvK=Z=_iA>Bg!`SsC|P3u zz+oMr^PUcTebccFK>bqp475+?5RUC{Y7klp^p=Q;ZM+c8Zq6wBtH*5c=QHlp7wZS%6AszeebN>>_2^H7uuK@g%1{vF}DT>U{h`}c+u5ubXcFMH)fZ6-l z!y=qVN>jqgj)3T!mALcM;1!8}PDcMCU6<9?l#euNff${zE=b0d%;TcPFfw`y>zjLg#_WgnwatH|t}Y&WrR32m5W_AWNa`OqIc{ zW{_mX(Ck1psRCgMhJ*hXhcAG1ocb_kuY)%9rlYzq8h$K;X}=5m+8CYpJ4Yw6zLi%S zpu}dkAc_hVv>NfWy9eLsQ-6OzoBl{WAkRi|U;anmJ5dFwz(C9~-A(!Vfw z(E!S5ua;@}(q5GrIc6|PAOSPg{il$s$UBI}tk5xuP-VedGyZd}xqXvWvU_`{;Cf0> z5fN79T(#iq-q$RLb(of0ZA0lfepj^!a2-6 zv{v^7r2J*xmj&XVgZ>Wd=RqwGGe1`-Svll~bz(-y7*N1ooU5J*aY@&5ea5ss6n(a? z`N9l?w~=^1g2wLDVRD5ovqLc^Z#YRDFR+QYV4emH*fzOpzer3>Pudh??f``be>dD3 z)xB}1O6bZpnt=j(m92Fxq0dz89n>B05xx10QDL-YDz&e>h_u@9+RG)Pv4{2IYNiMy z8auH}j+fW*;q%Ymtbq+KI_r4gxGUeYJ>hq~vbe!N3%NntH+Dyh7I70!cu(qE_`Vp; z07NvH4Q2s#9;mKj;>umoviK|H+#CbgGq`D+QxI*$r6&D`yf%-M^{H;6gi4*j3?c9c z8$}NK?0I4%b?c`p2;SvL3*xY`0fe_KIZqPm`M%{DCrPUt{bS|zlhbHBNlUe7zcK}E z$L2zIl+z#Z!thJW!}{G&JAC@Pg`H(}GLM_m;uV}C9Yt(vF+F0Dy7{`k zY&v=ZZf?8^qSD>~2iP#{qQK632aMplZye6Q3X>dctS@JHSz2)zJaqXvFEZlr>9$oY z^&9^4pN`1EJcEw_wi@P{zJqQX470?WZTB*5Y7F!3#xJO^z|Gw@)bFoY5#daTP5OgI zcbKI$Ok(|9g_%#If*$3ga=U0_n%|#}eWwyeW~(19Te+!xF*(rd=LU(nM15;<7Z&oA zrqIw#r7}&_qgCdvS7+!|3?8w7JNRtHQ$~8Yyw(xC+n=- z7SQBo3+)tbg2NJn^=lukNOCkiEsgt~4tCrZ{aSnrHRMk@_?1^whFrEn3mT1NSC9B&c-(JrWu@FUhSNf+(>-_%kX#@LYnzq`^M#XX}(*!_LZCY za24(5Y$WH^=;GY^#0c{Y4{_!GPvm_bd#&6ypUpfwu%|+=UEe^Q+oe$7cXnyF@O67L3%SKO#rdayD^4^vH2hG{w%vp|_*jKf4 z=jb?40UP4S+Mi~(Uz(^cvgVB+r+Rt|;wnFRYcz(i=&Q14Ok=V-tTPw4%v&;ZrxI#w z6&rvLjj#yzBr5~N*7o09CkIE=>EWwo`ceL*@Y=504RB*xY#SY{)p3Gvn9zBL_FCN0 zl^axu8p~su8HpiDNi{%5ojAv1{0?t7*mflF9&Y_x4#)X(jyLl~c+s6*I1G7{zBI;tH*_ z94)o##4$cU4ohj~e#C^E><)3E`d;ftdwTQZpDmp)9)n5^+h%BE?)8LI2A`L!zjTBL zPYE&+#0&jDFc&4Tg}VC}E@4ZGyWbiK2dvn6Mpu!cQT_^6!RG!7)fE>V>?PNFm?vc5 z>A8gcW=5Xm2#LEW_;XgMQ$=Y-#lc|zs2}}2ny_4Kb%D@Vrtu6rOmUe!ph7;;L`XHi zXcDHc;OYbIk44?|A9-=Ml{Xap)^{jb5$Kl?v`CIT`bDXV*x{h+UARtzOd}#US>a%X zOdU`5^_P@lkQxB*B<&RQB?FgJOH2-~rMnXf_{5%~s&OlUM^i30FeOM{`XOXs)3_BU zEAyNr%bz8RJ=Cvw8y=)3p z`K|i!j$l~LqQ)kabHK}7WeyB$x*({t#cQWf98qh&X{R*Y--9)~g)?XCL>&z;v9#hY zTFY?DV&1fPE&*z}6Ki`Y5#(-eVYB;OzZjPSDnN%ArA8D>wODpQT4Jt}ah556JE+G_! z_P0uQ!qDhR94VdpAqajIOl4~>oTaQ8H5yXaTZUOb%cRAkWYV?KSNlTqgSM=Wgf)JP zz=?Q5f5zPEVO!NbOCbqEwP^Ff_O_`gdm67#U{Mp^_bKcq2IoO%zcJb(M5z`cjv1Ck z+!awNRhwjj6CQqu+xC#{UWo^3+h?6ymzq3r?3JV}<|u_9x=MWAm`1AqAnOsJ*@)^4 zr|`FkZlg{Cd!#Chmhn=_ZQe;~-DTUOv>)Tbmh0{z_42vWa|vNUO% z_5KA1xNHBgw0zjUH|s5xg$b4k z@Koa#-AFizrr6h2#$k*41tm7_jp$yL4X*DZcklq!u+>9E0WnhcOFPn7Vh^ao@~tno z@RwY)*+8&|Hpdq)`a=L*Teuw;_B@u;o!a!YaOO@bs-?*gqpm?nRkXl~mKFfF z+OVzE%RlC`M5-+KM_GXZ@9b;=2C(sq+R&Ko_RzZ%5P~kDieK3yzV4BN*{$E%KY;4k z)s?*vacHYN~u+?SoI`e@S2!9Co!cdvz;@N@{yj`0-9^8osR(V7PR-O&gM)x3owqs5oJpIwc zgY`#VzjI$V>YYDrIr8D;0JK<10@ycefw z;;oV(!gUR*xBg%xTl-#d>u(5}#jFrLKo}q0b{IuuZhuO7n++ zo@9)d#`(AT$mbW5g;c;&z>1_2Nk%;L?TIhfeK%PYp>5N<5wdihxw4-qvVsN6t@bol zDFgi~t`B&ZU3ek!#fXVE5Ao$7AwI+@amT_m2SclwQE{cLcv3kwhokq+!S%>Fe_*(Z z75)vhq@YqZqa~Hf$0S?T@nr_%mV%*aT${~4)6|(P@Bq_Q!VC4tZa`7?ra`4?oV+wSr2`TVSUmKS_>V@3%0*S#!+L=3f@oF=4k9U9xv0p1;Fx&}V;X2J~h zcz^}G3|;s8JyEFR*LB*fPUm+?f+ofnBQ5uK%NrwA+RV_~h<6-mw_wU?NGRI!zNTh% z&>ty6x8&gW75gdW)?p->&%?{*brS|k@b|(>&<^nyO55Pi_q*eK)=J*Uunw2cw--p%E!VXuDa? ztZ$HPKJ6$Sh7!UrpxVBLFSnpZOw$(ftvg!Nk1LVfL+FL(u zh1Abu(oCSmgqQ2IrE;Zz2f2DAD%T4XO6tU&)2IB}vV3{^xpz1MYFEPy_09RP2QvmA zIqw<(UaCnCs!mFX$+3sjnV*(O5)y`jW!*wzF-l^K`Bxgap+0Ej z@c^nf{Ic`6I5#9bcE7fwiiP8JZ9dr3FsD~SBiW_`8{UgFt*{$@qj#E)90JYra>Zs3 z$sCTuzOye2GdTO;4@;wgJK@!ij-|c--insluCR}{#q=D6Xz#nL6;`rkc*UzLTR%Y{ zN2YK;Zcz4YY=+|(0_?E=#~3U@I1fIyRiBF zIeWj=id+b|L;kSMs>NMfeB^(={IdrC;NYJy_$L+olL`OdOqgH0OpSa?FTRhwb<|%A Pe7HEdAEg|=c=LY&YVNkY literal 0 HcmV?d00001 diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png new file mode 100644 index 0000000000000000000000000000000000000000..13b35eba55c6dabc3aac36f33d859266c18fa0d0 GIT binary patch literal 5680 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 literal 0 HcmV?d00001 diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png new file mode 100644 index 0000000000000000000000000000000000000000..0a3f5fa40fb3d1e0710331a48de5d256da3f275d GIT binary patch literal 520 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 literal 0 HcmV?d00001 diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png new file mode 100644 index 0000000000000000000000000000000000000000..2f1632cfddf3d9dade342351e627a0a75609fb46 GIT binary patch literal 2218 zcmV;b2vzrqP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91K%fHv1ONa40RR91KmY&$07g+lumAuE6iGxuRCodHTWf3-RTMruyW6Fu zQYeUM04eX6D5c0FCjKKPrco1(K`<0SL=crI{PC3-^hZU0kQie$gh-5!7z6SH6Q0J% zqot*`H1q{R5fHFYS}dje@;kG=v$L0(yY0?wY2%*c?A&{2?!D*x?m71{of2gv!$5|C z3>qG_BW}7K_yUcT3A5C6QD<+{aq?x;MAUyAiJn#Jv8_zZtQ{P zTRzbL3U9!qVuZzS$xKU10KiW~Bgdcv1-!uAhQxf3a7q+dU6lj?yoO4Lq4TUN4}h{N z*fIM=SS8|C2$(T>w$`t@3Tka!(r!7W`x z-isCVgQD^mG-MJ;XtJuK3V{Vy72GQ83KRWsHU?e*wrhKk=ApIYeDqLi;JI1e zuvv}5^Dc=k7F7?nm3nIw$NVmU-+R>> zyqOR$-2SDpJ}Pt;^RkJytDVXNTsu|mI1`~G7yw`EJR?VkGfNdqK9^^8P`JdtTV&tX4CNcV4 z&N06nZa??Fw1AgQOUSE2AmPE@WO(Fvo`%m`cDgiv(fAeRA%3AGXUbsGw{7Q`cY;1BI#ac3iN$$Hw z0LT0;xc%=q)me?Y*$xI@GRAw?+}>=9D+KTk??-HJ4=A>`V&vKFS75@MKdSF1JTq{S zc1!^8?YA|t+uKigaq!sT;Z!&0F2=k7F0PIU;F$leJLaw2UI6FL^w}OG&!;+b%ya1c z1n+6-inU<0VM-Y_s5iTElq)ThyF?StVcebpGI znw#+zLx2@ah{$_2jn+@}(zJZ{+}_N9BM;z)0yr|gF-4=Iyu@hI*Lk=-A8f#bAzc9f z`Kd6K--x@t04swJVC3JK1cHY-Hq+=|PN-VO;?^_C#;coU6TDP7Bt`;{JTG;!+jj(` zw5cLQ-(Cz-Tlb`A^w7|R56Ce;Wmr0)$KWOUZ6ai0PhzPeHwdl0H(etP zUV`va_i0s-4#DkNM8lUlqI7>YQLf)(lz9Q3Uw`)nc(z3{m5ZE77Ul$V%m)E}3&8L0 z-XaU|eB~Is08eORPk;=<>!1w)Kf}FOVS2l&9~A+@R#koFJ$Czd%Y(ENTV&A~U(IPI z;UY+gf+&6ioZ=roly<0Yst8ck>(M=S?B-ys3mLdM&)ex!hbt+ol|T6CTS+Sc0jv(& z7ijdvFwBq;0a{%3GGwkDKTeG`b+lyj0jjS1OMkYnepCdoosNY`*zmBIo*981BU%%U z@~$z0V`OVtIbEx5pa|Tct|Lg#ZQf5OYMUMRD>Wdxm5SAqV2}3!ceE-M2 z@O~lQ0OiKQp}o9I;?uxCgYVV?FH|?Riri*U$Zi_`V2eiA>l zdSm6;SEm6#T+SpcE8Ro_f2AwxzI z44hfe^WE3!h@W3RDyA_H440cpmYkv*)6m1XazTqw%=E5Xv7^@^^T7Q2wxr+Z2kVYr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 000000000..50d7b8686 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = objective_c_example + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2024 com.github.dart_lang. All rights reserved. diff --git a/pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 000000000..36b0fd946 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 000000000..dff4f4956 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 000000000..42bcbf478 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements b/pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements new file mode 100644 index 000000000..dddb8a30c --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/pkgs/objective_c/example/macos/Runner/Info.plist b/pkgs/objective_c/example/macos/Runner/Info.plist new file mode 100644 index 000000000..4789daa6a --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift b/pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 000000000..3cc05eb23 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,15 @@ +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/pkgs/objective_c/example/macos/Runner/Release.entitlements b/pkgs/objective_c/example/macos/Runner/Release.entitlements new file mode 100644 index 000000000..852fa1a47 --- /dev/null +++ b/pkgs/objective_c/example/macos/Runner/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift b/pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift new file mode 100644 index 000000000..61f3bd1fc --- /dev/null +++ b/pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Cocoa +import FlutterMacOS +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/pkgs/objective_c/example/pubspec.yaml b/pkgs/objective_c/example/pubspec.yaml index 0aab5e9ab..f5312e8a3 100644 --- a/pkgs/objective_c/example/pubspec.yaml +++ b/pkgs/objective_c/example/pubspec.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file +# Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. @@ -17,12 +17,11 @@ dependencies: sdk: flutter objective_c: path: .. - cupertino_icons: ^1.0.8 dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^5.0.0 + flutter_lints: ^3.0.0 flutter: uses-material-design: true diff --git a/pkgs/objective_c/example/test/widget_test.dart b/pkgs/objective_c/example/test/widget_test.dart deleted file mode 100644 index 092d222f7..000000000 --- a/pkgs/objective_c/example/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility in the flutter_test package. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:example/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -} From a9fe416d378b38c21924c181f939212895642b01 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 26 May 2025 10:46:47 +1000 Subject: [PATCH 05/29] wip --- pkgs/ffigen/test/native_objc_test/setup.dart | 5 ----- pkgs/ffigen/test/setup.dart | 7 +++---- pkgs/objective_c/example/lib/main.dart | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/pkgs/ffigen/test/native_objc_test/setup.dart b/pkgs/ffigen/test/native_objc_test/setup.dart index 01e6d54d4..426b1ae29 100644 --- a/pkgs/ffigen/test/native_objc_test/setup.dart +++ b/pkgs/ffigen/test/native_objc_test/setup.dart @@ -164,7 +164,6 @@ Future clean(List testNames) async { Future main(List arguments) async { final parser = ArgParser(); parser.addFlag('clean'); - parser.addFlag('main-thread-dispatcher'); final args = parser.parse(arguments); // Allow running this script directly from any path (or an IDE). @@ -177,9 +176,5 @@ Future main(List arguments) async { return await clean(_getTestNames()); } - await _runDart([ - '../objective_c/test/setup.dart', - if (args.flag('main-thread-dispatcher')) '--main-thread-dispatcher', - ]); return await build(args.rest.isNotEmpty ? args.rest : _getTestNames()); } diff --git a/pkgs/ffigen/test/setup.dart b/pkgs/ffigen/test/setup.dart index 13b5b5a74..d7002a994 100644 --- a/pkgs/ffigen/test/setup.dart +++ b/pkgs/ffigen/test/setup.dart @@ -28,10 +28,9 @@ Future _run(String subdir, String script, List flags) async { } Future main(List arguments) async { - final parser = ArgParser(); - parser.addFlag('main-thread-dispatcher'); - final args = parser.parse(arguments); - await _run('native_test', 'build_test_dylib.dart', []); + if (Platform.isMacOS) { + await _run('native_objc_test', 'setup.dart', []); + } print('\nSuccess :)\n'); } diff --git a/pkgs/objective_c/example/lib/main.dart b/pkgs/objective_c/example/lib/main.dart index 1c2d1d35b..93aacbbce 100644 --- a/pkgs/objective_c/example/lib/main.dart +++ b/pkgs/objective_c/example/lib/main.dart @@ -23,7 +23,7 @@ class _MainAppState extends State { void initState() { super.initState(); - message = NSString('Hello World!').toString(); + message = NSString('Hello World!').toDartString(); } @override From 665c57e8bfe0b8820d581a959faca01d887f44ac Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 26 May 2025 11:12:32 +1000 Subject: [PATCH 06/29] merge cruft --- .../lib/src/objective_c_bindings_generated.dart | 7 ++++--- pkgs/objective_c/test/cf_string_test.dart | 5 ----- pkgs/objective_c/test/converter_test.dart | 5 ----- pkgs/objective_c/test/nsdate_test.dart | 5 ----- pkgs/objective_c/test/nsdictionary_test.dart | 5 ----- pkgs/objective_c/test/nsmutabledictionary_test.dart | 5 ----- pkgs/objective_c/test/nsmutableset_test.dart | 5 ----- pkgs/objective_c/test/nsset_test.dart | 5 ----- pkgs/objective_c/tool/data/extra_methods.dart.in | 6 +++--- 9 files changed, 7 insertions(+), 41 deletions(-) diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart index e094ddd60..d1d139a1e 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart @@ -2759,7 +2759,7 @@ enum NSDecodingFailurePolicy { /// NSDictionary class NSDictionary extends NSObject - with MapBase + with collection.MapBase implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { /// Creates a [NSDictionary] from [other]. static NSDictionary of(Map other) => @@ -6846,7 +6846,8 @@ class NSMethodSignature extends NSObject { } /// NSMutableArray -class NSMutableArray extends NSArray with ListBase { +class NSMutableArray extends NSArray + with collection.ListBase { /// Creates a [NSMutableArray] of the given length with [fill] at each /// position. /// @@ -13978,7 +13979,7 @@ interface class NSSecureCoding extends objc.ObjCProtocolBase /// NSSet class NSSet extends NSObject - with SetBase + with collection.SetBase implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { /// Creates a [NSSet] from [elements]. static NSSet of(Iterable elements) => diff --git a/pkgs/objective_c/test/cf_string_test.dart b/pkgs/objective_c/test/cf_string_test.dart index d91c559f4..066c1353e 100644 --- a/pkgs/objective_c/test/cf_string_test.dart +++ b/pkgs/objective_c/test/cf_string_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('CFString', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - for (final s in ['Hello', '🇵🇬', 'Embedded\u0000Null']) { test('CFString conversions [$s]', () { final cfString = diff --git a/pkgs/objective_c/test/converter_test.dart b/pkgs/objective_c/test/converter_test.dart index ed2c51b28..ac47a6312 100644 --- a/pkgs/objective_c/test/converter_test.dart +++ b/pkgs/objective_c/test/converter_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('converter', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('basics', () { final obj = NSObject(); expect(toObjCObject(obj), obj); diff --git a/pkgs/objective_c/test/nsdate_test.dart b/pkgs/objective_c/test/nsdate_test.dart index 7c9b3954f..e391fec93 100644 --- a/pkgs/objective_c/test/nsdate_test.dart +++ b/pkgs/objective_c/test/nsdate_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('NSDate', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('from DateTime', () { final dartFirstAppeared = DateTime.utc(2011, 10, 10); final nsDate = dartFirstAppeared.toNSDate(); diff --git a/pkgs/objective_c/test/nsdictionary_test.dart b/pkgs/objective_c/test/nsdictionary_test.dart index 8215dbef7..347bd92ed 100644 --- a/pkgs/objective_c/test/nsdictionary_test.dart +++ b/pkgs/objective_c/test/nsdictionary_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('NSDictionary', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('of', () { final obj1 = 'obj1'.toNSString(); final obj2 = 'obj2'.toNSString(); diff --git a/pkgs/objective_c/test/nsmutabledictionary_test.dart b/pkgs/objective_c/test/nsmutabledictionary_test.dart index 11892f38c..a922537f6 100644 --- a/pkgs/objective_c/test/nsmutabledictionary_test.dart +++ b/pkgs/objective_c/test/nsmutabledictionary_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('NSMutableDictionary', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('of', () { final obj1 = 'obj1'.toNSString(); final obj2 = 'obj2'.toNSString(); diff --git a/pkgs/objective_c/test/nsmutableset_test.dart b/pkgs/objective_c/test/nsmutableset_test.dart index bf610b86a..6278f38d9 100644 --- a/pkgs/objective_c/test/nsmutableset_test.dart +++ b/pkgs/objective_c/test/nsmutableset_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('NSMutableSet', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('of', () { final obj1 = NSObject(); final obj2 = NSObject(); diff --git a/pkgs/objective_c/test/nsset_test.dart b/pkgs/objective_c/test/nsset_test.dart index daf0807b8..21973c38f 100644 --- a/pkgs/objective_c/test/nsset_test.dart +++ b/pkgs/objective_c/test/nsset_test.dart @@ -13,11 +13,6 @@ import 'package:test/test.dart'; void main() { group('NSSet', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open('test/objective_c.dylib'); - }); - test('of', () { final obj1 = NSObject(); final obj2 = NSObject(); diff --git a/pkgs/objective_c/tool/data/extra_methods.dart.in b/pkgs/objective_c/tool/data/extra_methods.dart.in index 24e951dba..027b37274 100644 --- a/pkgs/objective_c/tool/data/extra_methods.dart.in +++ b/pkgs/objective_c/tool/data/extra_methods.dart.in @@ -43,7 +43,7 @@ class NSArray with Iterable { objc.ObjCObjectBase operator [](int index) => objectAtIndex(index); } -class NSMutableArray with ListBase { +class NSMutableArray with collection.ListBase { /// Creates a [NSMutableArray] of the given length with [fill] at each /// position. /// @@ -113,7 +113,7 @@ class _NSArrayIterator implements Iterator { // Ideally we'd mixin UnmodifiableMapBase, but it's an ordinary class. So // instead we mixin MapBase and then throw in all the modifying methods (which // is essentially what UnmodifiableMapBase does anyway). -class NSDictionary with MapBase { +class NSDictionary with collection.MapBase { /// Creates a [NSDictionary] from [other]. static NSDictionary of(Map other) => NSMutableDictionary.of(other); @@ -232,7 +232,7 @@ class _NSDictionaryKeyIterator implements Iterator { bool moveNext() => _iterator.moveNext(); } -class NSSet with SetBase { +class NSSet with collection.SetBase { /// Creates a [NSSet] from [elements]. static NSSet of(Iterable elements) => NSMutableSet.of(elements); From fb4f2d552591d4d667990c7f98ab1ce185a71874 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 12 Jun 2025 15:24:30 +1000 Subject: [PATCH 07/29] merge cruft --- pkgs/objective_c/ffigen_objc.yaml | 5 ++++- .../lib/src/objective_c_bindings_generated.dart | 13 ++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/pkgs/objective_c/ffigen_objc.yaml b/pkgs/objective_c/ffigen_objc.yaml index ce50ce850..817f1b22e 100644 --- a/pkgs/objective_c/ffigen_objc.yaml +++ b/pkgs/objective_c/ffigen_objc.yaml @@ -107,6 +107,9 @@ objc-categories: - NSNumberCreation - NSNumberIsFloat - NSStringExtensionMethods +functions: + include: + - getLocalizedDescriptionKey structs: include: - AEDesc @@ -183,4 +186,4 @@ preamble: | // ignore_for_file: unused_element // ignore_for_file: unused_field // coverage:ignore-file - import 'dart:collection'; + import 'dart:collection' as collection; diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart index ab70a6e26..1cd6e8a36 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart @@ -12,7 +12,7 @@ // ignore_for_file: unused_element // ignore_for_file: unused_field // coverage:ignore-file -import 'dart:collection'; +import 'dart:collection' as collection; // AUTO GENERATED FILE, DO NOT EDIT. // @@ -727,6 +727,17 @@ _ObjectiveCBindings_wrapListenerBlock_zuf90e( ffi.Pointer block, ); +@ffi.Native Function()>( + symbol: 'getLocalizedDescriptionKey', +) +external ffi.Pointer _getLocalizedDescriptionKey(); + +NSString getLocalizedDescriptionKey() => NSString.castFromPointer( + _getLocalizedDescriptionKey(), + retain: true, + release: true, +); + @ffi.Packed(2) final class AEDesc extends ffi.Struct { @ffi.UnsignedInt() From 32a78c2c69bdc2866370630f7775fa973bfd493c Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 12 Jun 2025 15:27:38 +1000 Subject: [PATCH 08/29] merge cruft --- pkgs/objective_c/test/observer_test.dart | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/objective_c/test/observer_test.dart b/pkgs/objective_c/test/observer_test.dart index afa077f21..1456a91d3 100644 --- a/pkgs/objective_c/test/observer_test.dart +++ b/pkgs/objective_c/test/observer_test.dart @@ -15,11 +15,6 @@ import 'util.dart'; void main() { group('Observer', () { - setUpAll(() { - // TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - DynamicLibrary.open(testDylib); - }); - test('receive updates', () { // Using NSProgress here because it's already part of our generated // bindings and has a property with a getter and setter. From c1fd2216eb626acd3f4b1790766ab9926d318fb2 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 13 Jun 2025 14:20:05 +1000 Subject: [PATCH 09/29] fixes --- .github/workflows/ffigen.yml | 42 ++--- .github/workflows/ffigen_weekly.yml | 10 +- .github/workflows/objective_c.yaml | 17 +- pkgs/objective_c/hook/build.dart | 41 ++--- pkgs/objective_c/lib/src/converter.dart | 66 ++++---- pkgs/objective_c/lib/src/internal.dart | 109 ++++++++----- pkgs/objective_c/lib/src/ns_date.dart | 6 +- pkgs/objective_c/lib/src/ns_input_stream.dart | 76 +++++---- pkgs/objective_c/lib/src/observer.dart | 25 +-- pkgs/objective_c/lib/src/os_version.dart | 12 +- .../objective_c/lib/src/protocol_builder.dart | 39 +++-- pkgs/objective_c/lib/src/selector.dart | 2 +- pkgs/objective_c/pubspec.yaml | 7 +- pkgs/objective_c/src/objective_c.c | 4 - pkgs/objective_c/src/objective_c.h | 4 - pkgs/objective_c/src/objective_c.m | 16 +- pkgs/objective_c/test/cf_string_test.dart | 9 +- pkgs/objective_c/test/converter_test.dart | 26 +-- pkgs/objective_c/test/generate_code_test.dart | 15 +- .../test/interface_lists_test.dart | 55 ++++--- .../test/ns_input_stream_test.dart | 152 +++++++++++------- pkgs/objective_c/test/nsarray_test.dart | 2 - pkgs/objective_c/test/nsdate_test.dart | 7 +- pkgs/objective_c/test/nsdictionary_test.dart | 41 ++--- .../objective_c/test/nsmutablearray_test.dart | 2 - .../test/nsmutabledictionary_test.dart | 50 ++---- pkgs/objective_c/test/nsmutableset_test.dart | 2 - pkgs/objective_c/test/nsnumber_test.dart | 2 - pkgs/objective_c/test/nsset_test.dart | 2 - pkgs/objective_c/test/nsstring_test.dart | 2 - pkgs/objective_c/test/observer_test.dart | 76 +++++---- pkgs/objective_c/test/os_version_test.dart | 14 +- pkgs/objective_c/test/selector_test.dart | 2 - pkgs/objective_c/test/setup.dart | 111 ------------- pkgs/objective_c/test/util.dart | 19 ++- pkgs/objective_c/tool/generate_code.dart | 70 ++++---- 36 files changed, 556 insertions(+), 579 deletions(-) delete mode 100644 pkgs/objective_c/test/setup.dart diff --git a/.github/workflows/ffigen.yml b/.github/workflows/ffigen.yml index 18b2d9f4d..947ee42c8 100644 --- a/.github/workflows/ffigen.yml +++ b/.github/workflows/ffigen.yml @@ -32,19 +32,19 @@ jobs: fail-fast: false steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - channel: 'stable' + sdk: stable - id: install name: Install dependencies - run: flutter pub get && flutter pub get --directory="example/shared_bindings" && flutter pub get --directory="../objective_c" + run: dart pub get && dart pub get --directory="example/shared_bindings" && dart pub get --directory="../objective_c" - name: Check formatting run: dart format --output=none --set-exit-if-changed . if: always() && steps.install.outcome == 'success' - name: Build test dylib and bindings run: dart test/setup.dart - name: Analyze code - run: flutter analyze --fatal-infos + run: dart analyze --fatal-infos test-linux: needs: analyze @@ -54,11 +54,11 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - channel: 'stable' + sdk: stable - name: Install dependencies - run: flutter pub get && flutter pub get --directory="../jni" + run: dart pub get && dart pub get --directory="../jni" - name: Install libclang-14-dev run: sudo apt-get install libclang-14-dev - name: Build test dylib and bindings @@ -78,11 +78,11 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - channel: stable + sdk: stable - name: Install dependencies - run: flutter pub get && flutter pub get --directory="../objective_c" && flutter pub get --directory="../jni" + run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" - name: Install clang-format uses: ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30 with: @@ -118,11 +118,11 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - channel: master + sdk: stable - name: Install dependencies - run: flutter pub get && flutter pub get --directory="../objective_c" && flutter pub get --directory="../jni" + run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" - name: Install clang-format uses: ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30 with: @@ -140,15 +140,15 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - channel: 'stable' + sdk: stable - name: Install dependencies - run: flutter pub get && flutter pub get --directory="../objective_c" + run: dart pub get && dart pub get --directory="../objective_c" - name: Build test dylib and bindings - run: dart test/setup.dart --main-thread-dispatcher + run: dart test/setup.dart - name: Run Flutter tests - run: flutter test + run: dart test test-windows: needs: analyze @@ -158,11 +158,11 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - channel: 'stable' + sdk: stable - name: Install dependencies - run: flutter pub get && flutter pub get --directory="../jni" + run: dart pub get && dart pub get --directory="../jni" - name: Build test dylib and bindings run: dart test/setup.dart - name: Run VM tests diff --git a/.github/workflows/ffigen_weekly.yml b/.github/workflows/ffigen_weekly.yml index d7726e6f7..b8eef720f 100644 --- a/.github/workflows/ffigen_weekly.yml +++ b/.github/workflows/ffigen_weekly.yml @@ -28,19 +28,19 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - channel: 'stable' + sdk: stable - name: Install dependencies - run: flutter pub get && flutter pub get --directory="../objective_c" && flutter pub get --directory="../jni" + run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" - name: Install clang-format uses: ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30 with: brew: clang-format - name: Build test dylib and bindings - run: dart test/setup.dart --main-thread-dispatcher + run: dart test/setup.dart - name: Run VM tests - run: flutter test + run: dart test - name: Generate package:jni bindings run: dart run tool/generate_ffi_bindings.dart working-directory: pkgs/jni/ diff --git a/.github/workflows/objective_c.yaml b/.github/workflows/objective_c.yaml index 34cc37984..1385f5409 100644 --- a/.github/workflows/objective_c.yaml +++ b/.github/workflows/objective_c.yaml @@ -31,17 +31,17 @@ jobs: fail-fast: false steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - channel: 'stable' + sdk: stable - id: install name: Install dependencies - run: flutter pub get + run: dart pub get - name: Check formatting run: dart format --output=none --set-exit-if-changed . if: always() && steps.install.outcome == 'success' - name: Analyze code - run: flutter analyze --fatal-infos + run: dart analyze --fatal-infos if: always() && steps.install.outcome == 'success' test-mac: @@ -52,14 +52,11 @@ jobs: working-directory: pkgs/objective_c/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - channel: 'stable' + sdk: stable - name: Install dependencies - run: flutter pub get - - name: Build test dylib - # TODO(https://github.com/dart-lang/native/issues/1068): Remove this. - run: dart test/setup.dart + run: dart pub get - name: Install coverage run: dart pub global activate coverage - name: Run VM tests and collect coverage diff --git a/pkgs/objective_c/hook/build.dart b/pkgs/objective_c/hook/build.dart index 7680993bc..16914ceac 100644 --- a/pkgs/objective_c/hook/build.dart +++ b/pkgs/objective_c/hook/build.dart @@ -4,15 +4,14 @@ import 'dart:io'; -import 'package:native_toolchain_c/src/cbuilder/compiler_resolver.dart'; import 'package:code_assets/code_assets.dart'; import 'package:hooks/hooks.dart'; import 'package:logging/logging.dart'; +import 'package:native_toolchain_c/src/cbuilder/compiler_resolver.dart'; const objCFlags = ['-x', 'objective-c', '-fobjc-arc']; const assetName = 'objective_c.dylib'; -final packageAssetPath = Uri.file('assets/$assetName'); const extraCFiles = ['test/util.c']; @@ -30,12 +29,11 @@ void main(List args) async { final packageName = input.packageName; final assetPath = input.outputDirectory.resolve(assetName); - final assetSourcePath = input.packageRoot.resolveUri(packageAssetPath); final srcDir = Directory.fromUri(input.packageRoot.resolve('src/')); - List cFiles = []; - List mFiles = []; - List hFiles = []; + final cFiles = []; + final mFiles = []; + final hFiles = []; for (final file in srcDir.listSync(recursive: true)) { if (file is File) { final path = file.path; @@ -47,7 +45,7 @@ void main(List args) async { cFiles.addAll(extraCFiles.map((f) => input.packageRoot.resolve(f).path)); - final cFlags = [if (true) '-DNO_MAIN_THREAD_DISPATCH']; + final cFlags = []; final mFlags = [...cFlags, ...objCFlags]; final builder = await Builder.create(input, input.packageRoot.path); @@ -91,39 +89,20 @@ class Builder { ); } - Future buildObject( - String input, - List flags, - ) async { + Future buildObject(String input, List flags) async { assert(input.startsWith(_rootDir)); final relativeInput = input.substring(_rootDir.length); final output = '${_tempOutDir.resolve(relativeInput).path}.o'; File(output).parent.createSync(recursive: true); - await _compile([ - ...flags, - '-c', - input, - '-fpic', - '-I', - 'src', - ], output); + await _compile([...flags, '-c', input, '-fpic', '-I', 'src'], output); return output; } Future linkLib(List objects, String output) => - _compile([ - '-shared', - '-undefined', - 'dynamic_lookup', - ...objects, - ], output); - - Future _compile( - List flags, - String output, - ) async { + _compile(['-shared', '-undefined', 'dynamic_lookup', ...objects], output); + + Future _compile(List flags, String output) async { final args = [...flags, '-o', output]; - const exec = 'clang'; logger.info('Running: $_comp ${args.join(" ")}'); final proc = await Process.run(_comp, args); logger.info(proc.stdout); diff --git a/pkgs/objective_c/lib/src/converter.dart b/pkgs/objective_c/lib/src/converter.dart index 53243cd3f..8ea22625d 100644 --- a/pkgs/objective_c/lib/src/converter.dart +++ b/pkgs/objective_c/lib/src/converter.dart @@ -21,41 +21,42 @@ ObjCObjectBase _defaultObjCConverter(Object o) => ObjCObjectBase toObjCObject( Object dartObject, { ObjCObjectBase Function(Object) convertOther = _defaultObjCConverter, -}) => - switch (dartObject) { - ObjCObjectBase() => dartObject, - num() => dartObject.toNSNumber(), - String() => dartObject.toNSString(), - DateTime() => dartObject.toNSDate(), - List() => dartObject.toNSArray(convertOther: convertOther), - Set() => dartObject.toNSSet(convertOther: convertOther), - Map() => - dartObject.toNSDictionary(convertOther: convertOther), - _ => convertOther(dartObject), - }; +}) => switch (dartObject) { + ObjCObjectBase() => dartObject, + num() => dartObject.toNSNumber(), + String() => dartObject.toNSString(), + DateTime() => dartObject.toNSDate(), + List() => dartObject.toNSArray(convertOther: convertOther), + Set() => dartObject.toNSSet(convertOther: convertOther), + Map() => dartObject.toNSDictionary( + convertOther: convertOther, + ), + _ => convertOther(dartObject), +}; extension DartListToNSArray on List { NSArray toNSArray({ ObjCObjectBase Function(Object) convertOther = _defaultObjCConverter, - }) => - NSArray.of(map((o) => toObjCObject(o, convertOther: convertOther))); + }) => NSArray.of(map((o) => toObjCObject(o, convertOther: convertOther))); } extension DartSetToNSSet on Set { NSSet toNSSet({ ObjCObjectBase Function(Object) convertOther = _defaultObjCConverter, - }) => - NSSet.of(map((o) => toObjCObject(o, convertOther: convertOther))); + }) => NSSet.of(map((o) => toObjCObject(o, convertOther: convertOther))); } extension DartMapToNSDictionary on Map { NSDictionary toNSDictionary({ ObjCObjectBase Function(Object) convertOther = _defaultObjCConverter, - }) => - NSDictionary.fromEntries(entries.map((kv) => MapEntry( - toObjCObject(kv.key, convertOther: convertOther) as NSCopying, - toObjCObject(kv.value, convertOther: convertOther), - ))); + }) => NSDictionary.fromEntries( + entries.map( + (kv) => MapEntry( + toObjCObject(kv.key, convertOther: convertOther) as NSCopying, + toObjCObject(kv.value, convertOther: convertOther), + ), + ), + ); } Object _defaultDartConverter(ObjCObjectBase o) => o; @@ -91,8 +92,9 @@ Object toDartObject( return NSSet.castFrom(objCObject).toDartSet(convertOther: convertOther); } if (NSDictionary.isInstance(objCObject)) { - return NSDictionary.castFrom(objCObject) - .toDartMap(convertOther: convertOther); + return NSDictionary.castFrom( + objCObject, + ).toDartMap(convertOther: convertOther); } return convertOther(objCObject); } @@ -100,22 +102,24 @@ Object toDartObject( extension NSArrayToDartList on NSArray { List toDartList({ Object Function(ObjCObjectBase) convertOther = _defaultDartConverter, - }) => - map((o) => toDartObject(o, convertOther: convertOther)).toList(); + }) => map((o) => toDartObject(o, convertOther: convertOther)).toList(); } extension NSSetToDartSet on NSSet { Set toDartSet({ Object Function(ObjCObjectBase) convertOther = _defaultDartConverter, - }) => - map((o) => toDartObject(o, convertOther: convertOther)).toSet(); + }) => map((o) => toDartObject(o, convertOther: convertOther)).toSet(); } extension NSDictionaryToDartMap on NSDictionary { Map toDartMap({ Object Function(ObjCObjectBase) convertOther = _defaultDartConverter, - }) => - Map.fromEntries(entries.map((kv) => MapEntry( - toDartObject(kv.key, convertOther: convertOther), - toDartObject(kv.value, convertOther: convertOther)))); + }) => Map.fromEntries( + entries.map( + (kv) => MapEntry( + toDartObject(kv.key, convertOther: convertOther), + toDartObject(kv.value, convertOther: convertOther), + ), + ), + ); } diff --git a/pkgs/objective_c/lib/src/internal.dart b/pkgs/objective_c/lib/src/internal.dart index 1d14eef42..7960d41bb 100644 --- a/pkgs/objective_c/lib/src/internal.dart +++ b/pkgs/objective_c/lib/src/internal.dart @@ -124,22 +124,26 @@ Pointer? getProtocolMethodSignature( required bool isInstanceMethod, }) { _ensureDartAPI(); - final sig = - r.getMethodDescription(protocol, sel, isRequired, isInstanceMethod).types; + final sig = r + .getMethodDescription(protocol, sel, isRequired, isInstanceMethod) + .types; return sig == nullptr ? null : sig; } /// Only for use by ffigen bindings. -final msgSendPointer = - Native.addressOf>(r.msgSend); +final msgSendPointer = Native.addressOf>( + r.msgSend, +); /// Only for use by ffigen bindings. -final msgSendFpretPointer = - Native.addressOf>(r.msgSendFpret); +final msgSendFpretPointer = Native.addressOf>( + r.msgSendFpret, +); /// Only for use by ffigen bindings. -final msgSendStretPointer = - Native.addressOf>(r.msgSendStret); +final msgSendStretPointer = Native.addressOf>( + r.msgSendStret, +); /// Only for use by ffigen bindings. final useMsgSendVariants = @@ -151,12 +155,17 @@ bool respondsToSelector(ObjectPtr obj, Pointer sel) => final _selRespondsToSelector = registerName('respondsToSelector:'); final _objcMsgSendRespondsToSelector = msgSendPointer .cast< - NativeFunction< - Bool Function(ObjectPtr, Pointer, - Pointer aSelector)>>() + NativeFunction< + Bool Function( + ObjectPtr, + Pointer, + Pointer aSelector, + ) + > + >() .asFunction< - bool Function( - ObjectPtr, Pointer, Pointer)>(); + bool Function(ObjectPtr, Pointer, Pointer) + >(); // _FinalizablePointer exists because we can't access `this` in the initializers // of _ObjCReference's constructor, and we have to have an owner to attach the @@ -177,7 +186,8 @@ void _ensureDartAPI() { } c.Dart_FinalizableHandle _newFinalizableHandle( - _FinalizablePointer finalizable) { + _FinalizablePointer finalizable, +) { _ensureDartAPI(); return c.newFinalizableHandle(finalizable, finalizable.ptr.cast()); } @@ -194,11 +204,14 @@ abstract final class _ObjCReference final c.Dart_FinalizableHandle? _ptrFinalizableHandle; final Pointer _isReleased; - _ObjCReference(this._finalizable, - {required bool retain, required bool release}) - : _ptrFinalizableHandle = - release ? _newFinalizableHandle(_finalizable) : null, - _isReleased = _newFinalizableBool(_finalizable) { + _ObjCReference( + this._finalizable, { + required bool retain, + required bool release, + }) : _ptrFinalizableHandle = release + ? _newFinalizableHandle(_finalizable) + : null, + _isReleased = _newFinalizableBool(_finalizable) { assert(_isValid(_finalizable.ptr)); if (retain) { _retain(_finalizable.ptr); @@ -276,7 +289,7 @@ class _ObjCRefHolder> { @pragma('vm:deeply-immutable') final class ObjCObjectRef extends _ObjCReference { ObjCObjectRef(ObjectPtr ptr, {required super.retain, required super.release}) - : super(_FinalizablePointer(ptr)); + : super(_FinalizablePointer(ptr)); @override void _retain(ObjectPtr ptr) => r.objectRetain(ptr); @@ -288,7 +301,7 @@ final class ObjCObjectRef extends _ObjCReference { /// Only for use by ffigen bindings. class ObjCObjectBase extends _ObjCRefHolder { ObjCObjectBase(ObjectPtr ptr, {required bool retain, required bool release}) - : super(ObjCObjectRef(ptr, retain: retain, release: release)); + : super(ObjCObjectRef(ptr, retain: retain, release: release)); } // Returns whether the object is valid and live. The pointer must point to @@ -330,7 +343,7 @@ class ObjCProtocolBase extends ObjCObjectBase { @pragma('vm:deeply-immutable') final class ObjCBlockRef extends _ObjCReference { ObjCBlockRef(BlockPtr ptr, {required super.retain, required super.release}) - : super(_FinalizablePointer(ptr)); + : super(_FinalizablePointer(ptr)); @override void _retain(BlockPtr ptr) => r.blockRetain(ptr.cast()); @@ -342,11 +355,12 @@ final class ObjCBlockRef extends _ObjCReference { /// Only for use by ffigen bindings. class ObjCBlockBase extends _ObjCRefHolder { ObjCBlockBase(BlockPtr ptr, {required bool retain, required bool release}) - : super(ObjCBlockRef(ptr, retain: retain, release: release)); + : super(ObjCBlockRef(ptr, retain: retain, release: release)); } Pointer _newBlockDesc( - Pointer> disposeHelper) { + Pointer> disposeHelper, +) { final desc = calloc.allocate(sizeOf()); desc.ref.reserved = 0; desc.ref.size = sizeOf(); @@ -358,11 +372,18 @@ Pointer _newBlockDesc( final _pointerBlockDesc = _newBlockDesc(nullptr); final _closureBlockDesc = _newBlockDesc( - Native.addressOf>( - c.disposeObjCBlockWithClosure)); - -BlockPtr _newBlock(VoidPtr invoke, VoidPtr target, - Pointer descriptor, int disposePort, int flags) { + Native.addressOf>( + c.disposeObjCBlockWithClosure, + ), +); + +BlockPtr _newBlock( + VoidPtr invoke, + VoidPtr target, + Pointer descriptor, + int disposePort, + int flags, +) { final b = calloc.allocate(sizeOf()); b.ref.isa = Native.addressOf>(r.NSConcreteGlobalBlock).cast(); b.ref.flags = flags; @@ -374,8 +395,10 @@ BlockPtr _newBlock(VoidPtr invoke, VoidPtr target, assert(c.isValidBlock(b)); final copy = r.blockRetain(b.cast()).cast(); calloc.free(b); - assert(copy.ref.isa == - Native.addressOf>(r.NSConcreteMallocBlock).cast()); + assert( + copy.ref.isa == + Native.addressOf>(r.NSConcreteMallocBlock).cast(), + ); assert(c.isValidBlock(copy)); return copy; } @@ -385,20 +408,18 @@ const int _blockHasCopyDispose = 1 << 25; /// Only for use by ffigen bindings. BlockPtr newClosureBlock(VoidPtr invoke, Function fn, bool keepIsolateAlive) => _newBlock( - invoke, - _registerBlockClosure(fn, keepIsolateAlive), - _closureBlockDesc, - _blockClosureDisposer.sendPort.nativePort, - _blockHasCopyDispose); + invoke, + _registerBlockClosure(fn, keepIsolateAlive), + _closureBlockDesc, + _blockClosureDisposer.sendPort.nativePort, + _blockHasCopyDispose, + ); /// Only for use by ffigen bindings. BlockPtr newPointerBlock(VoidPtr invoke, VoidPtr target) => _newBlock(invoke, target, _pointerBlockDesc, 0, 0); -typedef _RegEntry = ({ - Function closure, - RawReceivePort? keepAlivePort, -}); +typedef _RegEntry = ({Function closure, RawReceivePort? keepAlivePort}); final _blockClosureRegistry = {}; @@ -411,8 +432,7 @@ final _blockClosureDisposer = () { assert(_blockClosureRegistry.containsKey(id)); final entry = _blockClosureRegistry.remove(id)!; entry.keepAlivePort?.close(); - }, 'ObjCBlockClosureDisposer') - ..keepIsolateAlive = false; + }, 'ObjCBlockClosureDisposer')..keepIsolateAlive = false; }(); VoidPtr _registerBlockClosure(Function closure, bool keepIsolateAlive) { @@ -433,8 +453,9 @@ Function getBlockClosure(BlockPtr block) { } /// Only for use by ffigen bindings. -final Pointer objCContext = - c.fillContext(calloc()); +final Pointer objCContext = c.fillContext( + calloc(), +); // Not exported by ../objective_c.dart, because they're only for testing. bool blockHasRegisteredClosure(BlockPtr block) => diff --git a/pkgs/objective_c/lib/src/ns_date.dart b/pkgs/objective_c/lib/src/ns_date.dart index 5a301986d..4c12ca3d5 100644 --- a/pkgs/objective_c/lib/src/ns_date.dart +++ b/pkgs/objective_c/lib/src/ns_date.dart @@ -6,10 +6,12 @@ import 'objective_c_bindings_generated.dart'; extension DateTimeToNSDate on DateTime { NSDate toNSDate() => NSDate.dateWithTimeIntervalSince1970( - millisecondsSinceEpoch / Duration.millisecondsPerSecond); + millisecondsSinceEpoch / Duration.millisecondsPerSecond, + ); } extension NSDateToDateTime on NSDate { DateTime toDateTime() => DateTime.fromMillisecondsSinceEpoch( - (timeIntervalSince1970 * Duration.millisecondsPerSecond).toInt()); + (timeIntervalSince1970 * Duration.millisecondsPerSecond).toInt(), + ); } diff --git a/pkgs/objective_c/lib/src/ns_input_stream.dart b/pkgs/objective_c/lib/src/ns_input_stream.dart index 080a7b7e9..1f399965b 100644 --- a/pkgs/objective_c/lib/src/ns_input_stream.dart +++ b/pkgs/objective_c/lib/src/ns_input_stream.dart @@ -20,41 +20,55 @@ extension NSInputStreamStreamExtension on Stream> { const maxReadAheadSize = 4096; final port = ReceivePort(); - final inputStream = - DartInputStreamAdapter.inputStreamWithPort(port.sendPort.nativePort); + final inputStream = DartInputStreamAdapter.inputStreamWithPort( + port.sendPort.nativePort, + ); late final StreamSubscription dataSubscription; - dataSubscription = listen((data) { - if (inputStream.addData(data.toNSData()) > maxReadAheadSize) { - dataSubscription.pause(); - } - }, onError: (Object e) { - final d = NSMutableDictionary(); - d[getLocalizedDescriptionKey()] = e.toString().toNSString(); - inputStream.setError(NSError.errorWithDomain('DartError'.toNSString(), - code: 0, userInfo: d)); - port.close(); - }, onDone: () { - inputStream.setDone(); - port.close(); - }, cancelOnError: true); + dataSubscription = listen( + (data) { + if (inputStream.addData(data.toNSData()) > maxReadAheadSize) { + dataSubscription.pause(); + } + }, + onError: (Object e) { + final d = NSMutableDictionary(); + d[getLocalizedDescriptionKey()] = e.toString().toNSString(); + inputStream.setError( + NSError.errorWithDomain( + 'DartError'.toNSString(), + code: 0, + userInfo: d, + ), + ); + port.close(); + }, + onDone: () { + inputStream.setDone(); + port.close(); + }, + cancelOnError: true, + ); dataSubscription.pause(); - port.listen((count) { - // -1 indicates that the `NSInputStream` is closed. All other values - // indicate that the `NSInputStream` needs more data. - // - // If [DartInputStreamAdapter.setError] or - // [DartInputStreamAdapter.setDone] is called then the close message (-1) - // will not be sent when the input stream is closed. - if (count == -1) { - port.close(); - } else { - dataSubscription.resume(); - } - }, onDone: () { - dataSubscription.cancel(); - }); + port.listen( + (count) { + // -1 indicates that the `NSInputStream` is closed. All other values + // indicate that the `NSInputStream` needs more data. + // + // If [DartInputStreamAdapter.setError] or + // [DartInputStreamAdapter.setDone] is called then the close message (-1) + // will not be sent when the input stream is closed. + if (count == -1) { + port.close(); + } else { + dataSubscription.resume(); + } + }, + onDone: () { + dataSubscription.cancel(); + }, + ); return inputStream; } diff --git a/pkgs/objective_c/lib/src/observer.dart b/pkgs/objective_c/lib/src/observer.dart index 249f4a635..83230e99e 100644 --- a/pkgs/objective_c/lib/src/observer.dart +++ b/pkgs/objective_c/lib/src/observer.dart @@ -17,16 +17,21 @@ extension Observed on NSObject { /// This method wraps ObjC's `addObserver:forKeyPath:options:context:` method. /// However there is no matching `removeObserver` method, as /// [Observation.remove] serves that purpose. - Observation addObserver(Observer observer, - {required NSString forKeyPath, - NSKeyValueObservingOptions options = - NSKeyValueObservingOptions.NSKeyValueObservingOptionNew, - Pointer? context}) => - Observation._(DOBJCObservation().initForKeyPath(forKeyPath, - ofObject: this, - withObserver: observer, - options: options, - context: context ?? nullptr)); + Observation addObserver( + Observer observer, { + required NSString forKeyPath, + NSKeyValueObservingOptions options = + NSKeyValueObservingOptions.NSKeyValueObservingOptionNew, + Pointer? context, + }) => Observation._( + DOBJCObservation().initForKeyPath( + forKeyPath, + ofObject: this, + withObserver: observer, + options: options, + context: context ?? nullptr, + ), + ); } /// Represents a single KVO observation. diff --git a/pkgs/objective_c/lib/src/os_version.dart b/pkgs/objective_c/lib/src/os_version.dart index a594ecb17..9ff680cb5 100644 --- a/pkgs/objective_c/lib/src/os_version.dart +++ b/pkgs/objective_c/lib/src/os_version.dart @@ -55,7 +55,10 @@ void checkOsVersionInternal( } void _checkOsVersionInternalImpl( - String apiName, String osName, PlatformAvailability? availability) { + String apiName, + String osName, + PlatformAvailability? availability, +) { if (availability == null) return; final (bool unavailable, (int, int, int)? introduced) = availability; if (unavailable) { @@ -63,9 +66,10 @@ void _checkOsVersionInternalImpl( } if (introduced != null && osVersion < _toVersion(introduced)) { throw OsVersionError( - apiName, - 'is not supported on $osName before version $introduced.' - 'The current version is $osVersion'); + apiName, + 'is not supported on $osName before version $introduced.' + 'The current version is $osVersion', + ); } } diff --git a/pkgs/objective_c/lib/src/protocol_builder.dart b/pkgs/objective_c/lib/src/protocol_builder.dart index 733d19c8b..5980eb41d 100644 --- a/pkgs/objective_c/lib/src/protocol_builder.dart +++ b/pkgs/objective_c/lib/src/protocol_builder.dart @@ -23,7 +23,7 @@ class ObjCProtocolBuilder { objc.DartProtocolBuilder get builder => _builder; ObjCProtocolBuilder({String debugName = 'DOBJCDartProtocol'}) - : _builder = _createBuilder(debugName); + : _builder = _createBuilder(debugName); /// Add a method implementation to the protocol. /// @@ -31,8 +31,12 @@ class ObjCProtocolBuilder { /// implement methods on [ObjCProtocolMethod] and its subclasses. /// /// Note: You cannot call this method after you have called [build]. - void implementMethod(Pointer sel, Pointer signature, - Pointer trampoline, ObjCBlockBase block) { + void implementMethod( + Pointer sel, + Pointer signature, + Pointer trampoline, + ObjCBlockBase block, + ) { if (_built) { throw StateError('Protocol is already built'); } @@ -73,8 +77,9 @@ class ObjCProtocolBuilder { static final _rand = Random(); static objc.DartProtocolBuilder _createBuilder(String debugName) { final name = '${debugName}_${_rand.nextInt(1 << 32)}'.toNativeUtf8(); - final builder = - objc.DartProtocolBuilder.alloc().initWithClassName(name.cast()); + final builder = objc.DartProtocolBuilder.alloc().initWithClassName( + name.cast(), + ); calloc.free(name); return builder; } @@ -94,8 +99,13 @@ class ObjCProtocolMethod { final ObjCBlockBase Function(T) _createBlock; /// Only for use by ffigen bindings. - ObjCProtocolMethod(this._proto, this._sel, this._trampoline, this._signature, - this._createBlock); + ObjCProtocolMethod( + this._proto, + this._sel, + this._trampoline, + this._signature, + this._createBlock, + ); /// Implement this method on the protocol [builder] using a Dart [function]. /// @@ -143,13 +153,14 @@ class ObjCProtocolListenableMethod /// Only for use by ffigen bindings. ObjCProtocolListenableMethod( - super._proto, - super._sel, - super._trampoline, - super._signature, - super._createBlock, - this._createListenerBlock, - this._createBlockingBlock); + super._proto, + super._sel, + super._trampoline, + super._signature, + super._createBlock, + this._createListenerBlock, + this._createBlockingBlock, + ); /// Implement this method on the protocol [builder] as a listener using a Dart /// [function]. diff --git a/pkgs/objective_c/lib/src/selector.dart b/pkgs/objective_c/lib/src/selector.dart index 4ba7af056..f7d70583f 100644 --- a/pkgs/objective_c/lib/src/selector.dart +++ b/pkgs/objective_c/lib/src/selector.dart @@ -6,8 +6,8 @@ import 'dart:ffi'; import 'package:ffi/ffi.dart'; -import 'runtime_bindings_generated.dart' as r; import 'internal.dart'; +import 'runtime_bindings_generated.dart' as r; extension StringToSelector on String { /// Returns an Objective-C selector (aka `SEL`) for this [String]. diff --git a/pkgs/objective_c/pubspec.yaml b/pkgs/objective_c/pubspec.yaml index 2b44d899e..eb970adfc 100644 --- a/pkgs/objective_c/pubspec.yaml +++ b/pkgs/objective_c/pubspec.yaml @@ -19,8 +19,9 @@ environment: dependencies: code_assets: ^0.19.0 - hooks: ^0.19.0 ffi: ^2.1.0 + hooks: ^0.19.0 + logging: ^1.3.0 native_toolchain_c: ^0.16.0 pub_semver: ^2.1.4 @@ -38,9 +39,9 @@ dev_dependencies: dependency_overrides: code_assets: path: ../code_assets - hooks: - path: ../hooks ffigen: path: ../ffigen + hooks: + path: ../hooks native_toolchain_c: path: ../native_toolchain_c diff --git a/pkgs/objective_c/src/objective_c.c b/pkgs/objective_c/src/objective_c.c index c59a1906a..9b6e31446 100644 --- a/pkgs/objective_c/src/objective_c.c +++ b/pkgs/objective_c/src/objective_c.c @@ -50,10 +50,6 @@ FFI_EXPORT bool* DOBJC_newFinalizableBool(Dart_Handle owner) { return pointer; } -FFI_EXPORT intptr_t DOBJC_initializeApi(void* data) { - return Dart_InitializeApiDL(data); -} - FFI_EXPORT DOBJC_Context* DOBJC_fillContext(DOBJC_Context* context) { context->version = 1; context->newWaiter = DOBJC_newWaiter; diff --git a/pkgs/objective_c/src/objective_c.h b/pkgs/objective_c/src/objective_c.h index 382933798..033036d04 100644 --- a/pkgs/objective_c/src/objective_c.h +++ b/pkgs/objective_c/src/objective_c.h @@ -57,10 +57,6 @@ FFI_EXPORT bool *DOBJC_newFinalizableBool(Dart_Handle owner); // Runs fn(arg) on the main thread. If runOnMainThread is already running on the // main thread, fn(arg) is invoked synchronously. Otherwise it is dispatched to // the main thread (ie dispatch_async(dispatch_get_main_queue(), ...)). -// -// This assumes that the main thread is executing its queue. If not, #define -// NO_MAIN_THREAD_DISPATCH to disable this, and run fn(arg) synchronously. The -// flutter runner does execute the main dispatch queue, but the Dart VM doesn't. FFI_EXPORT void DOBJC_runOnMainThread(void (*fn)(void *), void *arg); // Functions for creating a waiter, signaling it, and waiting for the signal. A diff --git a/pkgs/objective_c/src/objective_c.m b/pkgs/objective_c/src/objective_c.m index cebdaba73..b55e7af84 100644 --- a/pkgs/objective_c/src/objective_c.m +++ b/pkgs/objective_c/src/objective_c.m @@ -8,20 +8,26 @@ #import #include "ffi.h" +#include "include/dart_api_dl.h" #include "os_version.h" +_Atomic bool _mainThreadIsListening = false; + +FFI_EXPORT intptr_t DOBJC_initializeApi(void* data) { + dispatch_async(dispatch_get_main_queue(), ^{ + _mainThreadIsListening = true; + }); + return Dart_InitializeApiDL(data); +} + FFI_EXPORT void DOBJC_runOnMainThread(void (*fn)(void *), void *arg) { -#ifdef NO_MAIN_THREAD_DISPATCH - fn(arg); -#else - if ([NSThread isMainThread]) { + if (!_mainThreadIsListening || [NSThread isMainThread]) { fn(arg); } else { dispatch_async(dispatch_get_main_queue(), ^{ fn(arg); }); } -#endif } @interface DOBJCWaiter : NSObject {} diff --git a/pkgs/objective_c/test/cf_string_test.dart b/pkgs/objective_c/test/cf_string_test.dart index 066c1353e..dbde1fb1f 100644 --- a/pkgs/objective_c/test/cf_string_test.dart +++ b/pkgs/objective_c/test/cf_string_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; @@ -15,8 +13,11 @@ void main() { group('CFString', () { for (final s in ['Hello', '🇵🇬', 'Embedded\u0000Null']) { test('CFString conversions [$s]', () { - final cfString = - s.toNSString().ref.retainAndAutorelease().cast(); + final cfString = s + .toNSString() + .ref + .retainAndAutorelease() + .cast(); expect(cfString.toDartString(), s); expect(cfString.toNSString().toDartString(), s); }); diff --git a/pkgs/objective_c/test/converter_test.dart b/pkgs/objective_c/test/converter_test.dart index ac47a6312..4a97ccc9b 100644 --- a/pkgs/objective_c/test/converter_test.dart +++ b/pkgs/objective_c/test/converter_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; @@ -31,8 +29,10 @@ void main() { expect((toObjCObject('hello') as NSString).toDartString(), 'hello'); expect(toObjCObject(DateTime(2025)), isA()); - expect((toObjCObject(DateTime(2025)) as NSDate).toDateTime(), - DateTime(2025)); + expect( + (toObjCObject(DateTime(2025)) as NSDate).toDateTime(), + DateTime(2025), + ); }); test('list', () { @@ -54,8 +54,8 @@ void main() { [2, 3], [ 4, - [5] - ] + [5], + ], ]; final nestedObjCList = toObjCObject(nestedDartList) as NSArray; expect(toDartObject(nestedObjCList), nestedDartList); @@ -80,8 +80,8 @@ void main() { {2, 3}, { 4, - {5} - } + {5}, + }, }; final nestedObjCSet = toObjCObject(nestedDartSet) as NSSet; expect(toDartObject(nestedObjCSet), nestedDartSet); @@ -104,16 +104,18 @@ void main() { final nestedDartMap = { 1: {2: 3}, 4: { - 5: {6: 7} - } + 5: {6: 7}, + }, }; final nestedObjCMap = toObjCObject(nestedDartMap) as NSDictionary; expect(toDartObject(nestedObjCMap), nestedDartMap); }); test('unsupported type', () { - expect(() => toObjCObject(Future.value()), - throwsA(isA())); + expect( + () => toObjCObject(Future.value()), + throwsA(isA()), + ); final obj = NSObject(); expect(toObjCObject(obj), obj); diff --git a/pkgs/objective_c/test/generate_code_test.dart b/pkgs/objective_c/test/generate_code_test.dart index c53379200..511a21e4e 100644 --- a/pkgs/objective_c/test/generate_code_test.dart +++ b/pkgs/objective_c/test/generate_code_test.dart @@ -22,23 +22,26 @@ void main() { await expectLater(generate_code.run(format: true), completes); // Sanity check the generated code. - final rBindings = - File('lib/src/runtime_bindings_generated.dart').readAsStringSync(); + final rBindings = File( + 'lib/src/runtime_bindings_generated.dart', + ).readAsStringSync(); expect(rBindings, contains('sel_registerName')); expect(rBindings, contains('objc_msgSend')); expect(rBindings, contains('_NSConcreteGlobalBlock')); expect(rBindings, contains('ObjCObject')); - final cBindings = - File('lib/src/c_bindings_generated.dart').readAsStringSync(); + final cBindings = File( + 'lib/src/c_bindings_generated.dart', + ).readAsStringSync(); expect(cBindings, contains('fillContext')); expect(cBindings, contains('DOBJC_Context')); expect(cBindings, contains('Dart_FinalizableHandle')); expect(cBindings, contains('ILLEGAL_PORT')); expect(cBindings, contains('ObjCBlockImpl')); - final objcBindings = File('lib/src/objective_c_bindings_generated.dart') - .readAsStringSync(); + final objcBindings = File( + 'lib/src/objective_c_bindings_generated.dart', + ).readAsStringSync(); expect(objcBindings, contains('class NSObject')); expect(objcBindings, contains('class NSString')); expect(objcBindings, contains('factory NSString(String str)')); diff --git a/pkgs/objective_c/test/interface_lists_test.dart b/pkgs/objective_c/test/interface_lists_test.dart index ddf2edb4b..6ba8cb3e0 100644 --- a/pkgs/objective_c/test/interface_lists_test.dart +++ b/pkgs/objective_c/test/interface_lists_test.dart @@ -18,20 +18,25 @@ import 'util.dart'; // case where the sets are different lengths, the default matcher just says the // lengths don't match. This function says exactly what the difference is. void expectSetsEqual(String name, Set expected, Set actual) { - expect(expected.difference(actual), {}, - reason: 'Found elements that are missing from $name'); - expect(actual.difference(expected), {}, - reason: "Found extra elements that shouldn't be in $name"); + expect( + expected.difference(actual), + {}, + reason: 'Found elements that are missing from $name', + ); + expect( + actual.difference(expected), + {}, + reason: "Found extra elements that shouldn't be in $name", + ); } void main() { group('Verify interface lists', () { late final List bindings; setUpAll(() { - bindings = File(p.join( - pkgDir, 'lib', 'src', 'objective_c_bindings_generated.dart')) - .readAsLinesSync() - .toList(); + bindings = File( + p.join(pkgDir, 'lib', 'src', 'objective_c_bindings_generated.dart'), + ).readAsLinesSync().toList(); }); Set findBindings(RegExp re) => @@ -39,15 +44,22 @@ void main() { test('All code genned interfaces are included in the list', () { final allClassNames = findBindings(RegExp(r'^class ([^_]\w*) ')); - expectSetsEqual('generated classes', objCBuiltInInterfaces.values.toSet(), - allClassNames); + expectSetsEqual( + 'generated classes', + objCBuiltInInterfaces.values.toSet(), + allClassNames, + ); }); test('All code genned structs are included in the list', () { final allStructNames = findBindings( - RegExp(r'^final class (\w+) extends ffi\.(Struct|Opaque)')); - expectSetsEqual('generated structs', objCBuiltInCompounds.values.toSet(), - allStructNames); + RegExp(r'^final class (\w+) extends ffi\.(Struct|Opaque)'), + ); + expectSetsEqual( + 'generated structs', + objCBuiltInCompounds.values.toSet(), + allStructNames, + ); }); test('All code genned enums are included in the list', () { @@ -57,15 +69,22 @@ void main() { test('All code genned protocols are included in the list', () { final allProtocolNames = findBindings(RegExp(r'^interface class (\w+) ')); - expectSetsEqual('generated protocols', - objCBuiltInProtocols.values.toSet(), allProtocolNames); + expectSetsEqual( + 'generated protocols', + objCBuiltInProtocols.values.toSet(), + allProtocolNames, + ); }); test('All code genned categories are included in the list', () { - final allCategoryNames = - findBindings(RegExp(r'^extension (\w+) on \w+ {')); + final allCategoryNames = findBindings( + RegExp(r'^extension (\w+) on \w+ {'), + ); expectSetsEqual( - 'generated categories', objCBuiltInCategories, allCategoryNames); + 'generated categories', + objCBuiltInCategories, + allCategoryNames, + ); }); test('All code genned globals are included in the list', () { diff --git a/pkgs/objective_c/test/ns_input_stream_test.dart b/pkgs/objective_c/test/ns_input_stream_test.dart index f63823fe5..26dc86378 100644 --- a/pkgs/objective_c/test/ns_input_stream_test.dart +++ b/pkgs/objective_c/test/ns_input_stream_test.dart @@ -21,21 +21,23 @@ import 'package:test/test.dart'; import 'util.dart'; Future<(int, Uint8List, bool, NSStreamStatus, NSError?)> read( - NSInputStream stream, int size) => - Isolate.run(() { - final buffer = calloc(size); - final readSize = stream.read(buffer, maxLength: size); - final data = - Uint8List.fromList(buffer.asTypedList(readSize == -1 ? 0 : readSize)); - calloc.free(buffer); - return ( - readSize, - data, - stream.hasBytesAvailable, - stream.streamStatus, - stream.streamError, - ); - }); + NSInputStream stream, + int size, +) => Isolate.run(() { + final buffer = calloc(size); + final readSize = stream.read(buffer, maxLength: size); + final data = Uint8List.fromList( + buffer.asTypedList(readSize == -1 ? 0 : readSize), + ); + calloc.free(buffer); + return ( + readSize, + data, + stream.hasBytesAvailable, + stream.streamStatus, + stream.streamError, + ); +}); void main() { group('NSInputStream', () { @@ -49,7 +51,9 @@ void main() { test('initial state', () { expect( - inputStream.streamStatus, NSStreamStatus.NSStreamStatusNotOpen); + inputStream.streamStatus, + NSStreamStatus.NSStreamStatusNotOpen, + ); expect(inputStream.streamError, null); }); @@ -61,8 +65,10 @@ void main() { test('read', () async { inputStream.open(); - final (count, data, hasBytesAvailable, status, error) = - await read(inputStream, 10); + final (count, data, hasBytesAvailable, status, error) = await read( + inputStream, + 10, + ); expect(count, 0); expect(data, isEmpty); expect(hasBytesAvailable, false); @@ -72,8 +78,10 @@ void main() { }); test('read without open', () async { - final (count, data, hasBytesAvailable, status, error) = - await read(inputStream, 10); + final (count, data, hasBytesAvailable, status, error) = await read( + inputStream, + 10, + ); expect(count, -1); expect(data, isEmpty); expect(hasBytesAvailable, false); @@ -96,13 +104,15 @@ void main() { inputStream = Stream.fromIterable([ [1], [2, 3], - [4, 5, 6] + [4, 5, 6], ]).toNSInputStream(); }); test('initial state', () { expect( - inputStream.streamStatus, NSStreamStatus.NSStreamStatusNotOpen); + inputStream.streamStatus, + NSStreamStatus.NSStreamStatusNotOpen, + ); expect(inputStream.streamError, null); }); @@ -114,8 +124,10 @@ void main() { test('partial read', () async { inputStream.open(); - final (count, data, hasBytesAvailable, status, error) = - await read(inputStream, 5); + final (count, data, hasBytesAvailable, status, error) = await read( + inputStream, + 5, + ); expect(count, lessThanOrEqualTo(5)); expect(count, greaterThanOrEqualTo(1)); expect(data, [1, 2, 3, 4, 5].sublist(0, count)); @@ -128,8 +140,10 @@ void main() { inputStream.open(); final readData = []; while (true) { - final (count, data, hasBytesAvailable, status, error) = - await read(inputStream, 6); + final (count, data, hasBytesAvailable, status, error) = await read( + inputStream, + 6, + ); readData.addAll(data); expect(error, isNull); @@ -143,8 +157,10 @@ void main() { }); test('read without open', () async { - final (count, data, hasBytesAvailable, status, error) = - await read(inputStream, 10); + final (count, data, hasBytesAvailable, status, error) = await read( + inputStream, + 10, + ); expect(count, -1); expect(data, isEmpty); expect(hasBytesAvailable, false); @@ -172,8 +188,10 @@ void main() { test('partial read', () async { inputStream.open(); - final (count, data, hasBytesAvailable, status, error) = - await read(inputStream, 100000); + final (count, data, hasBytesAvailable, status, error) = await read( + inputStream, + 100000, + ); expect(count, lessThanOrEqualTo(100000)); expect(count, greaterThanOrEqualTo(1)); expect(data, testData.sublist(0, count)); @@ -186,8 +204,10 @@ void main() { inputStream.open(); final readData = []; while (true) { - final (count, data, hasBytesAvailable, status, error) = - await read(inputStream, Random.secure().nextInt(100000)); + final (count, data, hasBytesAvailable, status, error) = await read( + inputStream, + Random.secure().nextInt(100000), + ); readData.addAll(data); @@ -208,53 +228,67 @@ void main() { inputStream = () async* { yield [1, 2]; throw const FileSystemException('some exception message'); - }() - .toNSInputStream(); + }().toNSInputStream(); inputStream.open(); - final (count1, data1, hasBytesAvailable1, status1, error1) = - await read(inputStream, 10); + final (count1, data1, hasBytesAvailable1, status1, error1) = await read( + inputStream, + 10, + ); expect(count1, 2); expect(data1, [1, 2]); expect(hasBytesAvailable1, true); expect(status1, NSStreamStatus.NSStreamStatusOpen); expect(error1, isNull); - final (count2, _, hasBytesAvailable2, status2, error2) = - await read(inputStream, 10); + final (count2, _, hasBytesAvailable2, status2, error2) = await read( + inputStream, + 10, + ); expect(count2, -1); expect(hasBytesAvailable2, false); expect(status2, NSStreamStatus.NSStreamStatusError); expect( - error2, - isA() - .having((e) => e.localizedDescription.toDartString(), - 'localizedDescription', contains('some exception message')) - .having((e) => e.domain.toDartString(), 'domain', 'DartError')); + error2, + isA() + .having( + (e) => e.localizedDescription.toDartString(), + 'localizedDescription', + contains('some exception message'), + ) + .having((e) => e.domain.toDartString(), 'domain', 'DartError'), + ); }); group('delegate', () { late DartInputStreamAdapter inputStream; setUp(() { - inputStream = Stream.fromIterable([ - [1, 2, 3], - ]).toNSInputStream() as DartInputStreamAdapter; + inputStream = + Stream.fromIterable([ + [1, 2, 3], + ]).toNSInputStream() + as DartInputStreamAdapter; }); test('default delegate', () async { expect(inputStream.delegate, inputStream); - inputStream.stream(inputStream, - handleEvent: NSStreamEvent.NSStreamEventOpenCompleted); + inputStream.stream( + inputStream, + handleEvent: NSStreamEvent.NSStreamEventOpenCompleted, + ); }); test('non-self delegate', () async { final events = []; inputStream.delegate = NSStreamDelegate.implement( - stream_handleEvent_: (stream, event) => events.add(event)); - inputStream.stream(inputStream, - handleEvent: NSStreamEvent.NSStreamEventOpenCompleted); + stream_handleEvent_: (stream, event) => events.add(event), + ); + inputStream.stream( + inputStream, + handleEvent: NSStreamEvent.NSStreamEventOpenCompleted, + ); expect(events, [NSStreamEvent.NSStreamEventOpenCompleted]); }); @@ -267,9 +301,11 @@ void main() { group('ref counting', () { test('with self delegate', () async { final pool = autoreleasePoolPush(); - DartInputStreamAdapter? inputStream = Stream.fromIterable([ - [1, 2, 3], - ]).toNSInputStream() as DartInputStreamAdapter; + DartInputStreamAdapter? inputStream = + Stream.fromIterable([ + [1, 2, 3], + ]).toNSInputStream() + as DartInputStreamAdapter; expect(inputStream.delegate, inputStream); @@ -290,9 +326,11 @@ void main() { test('with non-self delegate', () async { final pool = autoreleasePoolPush(); - DartInputStreamAdapter? inputStream = Stream.fromIterable([ - [1, 2, 3], - ]).toNSInputStream() as DartInputStreamAdapter; + DartInputStreamAdapter? inputStream = + Stream.fromIterable([ + [1, 2, 3], + ]).toNSInputStream() + as DartInputStreamAdapter; inputStream.delegate = NSStreamDelegate.castFrom(NSObject()); expect(inputStream.delegate, isNot(inputStream)); diff --git a/pkgs/objective_c/test/nsarray_test.dart b/pkgs/objective_c/test/nsarray_test.dart index e19f3a733..1a0dbc46c 100644 --- a/pkgs/objective_c/test/nsarray_test.dart +++ b/pkgs/objective_c/test/nsarray_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; diff --git a/pkgs/objective_c/test/nsdate_test.dart b/pkgs/objective_c/test/nsdate_test.dart index e391fec93..4079e60b4 100644 --- a/pkgs/objective_c/test/nsdate_test.dart +++ b/pkgs/objective_c/test/nsdate_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; @@ -20,8 +18,9 @@ void main() { }); test('to DateTime', () { - final dartFirstAppeared = - NSDate.dateWithTimeIntervalSince1970(1318204800); + final dartFirstAppeared = NSDate.dateWithTimeIntervalSince1970( + 1318204800, + ); final dateTime = dartFirstAppeared.toDateTime(); expect(dateTime.toUtc().toString(), '2011-10-10 00:00:00.000Z'); }); diff --git a/pkgs/objective_c/test/nsdictionary_test.dart b/pkgs/objective_c/test/nsdictionary_test.dart index 347bd92ed..7c860561c 100644 --- a/pkgs/objective_c/test/nsdictionary_test.dart +++ b/pkgs/objective_c/test/nsdictionary_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; @@ -21,11 +19,7 @@ void main() { final obj5 = 'obj5'.toNSString(); final obj6 = 'obj6'.toNSString(); - final dict = NSDictionary.of({ - obj1: obj2, - obj3: obj4, - obj5: obj6, - }); + final dict = NSDictionary.of({obj1: obj2, obj3: obj4, obj5: obj6}); expect(dict.length, 3); expect(dict[obj1], obj2); @@ -58,11 +52,9 @@ void main() { // NSDictionary.of actually returns a NSMutableDictionary, so our // immutability tests wouldn't actually work. So convert it to a real // NSDictionary using an ObjC constructor. - final dict = NSDictionary.dictionaryWithDictionary(NSDictionary.of({ - obj1: obj2, - obj3: obj4, - obj5: obj6, - })); + final dict = NSDictionary.dictionaryWithDictionary( + NSDictionary.of({obj1: obj2, obj3: obj4, obj5: obj6}), + ); expect(() => dict[obj3] = obj1, throwsUnsupportedError); expect(dict.clear, throwsUnsupportedError); @@ -77,11 +69,7 @@ void main() { final obj5 = 'obj5'.toNSString(); final obj6 = 'obj6'.toNSString(); - final dict = NSDictionary.of({ - obj1: obj2, - obj3: obj4, - obj5: obj6, - }); + final dict = NSDictionary.of({obj1: obj2, obj3: obj4, obj5: obj6}); expect(dict.isNotEmpty, isTrue); expect(dict.containsKey(obj1), isTrue); @@ -90,18 +78,15 @@ void main() { expect(dict.containsValue(obj3), isFalse); expect( - dict.map((key, value) => - MapEntry(value, key)), - { - obj2: obj1, - obj4: obj3, - obj6: obj5, - }); + dict.map( + (key, value) => MapEntry(value, key), + ), + {obj2: obj1, obj4: obj3, obj6: obj5}, + ); expect( - dict.keys - .map((key) => NSString.castFrom(key).toDartString()) - .toList(), - unorderedEquals(['obj1', 'obj3', 'obj5'])); + dict.keys.map((key) => NSString.castFrom(key).toDartString()).toList(), + unorderedEquals(['obj1', 'obj3', 'obj5']), + ); expect(dict.values.toList(), unorderedEquals([obj2, obj4, obj6])); }); }); diff --git a/pkgs/objective_c/test/nsmutablearray_test.dart b/pkgs/objective_c/test/nsmutablearray_test.dart index d9dedddff..b77706182 100644 --- a/pkgs/objective_c/test/nsmutablearray_test.dart +++ b/pkgs/objective_c/test/nsmutablearray_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; diff --git a/pkgs/objective_c/test/nsmutabledictionary_test.dart b/pkgs/objective_c/test/nsmutabledictionary_test.dart index a922537f6..eefcdaa41 100644 --- a/pkgs/objective_c/test/nsmutabledictionary_test.dart +++ b/pkgs/objective_c/test/nsmutabledictionary_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; @@ -21,11 +19,7 @@ void main() { final obj5 = 'obj5'.toNSString(); final obj6 = 'obj6'.toNSString(); - final dict = NSMutableDictionary.of({ - obj1: obj2, - obj3: obj4, - obj5: obj6, - }); + final dict = NSMutableDictionary.of({obj1: obj2, obj3: obj4, obj5: obj6}); expect(dict.length, 3); expect(dict[obj1], obj2); @@ -55,26 +49,15 @@ void main() { final obj5 = 'obj5'.toNSString(); final obj6 = 'obj6'.toNSString(); - final dict = NSMutableDictionary.of({ - obj1: obj2, - obj3: obj4, - obj5: obj6, - }); + final dict = NSMutableDictionary.of({obj1: obj2, obj3: obj4, obj5: obj6}); dict[obj3] = obj1; - expect(dict, { - obj1: obj2, - obj3: obj1, - obj5: obj6, - }); + expect(dict, {obj1: obj2, obj3: obj1, obj5: obj6}); expect(dict.remove(null), null); expect((dict as Map).remove(123), null); expect(dict.remove(obj1), obj2); - expect(dict, { - obj3: obj1, - obj5: obj6, - }); + expect(dict, {obj3: obj1, obj5: obj6}); dict.clear(); expect(dict, {}); @@ -88,11 +71,7 @@ void main() { final obj5 = 'obj5'.toNSString(); final obj6 = 'obj6'.toNSString(); - final dict = NSMutableDictionary.of({ - obj1: obj2, - obj3: obj4, - obj5: obj6, - }); + final dict = NSMutableDictionary.of({obj1: obj2, obj3: obj4, obj5: obj6}); expect(dict.isNotEmpty, isTrue); expect(dict.containsKey(obj1), isTrue); @@ -101,18 +80,15 @@ void main() { expect(dict.containsValue(obj3), isFalse); expect( - dict.map((key, value) => - MapEntry(value, key)), - { - obj2: obj1, - obj4: obj3, - obj6: obj5, - }); + dict.map( + (key, value) => MapEntry(value, key), + ), + {obj2: obj1, obj4: obj3, obj6: obj5}, + ); expect( - dict.keys - .map((key) => NSString.castFrom(key).toDartString()) - .toList(), - unorderedEquals(['obj1', 'obj3', 'obj5'])); + dict.keys.map((key) => NSString.castFrom(key).toDartString()).toList(), + unorderedEquals(['obj1', 'obj3', 'obj5']), + ); expect(dict.values.toList(), unorderedEquals([obj2, obj4, obj6])); }); }); diff --git a/pkgs/objective_c/test/nsmutableset_test.dart b/pkgs/objective_c/test/nsmutableset_test.dart index 6278f38d9..2de160122 100644 --- a/pkgs/objective_c/test/nsmutableset_test.dart +++ b/pkgs/objective_c/test/nsmutableset_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; diff --git a/pkgs/objective_c/test/nsnumber_test.dart b/pkgs/objective_c/test/nsnumber_test.dart index 3134f7107..4cca1eb1f 100644 --- a/pkgs/objective_c/test/nsnumber_test.dart +++ b/pkgs/objective_c/test/nsnumber_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; diff --git a/pkgs/objective_c/test/nsset_test.dart b/pkgs/objective_c/test/nsset_test.dart index 21973c38f..ff5253fd1 100644 --- a/pkgs/objective_c/test/nsset_test.dart +++ b/pkgs/objective_c/test/nsset_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; diff --git a/pkgs/objective_c/test/nsstring_test.dart b/pkgs/objective_c/test/nsstring_test.dart index 4e79b512d..9aaf5052e 100644 --- a/pkgs/objective_c/test/nsstring_test.dart +++ b/pkgs/objective_c/test/nsstring_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; diff --git a/pkgs/objective_c/test/observer_test.dart b/pkgs/objective_c/test/observer_test.dart index 1456a91d3..1f68c94c3 100644 --- a/pkgs/objective_c/test/observer_test.dart +++ b/pkgs/objective_c/test/observer_test.dart @@ -24,15 +24,19 @@ void main() { final values = []; final observer = Observer.implement( - observeValueForKeyPath_ofObject_change_context_: (NSString keyPath, + observeValueForKeyPath_ofObject_change_context_: + ( + NSString keyPath, ObjCObjectBase object, NSDictionary change, - Pointer context) { - expect(keyPath.toDartString(), 'totalUnitCount'); - expect(object, observed); - expect(context.address, 0x1234); - values.add(toDartObject(change[NSKeyValueChangeNewKey]!)); - }); + Pointer context, + ) { + expect(keyPath.toDartString(), 'totalUnitCount'); + expect(object, observed); + expect(context.address, 0x1234); + values.add(toDartObject(change[NSKeyValueChangeNewKey]!)); + }, + ); final observation = observed.addObserver( observer, forKeyPath: 'totalUnitCount'.toNSString(), @@ -61,16 +65,22 @@ void main() { final values = []; final observer = Observer.implement( - observeValueForKeyPath_ofObject_change_context_: (NSString keyPath, + observeValueForKeyPath_ofObject_change_context_: + ( + NSString keyPath, ObjCObjectBase object, NSDictionary change, - Pointer context) { - values.add(toDartObject(change[NSKeyValueChangeNewKey]!)); - }); + Pointer context, + ) { + values.add(toDartObject(change[NSKeyValueChangeNewKey]!)); + }, + ); () { - final observation = observed.addObserver(observer, - forKeyPath: 'totalUnitCount'.toNSString()); + final observation = observed.addObserver( + observer, + forKeyPath: 'totalUnitCount'.toNSString(), + ); observed.totalUnitCount = 123; expect(values, [123]); @@ -91,19 +101,25 @@ void main() { final pool = autoreleasePoolPush(); NSProgress? observed = NSProgress(); Observer? observer = Observer.implement( - observeValueForKeyPath_ofObject_change_context_: (NSString keyPath, + observeValueForKeyPath_ofObject_change_context_: + ( + NSString keyPath, ObjCObjectBase object, NSDictionary change, - Pointer context) { - values.add(toDartObject(change[NSKeyValueChangeNewKey]!)); - - // This is testing that a captured reference from the observer to - // the observed object does not cause leak. - expect(object, observed); - }); + Pointer context, + ) { + values.add(toDartObject(change[NSKeyValueChangeNewKey]!)); + + // This is testing that a captured reference from the observer to + // the observed object does not cause leak. + expect(object, observed); + }, + ); - Observation? observation = observed.addObserver(observer, - forKeyPath: 'totalUnitCount'.toNSString()); + Observation? observation = observed.addObserver( + observer, + forKeyPath: 'totalUnitCount'.toNSString(), + ); autoreleasePoolPop(pool); observed.totalUnitCount = 123; @@ -139,13 +155,19 @@ void main() { final pool = autoreleasePoolPush(); NSProgress? observed = NSProgress(); Observer? observer = Observer.implement( - observeValueForKeyPath_ofObject_change_context_: (NSString keyPath, + observeValueForKeyPath_ofObject_change_context_: + ( + NSString keyPath, ObjCObjectBase object, NSDictionary change, - Pointer context) {}); + Pointer context, + ) {}, + ); - final observation = observed.addObserver(observer, - forKeyPath: 'totalUnitCount'.toNSString()); + final observation = observed.addObserver( + observer, + forKeyPath: 'totalUnitCount'.toNSString(), + ); autoreleasePoolPop(pool); final observedRaw = observed.ref.pointer; diff --git a/pkgs/objective_c/test/os_version_test.dart b/pkgs/objective_c/test/os_version_test.dart index a4f454121..aed4c57f1 100644 --- a/pkgs/objective_c/test/os_version_test.dart +++ b/pkgs/objective_c/test/os_version_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; @@ -22,10 +20,14 @@ void main() { test('check', () { // This test is only run on macOS. expect(checkOSVersion(iOS: Version(1, 0, 0)), isFalse); - expect(checkOSVersion(iOS: Version(1, 0, 0), macOS: Version(11, 0, 0)), - isTrue); - expect(checkOSVersion(iOS: Version(1, 0, 0), macOS: Version(1000, 0, 0)), - isFalse); + expect( + checkOSVersion(iOS: Version(1, 0, 0), macOS: Version(11, 0, 0)), + isTrue, + ); + expect( + checkOSVersion(iOS: Version(1, 0, 0), macOS: Version(1000, 0, 0)), + isFalse, + ); expect(checkOSVersion(macOS: Version(11, 0, 0)), isTrue); expect(checkOSVersion(macOS: Version(1000, 0, 0)), isFalse); }); diff --git a/pkgs/objective_c/test/selector_test.dart b/pkgs/objective_c/test/selector_test.dart index 8f24ec183..9a96dd1a7 100644 --- a/pkgs/objective_c/test/selector_test.dart +++ b/pkgs/objective_c/test/selector_test.dart @@ -6,8 +6,6 @@ @TestOn('mac-os') library; -import 'dart:ffi'; - import 'package:objective_c/objective_c.dart'; import 'package:test/test.dart'; diff --git a/pkgs/objective_c/test/setup.dart b/pkgs/objective_c/test/setup.dart deleted file mode 100644 index 332af1ab6..000000000 --- a/pkgs/objective_c/test/setup.dart +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -// When users import package:objective_c as a plugin, Flutter builds our native -// code automatically. But we want to be able to run tests using `dart test`, so -// we can't use Flutter's build system. So this script builds a dylib containing -// all that native code. - -// ignore_for_file: avoid_print - -import 'dart:ffi'; -import 'dart:io'; - -import 'package:args/args.dart'; - -final cFiles = [ - 'src/objective_c.c', - 'src/include/dart_api_dl.c', - 'test/util.c', -].map(_resolve); -final cMain = _resolve('test/main.c'); -final objCFiles = [ - 'src/input_stream_adapter.m', - 'src/ns_number.m', - 'src/objective_c.m', - 'src/objective_c_bindings_generated.m', - 'src/observer.m', - 'src/protocol.m', -].map(_resolve); -const objCFlags = [ - '-x', - 'objective-c', - '-fobjc-arc', -]; -final outputFile = _resolve('test/objective_c.dylib'); - -final _repoDir = () { - var path = Platform.script; - while (path.pathSegments.isNotEmpty) { - path = path.resolve('..'); - if (Directory(path.resolve('.git').toFilePath()).existsSync()) { - return path; - } - } - throw Exception("Can't find .git dir above ${Platform.script}"); -}(); -final _pkgDir = _repoDir.resolve('pkgs/objective_c/'); -String _resolve(String file) => _pkgDir.resolve(file).toFilePath(); - -void _runClang(List flags, String output) { - final args = [ - ...flags, - '-o', - output, - ]; - const exec = 'clang'; - print('Running: $exec ${args.join(" ")}'); - final proc = Process.runSync(exec, args); - print(proc.stdout); - print(proc.stderr); - if (proc.exitCode != 0) { - exitCode = proc.exitCode; - throw Exception('Command failed: $exec ${args.join(" ")}'); - } - print('Generated $output'); -} - -String _buildObject(String input, List flags) { - final output = '$input.o'; - _runClang([...flags, '-c', input, '-fpic', '-I', 'src'], output); - return output; -} - -void _linkLib(List inputs, String output) => - _runClang(['-shared', '-undefined', 'dynamic_lookup', ...inputs], output); - -void _linkMain(List inputs, String output) => - _runClang(['-dead_strip', '-fobjc-arc', ...inputs], output); - -void main(List arguments) { - final parser = ArgParser(); - parser.addFlag('main-thread-dispatcher'); - final args = parser.parse(arguments); - - final flags = [ - if (!args.flag('main-thread-dispatcher')) '-DNO_MAIN_THREAD_DISPATCH', - ]; - final objFiles = [ - for (final src in cFiles) _buildObject(src, flags), - for (final src in objCFiles) _buildObject(src, [...objCFlags, ...flags]), - ]; - _linkLib(objFiles, outputFile); - - // Sanity check that the dylib was created correctly. - final lib = DynamicLibrary.open(outputFile); - lib.lookup('DOBJC_disposeObjCBlockWithClosure'); // objective_c.c - lib.lookup('DOBJC_runOnMainThread'); // objective_c.m - lib.lookup('Dart_InitializeApiDL'); // dart_api_dl.c - lib.lookup('OBJC_CLASS_\$_DOBJCDartProtocol'); // protocol.m - lib.lookup('OBJC_CLASS_\$_DOBJCObservation'); // observer.m - // objective_c_bindings_generated.m - lib.lookup('_ObjectiveCBindings_wrapListenerBlock_ovsamd'); - - // Sanity check that the executable can find FFI symbols. - _linkMain([...objFiles, cMain], '$cMain.exe'); - final result = Process.runSync('$cMain.exe', []); - if (result.exitCode != 0) { - throw Exception('Missing symbols from executable:\n${result.stderr}'); - } -} diff --git a/pkgs/objective_c/test/util.dart b/pkgs/objective_c/test/util.dart index 35354e5b5..85967c5d6 100644 --- a/pkgs/objective_c/test/util.dart +++ b/pkgs/objective_c/test/util.dart @@ -12,15 +12,16 @@ import 'dart:io'; import 'package:ffi/ffi.dart'; import 'package:objective_c/objective_c.dart'; -import 'package:objective_c/src/internal.dart' as internal_for_testing +import 'package:objective_c/src/internal.dart' + as internal_for_testing show isValidClass; -import 'package:path/path.dart' as p; final _executeInternalCommand = () { try { return DynamicLibrary.process() .lookup, Pointer)>>( - 'Dart_ExecuteInternalCommand') + 'Dart_ExecuteInternalCommand', + ) .asFunction, Pointer)>(); } on ArgumentError { return null; @@ -36,18 +37,24 @@ void doGC() { } @Native Function()>( - isLeaf: true, symbol: 'objc_autoreleasePoolPush') + isLeaf: true, + symbol: 'objc_autoreleasePoolPush', +) external Pointer autoreleasePoolPush(); @Native)>( - isLeaf: true, symbol: 'objc_autoreleasePoolPop') + isLeaf: true, + symbol: 'objc_autoreleasePoolPop', +) external void autoreleasePoolPop(Pointer pool); @Native)>(isLeaf: true, symbol: 'isReadableMemory') external int _isReadableMemory(Pointer ptr); @Native)>( - isLeaf: true, symbol: 'getObjectRetainCount') + isLeaf: true, + symbol: 'getObjectRetainCount', +) external int _getObjectRetainCount(Pointer object); int objectRetainCount(Pointer object) { diff --git a/pkgs/objective_c/tool/generate_code.dart b/pkgs/objective_c/tool/generate_code.dart index 78c4fc041..5afa8bbf6 100644 --- a/pkgs/objective_c/tool/generate_code.dart +++ b/pkgs/objective_c/tool/generate_code.dart @@ -25,10 +25,7 @@ const builtInTypes = '../ffigen/lib/src/code_generator/objc_built_in_types.dart'; const interfaceListTest = 'test/interface_lists_test.dart'; -const privateClasses = { - 'DartInputStreamAdapter', - 'DOBJCObservation', -}; +const privateClasses = {'DartInputStreamAdapter', 'DOBJCObservation'}; void dartCmd(List args) { final exec = Platform.resolvedExecutable; @@ -48,7 +45,8 @@ typedef ClassInfo = ({ List impl, }); final _clsDecl = RegExp( - r'^class (.*?)(?: extends (.*?))?(?: with (.*?))?(?: implements (.*?))? {'); + r'^class (.*?)(?: extends (.*?))?(?: with (.*?))?(?: implements (.*?))? {', +); ClassInfo? parseClassDecl(String line) { final match = _clsDecl.firstMatch(line); if (match == null) return null; @@ -56,7 +54,7 @@ ClassInfo? parseClassDecl(String line) { name: match[1]!, ext: match[2], mix: match[3]?.split(', ') ?? [], - impl: match[4]?.split(', ') ?? [] + impl: match[4]?.split(', ') ?? [], ); } @@ -74,8 +72,10 @@ Map parseExtraMethods(String filename) { } } else { if (line == '}') { - extraMethods[currentClass.name] = - (cls: currentClass, methods: methods.toString()); + extraMethods[currentClass.name] = ( + cls: currentClass, + methods: methods.toString(), + ); currentClass = null; } else { methods.writeln(line); @@ -86,17 +86,22 @@ Map parseExtraMethods(String filename) { } String classDecl( - String name, String? ext, List mix, List impl) => - [ - 'class $name', - if (ext != null) 'extends $ext', - if (mix.isNotEmpty) 'with ${mix.join(', ')}', - if (impl.isNotEmpty) 'implements ${impl.join(', ')}', - '{', - ].join(' '); + String name, + String? ext, + List mix, + List impl, +) => [ + 'class $name', + if (ext != null) 'extends $ext', + if (mix.isNotEmpty) 'with ${mix.join(', ')}', + if (impl.isNotEmpty) 'implements ${impl.join(', ')}', + '{', +].join(' '); void mergeExtraMethods( - String filename, Map extraMethods) { + String filename, + Map extraMethods, +) { final out = StringBuffer(); for (final line in File(filename).readAsLinesSync()) { final cls = parseClassDecl(line); @@ -104,8 +109,14 @@ void mergeExtraMethods( if (cls == null || extra == null) { out.writeln(line); } else { - out.writeln(classDecl(cls.name, extra.cls.ext ?? cls.ext, - [...cls.mix, ...extra.cls.mix], [...cls.impl, ...extra.cls.impl])); + out.writeln( + classDecl( + cls.name, + extra.cls.ext ?? cls.ext, + [...cls.mix, ...extra.cls.mix], + [...cls.impl, ...extra.cls.impl], + ), + ); out.writeln(extra.methods); extraMethods.remove(cls.name); } @@ -115,8 +126,9 @@ void mergeExtraMethods( // remaining classes separately. for (final extra in extraMethods.values) { out.writeln('\n'); - out.writeln(classDecl( - extra.cls.name, extra.cls.ext, extra.cls.mix, extra.cls.impl)); + out.writeln( + classDecl(extra.cls.name, extra.cls.ext, extra.cls.mix, extra.cls.impl), + ); out.writeln(extra.methods); out.writeln('}'); } @@ -222,13 +234,13 @@ Future run({required bool format}) async { Future main(List args) async { Directory.current = Platform.script.resolve('..').path; - final argResults = (ArgParser() - ..addFlag( - 'format', - help: 'Format the generated code.', - defaultsTo: true, - negatable: true, - )) - .parse(args); + final argResults = + (ArgParser()..addFlag( + 'format', + help: 'Format the generated code.', + defaultsTo: true, + negatable: true, + )) + .parse(args); await run(format: argResults.flag('format')); } From d56aa6a9ce23403a31704e0208bb7de3394ffc8a Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 18 Jun 2025 13:56:06 +1000 Subject: [PATCH 10/29] fmt --- pkgs/ffigen/test/native_objc_test/arc_test.dart | 14 ++++++++------ .../test/native_objc_test/bad_method_test.dart | 14 ++++++++------ .../test/native_objc_test/bad_override_test.dart | 14 ++++++++------ .../native_objc_test/block_annotation_test.dart | 14 ++++++++------ .../test/native_objc_test/block_inherit_test.dart | 14 ++++++++------ pkgs/ffigen/test/native_objc_test/block_test.dart | 14 ++++++++------ pkgs/ffigen/test/native_objc_test/cast_test.dart | 14 ++++++++------ .../test/native_objc_test/category_test.dart | 14 ++++++++------ .../test/native_objc_test/forward_decl_test.dart | 14 ++++++++------ .../test/native_objc_test/global_native_test.dart | 14 ++++++++------ pkgs/ffigen/test/native_objc_test/global_test.dart | 14 ++++++++------ .../inherited_instancetype_test.dart | 14 ++++++++------ .../test/native_objc_test/is_instance_test.dart | 14 ++++++++------ .../ffigen/test/native_objc_test/isolate_test.dart | 14 ++++++++------ pkgs/ffigen/test/native_objc_test/log_test.dart | 14 ++++++++------ pkgs/ffigen/test/native_objc_test/method_test.dart | 14 ++++++++------ .../test/native_objc_test/native_objc_test.dart | 14 ++++++++------ .../nullable_inheritance_test.dart | 14 ++++++++------ .../test/native_objc_test/nullable_test.dart | 14 ++++++++------ .../test/native_objc_test/property_test.dart | 14 ++++++++------ .../test/native_objc_test/protocol_test.dart | 14 ++++++++------ .../test/native_objc_test/ref_count_test.dart | 14 ++++++++------ pkgs/ffigen/test/native_objc_test/rename_test.dart | 14 ++++++++------ .../native_objc_test/runtime_version_test.dart | 14 ++++++++------ .../test/native_objc_test/sdk_variable_test.dart | 14 ++++++++------ .../test/native_objc_test/static_func_test.dart | 14 ++++++++------ pkgs/ffigen/test/native_objc_test/string_test.dart | 14 ++++++++------ .../test/native_objc_test/swift_class_test.dart | 14 ++++++++------ .../ffigen/test/native_objc_test/typedef_test.dart | 14 ++++++++------ 29 files changed, 232 insertions(+), 174 deletions(-) diff --git a/pkgs/ffigen/test/native_objc_test/arc_test.dart b/pkgs/ffigen/test/native_objc_test/arc_test.dart index 4b2e5b6f8..6b9a47bb9 100644 --- a/pkgs/ffigen/test/native_objc_test/arc_test.dart +++ b/pkgs/ffigen/test/native_objc_test/arc_test.dart @@ -22,12 +22,14 @@ void main() { group('ARC', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); lib = ArcTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); diff --git a/pkgs/ffigen/test/native_objc_test/bad_method_test.dart b/pkgs/ffigen/test/native_objc_test/bad_method_test.dart index 0bade167d..23ad2a804 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_method_test.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_method_test.dart @@ -16,12 +16,14 @@ import 'util.dart'; void main() { group('bad_method_test', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('bad_method'); diff --git a/pkgs/ffigen/test/native_objc_test/bad_override_test.dart b/pkgs/ffigen/test/native_objc_test/bad_override_test.dart index 8dd23f6fc..df85a8fc5 100644 --- a/pkgs/ffigen/test/native_objc_test/bad_override_test.dart +++ b/pkgs/ffigen/test/native_objc_test/bad_override_test.dart @@ -18,12 +18,14 @@ import 'util.dart'; void main() { group('bad overrides', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('bad_override'); diff --git a/pkgs/ffigen/test/native_objc_test/block_annotation_test.dart b/pkgs/ffigen/test/native_objc_test/block_annotation_test.dart index de9463f0f..c864388c2 100644 --- a/pkgs/ffigen/test/native_objc_test/block_annotation_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_annotation_test.dart @@ -37,12 +37,14 @@ void main() { // correct block type. setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); lib = BlockAnnotationTestLibrary( DynamicLibrary.open(dylib.absolute.path), diff --git a/pkgs/ffigen/test/native_objc_test/block_inherit_test.dart b/pkgs/ffigen/test/native_objc_test/block_inherit_test.dart index 209a677af..1c60769ca 100644 --- a/pkgs/ffigen/test/native_objc_test/block_inherit_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_inherit_test.dart @@ -21,12 +21,14 @@ import 'util.dart'; void main() { group('Block inheritance', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); diff --git a/pkgs/ffigen/test/native_objc_test/block_test.dart b/pkgs/ffigen/test/native_objc_test/block_test.dart index ff10069aa..0b4256b64 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test.dart @@ -54,12 +54,14 @@ void main() { group('Blocks', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); lib = BlockTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); diff --git a/pkgs/ffigen/test/native_objc_test/cast_test.dart b/pkgs/ffigen/test/native_objc_test/cast_test.dart index 94ba17591..7ab4c8dbf 100644 --- a/pkgs/ffigen/test/native_objc_test/cast_test.dart +++ b/pkgs/ffigen/test/native_objc_test/cast_test.dart @@ -20,12 +20,14 @@ void main() { group('cast', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); testInstance = Castaway(); diff --git a/pkgs/ffigen/test/native_objc_test/category_test.dart b/pkgs/ffigen/test/native_objc_test/category_test.dart index 32ff98017..d044c7ad6 100644 --- a/pkgs/ffigen/test/native_objc_test/category_test.dart +++ b/pkgs/ffigen/test/native_objc_test/category_test.dart @@ -18,12 +18,14 @@ import 'util.dart'; void main() { group('categories', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('category'); diff --git a/pkgs/ffigen/test/native_objc_test/forward_decl_test.dart b/pkgs/ffigen/test/native_objc_test/forward_decl_test.dart index c184c4d53..0d7324689 100644 --- a/pkgs/ffigen/test/native_objc_test/forward_decl_test.dart +++ b/pkgs/ffigen/test/native_objc_test/forward_decl_test.dart @@ -16,12 +16,14 @@ import 'util.dart'; void main() { group('forward decl', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('forward_decl'); diff --git a/pkgs/ffigen/test/native_objc_test/global_native_test.dart b/pkgs/ffigen/test/native_objc_test/global_native_test.dart index d79bd0a0f..32e4803a0 100644 --- a/pkgs/ffigen/test/native_objc_test/global_native_test.dart +++ b/pkgs/ffigen/test/native_objc_test/global_native_test.dart @@ -18,12 +18,14 @@ import 'util.dart'; void main() { group('global using @Native', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('global'); diff --git a/pkgs/ffigen/test/native_objc_test/global_test.dart b/pkgs/ffigen/test/native_objc_test/global_test.dart index 7a55b5ef1..e8aaee53f 100644 --- a/pkgs/ffigen/test/native_objc_test/global_test.dart +++ b/pkgs/ffigen/test/native_objc_test/global_test.dart @@ -20,12 +20,14 @@ void main() { late GlobalTestObjCLibrary lib; setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); lib = GlobalTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); generateBindingsForCoverage('global'); diff --git a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test.dart b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test.dart index 845a8dfa8..b3cb3903f 100644 --- a/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test.dart +++ b/pkgs/ffigen/test/native_objc_test/inherited_instancetype_test.dart @@ -17,12 +17,14 @@ import 'util.dart'; void main() { group('inheritedInstancetype', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('inherited_instancetype'); diff --git a/pkgs/ffigen/test/native_objc_test/is_instance_test.dart b/pkgs/ffigen/test/native_objc_test/is_instance_test.dart index 695164574..29251357a 100644 --- a/pkgs/ffigen/test/native_objc_test/is_instance_test.dart +++ b/pkgs/ffigen/test/native_objc_test/is_instance_test.dart @@ -18,12 +18,14 @@ import 'util.dart'; void main() { group('isInstance', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('is_instance'); diff --git a/pkgs/ffigen/test/native_objc_test/isolate_test.dart b/pkgs/ffigen/test/native_objc_test/isolate_test.dart index 20bf768be..4fd7ebf0e 100644 --- a/pkgs/ffigen/test/native_objc_test/isolate_test.dart +++ b/pkgs/ffigen/test/native_objc_test/isolate_test.dart @@ -20,12 +20,14 @@ import 'util.dart'; void main() { group('isolate', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('isolate'); diff --git a/pkgs/ffigen/test/native_objc_test/log_test.dart b/pkgs/ffigen/test/native_objc_test/log_test.dart index 160751ab0..cb734292e 100644 --- a/pkgs/ffigen/test/native_objc_test/log_test.dart +++ b/pkgs/ffigen/test/native_objc_test/log_test.dart @@ -18,12 +18,14 @@ import 'util.dart'; void main() { group('log_test', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('log'); diff --git a/pkgs/ffigen/test/native_objc_test/method_test.dart b/pkgs/ffigen/test/native_objc_test/method_test.dart index c63658d27..03d6da67c 100644 --- a/pkgs/ffigen/test/native_objc_test/method_test.dart +++ b/pkgs/ffigen/test/native_objc_test/method_test.dart @@ -19,12 +19,14 @@ void main() { group('method calls', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); testInstance = MethodInterface(); diff --git a/pkgs/ffigen/test/native_objc_test/native_objc_test.dart b/pkgs/ffigen/test/native_objc_test/native_objc_test.dart index f205dc563..3b88eaecd 100644 --- a/pkgs/ffigen/test/native_objc_test/native_objc_test.dart +++ b/pkgs/ffigen/test/native_objc_test/native_objc_test.dart @@ -17,12 +17,14 @@ import 'util.dart'; void main() { group('native_objc_test', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('native_objc'); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test.dart b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test.dart index 4c2d0a48f..18b95fe5e 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_inheritance_test.dart @@ -21,12 +21,14 @@ void main() { late NSObject obj; group('Nullable inheritance', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); nullableBase = NullableBase(); diff --git a/pkgs/ffigen/test/native_objc_test/nullable_test.dart b/pkgs/ffigen/test/native_objc_test/nullable_test.dart index 435b31550..5c8051878 100644 --- a/pkgs/ffigen/test/native_objc_test/nullable_test.dart +++ b/pkgs/ffigen/test/native_objc_test/nullable_test.dart @@ -20,12 +20,14 @@ void main() { late NSObject obj; group('Nullability', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); nullableInterface = NullableInterface(); diff --git a/pkgs/ffigen/test/native_objc_test/property_test.dart b/pkgs/ffigen/test/native_objc_test/property_test.dart index 06b24ab99..dd5f3966a 100644 --- a/pkgs/ffigen/test/native_objc_test/property_test.dart +++ b/pkgs/ffigen/test/native_objc_test/property_test.dart @@ -20,12 +20,14 @@ void main() { group('properties', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); testInstance = PropertyInterface(); diff --git a/pkgs/ffigen/test/native_objc_test/protocol_test.dart b/pkgs/ffigen/test/native_objc_test/protocol_test.dart index 63c62fcb6..8b81683fa 100644 --- a/pkgs/ffigen/test/native_objc_test/protocol_test.dart +++ b/pkgs/ffigen/test/native_objc_test/protocol_test.dart @@ -29,12 +29,14 @@ void main() { group('protocol', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); lib = ProtocolTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); generateBindingsForCoverage('protocol'); diff --git a/pkgs/ffigen/test/native_objc_test/ref_count_test.dart b/pkgs/ffigen/test/native_objc_test/ref_count_test.dart index c4fbc24de..c41084e34 100644 --- a/pkgs/ffigen/test/native_objc_test/ref_count_test.dart +++ b/pkgs/ffigen/test/native_objc_test/ref_count_test.dart @@ -22,12 +22,14 @@ void main() { group('Reference counting', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); lib = RefCountTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); diff --git a/pkgs/ffigen/test/native_objc_test/rename_test.dart b/pkgs/ffigen/test/native_objc_test/rename_test.dart index 46b2d4c40..b017699f3 100644 --- a/pkgs/ffigen/test/native_objc_test/rename_test.dart +++ b/pkgs/ffigen/test/native_objc_test/rename_test.dart @@ -17,12 +17,14 @@ import 'util.dart'; void main() { group('rename_test', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('rename'); diff --git a/pkgs/ffigen/test/native_objc_test/runtime_version_test.dart b/pkgs/ffigen/test/native_objc_test/runtime_version_test.dart index 86afb4b57..c0faf1f62 100644 --- a/pkgs/ffigen/test/native_objc_test/runtime_version_test.dart +++ b/pkgs/ffigen/test/native_objc_test/runtime_version_test.dart @@ -18,12 +18,14 @@ import 'util.dart'; void main() { group('runtime version check', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('runtime_version'); diff --git a/pkgs/ffigen/test/native_objc_test/sdk_variable_test.dart b/pkgs/ffigen/test/native_objc_test/sdk_variable_test.dart index 3640e9896..b0fb85ddb 100644 --- a/pkgs/ffigen/test/native_objc_test/sdk_variable_test.dart +++ b/pkgs/ffigen/test/native_objc_test/sdk_variable_test.dart @@ -17,12 +17,14 @@ void main() { late String bindings; setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('rename'); diff --git a/pkgs/ffigen/test/native_objc_test/static_func_test.dart b/pkgs/ffigen/test/native_objc_test/static_func_test.dart index 5b9d5342d..a80b30dd8 100644 --- a/pkgs/ffigen/test/native_objc_test/static_func_test.dart +++ b/pkgs/ffigen/test/native_objc_test/static_func_test.dart @@ -27,12 +27,14 @@ void main() { group('static functions', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); lib = StaticFuncTestObjCLibrary(DynamicLibrary.open(dylib.absolute.path)); diff --git a/pkgs/ffigen/test/native_objc_test/string_test.dart b/pkgs/ffigen/test/native_objc_test/string_test.dart index aedf59142..dc7905700 100644 --- a/pkgs/ffigen/test/native_objc_test/string_test.dart +++ b/pkgs/ffigen/test/native_objc_test/string_test.dart @@ -18,12 +18,14 @@ import 'util.dart'; void main() { group('string', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('string'); diff --git a/pkgs/ffigen/test/native_objc_test/swift_class_test.dart b/pkgs/ffigen/test/native_objc_test/swift_class_test.dart index 2a0e084a0..5b4cf28f0 100644 --- a/pkgs/ffigen/test/native_objc_test/swift_class_test.dart +++ b/pkgs/ffigen/test/native_objc_test/swift_class_test.dart @@ -16,12 +16,14 @@ import 'util.dart'; void main() { group('swift_class_test', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'swift_class_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'swift_class_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('swift_class'); diff --git a/pkgs/ffigen/test/native_objc_test/typedef_test.dart b/pkgs/ffigen/test/native_objc_test/typedef_test.dart index ff8e9dd72..179ccdf20 100644 --- a/pkgs/ffigen/test/native_objc_test/typedef_test.dart +++ b/pkgs/ffigen/test/native_objc_test/typedef_test.dart @@ -16,12 +16,14 @@ import 'util.dart'; void main() { group('typedef', () { setUpAll(() { - final dylib = File(path.join( - packagePathForTests, - 'test', - 'native_objc_test', - 'objc_test.dylib', - )); + final dylib = File( + path.join( + packagePathForTests, + 'test', + 'native_objc_test', + 'objc_test.dylib', + ), + ); verifySetupFile(dylib); DynamicLibrary.open(dylib.absolute.path); generateBindingsForCoverage('typedef'); From e197d81abc59d87e806d6903511a9b771c07b4f5 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 18 Jun 2025 14:02:15 +1000 Subject: [PATCH 11/29] Remove flutter deps --- pkgs/objective_c/pubspec.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/objective_c/pubspec.yaml b/pkgs/objective_c/pubspec.yaml index eb970adfc..cb643291f 100644 --- a/pkgs/objective_c/pubspec.yaml +++ b/pkgs/objective_c/pubspec.yaml @@ -29,9 +29,6 @@ dev_dependencies: args: ^2.6.0 dart_flutter_team_lints: ^3.5.1 ffigen: ^19.1.0 - flutter_lints: ^5.0.0 - flutter_test: - sdk: flutter path: ^1.9.0 test: ^1.26.2 yaml: ^3.1.0 From 763703a5908ddcc30460eef47565571f2d328aaf Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 18 Jun 2025 14:46:49 +1000 Subject: [PATCH 12/29] Fix example --- .github/workflows/objective_c.yaml | 12 +- pkgs/objective_c/example/.gitignore | 3 + pkgs/objective_c/example/CHANGELOG.md | 3 + pkgs/objective_c/example/README.md | 6 +- .../objective_c/example/analysis_options.yaml | 7 +- .../ios/Flutter/AppFrameworkInfo.plist | 26 - .../example/ios/Flutter/Debug.xcconfig | 2 - .../example/ios/Flutter/Release.xcconfig | 2 - pkgs/objective_c/example/ios/Podfile | 44 - .../ios/Runner.xcodeproj/project.pbxproj | 728 ---------------- .../contents.xcworkspacedata | 7 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../xcshareddata/WorkspaceSettings.xcsettings | 8 - .../xcshareddata/xcschemes/Runner.xcscheme | 98 --- .../contents.xcworkspacedata | 10 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../xcshareddata/WorkspaceSettings.xcsettings | 8 - .../example/ios/Runner/AppDelegate.swift | 13 - .../AppIcon.appiconset/Contents.json | 122 --- .../Icon-App-1024x1024@1x.png | Bin 10932 -> 0 bytes .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin 295 -> 0 bytes .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin 406 -> 0 bytes .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin 450 -> 0 bytes .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin 282 -> 0 bytes .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin 462 -> 0 bytes .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin 704 -> 0 bytes .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin 406 -> 0 bytes .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin 586 -> 0 bytes .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin 862 -> 0 bytes .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin 862 -> 0 bytes .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin 1674 -> 0 bytes .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin 762 -> 0 bytes .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin 1226 -> 0 bytes .../Icon-App-83.5x83.5@2x.png | Bin 1418 -> 0 bytes .../LaunchImage.imageset/Contents.json | 23 - .../LaunchImage.imageset/LaunchImage.png | Bin 68 -> 0 bytes .../LaunchImage.imageset/LaunchImage@2x.png | Bin 68 -> 0 bytes .../LaunchImage.imageset/LaunchImage@3x.png | Bin 68 -> 0 bytes .../LaunchImage.imageset/README.md | 5 - .../Runner/Base.lproj/LaunchScreen.storyboard | 37 - .../ios/Runner/Base.lproj/Main.storyboard | 26 - .../objective_c/example/ios/Runner/Info.plist | 49 -- .../ios/Runner/Runner-Bridging-Header.h | 1 - .../example/ios/RunnerTests/RunnerTests.swift | 12 - pkgs/objective_c/example/lib/main.dart | 31 +- .../macos/Flutter/Flutter-Debug.xcconfig | 2 - .../macos/Flutter/Flutter-Release.xcconfig | 2 - pkgs/objective_c/example/macos/Podfile | 43 - .../macos/Runner.xcodeproj/project.pbxproj | 801 ------------------ .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../xcshareddata/xcschemes/Runner.xcscheme | 98 --- .../contents.xcworkspacedata | 10 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../example/macos/Runner/AppDelegate.swift | 13 - .../AppIcon.appiconset/Contents.json | 68 -- .../AppIcon.appiconset/app_icon_1024.png | Bin 102994 -> 0 bytes .../AppIcon.appiconset/app_icon_128.png | Bin 5680 -> 0 bytes .../AppIcon.appiconset/app_icon_16.png | Bin 520 -> 0 bytes .../AppIcon.appiconset/app_icon_256.png | Bin 14142 -> 0 bytes .../AppIcon.appiconset/app_icon_32.png | Bin 1066 -> 0 bytes .../AppIcon.appiconset/app_icon_512.png | Bin 36406 -> 0 bytes .../AppIcon.appiconset/app_icon_64.png | Bin 2218 -> 0 bytes .../macos/Runner/Base.lproj/MainMenu.xib | 343 -------- .../macos/Runner/Configs/AppInfo.xcconfig | 14 - .../macos/Runner/Configs/Debug.xcconfig | 2 - .../macos/Runner/Configs/Release.xcconfig | 2 - .../macos/Runner/Configs/Warnings.xcconfig | 13 - .../macos/Runner/DebugProfile.entitlements | 12 - .../example/macos/Runner/Info.plist | 32 - .../macos/Runner/MainFlutterWindow.swift | 15 - .../example/macos/Runner/Release.entitlements | 8 - .../macos/RunnerTests/RunnerTests.swift | 12 - pkgs/objective_c/example/pubspec.yaml | 22 +- pkgs/objective_c/pubspec.yaml | 2 +- 74 files changed, 24 insertions(+), 2805 deletions(-) create mode 100644 pkgs/objective_c/example/.gitignore create mode 100644 pkgs/objective_c/example/CHANGELOG.md delete mode 100644 pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist delete mode 100644 pkgs/objective_c/example/ios/Flutter/Debug.xcconfig delete mode 100644 pkgs/objective_c/example/ios/Flutter/Release.xcconfig delete mode 100644 pkgs/objective_c/example/ios/Podfile delete mode 100644 pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj delete mode 100644 pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings delete mode 100644 pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme delete mode 100644 pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata delete mode 100644 pkgs/objective_c/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 pkgs/objective_c/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings delete mode 100644 pkgs/objective_c/example/ios/Runner/AppDelegate.swift delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png delete mode 100644 pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md delete mode 100644 pkgs/objective_c/example/ios/Runner/Base.lproj/LaunchScreen.storyboard delete mode 100644 pkgs/objective_c/example/ios/Runner/Base.lproj/Main.storyboard delete mode 100644 pkgs/objective_c/example/ios/Runner/Info.plist delete mode 100644 pkgs/objective_c/example/ios/Runner/Runner-Bridging-Header.h delete mode 100644 pkgs/objective_c/example/ios/RunnerTests/RunnerTests.swift delete mode 100644 pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Podfile delete mode 100644 pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj delete mode 100644 pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme delete mode 100644 pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata delete mode 100644 pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 pkgs/objective_c/example/macos/Runner/AppDelegate.swift delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png delete mode 100644 pkgs/objective_c/example/macos/Runner/Base.lproj/MainMenu.xib delete mode 100644 pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig delete mode 100644 pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements delete mode 100644 pkgs/objective_c/example/macos/Runner/Info.plist delete mode 100644 pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift delete mode 100644 pkgs/objective_c/example/macos/Runner/Release.entitlements delete mode 100644 pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift diff --git a/.github/workflows/objective_c.yaml b/.github/workflows/objective_c.yaml index 1385f5409..8f932f7d4 100644 --- a/.github/workflows/objective_c.yaml +++ b/.github/workflows/objective_c.yaml @@ -84,13 +84,13 @@ jobs: runs-on: 'macos-latest' defaults: run: - working-directory: pkgs/objective_c/example/ + working-directory: pkgs/objective_c/example steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 + - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - channel: 'stable' + sdk: stable - name: Install dependencies - run: flutter pub get - - name: Build the example app - run: flutter build macos + run: dart pub get + - name: Run the example app + run: dart run lib/main.dart diff --git a/pkgs/objective_c/example/.gitignore b/pkgs/objective_c/example/.gitignore new file mode 100644 index 000000000..3a8579040 --- /dev/null +++ b/pkgs/objective_c/example/.gitignore @@ -0,0 +1,3 @@ +# https://dart.dev/guides/libraries/private-files +# Created by `dart pub` +.dart_tool/ diff --git a/pkgs/objective_c/example/CHANGELOG.md b/pkgs/objective_c/example/CHANGELOG.md new file mode 100644 index 000000000..effe43c82 --- /dev/null +++ b/pkgs/objective_c/example/CHANGELOG.md @@ -0,0 +1,3 @@ +## 1.0.0 + +- Initial version. diff --git a/pkgs/objective_c/example/README.md b/pkgs/objective_c/example/README.md index ef2deb7f6..9d9d2e46e 100644 --- a/pkgs/objective_c/example/README.md +++ b/pkgs/objective_c/example/README.md @@ -1,5 +1 @@ -# objective_c example - -Demonstrates how to use the objective_c plugin. - -TODO(https://github.com/dart-lang/native/issues/1068): Migrate to native assets. +Demonstrates using package:objective_c: `dart run lib/main.dart` diff --git a/pkgs/objective_c/example/analysis_options.yaml b/pkgs/objective_c/example/analysis_options.yaml index 22c406e13..572dd239d 100644 --- a/pkgs/objective_c/example/analysis_options.yaml +++ b/pkgs/objective_c/example/analysis_options.yaml @@ -1,6 +1 @@ -include: package:flutter_lints/flutter.yaml - -analyzer: - language: - strict-casts: true - strict-inference: true +include: package:lints/recommended.yaml diff --git a/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist b/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist deleted file mode 100644 index 7c5696400..000000000 --- a/pkgs/objective_c/example/ios/Flutter/AppFrameworkInfo.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - App - CFBundleIdentifier - io.flutter.flutter.app - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - App - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - MinimumOSVersion - 12.0 - - diff --git a/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig b/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig deleted file mode 100644 index ec97fc6f3..000000000 --- a/pkgs/objective_c/example/ios/Flutter/Debug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" -#include "Generated.xcconfig" diff --git a/pkgs/objective_c/example/ios/Flutter/Release.xcconfig b/pkgs/objective_c/example/ios/Flutter/Release.xcconfig deleted file mode 100644 index c4855bfe2..000000000 --- a/pkgs/objective_c/example/ios/Flutter/Release.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" -#include "Generated.xcconfig" diff --git a/pkgs/objective_c/example/ios/Podfile b/pkgs/objective_c/example/ios/Podfile deleted file mode 100644 index d97f17e22..000000000 --- a/pkgs/objective_c/example/ios/Podfile +++ /dev/null @@ -1,44 +0,0 @@ -# Uncomment this line to define a global platform for your project -# platform :ios, '12.0' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_ios_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) - target 'RunnerTests' do - inherit! :search_paths - end -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_ios_build_settings(target) - end -end diff --git a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj b/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj deleted file mode 100644 index 8f49bdf9e..000000000 --- a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.pbxproj +++ /dev/null @@ -1,728 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 54; - objects = { - -/* Begin PBXBuildFile section */ - 0016C0D0D056FCD78A6A33E8 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5349C2B3D454EF3220FB3306 /* Pods_RunnerTests.framework */; }; - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; - 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; - 4D7C7CB911925A31801A2F1E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0B910B6B0374F2338E70D6AC /* Pods_Runner.framework */; }; - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 97C146E61CF9000F007C117D /* Project object */; - proxyType = 1; - remoteGlobalIDString = 97C146ED1CF9000F007C117D; - remoteInfo = Runner; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 9705A1C41CF9048500538489 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 0B910B6B0374F2338E70D6AC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; - 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; - 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; - 5349C2B3D454EF3220FB3306 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 5898EAFA36C90FEB069D15C8 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; - 5E623BDE574BD3F02055F373 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; - 6F2BCFFFCABF2D8A79F17D26 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; - 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; - 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; - 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - B6F1E5A6A7CC24D81665E0BA /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; - F794A460162AE19694C18D43 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; - FFB0D24362152330E942673E /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 97C146EB1CF9000F007C117D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 4D7C7CB911925A31801A2F1E /* Pods_Runner.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B209388E6951AC88C18EE569 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 0016C0D0D056FCD78A6A33E8 /* Pods_RunnerTests.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 2961EE994295B641DF59D533 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 0B910B6B0374F2338E70D6AC /* Pods_Runner.framework */, - 5349C2B3D454EF3220FB3306 /* Pods_RunnerTests.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 331C8082294A63A400263BE5 /* RunnerTests */ = { - isa = PBXGroup; - children = ( - 331C807B294A618700263BE5 /* RunnerTests.swift */, - ); - path = RunnerTests; - sourceTree = ""; - }; - 9740EEB11CF90186004384FC /* Flutter */ = { - isa = PBXGroup; - children = ( - 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, - 9740EEB21CF90195004384FC /* Debug.xcconfig */, - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, - 9740EEB31CF90195004384FC /* Generated.xcconfig */, - ); - name = Flutter; - sourceTree = ""; - }; - 97C146E51CF9000F007C117D = { - isa = PBXGroup; - children = ( - 9740EEB11CF90186004384FC /* Flutter */, - 97C146F01CF9000F007C117D /* Runner */, - 97C146EF1CF9000F007C117D /* Products */, - 331C8082294A63A400263BE5 /* RunnerTests */, - 97F4D88CC18AF014179906AC /* Pods */, - 2961EE994295B641DF59D533 /* Frameworks */, - ); - sourceTree = ""; - }; - 97C146EF1CF9000F007C117D /* Products */ = { - isa = PBXGroup; - children = ( - 97C146EE1CF9000F007C117D /* Runner.app */, - 331C8081294A63A400263BE5 /* RunnerTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 97C146F01CF9000F007C117D /* Runner */ = { - isa = PBXGroup; - children = ( - 97C146FA1CF9000F007C117D /* Main.storyboard */, - 97C146FD1CF9000F007C117D /* Assets.xcassets */, - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, - 97C147021CF9000F007C117D /* Info.plist */, - 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, - 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, - 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, - 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, - ); - path = Runner; - sourceTree = ""; - }; - 97F4D88CC18AF014179906AC /* Pods */ = { - isa = PBXGroup; - children = ( - FFB0D24362152330E942673E /* Pods-Runner.debug.xcconfig */, - 6F2BCFFFCABF2D8A79F17D26 /* Pods-Runner.release.xcconfig */, - B6F1E5A6A7CC24D81665E0BA /* Pods-Runner.profile.xcconfig */, - 5E623BDE574BD3F02055F373 /* Pods-RunnerTests.debug.xcconfig */, - F794A460162AE19694C18D43 /* Pods-RunnerTests.release.xcconfig */, - 5898EAFA36C90FEB069D15C8 /* Pods-RunnerTests.profile.xcconfig */, - ); - name = Pods; - path = Pods; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 331C8080294A63A400263BE5 /* RunnerTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; - buildPhases = ( - 11218719EF64897AFE1F9EE8 /* [CP] Check Pods Manifest.lock */, - 331C807D294A63A400263BE5 /* Sources */, - 331C807F294A63A400263BE5 /* Resources */, - B209388E6951AC88C18EE569 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 331C8086294A63A400263BE5 /* PBXTargetDependency */, - ); - name = RunnerTests; - productName = RunnerTests; - productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 97C146ED1CF9000F007C117D /* Runner */ = { - isa = PBXNativeTarget; - buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; - buildPhases = ( - E0D32FA7EF8A23FC0FD30465 /* [CP] Check Pods Manifest.lock */, - 9740EEB61CF901F6004384FC /* Run Script */, - 97C146EA1CF9000F007C117D /* Sources */, - 97C146EB1CF9000F007C117D /* Frameworks */, - 97C146EC1CF9000F007C117D /* Resources */, - 9705A1C41CF9048500538489 /* Embed Frameworks */, - 3B06AD1E1E4923F5004D2608 /* Thin Binary */, - 98CA06E4ED3E0BFB8A3C613F /* [CP] Embed Pods Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = Runner; - productName = Runner; - productReference = 97C146EE1CF9000F007C117D /* Runner.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 97C146E61CF9000F007C117D /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = YES; - LastUpgradeCheck = 1510; - ORGANIZATIONNAME = ""; - TargetAttributes = { - 331C8080294A63A400263BE5 = { - CreatedOnToolsVersion = 14.0; - TestTargetID = 97C146ED1CF9000F007C117D; - }; - 97C146ED1CF9000F007C117D = { - CreatedOnToolsVersion = 7.3.1; - LastSwiftMigration = 1100; - }; - }; - }; - buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 97C146E51CF9000F007C117D; - productRefGroup = 97C146EF1CF9000F007C117D /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 97C146ED1CF9000F007C117D /* Runner */, - 331C8080294A63A400263BE5 /* RunnerTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 331C807F294A63A400263BE5 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 97C146EC1CF9000F007C117D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, - 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, - 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, - 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 11218719EF64897AFE1F9EE8 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { - isa = PBXShellScriptBuildPhase; - alwaysOutOfDate = 1; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", - ); - name = "Thin Binary"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; - }; - 9740EEB61CF901F6004384FC /* Run Script */ = { - isa = PBXShellScriptBuildPhase; - alwaysOutOfDate = 1; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; - }; - 98CA06E4ED3E0BFB8A3C613F /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - E0D32FA7EF8A23FC0FD30465 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 331C807D294A63A400263BE5 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 97C146EA1CF9000F007C117D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, - 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 97C146ED1CF9000F007C117D /* Runner */; - targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 97C146FA1CF9000F007C117D /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C146FB1CF9000F007C117D /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 97C147001CF9000F007C117D /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 249021D3217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Profile; - }; - 249021D4217E4FDB00AE95B9 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Profile; - }; - 331C8088294A63A400263BE5 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5E623BDE574BD3F02055F373 /* Pods-RunnerTests.debug.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; - }; - name = Debug; - }; - 331C8089294A63A400263BE5 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = F794A460162AE19694C18D43 /* Pods-RunnerTests.release.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; - }; - name = Release; - }; - 331C808A294A63A400263BE5 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5898EAFA36C90FEB069D15C8 /* Pods-RunnerTests.profile.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; - }; - name = Profile; - }; - 97C147031CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 97C147041CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SUPPORTED_PLATFORMS = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 97C147061CF9000F007C117D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Debug; - }; - 97C147071CF9000F007C117D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - ENABLE_BITCODE = NO; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 331C8088294A63A400263BE5 /* Debug */, - 331C8089294A63A400263BE5 /* Release */, - 331C808A294A63A400263BE5 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147031CF9000F007C117D /* Debug */, - 97C147041CF9000F007C117D /* Release */, - 249021D3217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 97C147061CF9000F007C117D /* Debug */, - 97C147071CF9000F007C117D /* Release */, - 249021D4217E4FDB00AE95B9 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 97C146E61CF9000F007C117D /* Project object */; -} diff --git a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a62..000000000 --- a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index f9b0d7c5e..000000000 --- a/pkgs/objective_c/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - PreviewsEnabled - - - diff --git a/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme deleted file mode 100644 index 8e3ca5dfe..000000000 --- a/pkgs/objective_c/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 21a3cc14c..000000000 --- a/pkgs/objective_c/example/ios/Runner.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/pkgs/objective_c/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/pkgs/objective_c/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/pkgs/objective_c/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/pkgs/objective_c/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/pkgs/objective_c/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index f9b0d7c5e..000000000 --- a/pkgs/objective_c/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - PreviewsEnabled - - - diff --git a/pkgs/objective_c/example/ios/Runner/AppDelegate.swift b/pkgs/objective_c/example/ios/Runner/AppDelegate.swift deleted file mode 100644 index 626664468..000000000 --- a/pkgs/objective_c/example/ios/Runner/AppDelegate.swift +++ /dev/null @@ -1,13 +0,0 @@ -import Flutter -import UIKit - -@main -@objc class AppDelegate: FlutterAppDelegate { - override func application( - _ application: UIApplication, - didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? - ) -> Bool { - GeneratedPluginRegistrant.register(with: self) - return super.application(application, didFinishLaunchingWithOptions: launchOptions) - } -} diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index d36b1fab2..000000000 --- a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "images" : [ - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "20x20", - "idiom" : "iphone", - "filename" : "Icon-App-20x20@3x.png", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "Icon-App-29x29@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "Icon-App-40x40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "Icon-App-60x60@3x.png", - "scale" : "3x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@1x.png", - "scale" : "1x" - }, - { - "size" : "20x20", - "idiom" : "ipad", - "filename" : "Icon-App-20x20@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@1x.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "Icon-App-29x29@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@1x.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "Icon-App-40x40@2x.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@1x.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "Icon-App-76x76@2x.png", - "scale" : "2x" - }, - { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "Icon-App-83.5x83.5@2x.png", - "scale" : "2x" - }, - { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "Icon-App-1024x1024@1x.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png deleted file mode 100644 index dc9ada4725e9b0ddb1deab583e5b5102493aa332..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10932 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 diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png deleted file mode 100644 index 797d452e458972bab9d994556c8305db4c827017..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 406 zcmV;H0crk;P))>cdjpWt&rLJgVp-t?DREyuq1A%0Z4)6_WsQ7{nzjN zo!X zGXV)2i3kcZIL~_j>uIKPK_zib+3T+Nt3Mb&Br)s)UIaA}@p{wDda>7=Q|mGRp7pqY zkJ!7E{MNz$9nOwoVqpFb)}$IP24Wn2JJ=Cw(!`OXJBr45rP>>AQr$6c7slJWvbpNW z@KTwna6d?PP>hvXCcp=4F;=GR@R4E7{4VU^0p4F>v^#A|>07*qoM6N<$f*5nx ACIA2c diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png deleted file mode 100644 index 6ed2d933e1120817fe9182483a228007b18ab6ae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 450 zcmV;z0X_bSP)iGWQ_5NJQ_~rNh*z)}eT%KUb z`7gNk0#AwF^#0T0?hIa^`~Ck;!}#m+_uT050aTR(J!bU#|IzRL%^UsMS#KsYnTF*!YeDOytlP4VhV?b} z%rz_<=#CPc)tU1MZTq~*2=8~iZ!lSa<{9b@2Jl;?IEV8)=fG217*|@)CCYgFze-x? zIFODUIA>nWKpE+bn~n7;-89sa>#DR>TSlqWk*!2hSN6D~Qb#VqbP~4Fk&m`@1$JGr zXPIdeRE&b2Thd#{MtDK$px*d3-Wx``>!oimf%|A-&-q*6KAH)e$3|6JV%HX{Hig)k suLT-RhftRq8b9;(V=235Wa|I=027H2wCDra;{X5v07*qoM6N<$f;9x^2LJ#7 diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png deleted file mode 100644 index 4cd7b0099ca80c806f8fe495613e8d6c69460d76..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 282 zcmV+#0p(^bcu7P-R4C8Q z&e;xxFbF_Vrezo%_kH*OKhshZ6BFpG-Y1e10`QXJKbND7AMQ&cMj60B5TNObaZxYybcN07*qoM6N<$g3m;S%K!iX diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png deleted file mode 100644 index fe730945a01f64a61e2235dbe3f45b08f7729182..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 462 zcmV;<0WtoGP)-}iV`2<;=$?g5M=KQbZ{F&YRNy7Nn@%_*5{gvDM0aKI4?ESmw z{NnZg)A0R`+4?NF_RZexyVB&^^ZvN!{I28tr{Vje;QNTz`dG&Jz0~Ek&f2;*Z7>B|cg}xYpxEFY+0YrKLF;^Q+-HreN0P{&i zK~zY`?b7ECf-n?@;d<&orQ*Q7KoR%4|C>{W^h6@&01>0SKS`dn{Q}GT%Qj_{PLZ_& zs`MFI#j-(>?bvdZ!8^xTwlY{qA)T4QLbY@j(!YJ7aXJervHy6HaG_2SB`6CC{He}f zHVw(fJWApwPq!6VY7r1w-Fs)@ox~N+q|w~e;JI~C4Vf^@d>Wvj=fl`^u9x9wd9 zR%3*Q+)t%S!MU_`id^@&Y{y7-r98lZX0?YrHlfmwb?#}^1b{8g&KzmkE(L>Z&)179 zp<)v6Y}pRl100G2FL_t(o!|l{-Q-VMg#&MKg7c{O0 z2wJImOS3Gy*Z2Qifdv~JYOp;v+U)a|nLoc7hNH;I$;lzDt$}rkaFw1mYK5_0Q(Sut zvbEloxON7$+HSOgC9Z8ltuC&0OSF!-mXv5caV>#bc3@hBPX@I$58-z}(ZZE!t-aOG zpjNkbau@>yEzH(5Yj4kZiMH32XI!4~gVXNnjAvRx;Sdg^`>2DpUEwoMhTs_st8pKG z(%SHyHdU&v%f36~uERh!bd`!T2dw;z6PrOTQ7Vt*#9F2uHlUVnb#ev_o^fh}Dzmq} zWtlk35}k=?xj28uO|5>>$yXadTUE@@IPpgH`gJ~Ro4>jd1IF|(+IX>8M4Ps{PNvmI zNj4D+XgN83gPt_Gm}`Ybv{;+&yu-C(Grdiahmo~BjG-l&mWM+{e5M1sm&=xduwgM9 z`8OEh`=F3r`^E{n_;%9weN{cf2%7=VzC@cYj+lg>+3|D|_1C@{hcU(DyQG_BvBWe? zvTv``=%b1zrol#=R`JB)>cdjpWt&rLJgVp-t?DREyuq1A%0Z4)6_WsQ7{nzjN zo!X zGXV)2i3kcZIL~_j>uIKPK_zib+3T+Nt3Mb&Br)s)UIaA}@p{wDda>7=Q|mGRp7pqY zkJ!7E{MNz$9nOwoVqpFb)}$IP24Wn2JJ=Cw(!`OXJBr45rP>>AQr$6c7slJWvbpNW z@KTwna6d?PP>hvXCcp=4F;=GR@R4E7{4VU^0p4F>v^#A|>07*qoM6N<$f*5nx ACIA2c diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png deleted file mode 100644 index 502f463a9bc882b461c96aadf492d1729e49e725..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 586 zcmV-Q0=4~#P)+}#`wDE{8-2Mebf5<{{PqV{TgVcv*r8?UZ3{-|G?_}T*&y;@cqf{ z{Q*~+qr%%p!1pS*_Uicl#q9lc(D`!D`LN62sNwq{oYw(Wmhk)k<@f$!$@ng~_5)Ru z0Z)trIA5^j{DIW^c+vT2%lW+2<(RtE2wR;4O@)Tm`Xr*?A(qYoM}7i5Yxw>D(&6ou zxz!_Xr~yNF+waPe00049Nkl*;a!v6h%{rlvIH#gW3s8p;bFr=l}mRqpW2h zw=OA%hdyL~z+UHOzl0eKhEr$YYOL-c-%Y<)=j?(bzDweB7{b+%_ypvm_cG{SvM=DK zhv{K@m>#Bw>2W$eUI#iU)Wdgs8Y3U+A$Gd&{+j)d)BmGKx+43U_!tik_YlN)>$7G! zhkE!s;%oku3;IwG3U^2kw?z+HM)jB{@zFhK8P#KMSytSthr+4!c(5c%+^UBn`0X*2 zy3(k600_CSZj?O$Qu%&$;|TGUJrptR(HzyIx>5E(2r{eA(<6t3e3I0B)7d6s7?Z5J zZ!rtKvA{MiEBm&KFtoifx>5P^Z=vl)95XJn()aS5%ad(s?4-=Tkis9IGu{`Fy8r+H07*qoM6N<$f20Z)wqMt%V?S?~D#06};F zA3KcL`Wb+>5ObvgQIG&ig8(;V04hz?@cqy3{mSh8o!|U|)cI!1_+!fWH@o*8vh^CU z^ws0;(c$gI+2~q^tO#GDHf@=;DncUw00J^eL_t(&-tE|HQ`%4vfZ;WsBqu-$0nu1R zq^Vj;p$clf^?twn|KHO+IGt^q#a3X?w9dXC@*yxhv&l}F322(8Y1&=P&I}~G@#h6; z1CV9ecD9ZEe87{{NtI*)_aJ<`kJa z?5=RBtFF50s;jQLFil-`)m2wrb=6h(&brpj%nG_U&ut~$?8Rokzxi8zJoWr#2dto5 zOX_URcc<1`Iky+jc;A%Vzx}1QU{2$|cKPom2Vf1{8m`vja4{F>HS?^Nc^rp}xo+Nh zxd}eOm`fm3@MQC1< zIk&aCjb~Yh%5+Yq0`)D;q{#-Uqlv*o+Oor zE!I71Z@ASH3grl8&P^L0WpavHoP|UX4e?!igT`4?AZk$hu*@%6WJ;zDOGlw7kj@ zY5!B-0ft0f?Lgb>C;$Ke07*qoM6N<$f~t1N9smFU diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png deleted file mode 100644 index 0ec303439225b78712f49115768196d8d76f6790..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 862 zcmV-k1EKthP)20Z)wqMt%V?S?~D#06};F zA3KcL`Wb+>5ObvgQIG&ig8(;V04hz?@cqy3{mSh8o!|U|)cI!1_+!fWH@o*8vh^CU z^ws0;(c$gI+2~q^tO#GDHf@=;DncUw00J^eL_t(&-tE|HQ`%4vfZ;WsBqu-$0nu1R zq^Vj;p$clf^?twn|KHO+IGt^q#a3X?w9dXC@*yxhv&l}F322(8Y1&=P&I}~G@#h6; z1CV9ecD9ZEe87{{NtI*)_aJ<`kJa z?5=RBtFF50s;jQLFil-`)m2wrb=6h(&brpj%nG_U&ut~$?8Rokzxi8zJoWr#2dto5 zOX_URcc<1`Iky+jc;A%Vzx}1QU{2$|cKPom2Vf1{8m`vja4{F>HS?^Nc^rp}xo+Nh zxd}eOm`fm3@MQC1< zIk&aCjb~Yh%5+Yq0`)D;q{#-Uqlv*o+Oor zE!I71Z@ASH3grl8&P^L0WpavHoP|UX4e?!igT`4?AZk$hu*@%6WJ;zDOGlw7kj@ zY5!B-0ft0f?Lgb>C;$Ke07*qoM6N<$f~t1N9smFU diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png deleted file mode 100644 index e9f5fea27c705180eb716271f41b582e76dcbd90..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1674 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 diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png deleted file mode 100644 index 0467bf12aa4d28f374bb26596605a46dcbb3e7c8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1418 zcmV;51$Fv~P)q zKfU)WzW*n(@|xWGCA9ScMt*e9`2kdxPQ&&>|-UCa7_51w+ zLUsW@ZzZSW0y$)Hp~e9%PvP|a03ks1`~K?q{u;6NC8*{AOqIUq{CL&;p56Lf$oQGq z^={4hPQv)y=I|4n+?>7Fim=dxt1 z2H+Dm+1+fh+IF>G0SjJMkQQre1x4|G*Z==(Ot&kCnUrL4I(rf(ucITwmuHf^hXiJT zkdTm&kdTm&kdTm&kdP`esgWG0BcWCVkVZ&2dUwN`cgM8QJb`Z7Z~e<&Yj2(}>Tmf` zm1{eLgw!b{bXkjWbF%dTkTZEJWyWOb##Lfw4EK2}<0d6%>AGS{po>WCOy&f$Tay_> z?NBlkpo@s-O;0V%Y_Xa-G#_O08q5LR*~F%&)}{}r&L%Sbs8AS4t7Y0NEx*{soY=0MZExqA5XHQkqi#4gW3 zqODM^iyZl;dvf)-bOXtOru(s)Uc7~BFx{w-FK;2{`VA?(g&@3z&bfLFyctOH!cVsF z7IL=fo-qBndRUm;kAdXR4e6>k-z|21AaN%ubeVrHl*<|s&Ax@W-t?LR(P-24A5=>a z*R9#QvjzF8n%@1Nw@?CG@6(%>+-0ASK~jEmCV|&a*7-GKT72W<(TbSjf)&Eme6nGE z>Gkj4Sq&2e+-G%|+NM8OOm5zVl9{Z8Dd8A5z3y8mZ=4Bv4%>as_{9cN#bm~;h>62( zdqY93Zy}v&c4n($Vv!UybR8ocs7#zbfX1IY-*w~)p}XyZ-SFC~4w>BvMVr`dFbelV{lLL0bx7@*ZZdebr3`sP;? zVImji)kG)(6Juv0lz@q`F!k1FE;CQ(D0iG$wchPbKZQELlsZ#~rt8#90Y_Xh&3U-< z{s<&cCV_1`^TD^ia9!*mQDq& zn2{r`j};V|uV%_wsP!zB?m%;FeaRe+X47K0e+KE!8C{gAWF8)lCd1u1%~|M!XNRvw zvtqy3iz0WSpWdhn6$hP8PaRBmp)q`#PCA`Vd#Tc$@f1tAcM>f_I@bC)hkI9|o(Iqv zo}Piadq!j76}004RBio<`)70k^`K1NK)q>w?p^C6J2ZC!+UppiK6&y3Kmbv&O!oYF z34$0Z;QO!JOY#!`qyGH<3Pd}Pt@q*A0V=3SVtWKRR8d8Z&@)3qLPA19LPA19LPEUC YUoZo%k(ykuW&i*H07*qoM6N<$f+CH{y8r+H diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json deleted file mode 100644 index 0bedcf2fd..000000000 --- a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "LaunchImage.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "LaunchImage@3x.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png deleted file mode 100644 index 9da19eacad3b03bb08bbddbbf4ac48dd78b3d838..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png deleted file mode 100644 index 9da19eacad3b03bb08bbddbbf4ac48dd78b3d838..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png deleted file mode 100644 index 9da19eacad3b03bb08bbddbbf4ac48dd78b3d838..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v diff --git a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md deleted file mode 100644 index 89c2725b7..000000000 --- a/pkgs/objective_c/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Launch Screen Assets - -You can customize the launch screen with your own desired assets by replacing the image files in this directory. - -You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/pkgs/objective_c/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/pkgs/objective_c/example/ios/Runner/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index f2e259c7c..000000000 --- a/pkgs/objective_c/example/ios/Runner/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkgs/objective_c/example/ios/Runner/Base.lproj/Main.storyboard b/pkgs/objective_c/example/ios/Runner/Base.lproj/Main.storyboard deleted file mode 100644 index f3c28516f..000000000 --- a/pkgs/objective_c/example/ios/Runner/Base.lproj/Main.storyboard +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkgs/objective_c/example/ios/Runner/Info.plist b/pkgs/objective_c/example/ios/Runner/Info.plist deleted file mode 100644 index 8bbbc6dc9..000000000 --- a/pkgs/objective_c/example/ios/Runner/Info.plist +++ /dev/null @@ -1,49 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleDisplayName - Objective C - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - objective_c_example - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleSignature - ???? - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - CADisableMinimumFrameDurationOnPhone - - UIApplicationSupportsIndirectInputEvents - - - diff --git a/pkgs/objective_c/example/ios/Runner/Runner-Bridging-Header.h b/pkgs/objective_c/example/ios/Runner/Runner-Bridging-Header.h deleted file mode 100644 index 308a2a560..000000000 --- a/pkgs/objective_c/example/ios/Runner/Runner-Bridging-Header.h +++ /dev/null @@ -1 +0,0 @@ -#import "GeneratedPluginRegistrant.h" diff --git a/pkgs/objective_c/example/ios/RunnerTests/RunnerTests.swift b/pkgs/objective_c/example/ios/RunnerTests/RunnerTests.swift deleted file mode 100644 index 86a7c3b1b..000000000 --- a/pkgs/objective_c/example/ios/RunnerTests/RunnerTests.swift +++ /dev/null @@ -1,12 +0,0 @@ -import Flutter -import UIKit -import XCTest - -class RunnerTests: XCTestCase { - - func testExample() { - // If you add code to the Runner application, consider adding tests here. - // See https://developer.apple.com/documentation/xctest for more information about using XCTest. - } - -} diff --git a/pkgs/objective_c/example/lib/main.dart b/pkgs/objective_c/example/lib/main.dart index bda08510b..6bf9da655 100644 --- a/pkgs/objective_c/example/lib/main.dart +++ b/pkgs/objective_c/example/lib/main.dart @@ -1,33 +1,10 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. +import 'dart:io'; -import 'package:flutter/material.dart'; import 'package:objective_c/objective_c.dart'; void main() { - runApp(const MaterialApp(home: MainApp())); -} - -class MainApp extends StatefulWidget { - const MainApp({super.key}); - - @override - State createState() => _MainAppState(); -} - -class _MainAppState extends State { - late final String message; - - @override - void initState() { - super.initState(); - - message = NSString('Hello World!').toDartString(); - } + // Objective-C is only supported on macOS and iOS. + assert(Platform.isMacOS || Platform.isIOS); - @override - Widget build(BuildContext context) { - return Scaffold(body: Center(child: Text(message))); - } + print('Hello World'.toNSString().toDartString()); } diff --git a/pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig b/pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig deleted file mode 100644 index 4b81f9b2d..000000000 --- a/pkgs/objective_c/example/macos/Flutter/Flutter-Debug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" -#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig b/pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig deleted file mode 100644 index 5caa9d157..000000000 --- a/pkgs/objective_c/example/macos/Flutter/Flutter-Release.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" -#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/pkgs/objective_c/example/macos/Podfile b/pkgs/objective_c/example/macos/Podfile deleted file mode 100644 index c795730db..000000000 --- a/pkgs/objective_c/example/macos/Podfile +++ /dev/null @@ -1,43 +0,0 @@ -platform :osx, '10.14' - -# CocoaPods analytics sends network stats synchronously affecting flutter build latency. -ENV['COCOAPODS_DISABLE_STATS'] = 'true' - -project 'Runner', { - 'Debug' => :debug, - 'Profile' => :release, - 'Release' => :release, -} - -def flutter_root - generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) - unless File.exist?(generated_xcode_build_settings_path) - raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" - end - - File.foreach(generated_xcode_build_settings_path) do |line| - matches = line.match(/FLUTTER_ROOT\=(.*)/) - return matches[1].strip if matches - end - raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" -end - -require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) - -flutter_macos_podfile_setup - -target 'Runner' do - use_frameworks! - use_modular_headers! - - flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) - target 'RunnerTests' do - inherit! :search_paths - end -end - -post_install do |installer| - installer.pods_project.targets.each do |target| - flutter_additional_macos_build_settings(target) - end -end diff --git a/pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj b/pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj deleted file mode 100644 index 7fb6863fb..000000000 --- a/pkgs/objective_c/example/macos/Runner.xcodeproj/project.pbxproj +++ /dev/null @@ -1,801 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 54; - objects = { - -/* Begin PBXAggregateTarget section */ - 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; - buildPhases = ( - 33CC111E2044C6BF0003C045 /* ShellScript */, - ); - dependencies = ( - ); - name = "Flutter Assemble"; - productName = FLX; - }; -/* End PBXAggregateTarget section */ - -/* Begin PBXBuildFile section */ - 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; - 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; - 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; - 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; - 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; - 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; - 5C3BF24AE85F5C730B12E1C3 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76CD4A3B26D45B1D35ED40BC /* Pods_Runner.framework */; }; - 98677E5D0F050EAF7F207C67 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A9FB1952D96C5AEFCA4D69B /* Pods_RunnerTests.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 33CC10E52044A3C60003C045 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 33CC10EC2044A3C60003C045; - remoteInfo = Runner; - }; - 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 33CC10E52044A3C60003C045 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 33CC111A2044C6BA0003C045; - remoteInfo = FLX; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 33CC110E2044A8840003C045 /* Bundle Framework */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - ); - name = "Bundle Framework"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 253A21F847FB1AF244672D0E /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; - 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; - 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; - 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; - 33CC10ED2044A3C60003C045 /* objective_c_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = objective_c_example.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; - 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; - 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; - 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; - 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; - 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; - 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; - 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; - 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; - 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; - 6A9FB1952D96C5AEFCA4D69B /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 76CD4A3B26D45B1D35ED40BC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; - 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; - AC25B0021603A0772CA9840F /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; - E5900647B1760244CA95C2A6 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; - E739196F186306D59FB11177 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; - ECD2E4ECDB0FCE6DA971A318 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; - EE079268A4FB02480F3FCA89 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 331C80D2294CF70F00263BE5 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 98677E5D0F050EAF7F207C67 /* Pods_RunnerTests.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 33CC10EA2044A3C60003C045 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 5C3BF24AE85F5C730B12E1C3 /* Pods_Runner.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 331C80D6294CF71000263BE5 /* RunnerTests */ = { - isa = PBXGroup; - children = ( - 331C80D7294CF71000263BE5 /* RunnerTests.swift */, - ); - path = RunnerTests; - sourceTree = ""; - }; - 33BA886A226E78AF003329D5 /* Configs */ = { - isa = PBXGroup; - children = ( - 33E5194F232828860026EE4D /* AppInfo.xcconfig */, - 9740EEB21CF90195004384FC /* Debug.xcconfig */, - 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, - 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, - ); - path = Configs; - sourceTree = ""; - }; - 33CC10E42044A3C60003C045 = { - isa = PBXGroup; - children = ( - 33FAB671232836740065AC1E /* Runner */, - 33CEB47122A05771004F2AC0 /* Flutter */, - 331C80D6294CF71000263BE5 /* RunnerTests */, - 33CC10EE2044A3C60003C045 /* Products */, - D73912EC22F37F3D000D13A0 /* Frameworks */, - 96BE0B041091E6177B65072F /* Pods */, - ); - sourceTree = ""; - }; - 33CC10EE2044A3C60003C045 /* Products */ = { - isa = PBXGroup; - children = ( - 33CC10ED2044A3C60003C045 /* objective_c_example.app */, - 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 33CC11242044D66E0003C045 /* Resources */ = { - isa = PBXGroup; - children = ( - 33CC10F22044A3C60003C045 /* Assets.xcassets */, - 33CC10F42044A3C60003C045 /* MainMenu.xib */, - 33CC10F72044A3C60003C045 /* Info.plist */, - ); - name = Resources; - path = ..; - sourceTree = ""; - }; - 33CEB47122A05771004F2AC0 /* Flutter */ = { - isa = PBXGroup; - children = ( - 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, - 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, - 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, - 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, - ); - path = Flutter; - sourceTree = ""; - }; - 33FAB671232836740065AC1E /* Runner */ = { - isa = PBXGroup; - children = ( - 33CC10F02044A3C60003C045 /* AppDelegate.swift */, - 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, - 33E51913231747F40026EE4D /* DebugProfile.entitlements */, - 33E51914231749380026EE4D /* Release.entitlements */, - 33CC11242044D66E0003C045 /* Resources */, - 33BA886A226E78AF003329D5 /* Configs */, - ); - path = Runner; - sourceTree = ""; - }; - 96BE0B041091E6177B65072F /* Pods */ = { - isa = PBXGroup; - children = ( - EE079268A4FB02480F3FCA89 /* Pods-Runner.debug.xcconfig */, - E739196F186306D59FB11177 /* Pods-Runner.release.xcconfig */, - E5900647B1760244CA95C2A6 /* Pods-Runner.profile.xcconfig */, - ECD2E4ECDB0FCE6DA971A318 /* Pods-RunnerTests.debug.xcconfig */, - AC25B0021603A0772CA9840F /* Pods-RunnerTests.release.xcconfig */, - 253A21F847FB1AF244672D0E /* Pods-RunnerTests.profile.xcconfig */, - ); - name = Pods; - path = Pods; - sourceTree = ""; - }; - D73912EC22F37F3D000D13A0 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 76CD4A3B26D45B1D35ED40BC /* Pods_Runner.framework */, - 6A9FB1952D96C5AEFCA4D69B /* Pods_RunnerTests.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 331C80D4294CF70F00263BE5 /* RunnerTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; - buildPhases = ( - DD8A915821E91B2D640F20A1 /* [CP] Check Pods Manifest.lock */, - 331C80D1294CF70F00263BE5 /* Sources */, - 331C80D2294CF70F00263BE5 /* Frameworks */, - 331C80D3294CF70F00263BE5 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 331C80DA294CF71000263BE5 /* PBXTargetDependency */, - ); - name = RunnerTests; - productName = RunnerTests; - productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 33CC10EC2044A3C60003C045 /* Runner */ = { - isa = PBXNativeTarget; - buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; - buildPhases = ( - FF16D30B988DB2BCD781BB14 /* [CP] Check Pods Manifest.lock */, - 33CC10E92044A3C60003C045 /* Sources */, - 33CC10EA2044A3C60003C045 /* Frameworks */, - 33CC10EB2044A3C60003C045 /* Resources */, - 33CC110E2044A8840003C045 /* Bundle Framework */, - 3399D490228B24CF009A79C7 /* ShellScript */, - 774CDE4872C6F2C91B1264E0 /* [CP] Embed Pods Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 33CC11202044C79F0003C045 /* PBXTargetDependency */, - ); - name = Runner; - productName = Runner; - productReference = 33CC10ED2044A3C60003C045 /* objective_c_example.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 33CC10E52044A3C60003C045 /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = YES; - LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 1510; - ORGANIZATIONNAME = ""; - TargetAttributes = { - 331C80D4294CF70F00263BE5 = { - CreatedOnToolsVersion = 14.0; - TestTargetID = 33CC10EC2044A3C60003C045; - }; - 33CC10EC2044A3C60003C045 = { - CreatedOnToolsVersion = 9.2; - LastSwiftMigration = 1100; - ProvisioningStyle = Automatic; - SystemCapabilities = { - com.apple.Sandbox = { - enabled = 1; - }; - }; - }; - 33CC111A2044C6BA0003C045 = { - CreatedOnToolsVersion = 9.2; - ProvisioningStyle = Manual; - }; - }; - }; - buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 33CC10E42044A3C60003C045; - productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 33CC10EC2044A3C60003C045 /* Runner */, - 331C80D4294CF70F00263BE5 /* RunnerTests */, - 33CC111A2044C6BA0003C045 /* Flutter Assemble */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 331C80D3294CF70F00263BE5 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 33CC10EB2044A3C60003C045 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, - 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 3399D490228B24CF009A79C7 /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - alwaysOutOfDate = 1; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - ); - outputFileListPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; - }; - 33CC111E2044C6BF0003C045 /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - Flutter/ephemeral/FlutterInputs.xcfilelist, - ); - inputPaths = ( - Flutter/ephemeral/tripwire, - ); - outputFileListPaths = ( - Flutter/ephemeral/FlutterOutputs.xcfilelist, - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; - }; - 774CDE4872C6F2C91B1264E0 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - DD8A915821E91B2D640F20A1 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; - FF16D30B988DB2BCD781BB14 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 331C80D1294CF70F00263BE5 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 33CC10E92044A3C60003C045 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, - 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, - 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 33CC10EC2044A3C60003C045 /* Runner */; - targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; - }; - 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; - targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { - isa = PBXVariantGroup; - children = ( - 33CC10F52044A3C60003C045 /* Base */, - ); - name = MainMenu.xib; - path = Runner; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 331C80DB294CF71000263BE5 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = ECD2E4ECDB0FCE6DA971A318 /* Pods-RunnerTests.debug.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/objective_c_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/objective_c_example"; - }; - name = Debug; - }; - 331C80DC294CF71000263BE5 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = AC25B0021603A0772CA9840F /* Pods-RunnerTests.release.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/objective_c_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/objective_c_example"; - }; - name = Release; - }; - 331C80DD294CF71000263BE5 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 253A21F847FB1AF244672D0E /* Pods-RunnerTests.profile.xcconfig */; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample.RunnerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/objective_c_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/objective_c_example"; - }; - name = Profile; - }; - 338D0CE9231458BD00FA5F75 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CODE_SIGN_IDENTITY = "-"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = macosx; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - }; - name = Profile; - }; - 338D0CEA231458BD00FA5F75 /* Profile */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 5.0; - }; - name = Profile; - }; - 338D0CEB231458BD00FA5F75 /* Profile */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Manual; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Profile; - }; - 33CC10F92044A3C60003C045 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CODE_SIGN_IDENTITY = "-"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 33CC10FA2044A3C60003C045 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CODE_SIGN_IDENTITY = "-"; - COPY_PHASE_STRIP = NO; - DEAD_CODE_STRIPPING = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = NO; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = macosx; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - }; - name = Release; - }; - 33CC10FC2044A3C60003C045 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 33CC10FD2044A3C60003C045 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - PROVISIONING_PROFILE_SPECIFIER = ""; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - 33CC111C2044C6BA0003C045 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Manual; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 33CC111D2044C6BA0003C045 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 331C80DB294CF71000263BE5 /* Debug */, - 331C80DC294CF71000263BE5 /* Release */, - 331C80DD294CF71000263BE5 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 33CC10F92044A3C60003C045 /* Debug */, - 33CC10FA2044A3C60003C045 /* Release */, - 338D0CE9231458BD00FA5F75 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 33CC10FC2044A3C60003C045 /* Debug */, - 33CC10FD2044A3C60003C045 /* Release */, - 338D0CEA231458BD00FA5F75 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 33CC111C2044C6BA0003C045 /* Debug */, - 33CC111D2044C6BA0003C045 /* Release */, - 338D0CEB231458BD00FA5F75 /* Profile */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 33CC10E52044A3C60003C045 /* Project object */; -} diff --git a/pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/pkgs/objective_c/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme deleted file mode 100644 index c87f47847..000000000 --- a/pkgs/objective_c/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 21a3cc14c..000000000 --- a/pkgs/objective_c/example/macos/Runner.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d981003..000000000 --- a/pkgs/objective_c/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/pkgs/objective_c/example/macos/Runner/AppDelegate.swift b/pkgs/objective_c/example/macos/Runner/AppDelegate.swift deleted file mode 100644 index b3c176141..000000000 --- a/pkgs/objective_c/example/macos/Runner/AppDelegate.swift +++ /dev/null @@ -1,13 +0,0 @@ -import Cocoa -import FlutterMacOS - -@main -class AppDelegate: FlutterAppDelegate { - override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { - return true - } - - override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { - return true - } -} diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index a2ec33f19..000000000 --- a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "size" : "16x16", - "idiom" : "mac", - "filename" : "app_icon_16.png", - "scale" : "1x" - }, - { - "size" : "16x16", - "idiom" : "mac", - "filename" : "app_icon_32.png", - "scale" : "2x" - }, - { - "size" : "32x32", - "idiom" : "mac", - "filename" : "app_icon_32.png", - "scale" : "1x" - }, - { - "size" : "32x32", - "idiom" : "mac", - "filename" : "app_icon_64.png", - "scale" : "2x" - }, - { - "size" : "128x128", - "idiom" : "mac", - "filename" : "app_icon_128.png", - "scale" : "1x" - }, - { - "size" : "128x128", - "idiom" : "mac", - "filename" : "app_icon_256.png", - "scale" : "2x" - }, - { - "size" : "256x256", - "idiom" : "mac", - "filename" : "app_icon_256.png", - "scale" : "1x" - }, - { - "size" : "256x256", - "idiom" : "mac", - "filename" : "app_icon_512.png", - "scale" : "2x" - }, - { - "size" : "512x512", - "idiom" : "mac", - "filename" : "app_icon_512.png", - "scale" : "1x" - }, - { - "size" : "512x512", - "idiom" : "mac", - "filename" : "app_icon_1024.png", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png deleted file mode 100644 index 82b6f9d9a33e198f5747104729e1fcef999772a5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 102994 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ⅅ8MglG&ER{i5lN315cO?EdHNLrg? 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 z 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 Pe7HEdAEg|=c=LY&YVNkY diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png deleted file mode 100644 index 13b35eba55c6dabc3aac36f33d859266c18fa0d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5680 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 diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png deleted file mode 100644 index 0a3f5fa40fb3d1e0710331a48de5d256da3f275d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 520 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 diff --git a/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/pkgs/objective_c/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png deleted file mode 100644 index 2f1632cfddf3d9dade342351e627a0a75609fb46..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2218 zcmV;b2vzrqP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91K%fHv1ONa40RR91KmY&$07g+lumAuE6iGxuRCodHTWf3-RTMruyW6Fu zQYeUM04eX6D5c0FCjKKPrco1(K`<0SL=crI{PC3-^hZU0kQie$gh-5!7z6SH6Q0J% zqot*`H1q{R5fHFYS}dje@;kG=v$L0(yY0?wY2%*c?A&{2?!D*x?m71{of2gv!$5|C z3>qG_BW}7K_yUcT3A5C6QD<+{aq?x;MAUyAiJn#Jv8_zZtQ{P zTRzbL3U9!qVuZzS$xKU10KiW~Bgdcv1-!uAhQxf3a7q+dU6lj?yoO4Lq4TUN4}h{N z*fIM=SS8|C2$(T>w$`t@3Tka!(r!7W`x z-isCVgQD^mG-MJ;XtJuK3V{Vy72GQ83KRWsHU?e*wrhKk=ApIYeDqLi;JI1e zuvv}5^Dc=k7F7?nm3nIw$NVmU-+R>> zyqOR$-2SDpJ}Pt;^RkJytDVXNTsu|mI1`~G7yw`EJR?VkGfNdqK9^^8P`JdtTV&tX4CNcV4 z&N06nZa??Fw1AgQOUSE2AmPE@WO(Fvo`%m`cDgiv(fAeRA%3AGXUbsGw{7Q`cY;1BI#ac3iN$$Hw z0LT0;xc%=q)me?Y*$xI@GRAw?+}>=9D+KTk??-HJ4=A>`V&vKFS75@MKdSF1JTq{S zc1!^8?YA|t+uKigaq!sT;Z!&0F2=k7F0PIU;F$leJLaw2UI6FL^w}OG&!;+b%ya1c z1n+6-inU<0VM-Y_s5iTElq)ThyF?StVcebpGI znw#+zLx2@ah{$_2jn+@}(zJZ{+}_N9BM;z)0yr|gF-4=Iyu@hI*Lk=-A8f#bAzc9f z`Kd6K--x@t04swJVC3JK1cHY-Hq+=|PN-VO;?^_C#;coU6TDP7Bt`;{JTG;!+jj(` zw5cLQ-(Cz-Tlb`A^w7|R56Ce;Wmr0)$KWOUZ6ai0PhzPeHwdl0H(etP zUV`va_i0s-4#DkNM8lUlqI7>YQLf)(lz9Q3Uw`)nc(z3{m5ZE77Ul$V%m)E}3&8L0 z-XaU|eB~Is08eORPk;=<>!1w)Kf}FOVS2l&9~A+@R#koFJ$Czd%Y(ENTV&A~U(IPI z;UY+gf+&6ioZ=roly<0Yst8ck>(M=S?B-ys3mLdM&)ex!hbt+ol|T6CTS+Sc0jv(& z7ijdvFwBq;0a{%3GGwkDKTeG`b+lyj0jjS1OMkYnepCdoosNY`*zmBIo*981BU%%U z@~$z0V`OVtIbEx5pa|Tct|Lg#ZQf5OYMUMRD>Wdxm5SAqV2}3!ceE-M2 z@O~lQ0OiKQp}o9I;?uxCgYVV?FH|?Riri*U$Zi_`V2eiA>l zdSm6;SEm6#T+SpcE8Ro_f2AwxzI z44hfe^WE3!h@W3RDyA_H440cpmYkv*)6m1XazTqw%=E5Xv7^@^^T7Q2wxr+Z2kVYr - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig deleted file mode 100644 index 50d7b8686..000000000 --- a/pkgs/objective_c/example/macos/Runner/Configs/AppInfo.xcconfig +++ /dev/null @@ -1,14 +0,0 @@ -// Application-level settings for the Runner target. -// -// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the -// future. If not, the values below would default to using the project name when this becomes a -// 'flutter create' template. - -// The application's name. By default this is also the title of the Flutter window. -PRODUCT_NAME = objective_c_example - -// The application's bundle identifier -PRODUCT_BUNDLE_IDENTIFIER = com.github.dartlang.objectiveCExample - -// The copyright displayed in application information -PRODUCT_COPYRIGHT = Copyright © 2024 com.github.dart_lang. All rights reserved. diff --git a/pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig deleted file mode 100644 index 36b0fd946..000000000 --- a/pkgs/objective_c/example/macos/Runner/Configs/Debug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "../../Flutter/Flutter-Debug.xcconfig" -#include "Warnings.xcconfig" diff --git a/pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig deleted file mode 100644 index dff4f4956..000000000 --- a/pkgs/objective_c/example/macos/Runner/Configs/Release.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "../../Flutter/Flutter-Release.xcconfig" -#include "Warnings.xcconfig" diff --git a/pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig b/pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig deleted file mode 100644 index 42bcbf478..000000000 --- a/pkgs/objective_c/example/macos/Runner/Configs/Warnings.xcconfig +++ /dev/null @@ -1,13 +0,0 @@ -WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings -GCC_WARN_UNDECLARED_SELECTOR = YES -CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES -CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE -CLANG_WARN__DUPLICATE_METHOD_MATCH = YES -CLANG_WARN_PRAGMA_PACK = YES -CLANG_WARN_STRICT_PROTOTYPES = YES -CLANG_WARN_COMMA = YES -GCC_WARN_STRICT_SELECTOR_MATCH = YES -CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES -CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES -GCC_WARN_SHADOW = YES -CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements b/pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements deleted file mode 100644 index dddb8a30c..000000000 --- a/pkgs/objective_c/example/macos/Runner/DebugProfile.entitlements +++ /dev/null @@ -1,12 +0,0 @@ - - - - - com.apple.security.app-sandbox - - com.apple.security.cs.allow-jit - - com.apple.security.network.server - - - diff --git a/pkgs/objective_c/example/macos/Runner/Info.plist b/pkgs/objective_c/example/macos/Runner/Info.plist deleted file mode 100644 index 4789daa6a..000000000 --- a/pkgs/objective_c/example/macos/Runner/Info.plist +++ /dev/null @@ -1,32 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIconFile - - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - LSMinimumSystemVersion - $(MACOSX_DEPLOYMENT_TARGET) - NSHumanReadableCopyright - $(PRODUCT_COPYRIGHT) - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - - diff --git a/pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift b/pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift deleted file mode 100644 index 3cc05eb23..000000000 --- a/pkgs/objective_c/example/macos/Runner/MainFlutterWindow.swift +++ /dev/null @@ -1,15 +0,0 @@ -import Cocoa -import FlutterMacOS - -class MainFlutterWindow: NSWindow { - override func awakeFromNib() { - let flutterViewController = FlutterViewController() - let windowFrame = self.frame - self.contentViewController = flutterViewController - self.setFrame(windowFrame, display: true) - - RegisterGeneratedPlugins(registry: flutterViewController) - - super.awakeFromNib() - } -} diff --git a/pkgs/objective_c/example/macos/Runner/Release.entitlements b/pkgs/objective_c/example/macos/Runner/Release.entitlements deleted file mode 100644 index 852fa1a47..000000000 --- a/pkgs/objective_c/example/macos/Runner/Release.entitlements +++ /dev/null @@ -1,8 +0,0 @@ - - - - - com.apple.security.app-sandbox - - - diff --git a/pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift b/pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift deleted file mode 100644 index 61f3bd1fc..000000000 --- a/pkgs/objective_c/example/macos/RunnerTests/RunnerTests.swift +++ /dev/null @@ -1,12 +0,0 @@ -import Cocoa -import FlutterMacOS -import XCTest - -class RunnerTests: XCTestCase { - - func testExample() { - // If you add code to the Runner application, consider adding tests here. - // See https://developer.apple.com/documentation/xctest for more information about using XCTest. - } - -} diff --git a/pkgs/objective_c/example/pubspec.yaml b/pkgs/objective_c/example/pubspec.yaml index 8395b9bc6..7ff218f53 100644 --- a/pkgs/objective_c/example/pubspec.yaml +++ b/pkgs/objective_c/example/pubspec.yaml @@ -1,27 +1,15 @@ -# Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file -# for details. All rights reserved. Use of this source code is governed by a -# BSD-style license that can be found in the LICENSE file. - name: example description: "Demonstrates using package:objective_c" -publish_to: 'none' -version: 0.1.0 +version: 1.0.0 +publish_to: none environment: - sdk: '>=3.8.0 <4.0.0' - flutter: '>=3.32.0' + sdk: '>=3.9.0-21.0.dev <4.0.0' dependencies: - ffi: ^2.1.0 - flutter: - sdk: flutter objective_c: path: .. dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^3.0.0 - -flutter: - uses-material-design: true + lints: ^5.0.0 + test: ^1.24.0 diff --git a/pkgs/objective_c/pubspec.yaml b/pkgs/objective_c/pubspec.yaml index cb643291f..311245c36 100644 --- a/pkgs/objective_c/pubspec.yaml +++ b/pkgs/objective_c/pubspec.yaml @@ -15,7 +15,7 @@ topics: - codegen environment: - sdk: '>=3.8.0 <4.0.0' + sdk: '>=3.9.0-21.0.dev <4.0.0' dependencies: code_assets: ^0.19.0 From 623740ab5e85ed58c50b88fc54bc3212758429ef Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 18 Jun 2025 14:51:49 +1000 Subject: [PATCH 13/29] use dev sdk in workflows --- .github/workflows/ffigen.yml | 12 ++++++------ .github/workflows/objective_c.yaml | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ffigen.yml b/.github/workflows/ffigen.yml index 947ee42c8..742fe37d1 100644 --- a/.github/workflows/ffigen.yml +++ b/.github/workflows/ffigen.yml @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - sdk: stable + sdk: dev - id: install name: Install dependencies run: dart pub get && dart pub get --directory="example/shared_bindings" && dart pub get --directory="../objective_c" @@ -56,7 +56,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - sdk: stable + sdk: dev - name: Install dependencies run: dart pub get && dart pub get --directory="../jni" - name: Install libclang-14-dev @@ -80,7 +80,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - sdk: stable + sdk: dev - name: Install dependencies run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" - name: Install clang-format @@ -120,7 +120,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - sdk: stable + sdk: dev - name: Install dependencies run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" - name: Install clang-format @@ -142,7 +142,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - sdk: stable + sdk: dev - name: Install dependencies run: dart pub get && dart pub get --directory="../objective_c" - name: Build test dylib and bindings @@ -160,7 +160,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - sdk: stable + sdk: dev - name: Install dependencies run: dart pub get && dart pub get --directory="../jni" - name: Build test dylib and bindings diff --git a/.github/workflows/objective_c.yaml b/.github/workflows/objective_c.yaml index 8f932f7d4..4841ecb1b 100644 --- a/.github/workflows/objective_c.yaml +++ b/.github/workflows/objective_c.yaml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - sdk: stable + sdk: dev - id: install name: Install dependencies run: dart pub get @@ -54,7 +54,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - sdk: stable + sdk: dev - name: Install dependencies run: dart pub get - name: Install coverage @@ -89,7 +89,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - sdk: stable + sdk: dev - name: Install dependencies run: dart pub get - name: Run the example app From 072d9ef88dc902cec939168431e9f7e31e66ef44 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 18 Jun 2025 15:04:00 +1000 Subject: [PATCH 14/29] fix analysis --- .github/workflows/ffigen_weekly.yml | 2 +- pkgs/ffigen/test/setup.dart | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ffigen_weekly.yml b/.github/workflows/ffigen_weekly.yml index b8eef720f..3d00b6dc6 100644 --- a/.github/workflows/ffigen_weekly.yml +++ b/.github/workflows/ffigen_weekly.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c with: - sdk: stable + sdk: dev - name: Install dependencies run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" - name: Install clang-format diff --git a/pkgs/ffigen/test/setup.dart b/pkgs/ffigen/test/setup.dart index d7002a994..6c05b2566 100644 --- a/pkgs/ffigen/test/setup.dart +++ b/pkgs/ffigen/test/setup.dart @@ -8,8 +8,6 @@ import 'dart:async'; import 'dart:io'; -import 'package:args/args.dart'; - Future _run(String subdir, String script, List flags) async { final dir = Platform.script.resolve('$subdir/'); print('\nRunning $script in ${dir.toFilePath()}'); From 6dc4b8a5600d033a48caaa9069412e5c34053ed2 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 18 Jun 2025 15:09:53 +1000 Subject: [PATCH 15/29] fix workflow --- .github/workflows/ffigen.yml | 26 +++++++++++++------------- .github/workflows/ffigen_weekly.yml | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ffigen.yml b/.github/workflows/ffigen.yml index 742fe37d1..cd4918057 100644 --- a/.github/workflows/ffigen.yml +++ b/.github/workflows/ffigen.yml @@ -32,9 +32,9 @@ jobs: fail-fast: false steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c + - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 with: - sdk: dev + channel: master - id: install name: Install dependencies run: dart pub get && dart pub get --directory="example/shared_bindings" && dart pub get --directory="../objective_c" @@ -54,9 +54,9 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c + - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 with: - sdk: dev + channel: master - name: Install dependencies run: dart pub get && dart pub get --directory="../jni" - name: Install libclang-14-dev @@ -78,9 +78,9 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c + - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 with: - sdk: dev + channel: master - name: Install dependencies run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" - name: Install clang-format @@ -118,9 +118,9 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c + - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 with: - sdk: dev + channel: master - name: Install dependencies run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" - name: Install clang-format @@ -140,9 +140,9 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c + - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 with: - sdk: dev + channel: master - name: Install dependencies run: dart pub get && dart pub get --directory="../objective_c" - name: Build test dylib and bindings @@ -158,9 +158,9 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c + - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 with: - sdk: dev + channel: master - name: Install dependencies run: dart pub get && dart pub get --directory="../jni" - name: Build test dylib and bindings @@ -191,7 +191,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 with: - channel: "master" + channel: master - name: Install dependencies run: flutter pub get - name: Build test dylib and bindings diff --git a/.github/workflows/ffigen_weekly.yml b/.github/workflows/ffigen_weekly.yml index 3d00b6dc6..7de31812b 100644 --- a/.github/workflows/ffigen_weekly.yml +++ b/.github/workflows/ffigen_weekly.yml @@ -28,9 +28,9 @@ jobs: working-directory: pkgs/ffigen/ steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c + - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 with: - sdk: dev + channel: master - name: Install dependencies run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" - name: Install clang-format From d1b731376f60df3d581697ffa1a6c82b1510247d Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 18 Jun 2025 15:14:12 +1000 Subject: [PATCH 16/29] workflow --- .github/workflows/ffigen_weekly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ffigen_weekly.yml b/.github/workflows/ffigen_weekly.yml index 7de31812b..12854b7e0 100644 --- a/.github/workflows/ffigen_weekly.yml +++ b/.github/workflows/ffigen_weekly.yml @@ -32,7 +32,7 @@ jobs: with: channel: master - name: Install dependencies - run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" + run: dart pub get && dart pub get --directory="../objective_c" && flutter pub get --directory="../jni" - name: Install clang-format uses: ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30 with: From db35a6908df4475dca5d8f1851a5ad9f1cc73486 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 18 Jun 2025 15:19:25 +1000 Subject: [PATCH 17/29] fix workflow --- .github/workflows/ffigen.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ffigen.yml b/.github/workflows/ffigen.yml index cd4918057..301053a4e 100644 --- a/.github/workflows/ffigen.yml +++ b/.github/workflows/ffigen.yml @@ -58,7 +58,7 @@ jobs: with: channel: master - name: Install dependencies - run: dart pub get && dart pub get --directory="../jni" + run: dart pub get && flutter pub get --directory="../jni" - name: Install libclang-14-dev run: sudo apt-get install libclang-14-dev - name: Build test dylib and bindings @@ -82,7 +82,7 @@ jobs: with: channel: master - name: Install dependencies - run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" + run: dart pub get && dart pub get --directory="../objective_c" && flutter pub get --directory="../jni" - name: Install clang-format uses: ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30 with: @@ -122,7 +122,7 @@ jobs: with: channel: master - name: Install dependencies - run: dart pub get && dart pub get --directory="../objective_c" && dart pub get --directory="../jni" + run: dart pub get && dart pub get --directory="../objective_c" && flutter pub get --directory="../jni" - name: Install clang-format uses: ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30 with: @@ -162,7 +162,7 @@ jobs: with: channel: master - name: Install dependencies - run: dart pub get && dart pub get --directory="../jni" + run: dart pub get && flutter pub get --directory="../jni" - name: Build test dylib and bindings run: dart test/setup.dart - name: Run VM tests From 42ca198f4d0c03368343c05e8eb5b2ab403e4305 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 18 Jun 2025 15:38:15 +1000 Subject: [PATCH 18/29] Fix linux and mac builds --- pkgs/objective_c/hook/build.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/objective_c/hook/build.dart b/pkgs/objective_c/hook/build.dart index d8e5ead9c..539ee2a9c 100644 --- a/pkgs/objective_c/hook/build.dart +++ b/pkgs/objective_c/hook/build.dart @@ -25,6 +25,12 @@ final logger = Logger('') void main(List args) async { await build(args, (input, output) async { + const supportedOSs = {OS.iOS, OS.macOS}; + if (!supportedOSs.contains(input.config.code.targetOS)) { + // Nothing to do. + return; + } + if (input.config.code.linkModePreference == LinkModePreference.static) { throw UnsupportedError('LinkModePreference.static is not supported.'); } From 9fb56d16cf94b3539017ce15c5fcb442bce0c67c Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 23 Jun 2025 15:05:09 +1000 Subject: [PATCH 19/29] cleanup --- pkgs/objective_c/ffigen_objc.yaml | 4 +++- pkgs/objective_c/lib/src/objective_c_bindings_generated.dart | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/objective_c/ffigen_objc.yaml b/pkgs/objective_c/ffigen_objc.yaml index 5171542a0..5f388570c 100644 --- a/pkgs/objective_c/ffigen_objc.yaml +++ b/pkgs/objective_c/ffigen_objc.yaml @@ -13,10 +13,13 @@ headers: - 'src/observer.h' - 'src/protocol.h' ffi-native: + asset-id: 'package:objective_c/objective_c.dylib' exclude-all-by-default: true include-transitive-objc-categories: false generate-for-package-objective-c: true sort: true +library-imports: + collection: 'dart:collection' external-versions: # See https://docs.flutter.dev/reference/supported-platforms. ios: @@ -184,4 +187,3 @@ preamble: | // ignore_for_file: unused_element // ignore_for_file: unused_field // coverage:ignore-file - import 'dart:collection' as collection; diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart index 193c5087c..95cd58e20 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart @@ -12,12 +12,15 @@ // ignore_for_file: unused_element // ignore_for_file: unused_field // coverage:ignore-file -import 'dart:collection' as collection; // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. // ignore_for_file: type=lint +@ffi.DefaultAsset('package:objective_c/objective_c.dylib') +library; + +import 'dart:collection' as collection; import 'dart:ffi' as ffi; import '../objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; From 3e6b92075e3bdd751df73a7657e7e63416fa08e1 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Fri, 27 Jun 2025 13:37:31 +1000 Subject: [PATCH 20/29] another code split --- .../objc_built_in_functions.dart | 2 +- .../code_generator/objc_built_in_types.dart | 86 +- pkgs/objective_c/ffigen_foundation.yaml | 173 + pkgs/objective_c/ffigen_objc.yaml | 133 +- pkgs/objective_c/lib/objective_c.dart | 3 +- pkgs/objective_c/lib/src/cf_string.dart | 2 +- pkgs/objective_c/lib/src/converter.dart | 1 + ...dart => foundation_bindings_exported.dart} | 6 +- .../src/foundation_bindings_generated.dart | 35043 +++++++++++++ pkgs/objective_c/lib/src/ns_data.dart | 1 + pkgs/objective_c/lib/src/ns_date.dart | 1 + pkgs/objective_c/lib/src/ns_input_stream.dart | 1 + pkgs/objective_c/lib/src/ns_mutable_data.dart | 1 + pkgs/objective_c/lib/src/ns_number.dart | 1 + pkgs/objective_c/lib/src/ns_string.dart | 2 + .../src/objective_c_bindings_generated.dart | 41192 +--------------- .../lib/src/objective_c_native_base.dart | 6 - pkgs/objective_c/lib/src/observer.dart | 1 + .../objective_c/lib/src/protocol_builder.dart | 5 +- .../src/foundation_bindings_generated.m | 524 + .../src/objective_c_bindings_generated.m | 534 +- .../test/interface_lists_test.dart | 2 +- pkgs/objective_c/tool/generate_code.dart | 30 +- pkgs/swiftgen/example/temp/AVFAudioWrapper.h | 1261 + pkgs/swiftgen/test/integration/temp/classes.h | 326 + .../test/integration/temp/classes_output.dart | 434 + .../test/integration/temp/classes_output.m | 59 + 27 files changed, 38722 insertions(+), 41108 deletions(-) create mode 100644 pkgs/objective_c/ffigen_foundation.yaml rename pkgs/objective_c/lib/src/{objective_c_bindings_exported.dart => foundation_bindings_exported.dart} (95%) create mode 100644 pkgs/objective_c/lib/src/foundation_bindings_generated.dart delete mode 100644 pkgs/objective_c/lib/src/objective_c_native_base.dart create mode 100644 pkgs/objective_c/src/foundation_bindings_generated.m create mode 100644 pkgs/swiftgen/example/temp/AVFAudioWrapper.h create mode 100644 pkgs/swiftgen/test/integration/temp/classes.h create mode 100644 pkgs/swiftgen/test/integration/temp/classes_output.dart create mode 100644 pkgs/swiftgen/test/integration/temp/classes_output.m diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart index 9df82aff0..58d37a18d 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart @@ -54,7 +54,7 @@ class ObjCBuiltInFunctions { // TODO(https://github.com/dart-lang/native/issues/1173): Ideally this check // would be based on more than just the name. String? getBuiltInInterfaceName(String name) => - generateForPackageObjectiveC ? null : objCBuiltInInterfaces[name]; + generateForPackageObjectiveC && objCBuiltInInterfaces.contains(name) ? null : name; String? getBuiltInCompoundName(String name) => generateForPackageObjectiveC ? null : objCBuiltInCompounds[name]; bool isBuiltInEnum(String name) => diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart index a150eb96e..5f3f562de 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart @@ -5,50 +5,46 @@ // Generated by package:objective_c's tool/generate_code.dart. const objCBuiltInInterfaces = { - 'DOBJCDartInputStreamAdapter': 'DartInputStreamAdapter', - 'DOBJCObservation': 'DOBJCObservation', - 'DOBJCDartProtocolBuilder': 'DartProtocolBuilder', - 'DOBJCDartProtocol': 'DartProtocol', - 'NSArray': 'NSArray', - 'NSCharacterSet': 'NSCharacterSet', - 'NSCoder': 'NSCoder', - 'NSData': 'NSData', - 'NSDate': 'NSDate', - 'NSDictionary': 'NSDictionary', - 'NSEnumerator': 'NSEnumerator', - 'NSError': 'NSError', - 'NSIndexSet': 'NSIndexSet', - 'NSInputStream': 'NSInputStream', - 'NSInvocation': 'NSInvocation', - 'NSItemProvider': 'NSItemProvider', - 'NSLocale': 'NSLocale', - 'NSMethodSignature': 'NSMethodSignature', - 'NSMutableArray': 'NSMutableArray', - 'NSMutableData': 'NSMutableData', - 'NSMutableDictionary': 'NSMutableDictionary', - 'NSMutableIndexSet': 'NSMutableIndexSet', - 'NSMutableOrderedSet': 'NSMutableOrderedSet', - 'NSMutableSet': 'NSMutableSet', - 'NSMutableString': 'NSMutableString', - 'NSNotification': 'NSNotification', - 'NSNumber': 'NSNumber', - 'NSObject': 'NSObject', - 'NSOutputStream': 'NSOutputStream', - 'NSOrderedCollectionChange': 'NSOrderedCollectionChange', - 'NSOrderedCollectionDifference': 'NSOrderedCollectionDifference', - 'NSOrderedSet': 'NSOrderedSet', - 'NSPort': 'NSPort', - 'NSPortMessage': 'NSPortMessage', - 'NSProgress': 'NSProgress', - 'NSRunLoop': 'NSRunLoop', - 'NSSet': 'NSSet', - 'NSStream': 'NSStream', - 'NSString': 'NSString', - 'NSTimer': 'NSTimer', - 'NSURL': 'NSURL', - 'NSURLHandle': 'NSURLHandle', - 'NSValue': 'NSValue', - 'Protocol': 'Protocol', + 'NSArray', + 'NSCharacterSet', + 'NSCoder', + 'NSData', + 'NSDate', + 'NSDictionary', + 'NSEnumerator', + 'NSError', + 'NSIndexSet', + 'NSInputStream', + 'NSInvocation', + 'NSItemProvider', + 'NSLocale', + 'NSMethodSignature', + 'NSMutableArray', + 'NSMutableData', + 'NSMutableDictionary', + 'NSMutableIndexSet', + 'NSMutableOrderedSet', + 'NSMutableSet', + 'NSMutableString', + 'NSNotification', + 'NSNumber', + 'NSObject', + 'NSOutputStream', + 'NSOrderedCollectionChange', + 'NSOrderedCollectionDifference', + 'NSOrderedSet', + 'NSPort', + 'NSPortMessage', + 'NSProgress', + 'NSRunLoop', + 'NSSet', + 'NSStream', + 'NSString', + 'NSTimer', + 'NSURL', + 'NSURLHandle', + 'NSValue', + 'Protocol', }; const objCBuiltInCompounds = { @@ -110,7 +106,6 @@ const objCBuiltInProtocols = { 'NSPortDelegate': 'NSPortDelegate', 'NSSecureCoding': 'NSSecureCoding', 'NSStreamDelegate': 'NSStreamDelegate', - 'Observer': 'Observer', }; const objCBuiltInCategories = { @@ -128,7 +123,6 @@ const objCBuiltInCategories = { 'NSExtendedOrderedSet', 'NSExtendedSet', 'NSNumberCreation', - 'NSNumberIsFloat', 'NSStringExtensionMethods', }; diff --git a/pkgs/objective_c/ffigen_foundation.yaml b/pkgs/objective_c/ffigen_foundation.yaml new file mode 100644 index 000000000..655548463 --- /dev/null +++ b/pkgs/objective_c/ffigen_foundation.yaml @@ -0,0 +1,173 @@ +# Generate bindings for the ObjC foundation APIs. +# Regenerate bindings with `dart run tool/generate_code.dart`. +name: ObjectiveCBindings +language: objc +output: + bindings: 'lib/src/foundation_bindings_generated.dart' + objc-bindings: 'src/foundation_bindings_generated.m' +headers: + entry-points: + - 'src/foundation.h' +ffi-native: +exclude-all-by-default: true +include-transitive-objc-categories: false +generate-for-package-objective-c: true +sort: true +library-imports: + collection: 'dart:collection' +external-versions: + # See https://docs.flutter.dev/reference/supported-platforms. + ios: + min: 12.0.0 + macos: + min: 10.14.0 +objc-interfaces: + include: + - NSArray + - NSCharacterSet + - NSCoder + - NSData + - NSDate + - NSDictionary + - NSEnumerator + - NSError + - NSIndexSet + - NSInputStream + - NSInvocation + - NSItemProvider + - NSLocale + - NSMethodSignature + - NSMutableArray + - NSMutableData + - NSMutableDictionary + - NSMutableIndexSet + - NSMutableOrderedSet + - NSMutableSet + - NSMutableString + - NSNotification + - NSNumber + - NSObject + - NSOutputStream + - NSOrderedCollectionChange + - NSOrderedCollectionDifference + - NSOrderedSet + - NSPort + - NSPortMessage + - NSProgress + - NSRunLoop + - NSSet + - NSStream + - NSString + - NSTimer + - NSURL + - NSURLHandle + - NSValue + - Protocol +objc-protocols: + include: + - NSCoding + - NSCopying + - NSFastEnumeration + - NSItemProviderReading + - NSItemProviderWriting + - NSMutableCopying + - NSObject + - NSPortDelegate + - NSSecureCoding + - NSStreamDelegate + rename: + 'NSObject': 'NSObjectProtocol' +objc-categories: + include: + - NSDataCreation + - NSExtendedArray + - NSExtendedData + - NSExtendedDate + - NSExtendedDictionary + - NSExtendedEnumerator + - NSExtendedMutableArray + - NSExtendedMutableData + - NSExtendedMutableDictionary + - NSExtendedMutableOrderedSet + - NSExtendedMutableSet + - NSExtendedOrderedSet + - NSExtendedSet + - NSNumberCreation + - NSStringExtensionMethods +structs: + include: + - AEDesc + - __CFRunLoop + - __CFString + - CGPoint + - CGRect + - CGSize + - NSEdgeInsets + - NSFastEnumerationState + - _NSRange + - _NSZone + - OpaqueAEDataStorageType + rename: + __CFRunLoop: CFRunLoop + __CFString: CFString + _NSRange: NSRange + _NSZone: NSZone +enums: + include: + - NSAppleEventSendOptions + - NSBinarySearchingOptions + - NSCollectionChangeType + - NSComparisonResult + - NSDataBase64DecodingOptions + - NSDataBase64EncodingOptions + - NSDataCompressionAlgorithm + - NSDataReadingOptions + - NSDataSearchOptions + - NSDataWritingOptions + - NSDecodingFailurePolicy + - NSEnumerationOptions + - NSItemProviderFileOptions + - NSItemProviderRepresentationVisibility + - NSKeyValueChange + - NSKeyValueObservingOptions + - NSKeyValueSetMutationKind + - NSLinguisticTaggerOptions + - NSLocaleLanguageDirection + - NSOrderedCollectionDifferenceCalculationOptions + - NSPropertyListFormat + - NSQualityOfService + - NSSortOptions + - NSStreamEvent + - NSStreamStatus + - NSStringCompareOptions + - NSStringEncodingConversionOptions + - NSStringEnumerationOptions + - NSURLBookmarkCreationOptions + - NSURLBookmarkResolutionOptions + - NSURLHandleStatus +globals: + include: + - NSKeyValueChangeIndexesKey + - NSKeyValueChangeKindKey + - NSKeyValueChangeNewKey + - NSKeyValueChangeNotificationIsPriorKey + - NSKeyValueChangeOldKey + - NSLocalizedDescriptionKey +typedefs: + include: + - 'CFStringRef' +preamble: | + // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file + // for details. All rights reserved. Use of this source code is governed by a + // BSD-style license that can be found in the LICENSE file. + + // Bindings for `src/foundation.h`. + // Regenerate bindings with `dart run tool/generate_code.dart`. + + // ignore_for_file: always_specify_types + // ignore_for_file: camel_case_types + // ignore_for_file: non_constant_identifier_names + // ignore_for_file: unnecessary_non_null_assertion + // ignore_for_file: unused_element + // ignore_for_file: unused_field + // coverage:ignore-file diff --git a/pkgs/objective_c/ffigen_objc.yaml b/pkgs/objective_c/ffigen_objc.yaml index 5f388570c..d7edf0aef 100644 --- a/pkgs/objective_c/ffigen_objc.yaml +++ b/pkgs/objective_c/ffigen_objc.yaml @@ -7,7 +7,6 @@ output: objc-bindings: 'src/objective_c_bindings_generated.m' headers: entry-points: - - 'src/foundation.h' - 'src/input_stream_adapter.h' - 'src/ns_number.h' - 'src/observer.h' @@ -16,10 +15,7 @@ ffi-native: asset-id: 'package:objective_c/objective_c.dylib' exclude-all-by-default: true include-transitive-objc-categories: false -generate-for-package-objective-c: true sort: true -library-imports: - collection: 'dart:collection' external-versions: # See https://docs.flutter.dev/reference/supported-platforms. ios: @@ -27,148 +23,21 @@ external-versions: macos: min: 10.14.0 objc-interfaces: - # Keep in sync with ffigen's ObjCBuiltInFunctions.builtInInterfaces. include: - DOBJCDartInputStreamAdapter - DOBJCObservation - DOBJCDartProtocolBuilder - DOBJCDartProtocol - - NSArray - - NSCharacterSet - - NSCoder - - NSData - - NSDate - - NSDictionary - - NSEnumerator - - NSError - - NSIndexSet - - NSInputStream - - NSInvocation - - NSItemProvider - - NSLocale - - NSMethodSignature - - NSMutableArray - - NSMutableData - - NSMutableDictionary - - NSMutableIndexSet - - NSMutableOrderedSet - - NSMutableSet - - NSMutableString - - NSNotification - - NSNumber - - NSObject - - NSOutputStream - - NSOrderedCollectionChange - - NSOrderedCollectionDifference - - NSOrderedSet - - NSPort - - NSPortMessage - - NSProgress - - NSRunLoop - - NSSet - - NSStream - - NSString - - NSTimer - - NSURL - - NSURLHandle - - NSValue - - Protocol rename: 'DOBJCDartInputStreamAdapter': 'DartInputStreamAdapter' 'DOBJCDartProtocolBuilder': 'DartProtocolBuilder' 'DOBJCDartProtocol': 'DartProtocol' objc-protocols: include: - - NSCoding - - NSCopying - - NSFastEnumeration - - NSItemProviderReading - - NSItemProviderWriting - - NSMutableCopying - - NSObject - - NSPortDelegate - - NSSecureCoding - - NSStreamDelegate - Observer - rename: - 'NSObject': 'NSObjectProtocol' objc-categories: include: - - NSDataCreation - - NSExtendedArray - - NSExtendedData - - NSExtendedDate - - NSExtendedDictionary - - NSExtendedEnumerator - - NSExtendedMutableArray - - NSExtendedMutableData - - NSExtendedMutableDictionary - - NSExtendedMutableOrderedSet - - NSExtendedMutableSet - - NSExtendedOrderedSet - - NSExtendedSet - - NSNumberCreation - NSNumberIsFloat - - NSStringExtensionMethods -structs: - include: - - AEDesc - - __CFRunLoop - - __CFString - - CGPoint - - CGRect - - CGSize - - NSEdgeInsets - - NSFastEnumerationState - - _NSRange - - _NSZone - - OpaqueAEDataStorageType - rename: - __CFRunLoop: CFRunLoop - __CFString: CFString - _NSRange: NSRange - _NSZone: NSZone -enums: - include: - - NSAppleEventSendOptions - - NSBinarySearchingOptions - - NSCollectionChangeType - - NSComparisonResult - - NSDataBase64DecodingOptions - - NSDataBase64EncodingOptions - - NSDataCompressionAlgorithm - - NSDataReadingOptions - - NSDataSearchOptions - - NSDataWritingOptions - - NSDecodingFailurePolicy - - NSEnumerationOptions - - NSItemProviderFileOptions - - NSItemProviderRepresentationVisibility - - NSKeyValueChange - - NSKeyValueObservingOptions - - NSKeyValueSetMutationKind - - NSLinguisticTaggerOptions - - NSLocaleLanguageDirection - - NSOrderedCollectionDifferenceCalculationOptions - - NSPropertyListFormat - - NSQualityOfService - - NSSortOptions - - NSStreamEvent - - NSStreamStatus - - NSStringCompareOptions - - NSStringEncodingConversionOptions - - NSStringEnumerationOptions - - NSURLBookmarkCreationOptions - - NSURLBookmarkResolutionOptions - - NSURLHandleStatus -globals: - include: - - NSKeyValueChangeIndexesKey - - NSKeyValueChangeKindKey - - NSKeyValueChangeNewKey - - NSKeyValueChangeNotificationIsPriorKey - - NSKeyValueChangeOldKey - - NSLocalizedDescriptionKey typedefs: include: - 'CFStringRef' @@ -177,7 +46,7 @@ preamble: | // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. - // Bindings for `src/foundation.h`. + // Bindings for package:objective_c's custom ObjC interfaces. // Regenerate bindings with `dart run tool/generate_code.dart`. // ignore_for_file: always_specify_types diff --git a/pkgs/objective_c/lib/objective_c.dart b/pkgs/objective_c/lib/objective_c.dart index 6ad5ae3ad..813f76c4e 100644 --- a/pkgs/objective_c/lib/objective_c.dart +++ b/pkgs/objective_c/lib/objective_c.dart @@ -13,6 +13,7 @@ export 'src/c_bindings_generated.dart' signalWaiter; export 'src/cf_string.dart'; export 'src/converter.dart'; +export 'src/foundation_bindings_exported.dart'; export 'src/internal.dart' hide blockHasRegisteredClosure, isValidBlock, isValidClass, isValidObject; export 'src/ns_data.dart'; @@ -21,7 +22,7 @@ export 'src/ns_input_stream.dart'; export 'src/ns_mutable_data.dart'; export 'src/ns_number.dart'; export 'src/ns_string.dart'; -export 'src/objective_c_bindings_exported.dart'; +export 'src/objective_c_bindings_generated.dart'; export 'src/observer.dart'; export 'src/os_version.dart'; export 'src/protocol_builder.dart'; diff --git a/pkgs/objective_c/lib/src/cf_string.dart b/pkgs/objective_c/lib/src/cf_string.dart index df9bbd8b2..ea0c94289 100644 --- a/pkgs/objective_c/lib/src/cf_string.dart +++ b/pkgs/objective_c/lib/src/cf_string.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. import 'ns_string.dart'; -import 'objective_c_bindings_generated.dart'; +import 'foundation_bindings_generated.dart'; extension CFStringRefConversions on CFStringRef { NSString toNSString() => diff --git a/pkgs/objective_c/lib/src/converter.dart b/pkgs/objective_c/lib/src/converter.dart index 8ea22625d..9126f7034 100644 --- a/pkgs/objective_c/lib/src/converter.dart +++ b/pkgs/objective_c/lib/src/converter.dart @@ -2,6 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +import 'foundation_bindings_generated.dart'; import 'internal.dart'; import 'ns_date.dart'; import 'ns_number.dart'; diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart b/pkgs/objective_c/lib/src/foundation_bindings_exported.dart similarity index 95% rename from pkgs/objective_c/lib/src/objective_c_bindings_exported.dart rename to pkgs/objective_c/lib/src/foundation_bindings_exported.dart index 0fabfe30f..1a7cac916 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart +++ b/pkgs/objective_c/lib/src/foundation_bindings_exported.dart @@ -4,7 +4,7 @@ // Generated by package:objective_c's tool/generate_code.dart. -export 'objective_c_bindings_generated.dart' +export 'foundation_bindings_generated.dart' show AEDesc, CFRunLoop, @@ -12,8 +12,6 @@ export 'objective_c_bindings_generated.dart' CGPoint, CGRect, CGSize, - DartProtocol, - DartProtocolBuilder, NSAppleEventSendOptions, NSArray, NSBinarySearchingOptions, @@ -84,7 +82,6 @@ export 'objective_c_bindings_generated.dart' NSNotification, NSNumber, NSNumberCreation, - NSNumberIsFloat, NSObject, NSObjectProtocol, NSOrderedCollectionChange, @@ -120,6 +117,5 @@ export 'objective_c_bindings_generated.dart' NSURLHandleStatus, NSValue, NSZone, - Observer, OpaqueAEDataStorageType, Protocol; diff --git a/pkgs/objective_c/lib/src/foundation_bindings_generated.dart b/pkgs/objective_c/lib/src/foundation_bindings_generated.dart new file mode 100644 index 000000000..5e70fab4b --- /dev/null +++ b/pkgs/objective_c/lib/src/foundation_bindings_generated.dart @@ -0,0 +1,35043 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// Bindings for `src/foundation.h`. +// Regenerate bindings with `dart run tool/generate_code.dart`. + +// ignore_for_file: always_specify_types +// ignore_for_file: camel_case_types +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: unnecessary_non_null_assertion +// ignore_for_file: unused_element +// ignore_for_file: unused_field +// coverage:ignore-file + +// AUTO GENERATED FILE, DO NOT EDIT. +// +// Generated by `package:ffigen`. +// ignore_for_file: type=lint +import 'dart:collection' as collection; +import 'dart:ffi' as ffi; +import '../objective_c.dart' as objc; +import 'package:ffi/ffi.dart' as pkg_ffi; + +@ffi.Native>(symbol: 'NSKeyValueChangeIndexesKey') +external ffi.Pointer _NSKeyValueChangeIndexesKey; + +NSString get NSKeyValueChangeIndexesKey => NSString.castFromPointer( + _NSKeyValueChangeIndexesKey, + retain: true, + release: true, +); + +set NSKeyValueChangeIndexesKey(NSString value) { + NSString.castFromPointer( + _NSKeyValueChangeIndexesKey, + retain: false, + release: true, + ).ref.release(); + _NSKeyValueChangeIndexesKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSKeyValueChangeKindKey') +external ffi.Pointer _NSKeyValueChangeKindKey; + +NSString get NSKeyValueChangeKindKey => NSString.castFromPointer( + _NSKeyValueChangeKindKey, + retain: true, + release: true, +); + +set NSKeyValueChangeKindKey(NSString value) { + NSString.castFromPointer( + _NSKeyValueChangeKindKey, + retain: false, + release: true, + ).ref.release(); + _NSKeyValueChangeKindKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSKeyValueChangeNewKey') +external ffi.Pointer _NSKeyValueChangeNewKey; + +NSString get NSKeyValueChangeNewKey => NSString.castFromPointer( + _NSKeyValueChangeNewKey, + retain: true, + release: true, +); + +set NSKeyValueChangeNewKey(NSString value) { + NSString.castFromPointer( + _NSKeyValueChangeNewKey, + retain: false, + release: true, + ).ref.release(); + _NSKeyValueChangeNewKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSKeyValueChangeNotificationIsPriorKey', +) +external ffi.Pointer _NSKeyValueChangeNotificationIsPriorKey; + +NSString get NSKeyValueChangeNotificationIsPriorKey => NSString.castFromPointer( + _NSKeyValueChangeNotificationIsPriorKey, + retain: true, + release: true, +); + +set NSKeyValueChangeNotificationIsPriorKey(NSString value) { + NSString.castFromPointer( + _NSKeyValueChangeNotificationIsPriorKey, + retain: false, + release: true, + ).ref.release(); + _NSKeyValueChangeNotificationIsPriorKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSKeyValueChangeOldKey') +external ffi.Pointer _NSKeyValueChangeOldKey; + +NSString get NSKeyValueChangeOldKey => NSString.castFromPointer( + _NSKeyValueChangeOldKey, + retain: true, + release: true, +); + +set NSKeyValueChangeOldKey(NSString value) { + NSString.castFromPointer( + _NSKeyValueChangeOldKey, + retain: false, + release: true, + ).ref.release(); + _NSKeyValueChangeOldKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSLocalizedDescriptionKey') +external ffi.Pointer _NSLocalizedDescriptionKey; + +NSString get NSLocalizedDescriptionKey => NSString.castFromPointer( + _NSLocalizedDescriptionKey, + retain: true, + release: true, +); + +set NSLocalizedDescriptionKey(NSString value) { + NSString.castFromPointer( + _NSLocalizedDescriptionKey, + retain: false, + release: true, + ).ref.release(); + _NSLocalizedDescriptionKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external instancetype _ObjectiveCBindings_protocolTrampoline_10z9f5k( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) +>() +external int _ObjectiveCBindings_protocolTrampoline_17ap02x( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_18nsem0( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _ObjectiveCBindings_protocolTrampoline_18v1jvf( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _ObjectiveCBindings_protocolTrampoline_1a8cl66( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) +>() +external int _ObjectiveCBindings_protocolTrampoline_1ckyi24( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int _ObjectiveCBindings_protocolTrampoline_1ldqghh( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_1mbt9g9( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_1mllhpc( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_1q0i84( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _ObjectiveCBindings_protocolTrampoline_3su7tt( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_50as9u( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_c7gk2u( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>() +external bool _ObjectiveCBindings_protocolTrampoline_e3qsqz( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +>() +external void _ObjectiveCBindings_protocolTrampoline_hoampi( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void _ObjectiveCBindings_protocolTrampoline_ovsamd( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _ObjectiveCBindings_protocolTrampoline_w1e3k0( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external instancetype _ObjectiveCBindings_protocolTrampoline_xr62hr( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_18v1jvf( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_1o83rbn( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_hoampi( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_lmc3p5( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_ovsamd( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_q5jeyk( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_rnu2c5( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_t8l8el( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_vhbh5h( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_zkjmn1( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_zuf90e( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_18v1jvf( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1b3bb6a( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1o83rbn( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1p9ui4q( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1q8ia8l( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_hoampi( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_lmc3p5( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_ovsamd( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_pfv6jd( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_q5jeyk( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_rnu2c5( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_t8l8el( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_vhbh5h( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_zkjmn1( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_zuf90e( + ffi.Pointer block, +); + +final class CFString extends ffi.Opaque {} + +typedef CFStringRef = ffi.Pointer; + +/// NSArray +class NSArray extends NSObject + with Iterable + implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { + /// Creates a [NSArray] of the given length with [fill] at each position. + /// + /// The [length] must be a non-negative integer. + static NSArray filled(int length, objc.ObjCObjectBase fill) => + NSMutableArray.filled(length, fill); + + /// Creates a [NSArray] from [elements]. + static NSArray of(Iterable elements) => + NSMutableArray.of(elements); + + @override + int get length => count; + + @override + objc.ObjCObjectBase elementAt(int index) => objectAtIndex(index); + + @override + Iterator get iterator => _NSArrayIterator(this); + + objc.ObjCObjectBase operator [](int index) => objectAtIndex(index); + + NSArray._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSArray] that points to the same underlying object as [other]. + NSArray.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSArray] that wraps the given raw object pointer. + NSArray.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSArray]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSArray, + ); + } + + /// alloc + static NSArray alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_alloc); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSArray allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSArray, + _sel_allocWithZone_, + zone, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// array + static NSArray array() { + final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_array); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithArray: + static NSArray arrayWithArray(NSArray array$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithArray_, + array$1.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObject: + static NSArray arrayWithObject(objc.ObjCObjectBase anObject) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithObject_, + anObject.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObjects: + static NSArray arrayWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithObjects_, + firstObj.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObjects:count: + static NSArray arrayWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + _class_NSArray, + _sel_arrayWithObjects_count_, + objects, + count, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSArray new$() { + final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_new); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSArray, _sel_supportsSecureCoding); + } + + /// count + int get count { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSArray init() { + objc.checkOsVersionInternal( + 'NSArray.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray: + NSArray initWithArray(NSArray array$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array$1.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + NSArray initWithArray$1(NSArray array$1, {required bool copyItems}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + array$1.ref.pointer, + copyItems, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSArray? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects: + NSArray initWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:count: + NSArray initWithObjects$1( + ffi.Pointer> objects, { + required int count$1, + }) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count$1, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// objectAtIndex: + objc.ObjCObjectBase objectAtIndex(int index) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_objectAtIndex_, + index, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSArray constructed with the default `new` method. + factory NSArray() => new$(); +} + +enum NSBinarySearchingOptions { + NSBinarySearchingFirstEqual(256), + NSBinarySearchingLastEqual(512), + NSBinarySearchingInsertionIndex(1024); + + final int value; + const NSBinarySearchingOptions(this.value); + + static NSBinarySearchingOptions fromValue(int value) => switch (value) { + 256 => NSBinarySearchingFirstEqual, + 512 => NSBinarySearchingLastEqual, + 1024 => NSBinarySearchingInsertionIndex, + _ => throw ArgumentError( + 'Unknown value for NSBinarySearchingOptions: $value', + ), + }; +} + +/// NSCharacterSet +class NSCharacterSet extends NSObject + implements NSCopying, NSMutableCopying, NSSecureCoding { + NSCharacterSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSCharacterSet] that points to the same underlying object as [other]. + NSCharacterSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSCharacterSet] that wraps the given raw object pointer. + NSCharacterSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSCharacterSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSCharacterSet, + ); + } + + /// alloc + static NSCharacterSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_alloc); + return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSCharacterSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSCharacterSet, + _sel_allocWithZone_, + zone, + ); + return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); + } + + /// alphanumericCharacterSet + static NSCharacterSet getAlphanumericCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_alphanumericCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// capitalizedLetterCharacterSet + static NSCharacterSet getCapitalizedLetterCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_capitalizedLetterCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// characterSetWithBitmapRepresentation: + static NSCharacterSet characterSetWithBitmapRepresentation(NSData data) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSCharacterSet, + _sel_characterSetWithBitmapRepresentation_, + data.ref.pointer, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// characterSetWithCharactersInString: + static NSCharacterSet characterSetWithCharactersInString(NSString aString) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSCharacterSet, + _sel_characterSetWithCharactersInString_, + aString.ref.pointer, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// characterSetWithContentsOfFile: + static NSCharacterSet? characterSetWithContentsOfFile(NSString fName) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSCharacterSet, + _sel_characterSetWithContentsOfFile_, + fName.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// characterSetWithRange: + static NSCharacterSet characterSetWithRange(NSRange aRange) { + final _ret = _objc_msgSend_1k1o1s7( + _class_NSCharacterSet, + _sel_characterSetWithRange_, + aRange, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// controlCharacterSet + static NSCharacterSet getControlCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_controlCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// decimalDigitCharacterSet + static NSCharacterSet getDecimalDigitCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_decimalDigitCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// decomposableCharacterSet + static NSCharacterSet getDecomposableCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_decomposableCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// illegalCharacterSet + static NSCharacterSet getIllegalCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_illegalCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// letterCharacterSet + static NSCharacterSet getLetterCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_letterCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// lowercaseLetterCharacterSet + static NSCharacterSet getLowercaseLetterCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_lowercaseLetterCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSCharacterSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_new); + return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); + } + + /// newlineCharacterSet + static NSCharacterSet getNewlineCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.newlineCharacterSet', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_newlineCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// nonBaseCharacterSet + static NSCharacterSet getNonBaseCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_nonBaseCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// punctuationCharacterSet + static NSCharacterSet getPunctuationCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_punctuationCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSCharacterSet, + _sel_supportsSecureCoding, + ); + } + + /// symbolCharacterSet + static NSCharacterSet getSymbolCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_symbolCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// uppercaseLetterCharacterSet + static NSCharacterSet getUppercaseLetterCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_uppercaseLetterCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// whitespaceAndNewlineCharacterSet + static NSCharacterSet getWhitespaceAndNewlineCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_whitespaceAndNewlineCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// whitespaceCharacterSet + static NSCharacterSet getWhitespaceCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_whitespaceCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// autorelease + NSCharacterSet autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// bitmapRepresentation + NSData get bitmapRepresentation { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_bitmapRepresentation, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// characterIsMember: + bool characterIsMember(int aCharacter) { + return _objc_msgSend_1co9mn4( + this.ref.pointer, + _sel_characterIsMember_, + aCharacter, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// hasMemberInPlane: + bool hasMemberInPlane(int thePlane) { + return _objc_msgSend_gerswc( + this.ref.pointer, + _sel_hasMemberInPlane_, + thePlane, + ); + } + + /// init + NSCharacterSet init() { + objc.checkOsVersionInternal( + 'NSCharacterSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSCharacterSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSCharacterSet.castFromPointer(_ret, retain: false, release: true); + } + + /// invertedSet + NSCharacterSet get invertedSet { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_invertedSet); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// isSupersetOfSet: + bool isSupersetOfSet(NSCharacterSet theOtherSet) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isSupersetOfSet_, + theOtherSet.ref.pointer, + ); + } + + /// longCharacterIsMember: + bool longCharacterIsMember(int theLongChar) { + return _objc_msgSend_jsclrq( + this.ref.pointer, + _sel_longCharacterIsMember_, + theLongChar, + ); + } + + /// retain + NSCharacterSet retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSCharacterSet self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSCharacterSet constructed with the default `new` method. + factory NSCharacterSet() => new$(); +} + +/// NSCoder +class NSCoder extends objc.ObjCObjectBase { + NSCoder._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSCoder] that points to the same underlying object as [other]. + NSCoder.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSCoder] that wraps the given raw object pointer. + NSCoder.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSCoder]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSCoder, + ); + } +} + +/// NSCoding +interface class NSCoding extends objc.ObjCProtocolBase { + NSCoding._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSCoding] that points to the same underlying object as [other]. + NSCoding.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSCoding] that wraps the given raw object pointer. + NSCoding.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSCoding]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSCoding, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSCoding.cast()); + + /// Builds an object that implements the NSCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCoding implement({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); + NSCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCoding implementAsListener({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); + NSCoding.encodeWithCoder_.implementAsListener(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSCoding.encodeWithCoder_.implementAsListener(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCoding implementAsBlocking({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); + NSCoding.encodeWithCoder_.implementAsBlocking(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSCoding.encodeWithCoder_.implementAsBlocking(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// encodeWithCoder: + static final encodeWithCoder_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSCoding, + _sel_encodeWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCoding, + _sel_encodeWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); + + /// initWithCoder: + static final initWithCoder_ = + objc.ObjCProtocolMethod( + _protocol_NSCoding, + _sel_initWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCoding, + _sel_initWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (Dartinstancetype? Function(NSCoder) func) => + ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); +} + +/// iOS: introduced 13.0.0 +/// macOS: introduced 10.15.0 +enum NSCollectionChangeType { + NSCollectionChangeInsert(0), + NSCollectionChangeRemove(1); + + final int value; + const NSCollectionChangeType(this.value); + + static NSCollectionChangeType fromValue(int value) => switch (value) { + 0 => NSCollectionChangeInsert, + 1 => NSCollectionChangeRemove, + _ => throw ArgumentError( + 'Unknown value for NSCollectionChangeType: $value', + ), + }; +} + +enum NSComparisonResult { + NSOrderedAscending(-1), + NSOrderedSame(0), + NSOrderedDescending(1); + + final int value; + const NSComparisonResult(this.value); + + static NSComparisonResult fromValue(int value) => switch (value) { + -1 => NSOrderedAscending, + 0 => NSOrderedSame, + 1 => NSOrderedDescending, + _ => throw ArgumentError('Unknown value for NSComparisonResult: $value'), + }; +} + +/// NSCopying +interface class NSCopying extends objc.ObjCProtocolBase { + NSCopying._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSCopying] that points to the same underlying object as [other]. + NSCopying.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSCopying] that wraps the given raw object pointer. + NSCopying.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSCopying]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSCopying, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSCopying.cast()); + + /// Builds an object that implements the NSCopying protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCopying implement({ + required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCopying'); + NSCopying.copyWithZone_.implement(builder, copyWithZone_); + builder.addProtocol($protocol); + return NSCopying.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCopying protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, + bool $keepIsolateAlive = true, + }) { + NSCopying.copyWithZone_.implement(builder, copyWithZone_); + builder.addProtocol($protocol); + } + + /// copyWithZone: + static final copyWithZone_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function(ffi.Pointer) + >( + _protocol_NSCopying, + _sel_copyWithZone_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18nsem0) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCopying, + _sel_copyWithZone_, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function(ffi.Pointer) func) => + ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => func(arg1), + ), + ); +} + +/// NSData +class NSData extends NSObject + implements NSCopying, NSMutableCopying, NSSecureCoding { + NSData._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSData] that points to the same underlying object as [other]. + NSData.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSData] that wraps the given raw object pointer. + NSData.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSData]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSData, + ); + } + + /// alloc + static NSData alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_alloc); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSData allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSData, + _sel_allocWithZone_, + zone, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// data + static NSData data() { + final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_data); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytes:length: + static NSData dataWithBytes( + ffi.Pointer bytes, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + _class_NSData, + _sel_dataWithBytes_length_, + bytes, + length, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytesNoCopy:length: + static NSData dataWithBytesNoCopy( + ffi.Pointer bytes, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + _class_NSData, + _sel_dataWithBytesNoCopy_length_, + bytes, + length, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytesNoCopy:length:freeWhenDone: + static NSData dataWithBytesNoCopy$1( + ffi.Pointer bytes, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_161ne8y( + _class_NSData, + _sel_dataWithBytesNoCopy_length_freeWhenDone_, + bytes, + length, + freeWhenDone, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfFile: + static NSData? dataWithContentsOfFile(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSData, + _sel_dataWithContentsOfFile_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfFile:options:error: + static NSData? dataWithContentsOfFile$1( + NSString path, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + _class_NSData, + _sel_dataWithContentsOfFile_options_error_, + path.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfURL: + static NSData? dataWithContentsOfURL(NSURL url) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSData, + _sel_dataWithContentsOfURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfURL:options:error: + static NSData? dataWithContentsOfURL$1( + NSURL url, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + _class_NSData, + _sel_dataWithContentsOfURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithData: + static NSData dataWithData(NSData data$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSData, + _sel_dataWithData_, + data$1.ref.pointer, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSData new$() { + final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_new); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSData, _sel_supportsSecureCoding); + } + + /// bytes + ffi.Pointer get bytes { + return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_bytes); + } + + /// compressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSData? compressedDataUsingAlgorithm( + NSDataCompressionAlgorithm algorithm, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSData.compressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_compressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// decompressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSData? decompressedDataUsingAlgorithm( + NSDataCompressionAlgorithm algorithm, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSData.decompressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_decompressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSData init() { + objc.checkOsVersionInternal( + 'NSData.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBase64EncodedData:options: + NSData? initWithBase64EncodedData( + NSData base64Data, { + required NSDataBase64DecodingOptions options, + }) { + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedData:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_7kpg7m( + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedData_options_, + base64Data.ref.pointer, + options.value, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBase64EncodedString:options: + NSData? initWithBase64EncodedString( + NSString base64String, { + required NSDataBase64DecodingOptions options, + }) { + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedString:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_7kpg7m( + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedString_options_, + base64String.ref.pointer, + options.value, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:length: + NSData initWithBytes(ffi.Pointer bytes$1, {required int length}) { + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_, + bytes$1, + length, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length: + NSData initWithBytesNoCopy( + ffi.Pointer bytes$1, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_, + bytes$1, + length, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:deallocator: + NSData initWithBytesNoCopy$1( + ffi.Pointer bytes$1, { + required int length, + objc.ObjCBlock, ffi.UnsignedLong)>? + deallocator, + }) { + objc.checkOsVersionInternal( + 'NSData.initWithBytesNoCopy:length:deallocator:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_134vhyh( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_deallocator_, + bytes$1, + length, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:freeWhenDone: + NSData initWithBytesNoCopy$2( + ffi.Pointer bytes$1, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_161ne8y( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_freeWhenDone_, + bytes$1, + length, + freeWhenDone, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSData? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile: + NSData? initWithContentsOfFile(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:options:error: + NSData? initWithContentsOfFile$1( + NSString path, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_options_error_, + path.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + NSData? initWithContentsOfURL(NSURL url) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:options:error: + NSData? initWithContentsOfURL$1( + NSURL url, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithData: + NSData initWithData(NSData data$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data$1.ref.pointer, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// length + int get length { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); + } + + /// Returns a new instance of NSData constructed with the default `new` method. + factory NSData() => new$(); +} + +enum NSDataBase64DecodingOptions { + NSDataBase64DecodingIgnoreUnknownCharacters(1); + + final int value; + const NSDataBase64DecodingOptions(this.value); + + static NSDataBase64DecodingOptions fromValue(int value) => switch (value) { + 1 => NSDataBase64DecodingIgnoreUnknownCharacters, + _ => throw ArgumentError( + 'Unknown value for NSDataBase64DecodingOptions: $value', + ), + }; +} + +enum NSDataBase64EncodingOptions { + NSDataBase64Encoding64CharacterLineLength(1), + NSDataBase64Encoding76CharacterLineLength(2), + NSDataBase64EncodingEndLineWithCarriageReturn(16), + NSDataBase64EncodingEndLineWithLineFeed(32); + + final int value; + const NSDataBase64EncodingOptions(this.value); + + static NSDataBase64EncodingOptions fromValue(int value) => switch (value) { + 1 => NSDataBase64Encoding64CharacterLineLength, + 2 => NSDataBase64Encoding76CharacterLineLength, + 16 => NSDataBase64EncodingEndLineWithCarriageReturn, + 32 => NSDataBase64EncodingEndLineWithLineFeed, + _ => throw ArgumentError( + 'Unknown value for NSDataBase64EncodingOptions: $value', + ), + }; +} + +/// iOS: introduced 13.0.0 +/// macOS: introduced 10.15.0 +enum NSDataCompressionAlgorithm { + NSDataCompressionAlgorithmLZFSE(0), + NSDataCompressionAlgorithmLZ4(1), + NSDataCompressionAlgorithmLZMA(2), + NSDataCompressionAlgorithmZlib(3); + + final int value; + const NSDataCompressionAlgorithm(this.value); + + static NSDataCompressionAlgorithm fromValue(int value) => switch (value) { + 0 => NSDataCompressionAlgorithmLZFSE, + 1 => NSDataCompressionAlgorithmLZ4, + 2 => NSDataCompressionAlgorithmLZMA, + 3 => NSDataCompressionAlgorithmZlib, + _ => throw ArgumentError( + 'Unknown value for NSDataCompressionAlgorithm: $value', + ), + }; +} + +/// NSDataCreation +extension NSDataCreation on NSData {} + +enum NSDataReadingOptions { + NSDataReadingMappedIfSafe(1), + NSDataReadingUncached(2), + NSDataReadingMappedAlways(8); + + static const NSDataReadingMapped = NSDataReadingMappedIfSafe; + static const NSMappedRead = NSDataReadingMappedIfSafe; + static const NSUncachedRead = NSDataReadingUncached; + + final int value; + const NSDataReadingOptions(this.value); + + static NSDataReadingOptions fromValue(int value) => switch (value) { + 1 => NSDataReadingMappedIfSafe, + 2 => NSDataReadingUncached, + 8 => NSDataReadingMappedAlways, + _ => throw ArgumentError('Unknown value for NSDataReadingOptions: $value'), + }; + + @override + String toString() { + if (this == NSDataReadingMappedIfSafe) + return "NSDataReadingOptions.NSDataReadingMappedIfSafe, NSDataReadingOptions.NSDataReadingMapped, NSDataReadingOptions.NSMappedRead"; + if (this == NSDataReadingUncached) + return "NSDataReadingOptions.NSDataReadingUncached, NSDataReadingOptions.NSUncachedRead"; + return super.toString(); + } +} + +enum NSDataSearchOptions { + NSDataSearchBackwards(1), + NSDataSearchAnchored(2); + + final int value; + const NSDataSearchOptions(this.value); + + static NSDataSearchOptions fromValue(int value) => switch (value) { + 1 => NSDataSearchBackwards, + 2 => NSDataSearchAnchored, + _ => throw ArgumentError('Unknown value for NSDataSearchOptions: $value'), + }; +} + +enum NSDataWritingOptions { + NSDataWritingAtomic(1), + NSDataWritingWithoutOverwriting(2), + NSDataWritingFileProtectionNone(268435456), + NSDataWritingFileProtectionComplete(536870912), + NSDataWritingFileProtectionCompleteUnlessOpen(805306368), + NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication(1073741824), + NSDataWritingFileProtectionCompleteWhenUserInactive(1342177280), + NSDataWritingFileProtectionMask(4026531840); + + static const NSAtomicWrite = NSDataWritingAtomic; + + final int value; + const NSDataWritingOptions(this.value); + + static NSDataWritingOptions fromValue(int value) => switch (value) { + 1 => NSDataWritingAtomic, + 2 => NSDataWritingWithoutOverwriting, + 268435456 => NSDataWritingFileProtectionNone, + 536870912 => NSDataWritingFileProtectionComplete, + 805306368 => NSDataWritingFileProtectionCompleteUnlessOpen, + 1073741824 => + NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication, + 1342177280 => NSDataWritingFileProtectionCompleteWhenUserInactive, + 4026531840 => NSDataWritingFileProtectionMask, + _ => throw ArgumentError('Unknown value for NSDataWritingOptions: $value'), + }; + + @override + String toString() { + if (this == NSDataWritingAtomic) + return "NSDataWritingOptions.NSDataWritingAtomic, NSDataWritingOptions.NSAtomicWrite"; + return super.toString(); + } +} + +/// NSDate +class NSDate extends NSObject implements NSCopying, NSSecureCoding { + NSDate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSDate] that points to the same underlying object as [other]. + NSDate.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSDate] that wraps the given raw object pointer. + NSDate.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSDate]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSDate, + ); + } + + /// alloc + static NSDate alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_alloc); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSDate allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSDate, + _sel_allocWithZone_, + zone, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// date + static NSDate date() { + final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_date); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// dateWithTimeInterval:sinceDate: + static NSDate dateWithTimeInterval( + double secsToBeAdded, { + required NSDate sinceDate, + }) { + final _ret = _objc_msgSend_1ozwf6k( + _class_NSDate, + _sel_dateWithTimeInterval_sinceDate_, + secsToBeAdded, + sinceDate.ref.pointer, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSince1970: + static NSDate dateWithTimeIntervalSince1970(double secs) { + final _ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSince1970_, + secs, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSinceNow: + static NSDate dateWithTimeIntervalSinceNow(double secs) { + final _ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSinceNow_, + secs, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSinceReferenceDate: + static NSDate dateWithTimeIntervalSinceReferenceDate(double ti) { + final _ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSinceReferenceDate_, + ti, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSDate new$() { + final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_new); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSDate, _sel_supportsSecureCoding); + } + + /// autorelease + NSDate autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// dateByAddingTimeInterval: + NSDate dateByAddingTimeInterval(double ti) { + objc.checkOsVersionInternal( + 'NSDate.dateByAddingTimeInterval:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_oa8mke( + this.ref.pointer, + _sel_dateByAddingTimeInterval_, + ti, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSDate init() { + objc.checkOsVersionInternal( + 'NSDate.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSDate? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithTimeInterval:sinceDate: + NSDate initWithTimeInterval( + double secsToBeAdded, { + required NSDate sinceDate, + }) { + final _ret = _objc_msgSend_1ozwf6k( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeInterval_sinceDate_, + secsToBeAdded, + sinceDate.ref.pointer, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithTimeIntervalSince1970: + NSDate initWithTimeIntervalSince1970(double secs) { + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSince1970_, + secs, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithTimeIntervalSinceNow: + NSDate initWithTimeIntervalSinceNow(double secs) { + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSinceNow_, + secs, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithTimeIntervalSinceReferenceDate: + NSDate initWithTimeIntervalSinceReferenceDate(double ti) { + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSinceReferenceDate_, + ti, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// retain + NSDate retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSDate self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// timeIntervalSinceReferenceDate + double get timeIntervalSinceReferenceDate { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + this.ref.pointer, + _sel_timeIntervalSinceReferenceDate, + ) + : _objc_msgSend_1ukqyt8( + this.ref.pointer, + _sel_timeIntervalSinceReferenceDate, + ); + } + + /// Returns a new instance of NSDate constructed with the default `new` method. + factory NSDate() => new$(); +} + +/// NSDictionary +class NSDictionary extends NSObject + with collection.MapBase + implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { + /// Creates a [NSDictionary] from [other]. + static NSDictionary of(Map other) => + NSMutableDictionary.of(other); + + /// Creates a [NSDictionary] from [entries]. + static NSDictionary fromEntries( + Iterable> entries, + ) => NSMutableDictionary.fromEntries(entries); + + @override + int get length => count; + + @override + objc.ObjCObjectBase? operator [](Object? key) => + key is NSCopying ? objectForKey(key) : null; + + @override + Iterable get keys => _NSDictionaryKeyIterable(this); + + @override + Iterable get values => _NSDictionaryValueIterable(this); + + @override + bool containsKey(Object? key) => this[key] != null; + + @override + void operator []=(NSCopying key, objc.ObjCObjectBase value) => + throw UnsupportedError("Cannot modify NSDictionary"); + + @override + void clear() => throw UnsupportedError("Cannot modify NSDictionary"); + + @override + objc.ObjCObjectBase? remove(Object? key) => + throw UnsupportedError("Cannot modify NSDictionary"); + + NSDictionary._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSDictionary] that points to the same underlying object as [other]. + NSDictionary.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSDictionary] that wraps the given raw object pointer. + NSDictionary.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSDictionary]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSDictionary, + ); + } + + /// alloc + static NSDictionary alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_alloc); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSDictionary allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSDictionary, + _sel_allocWithZone_, + zone, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// dictionary + static NSDictionary dictionary() { + final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_dictionary); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// dictionaryWithDictionary: + static NSDictionary dictionaryWithDictionary(NSDictionary dict) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithDictionary_, + dict.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// dictionaryWithObject:forKey: + static NSDictionary dictionaryWithObject( + objc.ObjCObjectBase object, { + required NSCopying forKey, + }) { + final _ret = _objc_msgSend_15qeuct( + _class_NSDictionary, + _sel_dictionaryWithObject_forKey_, + object.ref.pointer, + forKey.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// dictionaryWithObjects:forKeys: + static NSDictionary dictionaryWithObjects( + NSArray objects, { + required NSArray forKeys, + }) { + final _ret = _objc_msgSend_15qeuct( + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// dictionaryWithObjects:forKeys:count: + static NSDictionary dictionaryWithObjects$1( + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required int count, + }) { + final _ret = _objc_msgSend_1dydpdi( + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_count_, + objects, + forKeys, + count, + ); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// dictionaryWithObjectsAndKeys: + static NSDictionary dictionaryWithObjectsAndKeys( + objc.ObjCObjectBase firstObject, + ) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSDictionary new$() { + final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_new); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSDictionary, _sel_supportsSecureCoding); + } + + /// count + int get count { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSDictionary init() { + objc.checkOsVersionInternal( + 'NSDictionary.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSDictionary? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithDictionary: + NSDictionary initWithDictionary(NSDictionary otherDictionary) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_, + otherDictionary.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithDictionary:copyItems: + NSDictionary initWithDictionary$1( + NSDictionary otherDictionary, { + required bool copyItems, + }) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_copyItems_, + otherDictionary.ref.pointer, + copyItems, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:forKeys: + NSDictionary initWithObjects(NSArray objects, {required NSArray forKeys}) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:forKeys:count: + NSDictionary initWithObjects$1( + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required int count$1, + }) { + final _ret = _objc_msgSend_1dydpdi( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_count_, + objects, + forKeys, + count$1, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjectsAndKeys: + NSDictionary initWithObjectsAndKeys(objc.ObjCObjectBase firstObject) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// keyEnumerator + NSEnumerator keyEnumerator() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_keyEnumerator); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// objectForKey: + objc.ObjCObjectBase? objectForKey(objc.ObjCObjectBase aKey) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_objectForKey_, + aKey.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSDictionary constructed with the default `new` method. + factory NSDictionary() => new$(); +} + +enum NSEnumerationOptions { + NSEnumerationConcurrent(1), + NSEnumerationReverse(2); + + final int value; + const NSEnumerationOptions(this.value); + + static NSEnumerationOptions fromValue(int value) => switch (value) { + 1 => NSEnumerationConcurrent, + 2 => NSEnumerationReverse, + _ => throw ArgumentError('Unknown value for NSEnumerationOptions: $value'), + }; +} + +/// NSEnumerator +class NSEnumerator extends NSObject + implements NSFastEnumeration, Iterator { + objc.ObjCObjectBase? _current; + + @override + objc.ObjCObjectBase get current => _current!; + + @override + @pragma('vm:prefer-inline') + bool moveNext() { + _current = nextObject(); + return _current != null; + } + + NSEnumerator._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSEnumerator] that points to the same underlying object as [other]. + NSEnumerator.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSEnumerator] that wraps the given raw object pointer. + NSEnumerator.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSEnumerator]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSEnumerator, + ); + } + + /// alloc + static NSEnumerator alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSEnumerator, _sel_alloc); + return NSEnumerator.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSEnumerator allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSEnumerator, + _sel_allocWithZone_, + zone, + ); + return NSEnumerator.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSEnumerator new$() { + final _ret = _objc_msgSend_151sglz(_class_NSEnumerator, _sel_new); + return NSEnumerator.castFromPointer(_ret, retain: false, release: true); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// init + NSEnumerator init() { + objc.checkOsVersionInternal( + 'NSEnumerator.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSEnumerator.castFromPointer(_ret, retain: false, release: true); + } + + /// nextObject + objc.ObjCObjectBase? nextObject() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_nextObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSEnumerator constructed with the default `new` method. + factory NSEnumerator() => new$(); +} + +/// NSError +class NSError extends NSObject implements NSCopying, NSSecureCoding { + NSError._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSError] that points to the same underlying object as [other]. + NSError.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSError] that wraps the given raw object pointer. + NSError.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSError]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSError, + ); + } + + /// alloc + static NSError alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSError, _sel_alloc); + return NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSError allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSError, + _sel_allocWithZone_, + zone, + ); + return NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// errorWithDomain:code:userInfo: + static NSError errorWithDomain( + NSString domain, { + required int code, + NSDictionary? userInfo, + }) { + final _ret = _objc_msgSend_rc4ypv( + _class_NSError, + _sel_errorWithDomain_code_userInfo_, + domain.ref.pointer, + code, + userInfo?.ref.pointer ?? ffi.nullptr, + ); + return NSError.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSError new$() { + final _ret = _objc_msgSend_151sglz(_class_NSError, _sel_new); + return NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// setUserInfoValueProviderForDomain:provider: + static void setUserInfoValueProviderForDomain( + NSString errorDomain, { + objc.ObjCBlock? Function(NSError, NSString)>? + provider, + }) { + objc.checkOsVersionInternal( + 'NSError.setUserInfoValueProviderForDomain:provider:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + _objc_msgSend_o762yo( + _class_NSError, + _sel_setUserInfoValueProviderForDomain_provider_, + errorDomain.ref.pointer, + provider?.ref.pointer ?? ffi.nullptr, + ); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSError, _sel_supportsSecureCoding); + } + + /// userInfoValueProviderForDomain: + static objc.ObjCBlock< + ffi.Pointer? Function(NSError, NSString) + >? + userInfoValueProviderForDomain_( + NSError err, { + required NSString userInfoKey, + required NSString errorDomain, + }) { + objc.checkOsVersionInternal( + 'NSError.userInfoValueProviderForDomain:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_cnxxyq( + _class_NSError, + _sel_userInfoValueProviderForDomain_, + err.ref.pointer, + userInfoKey.ref.pointer, + errorDomain.ref.pointer, + ); + return _ret.address == 0 + ? null + : ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// code + int get code { + return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_code); + } + + /// domain + NSString get domain { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_domain); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// helpAnchor + NSString? get helpAnchor { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_helpAnchor); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSError init() { + objc.checkOsVersionInternal( + 'NSError.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSError? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithDomain:code:userInfo: + NSError initWithDomain( + NSString domain$1, { + required int code$1, + NSDictionary? userInfo, + }) { + final _ret = _objc_msgSend_rc4ypv( + this.ref.retainAndReturnPointer(), + _sel_initWithDomain_code_userInfo_, + domain$1.ref.pointer, + code$1, + userInfo?.ref.pointer ?? ffi.nullptr, + ); + return NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// localizedDescription + NSString get localizedDescription { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedDescription, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedFailureReason + NSString? get localizedFailureReason { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedFailureReason, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedRecoveryOptions + NSArray? get localizedRecoveryOptions { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedRecoveryOptions, + ); + return _ret.address == 0 + ? null + : NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedRecoverySuggestion + NSString? get localizedRecoverySuggestion { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedRecoverySuggestion, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// recoveryAttempter + objc.ObjCObjectBase? get recoveryAttempter { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_recoveryAttempter, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// iOS: introduced 14.5.0 + /// macOS: introduced 11.3.0 + NSArray get underlyingErrors { + objc.checkOsVersionInternal( + 'NSError.underlyingErrors', + iOS: (false, (14, 5, 0)), + macOS: (false, (11, 3, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_underlyingErrors); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// userInfo + NSDictionary get userInfo { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSError constructed with the default `new` method. + factory NSError() => new$(); +} + +/// NSExtendedArray +extension NSExtendedArray on NSArray { + /// arrayByAddingObject: + NSArray arrayByAddingObject(objc.ObjCObjectBase anObject) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_arrayByAddingObject_, + anObject.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayByAddingObjectsFromArray: + NSArray arrayByAddingObjectsFromArray(NSArray otherArray) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_arrayByAddingObjectsFromArray_, + otherArray.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// componentsJoinedByString: + NSString componentsJoinedByString(NSString separator) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_componentsJoinedByString_, + separator.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// containsObject: + bool containsObject(objc.ObjCObjectBase anObject) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_containsObject_, + anObject.ref.pointer, + ); + } + + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale:indent: + NSString descriptionWithLocale$1( + objc.ObjCObjectBase? locale, { + required int indent, + }) { + final _ret = _objc_msgSend_1k4kd9s( + this.ref.pointer, + _sel_descriptionWithLocale_indent_, + locale?.ref.pointer ?? ffi.nullptr, + indent, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// enumerateObjectsAtIndexes:options:usingBlock: + void enumerateObjectsAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSArray.enumerateObjectsAtIndexes:options:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_a3wp08( + this.ref.pointer, + _sel_enumerateObjectsAtIndexes_options_usingBlock_, + s.ref.pointer, + options.value, + usingBlock.ref.pointer, + ); + } + + /// enumerateObjectsUsingBlock: + void enumerateObjectsUsingBlock( + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSArray.enumerateObjectsUsingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateObjectsUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateObjectsWithOptions:usingBlock: + void enumerateObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSArray.enumerateObjectsWithOptions:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateObjectsWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// firstObject + objc.ObjCObjectBase? get firstObject { + objc.checkOsVersionInternal( + 'NSArray.firstObject', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_firstObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// firstObjectCommonWithArray: + objc.ObjCObjectBase? firstObjectCommonWithArray(NSArray otherArray) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_firstObjectCommonWithArray_, + otherArray.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// getObjects:range: + void getObjects( + ffi.Pointer> objects, { + required NSRange range, + }) { + _objc_msgSend_o16d3k( + this.ref.pointer, + _sel_getObjects_range_, + objects, + range, + ); + } + + /// indexOfObject: + int indexOfObject(objc.ObjCObjectBase anObject) { + return _objc_msgSend_1vd1c5m( + this.ref.pointer, + _sel_indexOfObject_, + anObject.ref.pointer, + ); + } + + /// indexOfObject:inRange: + int indexOfObject$1( + objc.ObjCObjectBase anObject, { + required NSRange inRange, + }) { + return _objc_msgSend_zug4wi( + this.ref.pointer, + _sel_indexOfObject_inRange_, + anObject.ref.pointer, + inRange, + ); + } + + /// indexOfObject:inSortedRange:options:usingComparator: + int indexOfObject$2( + objc.ObjCObjectBase obj, { + required NSRange inSortedRange, + required NSBinarySearchingOptions options, + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSArray.indexOfObject:inSortedRange:options:usingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_kshx9d( + this.ref.pointer, + _sel_indexOfObject_inSortedRange_options_usingComparator_, + obj.ref.pointer, + inSortedRange, + options.value, + usingComparator.ref.pointer, + ); + } + + /// indexOfObjectAtIndexes:options:passingTest: + int indexOfObjectAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSArray.indexOfObjectAtIndexes:options:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_k1x6mt( + this.ref.pointer, + _sel_indexOfObjectAtIndexes_options_passingTest_, + s.ref.pointer, + options.value, + passingTest.ref.pointer, + ); + } + + /// indexOfObjectIdenticalTo: + int indexOfObjectIdenticalTo(objc.ObjCObjectBase anObject) { + return _objc_msgSend_1vd1c5m( + this.ref.pointer, + _sel_indexOfObjectIdenticalTo_, + anObject.ref.pointer, + ); + } + + /// indexOfObjectIdenticalTo:inRange: + int indexOfObjectIdenticalTo$1( + objc.ObjCObjectBase anObject, { + required NSRange inRange, + }) { + return _objc_msgSend_zug4wi( + this.ref.pointer, + _sel_indexOfObjectIdenticalTo_inRange_, + anObject.ref.pointer, + inRange, + ); + } + + /// indexOfObjectPassingTest: + int indexOfObjectPassingTest( + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSArray.indexOfObjectPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_10mlopr( + this.ref.pointer, + _sel_indexOfObjectPassingTest_, + predicate.ref.pointer, + ); + } + + /// indexOfObjectWithOptions:passingTest: + int indexOfObjectWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSArray.indexOfObjectWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1698hqz( + this.ref.pointer, + _sel_indexOfObjectWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + } + + /// indexesOfObjectsAtIndexes:options:passingTest: + NSIndexSet indexesOfObjectsAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSArray.indexesOfObjectsAtIndexes:options:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1i9v144( + this.ref.pointer, + _sel_indexesOfObjectsAtIndexes_options_passingTest_, + s.ref.pointer, + options.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesOfObjectsPassingTest: + NSIndexSet indexesOfObjectsPassingTest( + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSArray.indexesOfObjectsPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_indexesOfObjectsPassingTest_, + predicate.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesOfObjectsWithOptions:passingTest: + NSIndexSet indexesOfObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSArray.indexesOfObjectsWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_13x5boi( + this.ref.pointer, + _sel_indexesOfObjectsWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// isEqualToArray: + bool isEqualToArray(NSArray otherArray) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToArray_, + otherArray.ref.pointer, + ); + } + + /// lastObject + objc.ObjCObjectBase? get lastObject { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lastObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// makeObjectsPerformSelector: + void makeObjectsPerformSelector(ffi.Pointer aSelector) { + _objc_msgSend_1d9e4oe( + this.ref.pointer, + _sel_makeObjectsPerformSelector_, + aSelector, + ); + } + + /// makeObjectsPerformSelector:withObject: + void makeObjectsPerformSelector$1( + ffi.Pointer aSelector, { + objc.ObjCObjectBase? withObject, + }) { + _objc_msgSend_1qv0eq4( + this.ref.pointer, + _sel_makeObjectsPerformSelector_withObject_, + aSelector, + withObject?.ref.pointer ?? ffi.nullptr, + ); + } + + /// objectAtIndexedSubscript: + objc.ObjCObjectBase objectAtIndexedSubscript(int idx) { + objc.checkOsVersionInternal( + 'NSArray.objectAtIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_objectAtIndexedSubscript_, + idx, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// objectEnumerator + NSEnumerator objectEnumerator() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// objectsAtIndexes: + NSArray objectsAtIndexes(NSIndexSet indexes) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_objectsAtIndexes_, + indexes.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// reverseObjectEnumerator + NSEnumerator reverseObjectEnumerator() { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_reverseObjectEnumerator, + ); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayHint + NSData get sortedArrayHint { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_sortedArrayHint); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayUsingComparator: + NSArray sortedArrayUsingComparator( + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + cmptr, + ) { + objc.checkOsVersionInternal( + 'NSArray.sortedArrayUsingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_sortedArrayUsingComparator_, + cmptr.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayUsingFunction:context: + NSArray sortedArrayUsingFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + comparator, { + required ffi.Pointer context, + }) { + final _ret = _objc_msgSend_1ffoev1( + this.ref.pointer, + _sel_sortedArrayUsingFunction_context_, + comparator, + context, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayUsingFunction:context:hint: + NSArray sortedArrayUsingFunction$1( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + comparator, { + required ffi.Pointer context, + NSData? hint, + }) { + final _ret = _objc_msgSend_1i2r70j( + this.ref.pointer, + _sel_sortedArrayUsingFunction_context_hint_, + comparator, + context, + hint?.ref.pointer ?? ffi.nullptr, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayUsingSelector: + NSArray sortedArrayUsingSelector(ffi.Pointer comparator) { + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_sortedArrayUsingSelector_, + comparator, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayWithOptions:usingComparator: + NSArray sortedArrayWithOptions( + NSSortOptions opts, { + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSArray.sortedArrayWithOptions:usingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1x5ew3h( + this.ref.pointer, + _sel_sortedArrayWithOptions_usingComparator_, + opts.value, + usingComparator.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// subarrayWithRange: + NSArray subarrayWithRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + this.ref.pointer, + _sel_subarrayWithRange_, + range, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// writeToURL:error: + bool writeToURL( + NSURL url, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSArray.writeToURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + return _objc_msgSend_l9p60w( + this.ref.pointer, + _sel_writeToURL_error_, + url.ref.pointer, + error, + ); + } +} + +/// NSExtendedData +extension NSExtendedData on NSData { + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// enumerateByteRangesUsingBlock: + void enumerateByteRangesUsingBlock( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSData.enumerateByteRangesUsingBlock:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateByteRangesUsingBlock_, + block.ref.pointer, + ); + } + + /// getBytes:length: + void getBytes(ffi.Pointer buffer, {required int length}) { + _objc_msgSend_zuf90e( + this.ref.pointer, + _sel_getBytes_length_, + buffer, + length, + ); + } + + /// getBytes:range: + void getBytes$1(ffi.Pointer buffer, {required NSRange range}) { + _objc_msgSend_xpqfd7(this.ref.pointer, _sel_getBytes_range_, buffer, range); + } + + /// isEqualToData: + bool isEqualToData(NSData other) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToData_, + other.ref.pointer, + ); + } + + /// rangeOfData:options:range: + NSRange rangeOfData( + NSData dataToFind, { + required NSDataSearchOptions options, + required NSRange range, + }) { + objc.checkOsVersionInternal( + 'NSData.rangeOfData:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1d8s65wStret( + _ptr, + this.ref.pointer, + _sel_rangeOfData_options_range_, + dataToFind.ref.pointer, + options.value, + range, + ) + : _ptr.ref = _objc_msgSend_1d8s65w( + this.ref.pointer, + _sel_rangeOfData_options_range_, + dataToFind.ref.pointer, + options.value, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// subdataWithRange: + NSData subdataWithRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + this.ref.pointer, + _sel_subdataWithRange_, + range, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// writeToFile:atomically: + bool writeToFile(NSString path, {required bool atomically}) { + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToFile_atomically_, + path.ref.pointer, + atomically, + ); + } + + /// writeToFile:options:error: + bool writeToFile$1( + NSString path, { + required NSDataWritingOptions options, + required ffi.Pointer> error, + }) { + return _objc_msgSend_1xi08ar( + this.ref.pointer, + _sel_writeToFile_options_error_, + path.ref.pointer, + options.value, + error, + ); + } + + /// writeToURL:atomically: + bool writeToURL(NSURL url, {required bool atomically}) { + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToURL_atomically_, + url.ref.pointer, + atomically, + ); + } + + /// writeToURL:options:error: + bool writeToURL$1( + NSURL url, { + required NSDataWritingOptions options, + required ffi.Pointer> error, + }) { + return _objc_msgSend_1xi08ar( + this.ref.pointer, + _sel_writeToURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + } +} + +/// NSExtendedDate +extension NSExtendedDate on NSDate { + /// timeIntervalSinceReferenceDate + static double getTimeIntervalSinceReferenceDate() { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + _class_NSDate, + _sel_timeIntervalSinceReferenceDate, + ) + : _objc_msgSend_1ukqyt8( + _class_NSDate, + _sel_timeIntervalSinceReferenceDate, + ); + } + + /// compare: + NSComparisonResult compare(NSDate other) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_compare_, + other.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// earlierDate: + NSDate earlierDate(NSDate anotherDate) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_earlierDate_, + anotherDate.ref.pointer, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// isEqualToDate: + bool isEqualToDate(NSDate otherDate) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToDate_, + otherDate.ref.pointer, + ); + } + + /// laterDate: + NSDate laterDate(NSDate anotherDate) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_laterDate_, + anotherDate.ref.pointer, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// timeIntervalSince1970 + double get timeIntervalSince1970 { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + this.ref.pointer, + _sel_timeIntervalSince1970, + ) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeIntervalSince1970); + } + + /// timeIntervalSinceDate: + double timeIntervalSinceDate(NSDate anotherDate) { + return objc.useMsgSendVariants + ? _objc_msgSend_mabicuFpret( + this.ref.pointer, + _sel_timeIntervalSinceDate_, + anotherDate.ref.pointer, + ) + : _objc_msgSend_mabicu( + this.ref.pointer, + _sel_timeIntervalSinceDate_, + anotherDate.ref.pointer, + ); + } + + /// timeIntervalSinceNow + double get timeIntervalSinceNow { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + this.ref.pointer, + _sel_timeIntervalSinceNow, + ) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeIntervalSinceNow); + } +} + +/// NSExtendedDictionary +extension NSExtendedDictionary on NSDictionary { + /// allKeys + NSArray get allKeys { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allKeys); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// allKeysForObject: + NSArray allKeysForObject(objc.ObjCObjectBase anObject) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_allKeysForObject_, + anObject.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// allValues + NSArray get allValues { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allValues); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionInStringsFileFormat + NSString get descriptionInStringsFileFormat { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_descriptionInStringsFileFormat, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale:indent: + NSString descriptionWithLocale$1( + objc.ObjCObjectBase? locale, { + required int indent, + }) { + final _ret = _objc_msgSend_1k4kd9s( + this.ref.pointer, + _sel_descriptionWithLocale_indent_, + locale?.ref.pointer ?? ffi.nullptr, + indent, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// enumerateKeysAndObjectsUsingBlock: + void enumerateKeysAndObjectsUsingBlock( + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSDictionary.enumerateKeysAndObjectsUsingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateKeysAndObjectsUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateKeysAndObjectsWithOptions:usingBlock: + void enumerateKeysAndObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.enumerateKeysAndObjectsWithOptions:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateKeysAndObjectsWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// getObjects:andKeys:count: + void getObjects( + ffi.Pointer> objects, { + required ffi.Pointer> andKeys, + required int count, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.getObjects:andKeys:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_n2svg2( + this.ref.pointer, + _sel_getObjects_andKeys_count_, + objects, + andKeys, + count, + ); + } + + /// isEqualToDictionary: + bool isEqualToDictionary(NSDictionary otherDictionary) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToDictionary_, + otherDictionary.ref.pointer, + ); + } + + /// keysOfEntriesPassingTest: + NSSet keysOfEntriesPassingTest( + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSDictionary.keysOfEntriesPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_keysOfEntriesPassingTest_, + predicate.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// keysOfEntriesWithOptions:passingTest: + NSSet keysOfEntriesWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.keysOfEntriesWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_13x5boi( + this.ref.pointer, + _sel_keysOfEntriesWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// keysSortedByValueUsingComparator: + NSArray keysSortedByValueUsingComparator( + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + cmptr, + ) { + objc.checkOsVersionInternal( + 'NSDictionary.keysSortedByValueUsingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_keysSortedByValueUsingComparator_, + cmptr.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// keysSortedByValueUsingSelector: + NSArray keysSortedByValueUsingSelector( + ffi.Pointer comparator, + ) { + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_keysSortedByValueUsingSelector_, + comparator, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// keysSortedByValueWithOptions:usingComparator: + NSArray keysSortedByValueWithOptions( + NSSortOptions opts, { + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.keysSortedByValueWithOptions:usingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1x5ew3h( + this.ref.pointer, + _sel_keysSortedByValueWithOptions_usingComparator_, + opts.value, + usingComparator.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// objectEnumerator + NSEnumerator objectEnumerator() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// objectForKeyedSubscript: + objc.ObjCObjectBase? objectForKeyedSubscript(objc.ObjCObjectBase key) { + objc.checkOsVersionInternal( + 'NSDictionary.objectForKeyedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_objectForKeyedSubscript_, + key.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// objectsForKeys:notFoundMarker: + NSArray objectsForKeys( + NSArray keys, { + required objc.ObjCObjectBase notFoundMarker, + }) { + final _ret = _objc_msgSend_15qeuct( + this.ref.pointer, + _sel_objectsForKeys_notFoundMarker_, + keys.ref.pointer, + notFoundMarker.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// writeToURL:error: + bool writeToURL( + NSURL url, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.writeToURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + return _objc_msgSend_l9p60w( + this.ref.pointer, + _sel_writeToURL_error_, + url.ref.pointer, + error, + ); + } +} + +/// NSExtendedEnumerator +extension NSExtendedEnumerator on NSEnumerator { + /// allObjects + NSArray get allObjects { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allObjects); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } +} + +/// NSExtendedMutableArray +extension NSExtendedMutableArray on NSMutableArray { + /// addObjectsFromArray: + void addObjectsFromArray(NSArray otherArray) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addObjectsFromArray_, + otherArray.ref.pointer, + ); + } + + /// exchangeObjectAtIndex:withObjectAtIndex: + void exchangeObjectAtIndex(int idx1, {required int withObjectAtIndex}) { + _objc_msgSend_bfp043( + this.ref.pointer, + _sel_exchangeObjectAtIndex_withObjectAtIndex_, + idx1, + withObjectAtIndex, + ); + } + + /// insertObjects:atIndexes: + void insertObjects(NSArray objects, {required NSIndexSet atIndexes}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_insertObjects_atIndexes_, + objects.ref.pointer, + atIndexes.ref.pointer, + ); + } + + /// removeAllObjects + void removeAllObjects() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); + } + + /// removeObject: + void removeObject(objc.ObjCObjectBase anObject) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObject_, + anObject.ref.pointer, + ); + } + + /// removeObject:inRange: + void removeObject$1( + objc.ObjCObjectBase anObject, { + required NSRange inRange, + }) { + _objc_msgSend_1oteutl( + this.ref.pointer, + _sel_removeObject_inRange_, + anObject.ref.pointer, + inRange, + ); + } + + /// removeObjectIdenticalTo: + void removeObjectIdenticalTo(objc.ObjCObjectBase anObject) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectIdenticalTo_, + anObject.ref.pointer, + ); + } + + /// removeObjectIdenticalTo:inRange: + void removeObjectIdenticalTo$1( + objc.ObjCObjectBase anObject, { + required NSRange inRange, + }) { + _objc_msgSend_1oteutl( + this.ref.pointer, + _sel_removeObjectIdenticalTo_inRange_, + anObject.ref.pointer, + inRange, + ); + } + + /// removeObjectsAtIndexes: + void removeObjectsAtIndexes(NSIndexSet indexes) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectsAtIndexes_, + indexes.ref.pointer, + ); + } + + /// removeObjectsInArray: + void removeObjectsInArray(NSArray otherArray) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectsInArray_, + otherArray.ref.pointer, + ); + } + + /// removeObjectsInRange: + void removeObjectsInRange(NSRange range) { + _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeObjectsInRange_, range); + } + + /// replaceObjectsAtIndexes:withObjects: + void replaceObjectsAtIndexes( + NSIndexSet indexes, { + required NSArray withObjects, + }) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_replaceObjectsAtIndexes_withObjects_, + indexes.ref.pointer, + withObjects.ref.pointer, + ); + } + + /// replaceObjectsInRange:withObjectsFromArray: + void replaceObjectsInRange( + NSRange range, { + required NSArray withObjectsFromArray, + }) { + _objc_msgSend_1tv4uax( + this.ref.pointer, + _sel_replaceObjectsInRange_withObjectsFromArray_, + range, + withObjectsFromArray.ref.pointer, + ); + } + + /// replaceObjectsInRange:withObjectsFromArray:range: + void replaceObjectsInRange$1( + NSRange range, { + required NSArray withObjectsFromArray, + required NSRange range$1, + }) { + _objc_msgSend_15bolr3( + this.ref.pointer, + _sel_replaceObjectsInRange_withObjectsFromArray_range_, + range, + withObjectsFromArray.ref.pointer, + range$1, + ); + } + + /// setArray: + void setArray(NSArray otherArray) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setArray_, + otherArray.ref.pointer, + ); + } + + /// setObject:atIndexedSubscript: + void setObject(objc.ObjCObjectBase obj, {required int atIndexedSubscript}) { + objc.checkOsVersionInternal( + 'NSMutableArray.setObject:atIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_setObject_atIndexedSubscript_, + obj.ref.pointer, + atIndexedSubscript, + ); + } + + /// sortUsingComparator: + void sortUsingComparator( + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + cmptr, + ) { + objc.checkOsVersionInternal( + 'NSMutableArray.sortUsingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_sortUsingComparator_, + cmptr.ref.pointer, + ); + } + + /// sortUsingFunction:context: + void sortUsingFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + compare, { + required ffi.Pointer context, + }) { + _objc_msgSend_1bvics1( + this.ref.pointer, + _sel_sortUsingFunction_context_, + compare, + context, + ); + } + + /// sortUsingSelector: + void sortUsingSelector(ffi.Pointer comparator) { + _objc_msgSend_1d9e4oe( + this.ref.pointer, + _sel_sortUsingSelector_, + comparator, + ); + } + + /// sortWithOptions:usingComparator: + void sortWithOptions( + NSSortOptions opts, { + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSMutableArray.sortWithOptions:usingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_jjgvjt( + this.ref.pointer, + _sel_sortWithOptions_usingComparator_, + opts.value, + usingComparator.ref.pointer, + ); + } +} + +/// NSExtendedMutableData +extension NSExtendedMutableData on NSMutableData { + /// appendBytes:length: + void appendBytes(ffi.Pointer bytes, {required int length}) { + _objc_msgSend_zuf90e( + this.ref.pointer, + _sel_appendBytes_length_, + bytes, + length, + ); + } + + /// appendData: + void appendData(NSData other) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_appendData_, other.ref.pointer); + } + + /// increaseLengthBy: + void increaseLengthBy(int extraLength) { + _objc_msgSend_1i9r4xy( + this.ref.pointer, + _sel_increaseLengthBy_, + extraLength, + ); + } + + /// replaceBytesInRange:withBytes: + void replaceBytesInRange( + NSRange range, { + required ffi.Pointer withBytes, + }) { + _objc_msgSend_eh32gn( + this.ref.pointer, + _sel_replaceBytesInRange_withBytes_, + range, + withBytes, + ); + } + + /// replaceBytesInRange:withBytes:length: + void replaceBytesInRange$1( + NSRange range, { + required ffi.Pointer withBytes, + required int length, + }) { + _objc_msgSend_c0vg4w( + this.ref.pointer, + _sel_replaceBytesInRange_withBytes_length_, + range, + withBytes, + length, + ); + } + + /// resetBytesInRange: + void resetBytesInRange(NSRange range) { + _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_resetBytesInRange_, range); + } + + /// setData: + void setData(NSData data) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setData_, data.ref.pointer); + } +} + +/// NSExtendedMutableDictionary +extension NSExtendedMutableDictionary on NSMutableDictionary { + /// addEntriesFromDictionary: + void addEntriesFromDictionary(NSDictionary otherDictionary) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addEntriesFromDictionary_, + otherDictionary.ref.pointer, + ); + } + + /// removeAllObjects + void removeAllObjects() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); + } + + /// removeObjectsForKeys: + void removeObjectsForKeys(NSArray keyArray) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectsForKeys_, + keyArray.ref.pointer, + ); + } + + /// setDictionary: + void setDictionary(NSDictionary otherDictionary) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setDictionary_, + otherDictionary.ref.pointer, + ); + } + + /// setObject:forKeyedSubscript: + void setObject( + objc.ObjCObjectBase? obj, { + required NSCopying forKeyedSubscript, + }) { + objc.checkOsVersionInternal( + 'NSMutableDictionary.setObject:forKeyedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_setObject_forKeyedSubscript_, + obj?.ref.pointer ?? ffi.nullptr, + forKeyedSubscript.ref.pointer, + ); + } +} + +/// NSExtendedMutableOrderedSet +extension NSExtendedMutableOrderedSet on NSMutableOrderedSet { + /// addObject: + void addObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.addObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addObject_, object.ref.pointer); + } + + /// addObjects:count: + void addObjects( + ffi.Pointer> objects, { + required int count, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.addObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_gcjqkl( + this.ref.pointer, + _sel_addObjects_count_, + objects, + count, + ); + } + + /// addObjectsFromArray: + void addObjectsFromArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.addObjectsFromArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addObjectsFromArray_, + array.ref.pointer, + ); + } + + /// exchangeObjectAtIndex:withObjectAtIndex: + void exchangeObjectAtIndex(int idx1, {required int withObjectAtIndex}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.exchangeObjectAtIndex:withObjectAtIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_bfp043( + this.ref.pointer, + _sel_exchangeObjectAtIndex_withObjectAtIndex_, + idx1, + withObjectAtIndex, + ); + } + + /// insertObjects:atIndexes: + void insertObjects(NSArray objects, {required NSIndexSet atIndexes}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.insertObjects:atIndexes:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_insertObjects_atIndexes_, + objects.ref.pointer, + atIndexes.ref.pointer, + ); + } + + /// intersectOrderedSet: + void intersectOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.intersectOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_intersectOrderedSet_, + other.ref.pointer, + ); + } + + /// intersectSet: + void intersectSet(NSSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.intersectSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_intersectSet_, + other.ref.pointer, + ); + } + + /// minusOrderedSet: + void minusOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.minusOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_minusOrderedSet_, + other.ref.pointer, + ); + } + + /// minusSet: + void minusSet(NSSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.minusSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_minusSet_, other.ref.pointer); + } + + /// moveObjectsAtIndexes:toIndex: + void moveObjectsAtIndexes(NSIndexSet indexes, {required int toIndex}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.moveObjectsAtIndexes:toIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_moveObjectsAtIndexes_toIndex_, + indexes.ref.pointer, + toIndex, + ); + } + + /// removeAllObjects + void removeAllObjects() { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeAllObjects', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); + } + + /// removeObject: + void removeObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObject_, + object.ref.pointer, + ); + } + + /// removeObjectsAtIndexes: + void removeObjectsAtIndexes(NSIndexSet indexes) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectsAtIndexes:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectsAtIndexes_, + indexes.ref.pointer, + ); + } + + /// removeObjectsInArray: + void removeObjectsInArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectsInArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectsInArray_, + array.ref.pointer, + ); + } + + /// removeObjectsInRange: + void removeObjectsInRange(NSRange range) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectsInRange:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeObjectsInRange_, range); + } + + /// replaceObjectsAtIndexes:withObjects: + void replaceObjectsAtIndexes( + NSIndexSet indexes, { + required NSArray withObjects, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.replaceObjectsAtIndexes:withObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_replaceObjectsAtIndexes_withObjects_, + indexes.ref.pointer, + withObjects.ref.pointer, + ); + } + + /// replaceObjectsInRange:withObjects:count: + void replaceObjectsInRange( + NSRange range, { + required ffi.Pointer> withObjects, + required int count, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.replaceObjectsInRange:withObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_122v0cv( + this.ref.pointer, + _sel_replaceObjectsInRange_withObjects_count_, + range, + withObjects, + count, + ); + } + + /// setObject:atIndex: + void setObject(objc.ObjCObjectBase obj, {required int atIndex}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.setObject:atIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_setObject_atIndex_, + obj.ref.pointer, + atIndex, + ); + } + + /// setObject:atIndexedSubscript: + void setObject$1(objc.ObjCObjectBase obj, {required int atIndexedSubscript}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.setObject:atIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_setObject_atIndexedSubscript_, + obj.ref.pointer, + atIndexedSubscript, + ); + } + + /// sortRange:options:usingComparator: + void sortRange( + NSRange range, { + required NSSortOptions options, + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.sortRange:options:usingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_arew0j( + this.ref.pointer, + _sel_sortRange_options_usingComparator_, + range, + options.value, + usingComparator.ref.pointer, + ); + } + + /// sortUsingComparator: + void sortUsingComparator( + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + cmptr, + ) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.sortUsingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_sortUsingComparator_, + cmptr.ref.pointer, + ); + } + + /// sortWithOptions:usingComparator: + void sortWithOptions( + NSSortOptions opts, { + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.sortWithOptions:usingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_jjgvjt( + this.ref.pointer, + _sel_sortWithOptions_usingComparator_, + opts.value, + usingComparator.ref.pointer, + ); + } + + /// unionOrderedSet: + void unionOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.unionOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_unionOrderedSet_, + other.ref.pointer, + ); + } + + /// unionSet: + void unionSet(NSSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.unionSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_unionSet_, other.ref.pointer); + } +} + +/// NSExtendedMutableSet +extension NSExtendedMutableSet on NSMutableSet { + /// addObjectsFromArray: + void addObjectsFromArray(NSArray array) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addObjectsFromArray_, + array.ref.pointer, + ); + } + + /// intersectSet: + void intersectSet(NSSet otherSet) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_intersectSet_, + otherSet.ref.pointer, + ); + } + + /// minusSet: + void minusSet(NSSet otherSet) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_minusSet_, + otherSet.ref.pointer, + ); + } + + /// removeAllObjects + void removeAllObjects() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); + } + + /// setSet: + void setSet(NSSet otherSet) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setSet_, otherSet.ref.pointer); + } + + /// unionSet: + void unionSet(NSSet otherSet) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_unionSet_, + otherSet.ref.pointer, + ); + } +} + +/// NSExtendedOrderedSet +extension NSExtendedOrderedSet on NSOrderedSet { + /// array + NSArray get array { + objc.checkOsVersionInternal( + 'NSOrderedSet.array', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_array); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// containsObject: + bool containsObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSOrderedSet.containsObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_containsObject_, + object.ref.pointer, + ); + } + + /// description + NSString get description { + objc.checkOsVersionInternal( + 'NSOrderedSet.description', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + objc.checkOsVersionInternal( + 'NSOrderedSet.descriptionWithLocale:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale:indent: + NSString descriptionWithLocale$1( + objc.ObjCObjectBase? locale, { + required int indent, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.descriptionWithLocale:indent:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1k4kd9s( + this.ref.pointer, + _sel_descriptionWithLocale_indent_, + locale?.ref.pointer ?? ffi.nullptr, + indent, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// enumerateObjectsAtIndexes:options:usingBlock: + void enumerateObjectsAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.enumerateObjectsAtIndexes:options:usingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_a3wp08( + this.ref.pointer, + _sel_enumerateObjectsAtIndexes_options_usingBlock_, + s.ref.pointer, + options.value, + usingBlock.ref.pointer, + ); + } + + /// enumerateObjectsUsingBlock: + void enumerateObjectsUsingBlock( + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.enumerateObjectsUsingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateObjectsUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateObjectsWithOptions:usingBlock: + void enumerateObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.enumerateObjectsWithOptions:usingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateObjectsWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// firstObject + objc.ObjCObjectBase? get firstObject { + objc.checkOsVersionInternal( + 'NSOrderedSet.firstObject', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_firstObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// getObjects:range: + void getObjects( + ffi.Pointer> objects, { + required NSRange range, + }) { + _objc_msgSend_o16d3k( + this.ref.pointer, + _sel_getObjects_range_, + objects, + range, + ); + } + + /// indexOfObject:inSortedRange:options:usingComparator: + int indexOfObject( + objc.ObjCObjectBase object, { + required NSRange inSortedRange, + required NSBinarySearchingOptions options, + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObject:inSortedRange:options:usingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_kshx9d( + this.ref.pointer, + _sel_indexOfObject_inSortedRange_options_usingComparator_, + object.ref.pointer, + inSortedRange, + options.value, + usingComparator.ref.pointer, + ); + } + + /// indexOfObjectAtIndexes:options:passingTest: + int indexOfObjectAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObjectAtIndexes:options:passingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_k1x6mt( + this.ref.pointer, + _sel_indexOfObjectAtIndexes_options_passingTest_, + s.ref.pointer, + options.value, + passingTest.ref.pointer, + ); + } + + /// indexOfObjectPassingTest: + int indexOfObjectPassingTest( + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObjectPassingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_10mlopr( + this.ref.pointer, + _sel_indexOfObjectPassingTest_, + predicate.ref.pointer, + ); + } + + /// indexOfObjectWithOptions:passingTest: + int indexOfObjectWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObjectWithOptions:passingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_1698hqz( + this.ref.pointer, + _sel_indexOfObjectWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + } + + /// indexesOfObjectsAtIndexes:options:passingTest: + NSIndexSet indexesOfObjectsAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexesOfObjectsAtIndexes:options:passingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1i9v144( + this.ref.pointer, + _sel_indexesOfObjectsAtIndexes_options_passingTest_, + s.ref.pointer, + options.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesOfObjectsPassingTest: + NSIndexSet indexesOfObjectsPassingTest( + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexesOfObjectsPassingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_indexesOfObjectsPassingTest_, + predicate.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesOfObjectsWithOptions:passingTest: + NSIndexSet indexesOfObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexesOfObjectsWithOptions:passingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_13x5boi( + this.ref.pointer, + _sel_indexesOfObjectsWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// intersectsOrderedSet: + bool intersectsOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSOrderedSet.intersectsOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_intersectsOrderedSet_, + other.ref.pointer, + ); + } + + /// intersectsSet: + bool intersectsSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.intersectsSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_intersectsSet_, + set$.ref.pointer, + ); + } + + /// isEqualToOrderedSet: + bool isEqualToOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSOrderedSet.isEqualToOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToOrderedSet_, + other.ref.pointer, + ); + } + + /// isSubsetOfOrderedSet: + bool isSubsetOfOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSOrderedSet.isSubsetOfOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isSubsetOfOrderedSet_, + other.ref.pointer, + ); + } + + /// isSubsetOfSet: + bool isSubsetOfSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.isSubsetOfSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isSubsetOfSet_, + set$.ref.pointer, + ); + } + + /// lastObject + objc.ObjCObjectBase? get lastObject { + objc.checkOsVersionInternal( + 'NSOrderedSet.lastObject', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lastObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// objectAtIndexedSubscript: + objc.ObjCObjectBase objectAtIndexedSubscript(int idx) { + objc.checkOsVersionInternal( + 'NSOrderedSet.objectAtIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_objectAtIndexedSubscript_, + idx, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// objectEnumerator + NSEnumerator objectEnumerator() { + objc.checkOsVersionInternal( + 'NSOrderedSet.objectEnumerator', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// objectsAtIndexes: + NSArray objectsAtIndexes(NSIndexSet indexes) { + objc.checkOsVersionInternal( + 'NSOrderedSet.objectsAtIndexes:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_objectsAtIndexes_, + indexes.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// reverseObjectEnumerator + NSEnumerator reverseObjectEnumerator() { + objc.checkOsVersionInternal( + 'NSOrderedSet.reverseObjectEnumerator', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_reverseObjectEnumerator, + ); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// reversedOrderedSet + NSOrderedSet get reversedOrderedSet { + objc.checkOsVersionInternal( + 'NSOrderedSet.reversedOrderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_reversedOrderedSet, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// set + NSSet get set$ { + objc.checkOsVersionInternal( + 'NSOrderedSet.set', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_set); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayUsingComparator: + NSArray sortedArrayUsingComparator( + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + cmptr, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.sortedArrayUsingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_sortedArrayUsingComparator_, + cmptr.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayWithOptions:usingComparator: + NSArray sortedArrayWithOptions( + NSSortOptions opts, { + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.sortedArrayWithOptions:usingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1x5ew3h( + this.ref.pointer, + _sel_sortedArrayWithOptions_usingComparator_, + opts.value, + usingComparator.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } +} + +/// NSExtendedSet +extension NSExtendedSet on NSSet { + /// allObjects + NSArray get allObjects { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allObjects); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// anyObject + objc.ObjCObjectBase? anyObject() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_anyObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// containsObject: + bool containsObject(objc.ObjCObjectBase anObject) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_containsObject_, + anObject.ref.pointer, + ); + } + + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// enumerateObjectsUsingBlock: + void enumerateObjectsUsingBlock( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSSet.enumerateObjectsUsingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateObjectsUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateObjectsWithOptions:usingBlock: + void enumerateObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSSet.enumerateObjectsWithOptions:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateObjectsWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// intersectsSet: + bool intersectsSet(NSSet otherSet) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_intersectsSet_, + otherSet.ref.pointer, + ); + } + + /// isEqualToSet: + bool isEqualToSet(NSSet otherSet) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToSet_, + otherSet.ref.pointer, + ); + } + + /// isSubsetOfSet: + bool isSubsetOfSet(NSSet otherSet) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isSubsetOfSet_, + otherSet.ref.pointer, + ); + } + + /// makeObjectsPerformSelector: + void makeObjectsPerformSelector(ffi.Pointer aSelector) { + _objc_msgSend_1d9e4oe( + this.ref.pointer, + _sel_makeObjectsPerformSelector_, + aSelector, + ); + } + + /// makeObjectsPerformSelector:withObject: + void makeObjectsPerformSelector$1( + ffi.Pointer aSelector, { + objc.ObjCObjectBase? withObject, + }) { + _objc_msgSend_1qv0eq4( + this.ref.pointer, + _sel_makeObjectsPerformSelector_withObject_, + aSelector, + withObject?.ref.pointer ?? ffi.nullptr, + ); + } + + /// objectsPassingTest: + NSSet objectsPassingTest( + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSSet.objectsPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_objectsPassingTest_, + predicate.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// objectsWithOptions:passingTest: + NSSet objectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSSet.objectsWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_13x5boi( + this.ref.pointer, + _sel_objectsWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setByAddingObject: + NSSet setByAddingObject(objc.ObjCObjectBase anObject) { + objc.checkOsVersionInternal( + 'NSSet.setByAddingObject:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_setByAddingObject_, + anObject.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setByAddingObjectsFromArray: + NSSet setByAddingObjectsFromArray(NSArray other) { + objc.checkOsVersionInternal( + 'NSSet.setByAddingObjectsFromArray:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_setByAddingObjectsFromArray_, + other.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setByAddingObjectsFromSet: + NSSet setByAddingObjectsFromSet(NSSet other) { + objc.checkOsVersionInternal( + 'NSSet.setByAddingObjectsFromSet:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_setByAddingObjectsFromSet_, + other.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } +} + +/// NSFastEnumeration +interface class NSFastEnumeration extends objc.ObjCProtocolBase { + NSFastEnumeration._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSFastEnumeration] that points to the same underlying object as [other]. + NSFastEnumeration.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSFastEnumeration] that wraps the given raw object pointer. + NSFastEnumeration.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSFastEnumeration]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSFastEnumeration, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSFastEnumeration.cast()); + + /// Builds an object that implements the NSFastEnumeration protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSFastEnumeration implement({ + required int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + countByEnumeratingWithState_objects_count_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSFastEnumeration'); + NSFastEnumeration.countByEnumeratingWithState_objects_count_.implement( + builder, + countByEnumeratingWithState_objects_count_, + ); + builder.addProtocol($protocol); + return NSFastEnumeration.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSFastEnumeration protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + countByEnumeratingWithState_objects_count_, + bool $keepIsolateAlive = true, + }) { + NSFastEnumeration.countByEnumeratingWithState_objects_count_.implement( + builder, + countByEnumeratingWithState_objects_count_, + ); + builder.addProtocol($protocol); + } + + /// countByEnumeratingWithState:objects:count: + static final countByEnumeratingWithState_objects_count_ = + objc.ObjCProtocolMethod< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >( + _protocol_NSFastEnumeration, + _sel_countByEnumeratingWithState_objects_count_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_17ap02x) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFastEnumeration, + _sel_countByEnumeratingWithState_objects_count_, + isRequired: true, + isInstanceMethod: true, + ), + ( + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + func, + ) => + ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + ); +} + +final class NSFastEnumerationState extends ffi.Struct { + @ffi.UnsignedLong() + external int state; + + external ffi.Pointer> itemsPtr; + + external ffi.Pointer mutationsPtr; + + @ffi.Array.multi([5]) + external ffi.Array extra; +} + +/// NSIndexSet +class NSIndexSet extends NSObject + implements NSCopying, NSMutableCopying, NSSecureCoding { + NSIndexSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSIndexSet] that points to the same underlying object as [other]. + NSIndexSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSIndexSet] that wraps the given raw object pointer. + NSIndexSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSIndexSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSIndexSet, + ); + } + + /// alloc + static NSIndexSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_alloc); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSIndexSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSIndexSet, + _sel_allocWithZone_, + zone, + ); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// indexSet + static NSIndexSet indexSet() { + final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_indexSet); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexSetWithIndex: + static NSIndexSet indexSetWithIndex(int value) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSIndexSet, + _sel_indexSetWithIndex_, + value, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexSetWithIndexesInRange: + static NSIndexSet indexSetWithIndexesInRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + _class_NSIndexSet, + _sel_indexSetWithIndexesInRange_, + range, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSIndexSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_new); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSIndexSet, _sel_supportsSecureCoding); + } + + /// containsIndex: + bool containsIndex(int value) { + return _objc_msgSend_6peh6o(this.ref.pointer, _sel_containsIndex_, value); + } + + /// containsIndexes: + bool containsIndexes(NSIndexSet indexSet$1) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_containsIndexes_, + indexSet$1.ref.pointer, + ); + } + + /// containsIndexesInRange: + bool containsIndexesInRange(NSRange range) { + return _objc_msgSend_p4nurx( + this.ref.pointer, + _sel_containsIndexesInRange_, + range, + ); + } + + /// count + int get count { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); + } + + /// countOfIndexesInRange: + int countOfIndexesInRange(NSRange range) { + objc.checkOsVersionInternal( + 'NSIndexSet.countOfIndexesInRange:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_qm9f5w( + this.ref.pointer, + _sel_countOfIndexesInRange_, + range, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// enumerateIndexesInRange:options:usingBlock: + void enumerateIndexesInRange( + NSRange range, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateIndexesInRange:options:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_177cajs( + this.ref.pointer, + _sel_enumerateIndexesInRange_options_usingBlock_, + range, + options.value, + usingBlock.ref.pointer, + ); + } + + /// enumerateIndexesUsingBlock: + void enumerateIndexesUsingBlock( + objc.ObjCBlock)> + block, + ) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateIndexesUsingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateIndexesUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateIndexesWithOptions:usingBlock: + void enumerateIndexesWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateIndexesWithOptions:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateIndexesWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// enumerateRangesInRange:options:usingBlock: + void enumerateRangesInRange( + NSRange range, { + required NSEnumerationOptions options, + required objc.ObjCBlock)> + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateRangesInRange:options:usingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_177cajs( + this.ref.pointer, + _sel_enumerateRangesInRange_options_usingBlock_, + range, + options.value, + usingBlock.ref.pointer, + ); + } + + /// enumerateRangesUsingBlock: + void enumerateRangesUsingBlock( + objc.ObjCBlock)> block, + ) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateRangesUsingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateRangesUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateRangesWithOptions:usingBlock: + void enumerateRangesWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock)> + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateRangesWithOptions:usingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateRangesWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// firstIndex + int get firstIndex { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_firstIndex); + } + + /// getIndexes:maxCount:inIndexRange: + int getIndexes( + ffi.Pointer indexBuffer, { + required int maxCount, + required ffi.Pointer inIndexRange, + }) { + return _objc_msgSend_89xgla( + this.ref.pointer, + _sel_getIndexes_maxCount_inIndexRange_, + indexBuffer, + maxCount, + inIndexRange, + ); + } + + /// indexGreaterThanIndex: + int indexGreaterThanIndex(int value) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_indexGreaterThanIndex_, + value, + ); + } + + /// indexGreaterThanOrEqualToIndex: + int indexGreaterThanOrEqualToIndex(int value) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_indexGreaterThanOrEqualToIndex_, + value, + ); + } + + /// indexInRange:options:passingTest: + int indexInRange( + NSRange range, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexInRange:options:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_6jmuyz( + this.ref.pointer, + _sel_indexInRange_options_passingTest_, + range, + options.value, + passingTest.ref.pointer, + ); + } + + /// indexLessThanIndex: + int indexLessThanIndex(int value) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_indexLessThanIndex_, + value, + ); + } + + /// indexLessThanOrEqualToIndex: + int indexLessThanOrEqualToIndex(int value) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_indexLessThanOrEqualToIndex_, + value, + ); + } + + /// indexPassingTest: + int indexPassingTest( + objc.ObjCBlock)> + predicate, + ) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_10mlopr( + this.ref.pointer, + _sel_indexPassingTest_, + predicate.ref.pointer, + ); + } + + /// indexWithOptions:passingTest: + int indexWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1698hqz( + this.ref.pointer, + _sel_indexWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + } + + /// indexesInRange:options:passingTest: + NSIndexSet indexesInRange( + NSRange range, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexesInRange:options:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1q30cs4( + this.ref.pointer, + _sel_indexesInRange_options_passingTest_, + range, + options.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesPassingTest: + NSIndexSet indexesPassingTest( + objc.ObjCBlock)> + predicate, + ) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexesPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_indexesPassingTest_, + predicate.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesWithOptions:passingTest: + NSIndexSet indexesWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexesWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_13x5boi( + this.ref.pointer, + _sel_indexesWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSIndexSet init() { + objc.checkOsVersionInternal( + 'NSIndexSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSIndexSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithIndex: + NSIndexSet initWithIndex(int value) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithIndex_, + value, + ); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithIndexSet: + NSIndexSet initWithIndexSet(NSIndexSet indexSet$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithIndexSet_, + indexSet$1.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithIndexesInRange: + NSIndexSet initWithIndexesInRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + this.ref.retainAndReturnPointer(), + _sel_initWithIndexesInRange_, + range, + ); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// intersectsIndexesInRange: + bool intersectsIndexesInRange(NSRange range) { + return _objc_msgSend_p4nurx( + this.ref.pointer, + _sel_intersectsIndexesInRange_, + range, + ); + } + + /// isEqualToIndexSet: + bool isEqualToIndexSet(NSIndexSet indexSet$1) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToIndexSet_, + indexSet$1.ref.pointer, + ); + } + + /// lastIndex + int get lastIndex { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_lastIndex); + } + + /// Returns a new instance of NSIndexSet constructed with the default `new` method. + factory NSIndexSet() => new$(); +} + +/// NSInputStream +class NSInputStream extends NSStream { + NSInputStream._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSInputStream] that points to the same underlying object as [other]. + NSInputStream.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSInputStream] that wraps the given raw object pointer. + NSInputStream.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSInputStream]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSInputStream, + ); + } + + /// inputStreamWithData: + static NSInputStream? inputStreamWithData(NSData data) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithData_, + data.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSInputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// inputStreamWithFileAtPath: + static NSInputStream? inputStreamWithFileAtPath(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithFileAtPath_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSInputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// inputStreamWithURL: + static NSInputStream? inputStreamWithURL(NSURL url) { + objc.checkOsVersionInternal( + 'NSInputStream.inputStreamWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSInputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// getBuffer:length: + bool getBuffer( + ffi.Pointer> buffer, { + required ffi.Pointer length, + }) { + return _objc_msgSend_19lrthf( + this.ref.pointer, + _sel_getBuffer_length_, + buffer, + length, + ); + } + + /// hasBytesAvailable + bool get hasBytesAvailable { + return _objc_msgSend_91o635(this.ref.pointer, _sel_hasBytesAvailable); + } + + /// initWithData: + NSInputStream initWithData(NSData data) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data.ref.pointer, + ); + return NSInputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFileAtPath: + NSInputStream? initWithFileAtPath(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithFileAtPath_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSInputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithURL: + NSInputStream? initWithURL(NSURL url) { + objc.checkOsVersionInternal( + 'NSInputStream.initWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSInputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// read:maxLength: + int read(ffi.Pointer buffer, {required int maxLength}) { + return _objc_msgSend_11e9f5x( + this.ref.pointer, + _sel_read_maxLength_, + buffer, + maxLength, + ); + } +} + +/// NSInvocation +class NSInvocation extends objc.ObjCObjectBase { + NSInvocation._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSInvocation] that points to the same underlying object as [other]. + NSInvocation.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSInvocation] that wraps the given raw object pointer. + NSInvocation.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSInvocation]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSInvocation, + ); + } +} + +/// NSItemProvider +class NSItemProvider extends NSObject implements NSCopying { + NSItemProvider._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSItemProvider', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } + + /// Constructs a [NSItemProvider] that points to the same underlying object as [other]. + NSItemProvider.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSItemProvider] that wraps the given raw object pointer. + NSItemProvider.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSItemProvider]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSItemProvider, + ); + } + + /// alloc + static NSItemProvider alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSItemProvider, _sel_alloc); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSItemProvider allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSItemProvider, + _sel_allocWithZone_, + zone, + ); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSItemProvider new$() { + final _ret = _objc_msgSend_151sglz(_class_NSItemProvider, _sel_new); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// autorelease + NSItemProvider autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSItemProvider.castFromPointer(_ret, retain: true, release: true); + } + + /// canLoadObjectOfClass: + bool canLoadObjectOfClass(NSItemProviderReading aClass) { + objc.checkOsVersionInternal( + 'NSItemProvider.canLoadObjectOfClass:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_canLoadObjectOfClass_, + aClass.ref.pointer, + ); + } + + /// hasItemConformingToTypeIdentifier: + bool hasItemConformingToTypeIdentifier(NSString typeIdentifier) { + objc.checkOsVersionInternal( + 'NSItemProvider.hasItemConformingToTypeIdentifier:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_hasItemConformingToTypeIdentifier_, + typeIdentifier.ref.pointer, + ); + } + + /// hasRepresentationConformingToTypeIdentifier:fileOptions: + bool hasRepresentationConformingToTypeIdentifier( + NSString typeIdentifier, { + required NSItemProviderFileOptions fileOptions, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.hasRepresentationConformingToTypeIdentifier:fileOptions:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + return _objc_msgSend_1wdb8ji( + this.ref.pointer, + _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_, + typeIdentifier.ref.pointer, + fileOptions.value, + ); + } + + /// init + NSItemProvider init() { + objc.checkOsVersionInternal( + 'NSItemProvider.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + NSItemProvider? initWithContentsOfURL(NSURL fileURL) { + objc.checkOsVersionInternal( + 'NSItemProvider.initWithContentsOfURL:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + fileURL.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithItem:typeIdentifier: + NSItemProvider initWithItem( + NSSecureCoding? item, { + NSString? typeIdentifier, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.initWithItem:typeIdentifier:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithItem_typeIdentifier_, + item?.ref.pointer ?? ffi.nullptr, + typeIdentifier?.ref.pointer ?? ffi.nullptr, + ); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObject: + NSItemProvider initWithObject(NSItemProviderWriting object) { + objc.checkOsVersionInternal( + 'NSItemProvider.initWithObject:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_, + object.ref.pointer, + ); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// loadDataRepresentationForTypeIdentifier:completionHandler: + NSProgress loadDataRepresentationForTypeIdentifier( + NSString typeIdentifier, { + required objc.ObjCBlock + completionHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadDataRepresentationForTypeIdentifier:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_r0bo0s( + this.ref.pointer, + _sel_loadDataRepresentationForTypeIdentifier_completionHandler_, + typeIdentifier.ref.pointer, + completionHandler.ref.pointer, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// loadFileRepresentationForTypeIdentifier:completionHandler: + NSProgress loadFileRepresentationForTypeIdentifier( + NSString typeIdentifier, { + required objc.ObjCBlock + completionHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadFileRepresentationForTypeIdentifier:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_r0bo0s( + this.ref.pointer, + _sel_loadFileRepresentationForTypeIdentifier_completionHandler_, + typeIdentifier.ref.pointer, + completionHandler.ref.pointer, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// loadInPlaceFileRepresentationForTypeIdentifier:completionHandler: + NSProgress loadInPlaceFileRepresentationForTypeIdentifier( + NSString typeIdentifier, { + required objc.ObjCBlock + completionHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_r0bo0s( + this.ref.pointer, + _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_, + typeIdentifier.ref.pointer, + completionHandler.ref.pointer, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// loadItemForTypeIdentifier:options:completionHandler: + void loadItemForTypeIdentifier( + NSString typeIdentifier, { + NSDictionary? options, + objc.ObjCBlock?, NSError)>? + completionHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadItemForTypeIdentifier:options:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_18qun1e( + this.ref.pointer, + _sel_loadItemForTypeIdentifier_options_completionHandler_, + typeIdentifier.ref.pointer, + options?.ref.pointer ?? ffi.nullptr, + completionHandler?.ref.pointer ?? ffi.nullptr, + ); + } + + /// loadObjectOfClass:completionHandler: + NSProgress loadObjectOfClass( + NSItemProviderReading aClass, { + required objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + completionHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadObjectOfClass:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_r0bo0s( + this.ref.pointer, + _sel_loadObjectOfClass_completionHandler_, + aClass.ref.pointer, + completionHandler.ref.pointer, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// registerDataRepresentationForTypeIdentifier:visibility:loadHandler: + void registerDataRepresentationForTypeIdentifier( + NSString typeIdentifier, { + required NSItemProviderRepresentationVisibility visibility, + required objc.ObjCBlock< + NSProgress? Function(objc.ObjCBlock) + > + loadHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerDataRepresentationForTypeIdentifier:visibility:loadHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_1pl40xc( + this.ref.pointer, + _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_, + typeIdentifier.ref.pointer, + visibility.value, + loadHandler.ref.pointer, + ); + } + + /// registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler: + void registerFileRepresentationForTypeIdentifier( + NSString typeIdentifier, { + required NSItemProviderFileOptions fileOptions, + required NSItemProviderRepresentationVisibility visibility, + required objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > + loadHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_t7arir( + this.ref.pointer, + _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_, + typeIdentifier.ref.pointer, + fileOptions.value, + visibility.value, + loadHandler.ref.pointer, + ); + } + + /// registerItemForTypeIdentifier:loadHandler: + void registerItemForTypeIdentifier( + NSString typeIdentifier, { + required objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + > + loadHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerItemForTypeIdentifier:loadHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_o762yo( + this.ref.pointer, + _sel_registerItemForTypeIdentifier_loadHandler_, + typeIdentifier.ref.pointer, + loadHandler.ref.pointer, + ); + } + + /// registerObject:visibility: + void registerObject( + NSItemProviderWriting object, { + required NSItemProviderRepresentationVisibility visibility, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerObject:visibility:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_1k745tv( + this.ref.pointer, + _sel_registerObject_visibility_, + object.ref.pointer, + visibility.value, + ); + } + + /// registerObjectOfClass:visibility:loadHandler: + void registerObjectOfClass( + NSItemProviderWriting aClass, { + required NSItemProviderRepresentationVisibility visibility, + required objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + > + loadHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerObjectOfClass:visibility:loadHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_1pl40xc( + this.ref.pointer, + _sel_registerObjectOfClass_visibility_loadHandler_, + aClass.ref.pointer, + visibility.value, + loadHandler.ref.pointer, + ); + } + + /// registeredTypeIdentifiers + NSArray get registeredTypeIdentifiers { + objc.checkOsVersionInternal( + 'NSItemProvider.registeredTypeIdentifiers', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_registeredTypeIdentifiers, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// registeredTypeIdentifiersWithFileOptions: + NSArray registeredTypeIdentifiersWithFileOptions( + NSItemProviderFileOptions fileOptions, + ) { + objc.checkOsVersionInternal( + 'NSItemProvider.registeredTypeIdentifiersWithFileOptions:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_7g3u2y( + this.ref.pointer, + _sel_registeredTypeIdentifiersWithFileOptions_, + fileOptions.value, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// retain + NSItemProvider retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSItemProvider.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSItemProvider self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSItemProvider.castFromPointer(_ret, retain: true, release: true); + } + + /// setSuggestedName: + set suggestedName(NSString? value) { + objc.checkOsVersionInternal( + 'NSItemProvider.setSuggestedName:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 14, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setSuggestedName_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// suggestedName + NSString? get suggestedName { + objc.checkOsVersionInternal( + 'NSItemProvider.suggestedName', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 14, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_suggestedName); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSItemProvider constructed with the default `new` method. + factory NSItemProvider() => new$(); +} + +enum NSItemProviderFileOptions { + NSItemProviderFileOptionOpenInPlace(1); + + final int value; + const NSItemProviderFileOptions(this.value); + + static NSItemProviderFileOptions fromValue(int value) => switch (value) { + 1 => NSItemProviderFileOptionOpenInPlace, + _ => throw ArgumentError( + 'Unknown value for NSItemProviderFileOptions: $value', + ), + }; +} + +/// NSItemProviderReading +interface class NSItemProviderReading extends objc.ObjCProtocolBase + implements NSObjectProtocol { + NSItemProviderReading._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSItemProviderReading] that points to the same underlying object as [other]. + NSItemProviderReading.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSItemProviderReading] that wraps the given raw object pointer. + NSItemProviderReading.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSItemProviderReading]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSItemProviderReading, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSItemProviderReading.cast()); + + /// Builds an object that implements the NSItemProviderReading protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSItemProviderReading implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSItemProviderReading', + ); + + builder.addProtocol($protocol); + return NSItemProviderReading.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSItemProviderReading protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +enum NSItemProviderRepresentationVisibility { + NSItemProviderRepresentationVisibilityAll(0), + NSItemProviderRepresentationVisibilityTeam(1), + NSItemProviderRepresentationVisibilityGroup(2), + NSItemProviderRepresentationVisibilityOwnProcess(3); + + final int value; + const NSItemProviderRepresentationVisibility(this.value); + + static NSItemProviderRepresentationVisibility fromValue(int value) => + switch (value) { + 0 => NSItemProviderRepresentationVisibilityAll, + 1 => NSItemProviderRepresentationVisibilityTeam, + 2 => NSItemProviderRepresentationVisibilityGroup, + 3 => NSItemProviderRepresentationVisibilityOwnProcess, + _ => throw ArgumentError( + 'Unknown value for NSItemProviderRepresentationVisibility: $value', + ), + }; +} + +/// NSItemProviderWriting +interface class NSItemProviderWriting extends objc.ObjCProtocolBase + implements NSObjectProtocol { + NSItemProviderWriting._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSItemProviderWriting] that points to the same underlying object as [other]. + NSItemProviderWriting.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSItemProviderWriting] that wraps the given raw object pointer. + NSItemProviderWriting.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSItemProviderWriting]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSItemProviderWriting, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSItemProviderWriting.cast()); + + /// Builds an object that implements the NSItemProviderWriting protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSItemProviderWriting implement({ + NSItemProviderRepresentationVisibility Function(NSString)? + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + required NSProgress? Function( + NSString, + objc.ObjCBlock, + ) + loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + NSArray Function()? writableTypeIdentifiersForItemProvider, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSItemProviderWriting', + ); + NSItemProviderWriting + .itemProviderVisibilityForRepresentationWithTypeIdentifier_ + .implement( + builder, + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + ); + NSItemProviderWriting + .loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ + .implement( + builder, + loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + ); + NSItemProviderWriting.writableTypeIdentifiersForItemProvider.implement( + builder, + writableTypeIdentifiersForItemProvider, + ); + builder.addProtocol($protocol); + return NSItemProviderWriting.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSItemProviderWriting protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + NSItemProviderRepresentationVisibility Function(NSString)? + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + required NSProgress? Function( + NSString, + objc.ObjCBlock, + ) + loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + NSArray Function()? writableTypeIdentifiersForItemProvider, + bool $keepIsolateAlive = true, + }) { + NSItemProviderWriting + .itemProviderVisibilityForRepresentationWithTypeIdentifier_ + .implement( + builder, + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + ); + NSItemProviderWriting + .loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ + .implement( + builder, + loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + ); + NSItemProviderWriting.writableTypeIdentifiersForItemProvider.implement( + builder, + writableTypeIdentifiersForItemProvider, + ); + builder.addProtocol($protocol); + } + + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + static final itemProviderVisibilityForRepresentationWithTypeIdentifier_ = + objc.ObjCProtocolMethod< + NSItemProviderRepresentationVisibility Function(NSString) + >( + _protocol_NSItemProviderWriting, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1ldqghh) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSItemProviderWriting, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + isRequired: false, + isInstanceMethod: true, + ), + (NSItemProviderRepresentationVisibility Function(NSString) func) => + ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString.fromFunction( + (ffi.Pointer _, NSString arg1) => func(arg1), + ), + ); + + /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: + static final loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = + objc.ObjCProtocolMethod< + NSProgress? Function( + NSString, + objc.ObjCBlock, + ) + >( + _protocol_NSItemProviderWriting, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1q0i84) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSItemProviderWriting, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + isRequired: true, + isInstanceMethod: true, + ), + ( + NSProgress? Function( + NSString, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError.fromFunction( + ( + ffi.Pointer _, + NSString arg1, + objc.ObjCBlock arg2, + ) => func(arg1, arg2), + ), + ); + + /// writableTypeIdentifiersForItemProvider + static final writableTypeIdentifiersForItemProvider = + objc.ObjCProtocolMethod( + _protocol_NSItemProviderWriting, + _sel_writableTypeIdentifiersForItemProvider, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSItemProviderWriting, + _sel_writableTypeIdentifiersForItemProvider, + isRequired: false, + isInstanceMethod: true, + ), + (NSArray Function() func) => ObjCBlock_NSArray_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); +} + +enum NSKeyValueChange { + NSKeyValueChangeSetting(1), + NSKeyValueChangeInsertion(2), + NSKeyValueChangeRemoval(3), + NSKeyValueChangeReplacement(4); + + final int value; + const NSKeyValueChange(this.value); + + static NSKeyValueChange fromValue(int value) => switch (value) { + 1 => NSKeyValueChangeSetting, + 2 => NSKeyValueChangeInsertion, + 3 => NSKeyValueChangeRemoval, + 4 => NSKeyValueChangeReplacement, + _ => throw ArgumentError('Unknown value for NSKeyValueChange: $value'), + }; +} + +enum NSKeyValueObservingOptions { + NSKeyValueObservingOptionNew(1), + NSKeyValueObservingOptionOld(2), + NSKeyValueObservingOptionInitial(4), + NSKeyValueObservingOptionPrior(8); + + final int value; + const NSKeyValueObservingOptions(this.value); + + static NSKeyValueObservingOptions fromValue(int value) => switch (value) { + 1 => NSKeyValueObservingOptionNew, + 2 => NSKeyValueObservingOptionOld, + 4 => NSKeyValueObservingOptionInitial, + 8 => NSKeyValueObservingOptionPrior, + _ => throw ArgumentError( + 'Unknown value for NSKeyValueObservingOptions: $value', + ), + }; +} + +enum NSKeyValueSetMutationKind { + NSKeyValueUnionSetMutation(1), + NSKeyValueMinusSetMutation(2), + NSKeyValueIntersectSetMutation(3), + NSKeyValueSetSetMutation(4); + + final int value; + const NSKeyValueSetMutationKind(this.value); + + static NSKeyValueSetMutationKind fromValue(int value) => switch (value) { + 1 => NSKeyValueUnionSetMutation, + 2 => NSKeyValueMinusSetMutation, + 3 => NSKeyValueIntersectSetMutation, + 4 => NSKeyValueSetSetMutation, + _ => throw ArgumentError( + 'Unknown value for NSKeyValueSetMutationKind: $value', + ), + }; +} + +/// NSLocale +class NSLocale extends objc.ObjCObjectBase { + NSLocale._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSLocale] that points to the same underlying object as [other]. + NSLocale.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSLocale] that wraps the given raw object pointer. + NSLocale.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSLocale]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSLocale, + ); + } +} + +/// NSMethodSignature +class NSMethodSignature extends NSObject { + NSMethodSignature._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMethodSignature] that points to the same underlying object as [other]. + NSMethodSignature.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMethodSignature] that wraps the given raw object pointer. + NSMethodSignature.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMethodSignature]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMethodSignature, + ); + } + + /// alloc + static NSMethodSignature alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_alloc); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSMethodSignature allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMethodSignature, + _sel_allocWithZone_, + zone, + ); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// new + static NSMethodSignature new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_new); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// signatureWithObjCTypes: + static NSMethodSignature? signatureWithObjCTypes( + ffi.Pointer types, + ) { + final _ret = _objc_msgSend_56zxyn( + _class_NSMethodSignature, + _sel_signatureWithObjCTypes_, + types, + ); + return _ret.address == 0 + ? null + : NSMethodSignature.castFromPointer(_ret, retain: true, release: true); + } + + /// frameLength + int get frameLength { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_frameLength); + } + + /// getArgumentTypeAtIndex: + ffi.Pointer getArgumentTypeAtIndex(int idx) { + return _objc_msgSend_1jtxufi( + this.ref.pointer, + _sel_getArgumentTypeAtIndex_, + idx, + ); + } + + /// init + NSMethodSignature init() { + objc.checkOsVersionInternal( + 'NSMethodSignature.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// isOneway + bool isOneway() { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isOneway); + } + + /// methodReturnLength + int get methodReturnLength { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_methodReturnLength); + } + + /// methodReturnType + ffi.Pointer get methodReturnType { + return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_methodReturnType); + } + + /// numberOfArguments + int get numberOfArguments { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_numberOfArguments); + } + + /// Returns a new instance of NSMethodSignature constructed with the default `new` method. + factory NSMethodSignature() => new$(); +} + +/// NSMutableArray +class NSMutableArray extends NSArray + with collection.ListBase { + /// Creates a [NSMutableArray] of the given length with [fill] at each + /// position. + /// + /// The [length] must be a non-negative integer. + static NSMutableArray filled(int length, objc.ObjCObjectBase fill) { + final a = arrayWithCapacity(length); + for (var i = 0; i < length; ++i) a.add(fill); + return a; + } + + /// Creates a [NSMutableArray] from [elements]. + static NSMutableArray of(Iterable elements) => + arrayWithCapacity(elements.length)..addAll(elements); + + @override + set length(int newLength) { + var len = length; + RangeError.checkValueInInterval(newLength, 0, len); + for (; len > newLength; --len) removeLastObject(); + } + + @override + Iterator get iterator => _NSArrayIterator(this); + + @override + objc.ObjCObjectBase operator [](int index) => objectAtIndex(index); + + @override + void operator []=(int index, objc.ObjCObjectBase value) => + replaceObjectAtIndex(index, withObject: value); + + @override + void add(objc.ObjCObjectBase value) => addObject(value); + + NSMutableArray._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableArray] that points to the same underlying object as [other]. + NSMutableArray.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableArray] that wraps the given raw object pointer. + NSMutableArray.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableArray]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableArray, + ); + } + + /// alloc + static NSMutableArray alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_alloc); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSMutableArray allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableArray, + _sel_allocWithZone_, + zone, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// array + static NSMutableArray array() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_array); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithArray: + static NSMutableArray arrayWithArray(NSArray array$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithArray_, + array$1.ref.pointer, + ); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithCapacity: + static NSMutableArray arrayWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableArray, + _sel_arrayWithCapacity_, + numItems, + ); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObject: + static NSMutableArray arrayWithObject(objc.ObjCObjectBase anObject) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithObject_, + anObject.ref.pointer, + ); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObjects: + static NSMutableArray arrayWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObjects:count: + static NSMutableArray arrayWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + _class_NSMutableArray, + _sel_arrayWithObjects_count_, + objects, + count, + ); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSMutableArray new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_new); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableArray, + _sel_supportsSecureCoding, + ); + } + + /// addObject: + void addObject(objc.ObjCObjectBase anObject) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addObject_, + anObject.ref.pointer, + ); + } + + /// init + NSMutableArray init() { + objc.checkOsVersionInternal( + 'NSMutableArray.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray: + NSMutableArray initWithArray(NSArray array$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array$1.ref.pointer, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + NSMutableArray initWithArray$1(NSArray array$1, {required bool copyItems}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + array$1.ref.pointer, + copyItems, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCapacity: + NSMutableArray initWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSMutableArray? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects: + NSMutableArray initWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:count: + NSMutableArray initWithObjects$1( + ffi.Pointer> objects, { + required int count$1, + }) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count$1, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// insertObject:atIndex: + void insertObject(objc.ObjCObjectBase anObject, {required int atIndex}) { + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_insertObject_atIndex_, + anObject.ref.pointer, + atIndex, + ); + } + + /// removeLastObject + void removeLastObject() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeLastObject); + } + + /// removeObjectAtIndex: + void removeObjectAtIndex(int index) { + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeObjectAtIndex_, index); + } + + /// replaceObjectAtIndex:withObject: + void replaceObjectAtIndex( + int index, { + required objc.ObjCObjectBase withObject, + }) { + _objc_msgSend_1gypgok( + this.ref.pointer, + _sel_replaceObjectAtIndex_withObject_, + index, + withObject.ref.pointer, + ); + } + + /// Returns a new instance of NSMutableArray constructed with the default `new` method. + factory NSMutableArray() => new$(); +} + +/// NSMutableCopying +interface class NSMutableCopying extends objc.ObjCProtocolBase { + NSMutableCopying._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableCopying] that points to the same underlying object as [other]. + NSMutableCopying.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableCopying] that wraps the given raw object pointer. + NSMutableCopying.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableCopying]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSMutableCopying, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSMutableCopying.cast()); + + /// Builds an object that implements the NSMutableCopying protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSMutableCopying implement({ + required objc.ObjCObjectBase Function(ffi.Pointer) + mutableCopyWithZone_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSMutableCopying'); + NSMutableCopying.mutableCopyWithZone_.implement( + builder, + mutableCopyWithZone_, + ); + builder.addProtocol($protocol); + return NSMutableCopying.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSMutableCopying protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function(ffi.Pointer) + mutableCopyWithZone_, + bool $keepIsolateAlive = true, + }) { + NSMutableCopying.mutableCopyWithZone_.implement( + builder, + mutableCopyWithZone_, + ); + builder.addProtocol($protocol); + } + + /// mutableCopyWithZone: + static final mutableCopyWithZone_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function(ffi.Pointer) + >( + _protocol_NSMutableCopying, + _sel_mutableCopyWithZone_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18nsem0) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMutableCopying, + _sel_mutableCopyWithZone_, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function(ffi.Pointer) func) => + ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => func(arg1), + ), + ); +} + +/// NSMutableData +class NSMutableData extends NSData { + NSMutableData._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableData] that points to the same underlying object as [other]. + NSMutableData.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableData] that wraps the given raw object pointer. + NSMutableData.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableData]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableData, + ); + } + + /// alloc + static NSMutableData alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_alloc); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSMutableData allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableData, + _sel_allocWithZone_, + zone, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// data + static NSMutableData data() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_data); + return NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytes:length: + static NSMutableData dataWithBytes( + ffi.Pointer bytes, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + _class_NSMutableData, + _sel_dataWithBytes_length_, + bytes, + length, + ); + return NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytesNoCopy:length: + static NSMutableData dataWithBytesNoCopy( + ffi.Pointer bytes, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + _class_NSMutableData, + _sel_dataWithBytesNoCopy_length_, + bytes, + length, + ); + return NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytesNoCopy:length:freeWhenDone: + static NSMutableData dataWithBytesNoCopy$1( + ffi.Pointer bytes, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_161ne8y( + _class_NSMutableData, + _sel_dataWithBytesNoCopy_length_freeWhenDone_, + bytes, + length, + freeWhenDone, + ); + return NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithCapacity: + static NSMutableData? dataWithCapacity(int aNumItems) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableData, + _sel_dataWithCapacity_, + aNumItems, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfFile: + static NSMutableData? dataWithContentsOfFile(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableData, + _sel_dataWithContentsOfFile_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfFile:options:error: + static NSMutableData? dataWithContentsOfFile$1( + NSString path, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + _class_NSMutableData, + _sel_dataWithContentsOfFile_options_error_, + path.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfURL: + static NSMutableData? dataWithContentsOfURL(NSURL url) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableData, + _sel_dataWithContentsOfURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfURL:options:error: + static NSMutableData? dataWithContentsOfURL$1( + NSURL url, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + _class_NSMutableData, + _sel_dataWithContentsOfURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithData: + static NSMutableData dataWithData(NSData data$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableData, + _sel_dataWithData_, + data$1.ref.pointer, + ); + return NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithLength: + static NSMutableData? dataWithLength(int length) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableData, + _sel_dataWithLength_, + length, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSMutableData new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_new); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableData, + _sel_supportsSecureCoding, + ); + } + + /// compressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSMutableData? compressedDataUsingAlgorithm( + NSDataCompressionAlgorithm algorithm, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableData.compressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_compressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// decompressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSMutableData? decompressedDataUsingAlgorithm( + NSDataCompressionAlgorithm algorithm, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableData.decompressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_decompressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSMutableData init() { + objc.checkOsVersionInternal( + 'NSMutableData.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBase64EncodedData:options: + NSMutableData? initWithBase64EncodedData( + NSData base64Data, { + required NSDataBase64DecodingOptions options, + }) { + objc.checkOsVersionInternal( + 'NSMutableData.initWithBase64EncodedData:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_7kpg7m( + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedData_options_, + base64Data.ref.pointer, + options.value, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBase64EncodedString:options: + NSMutableData? initWithBase64EncodedString( + NSString base64String, { + required NSDataBase64DecodingOptions options, + }) { + objc.checkOsVersionInternal( + 'NSMutableData.initWithBase64EncodedString:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_7kpg7m( + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedString_options_, + base64String.ref.pointer, + options.value, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:length: + NSMutableData initWithBytes( + ffi.Pointer bytes$1, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_, + bytes$1, + length, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length: + NSMutableData initWithBytesNoCopy( + ffi.Pointer bytes$1, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_, + bytes$1, + length, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:deallocator: + NSMutableData initWithBytesNoCopy$1( + ffi.Pointer bytes$1, { + required int length, + objc.ObjCBlock, ffi.UnsignedLong)>? + deallocator, + }) { + objc.checkOsVersionInternal( + 'NSMutableData.initWithBytesNoCopy:length:deallocator:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_134vhyh( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_deallocator_, + bytes$1, + length, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:freeWhenDone: + NSMutableData initWithBytesNoCopy$2( + ffi.Pointer bytes$1, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_161ne8y( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_freeWhenDone_, + bytes$1, + length, + freeWhenDone, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCapacity: + NSMutableData? initWithCapacity(int capacity) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + capacity, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSMutableData? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile: + NSMutableData? initWithContentsOfFile(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:options:error: + NSMutableData? initWithContentsOfFile$1( + NSString path, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_options_error_, + path.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + NSMutableData? initWithContentsOfURL(NSURL url) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:options:error: + NSMutableData? initWithContentsOfURL$1( + NSURL url, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithData: + NSMutableData initWithData(NSData data$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data$1.ref.pointer, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithLength: + NSMutableData? initWithLength(int length) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithLength_, + length, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// length + int get length { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); + } + + /// mutableBytes + ffi.Pointer get mutableBytes { + return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_mutableBytes); + } + + /// setLength: + set length(int value) { + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_setLength_, value); + } + + /// Returns a new instance of NSMutableData constructed with the default `new` method. + factory NSMutableData() => new$(); +} + +/// NSMutableDictionary +class NSMutableDictionary extends NSDictionary { + /// Creates a [NSMutableDictionary] from [other]. + static NSDictionary of(Map other) => + NSMutableDictionary.dictionaryWithCapacity(other.length)..addAll(other); + + /// Creates a [NSMutableDictionary] from [entries]. + static NSMutableDictionary fromEntries( + Iterable> entries, + ) => + NSMutableDictionary.dictionaryWithCapacity(entries.length) + ..addEntries(entries); + + @override + void clear() => removeAllObjects(); + + @override + objc.ObjCObjectBase? remove(Object? key) { + if (key is! NSCopying) return null; + final old = this[key]; + removeObjectForKey(key); + return old; + } + + @override + void operator []=(NSCopying key, objc.ObjCObjectBase value) => + setObject(value, forKey: NSCopying.castFrom(key)); + + NSMutableDictionary._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableDictionary] that points to the same underlying object as [other]. + NSMutableDictionary.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableDictionary] that wraps the given raw object pointer. + NSMutableDictionary.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableDictionary]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableDictionary, + ); + } + + /// alloc + static NSMutableDictionary alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_alloc); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSMutableDictionary allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableDictionary, + _sel_allocWithZone_, + zone, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// dictionary + static NSMutableDictionary dictionary() { + final _ret = _objc_msgSend_151sglz( + _class_NSMutableDictionary, + _sel_dictionary, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithCapacity: + static NSMutableDictionary dictionaryWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableDictionary, + _sel_dictionaryWithCapacity_, + numItems, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithDictionary: + static NSMutableDictionary dictionaryWithDictionary(NSDictionary dict) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithDictionary_, + dict.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithObject:forKey: + static NSMutableDictionary dictionaryWithObject( + objc.ObjCObjectBase object, { + required NSCopying forKey, + }) { + final _ret = _objc_msgSend_15qeuct( + _class_NSMutableDictionary, + _sel_dictionaryWithObject_forKey_, + object.ref.pointer, + forKey.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithObjects:forKeys: + static NSMutableDictionary dictionaryWithObjects( + NSArray objects, { + required NSArray forKeys, + }) { + final _ret = _objc_msgSend_15qeuct( + _class_NSMutableDictionary, + _sel_dictionaryWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithObjects:forKeys:count: + static NSMutableDictionary dictionaryWithObjects$1( + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required int count, + }) { + final _ret = _objc_msgSend_1dydpdi( + _class_NSMutableDictionary, + _sel_dictionaryWithObjects_forKeys_count_, + objects, + forKeys, + count, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithObjectsAndKeys: + static NSMutableDictionary dictionaryWithObjectsAndKeys( + objc.ObjCObjectBase firstObject, + ) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// new + static NSMutableDictionary new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_new); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableDictionary, + _sel_supportsSecureCoding, + ); + } + + /// init + NSMutableDictionary init() { + objc.checkOsVersionInternal( + 'NSMutableDictionary.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithCapacity: + NSMutableDictionary initWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithCoder: + NSMutableDictionary? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithDictionary: + NSMutableDictionary initWithDictionary(NSDictionary otherDictionary) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_, + otherDictionary.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithDictionary:copyItems: + NSMutableDictionary initWithDictionary$1( + NSDictionary otherDictionary, { + required bool copyItems, + }) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_copyItems_, + otherDictionary.ref.pointer, + copyItems, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObjects:forKeys: + NSMutableDictionary initWithObjects( + NSArray objects, { + required NSArray forKeys, + }) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObjects:forKeys:count: + NSMutableDictionary initWithObjects$1( + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required int count$1, + }) { + final _ret = _objc_msgSend_1dydpdi( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_count_, + objects, + forKeys, + count$1, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObjectsAndKeys: + NSMutableDictionary initWithObjectsAndKeys(objc.ObjCObjectBase firstObject) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// removeObjectForKey: + void removeObjectForKey(objc.ObjCObjectBase aKey) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectForKey_, + aKey.ref.pointer, + ); + } + + /// setObject:forKey: + void setObject(objc.ObjCObjectBase anObject, {required NSCopying forKey}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_setObject_forKey_, + anObject.ref.pointer, + forKey.ref.pointer, + ); + } + + /// Returns a new instance of NSMutableDictionary constructed with the default `new` method. + factory NSMutableDictionary() => new$(); +} + +/// NSMutableIndexSet +class NSMutableIndexSet extends NSIndexSet { + NSMutableIndexSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableIndexSet] that points to the same underlying object as [other]. + NSMutableIndexSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableIndexSet] that wraps the given raw object pointer. + NSMutableIndexSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableIndexSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableIndexSet, + ); + } + + /// alloc + static NSMutableIndexSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_alloc); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSMutableIndexSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableIndexSet, + _sel_allocWithZone_, + zone, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// indexSet + static NSMutableIndexSet indexSet() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_indexSet); + return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexSetWithIndex: + static NSMutableIndexSet indexSetWithIndex(int value) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableIndexSet, + _sel_indexSetWithIndex_, + value, + ); + return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexSetWithIndexesInRange: + static NSMutableIndexSet indexSetWithIndexesInRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + _class_NSMutableIndexSet, + _sel_indexSetWithIndexesInRange_, + range, + ); + return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSMutableIndexSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_new); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableIndexSet, + _sel_supportsSecureCoding, + ); + } + + /// addIndex: + void addIndex(int value) { + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_addIndex_, value); + } + + /// addIndexes: + void addIndexes(NSIndexSet indexSet) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addIndexes_, + indexSet.ref.pointer, + ); + } + + /// addIndexesInRange: + void addIndexesInRange(NSRange range) { + _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_addIndexesInRange_, range); + } + + /// init + NSMutableIndexSet init() { + objc.checkOsVersionInternal( + 'NSMutableIndexSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithCoder: + NSMutableIndexSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithIndex: + NSMutableIndexSet initWithIndex(int value) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithIndex_, + value, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithIndexSet: + NSMutableIndexSet initWithIndexSet(NSIndexSet indexSet$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithIndexSet_, + indexSet$1.ref.pointer, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithIndexesInRange: + NSMutableIndexSet initWithIndexesInRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + this.ref.retainAndReturnPointer(), + _sel_initWithIndexesInRange_, + range, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// removeAllIndexes + void removeAllIndexes() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllIndexes); + } + + /// removeIndex: + void removeIndex(int value) { + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeIndex_, value); + } + + /// removeIndexes: + void removeIndexes(NSIndexSet indexSet) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeIndexes_, + indexSet.ref.pointer, + ); + } + + /// removeIndexesInRange: + void removeIndexesInRange(NSRange range) { + _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeIndexesInRange_, range); + } + + /// shiftIndexesStartingAtIndex:by: + void shiftIndexesStartingAtIndex(int index, {required int by}) { + _objc_msgSend_otx1t4( + this.ref.pointer, + _sel_shiftIndexesStartingAtIndex_by_, + index, + by, + ); + } + + /// Returns a new instance of NSMutableIndexSet constructed with the default `new` method. + factory NSMutableIndexSet() => new$(); +} + +/// NSMutableOrderedSet +class NSMutableOrderedSet extends NSOrderedSet { + NSMutableOrderedSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } + + /// Constructs a [NSMutableOrderedSet] that points to the same underlying object as [other]. + NSMutableOrderedSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableOrderedSet] that wraps the given raw object pointer. + NSMutableOrderedSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableOrderedSet, + ); + } + + /// alloc + static NSMutableOrderedSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_alloc); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSMutableOrderedSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableOrderedSet, + _sel_allocWithZone_, + zone, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// new + static NSMutableOrderedSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_new); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// orderedSet + static NSMutableOrderedSet orderedSet() { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSMutableOrderedSet, + _sel_orderedSet, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithArray: + static NSMutableOrderedSet orderedSetWithArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithArray_, + array.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithArray:range:copyItems: + static NSMutableOrderedSet orderedSetWithArray$1( + NSArray array, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + _class_NSMutableOrderedSet, + _sel_orderedSetWithArray_range_copyItems_, + array.ref.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithCapacity: + static NSMutableOrderedSet orderedSetWithCapacity(int numItems) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithCapacity:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableOrderedSet, + _sel_orderedSetWithCapacity_, + numItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithObject: + static NSMutableOrderedSet orderedSetWithObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObject_, + object.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithObjects: + static NSMutableOrderedSet orderedSetWithObjects( + objc.ObjCObjectBase firstObj, + ) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithObjects:count: + static NSMutableOrderedSet orderedSetWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObjects_count_, + objects, + count, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithOrderedSet: + static NSMutableOrderedSet orderedSetWithOrderedSet(NSOrderedSet set$) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithOrderedSet_, + set$.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithOrderedSet:range:copyItems: + static NSMutableOrderedSet orderedSetWithOrderedSet$1( + NSOrderedSet set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + _class_NSMutableOrderedSet, + _sel_orderedSetWithOrderedSet_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithSet: + static NSMutableOrderedSet orderedSetWithSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithSet_, + set$.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithSet:copyItems: + static NSMutableOrderedSet orderedSetWithSet$1( + NSSet set$, { + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSMutableOrderedSet, + _sel_orderedSetWithSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableOrderedSet, + _sel_supportsSecureCoding, + ); + } + + /// autorelease + NSMutableOrderedSet autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// init + NSMutableOrderedSet init() { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithArray: + NSMutableOrderedSet initWithArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithArray:copyItems: + NSMutableOrderedSet initWithArray$1(NSArray set$, {required bool copyItems}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithArray:range:copyItems: + NSMutableOrderedSet initWithArray$2( + NSArray set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithCapacity: + NSMutableOrderedSet initWithCapacity(int numItems) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithCapacity:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithCoder: + NSMutableOrderedSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObject: + NSMutableOrderedSet initWithObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_, + object.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObjects: + NSMutableOrderedSet initWithObjects(objc.ObjCObjectBase firstObj) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObjects:count: + NSMutableOrderedSet initWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithOrderedSet: + NSMutableOrderedSet initWithOrderedSet(NSOrderedSet set$) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_, + set$.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithOrderedSet:copyItems: + NSMutableOrderedSet initWithOrderedSet$1( + NSOrderedSet set$, { + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithOrderedSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithOrderedSet:range:copyItems: + NSMutableOrderedSet initWithOrderedSet$2( + NSOrderedSet set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithSet: + NSMutableOrderedSet initWithSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set$.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithSet:copyItems: + NSMutableOrderedSet initWithSet$1(NSSet set$, {required bool copyItems}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// insertObject:atIndex: + void insertObject(objc.ObjCObjectBase object, {required int atIndex}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.insertObject:atIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_insertObject_atIndex_, + object.ref.pointer, + atIndex, + ); + } + + /// removeObjectAtIndex: + void removeObjectAtIndex(int idx) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectAtIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeObjectAtIndex_, idx); + } + + /// replaceObjectAtIndex:withObject: + void replaceObjectAtIndex( + int idx, { + required objc.ObjCObjectBase withObject, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.replaceObjectAtIndex:withObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1gypgok( + this.ref.pointer, + _sel_replaceObjectAtIndex_withObject_, + idx, + withObject.ref.pointer, + ); + } + + /// retain + NSMutableOrderedSet retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// self + NSMutableOrderedSet self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// Returns a new instance of NSMutableOrderedSet constructed with the default `new` method. + factory NSMutableOrderedSet() => new$(); +} + +/// NSMutableSet +class NSMutableSet extends NSSet { + /// Creates a [NSMutableSet] from [elements]. + static NSMutableSet of(Iterable elements) => + setWithCapacity(elements.length)..addAll(elements); + + @override + bool add(objc.ObjCObjectBase value) { + final alreadyContains = contains(value); + addObject(value); + return !alreadyContains; + } + + @override + bool remove(Object? value) { + if (value is! objc.ObjCObjectBase) return false; + final alreadyContains = contains(value); + removeObject(value); + return alreadyContains; + } + + @override + void clear() => removeAllObjects(); + + NSMutableSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableSet] that points to the same underlying object as [other]. + NSMutableSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableSet] that wraps the given raw object pointer. + NSMutableSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableSet, + ); + } + + /// alloc + static NSMutableSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_alloc); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSMutableSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableSet, + _sel_allocWithZone_, + zone, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSMutableSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_new); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// set + static NSMutableSet set$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_set); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithArray: + static NSMutableSet setWithArray(NSArray array) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableSet, + _sel_setWithArray_, + array.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithCapacity: + static NSMutableSet setWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableSet, + _sel_setWithCapacity_, + numItems, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObject: + static NSMutableSet setWithObject(objc.ObjCObjectBase object) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableSet, + _sel_setWithObject_, + object.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObjects: + static NSMutableSet setWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableSet, + _sel_setWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObjects:count: + static NSMutableSet setWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + _class_NSMutableSet, + _sel_setWithObjects_count_, + objects, + count, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithSet: + static NSMutableSet setWithSet(NSSet set$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableSet, + _sel_setWithSet_, + set$1.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSMutableSet, _sel_supportsSecureCoding); + } + + /// addObject: + void addObject(objc.ObjCObjectBase object) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addObject_, object.ref.pointer); + } + + /// init + NSMutableSet init() { + objc.checkOsVersionInternal( + 'NSMutableSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray: + NSMutableSet initWithArray(NSArray array) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCapacity: + NSMutableSet initWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSMutableSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects: + NSMutableSet initWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:count: + NSMutableSet initWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet: + NSMutableSet initWithSet(NSSet set$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set$1.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + NSMutableSet initWithSet$1(NSSet set$1, {required bool copyItems}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set$1.ref.pointer, + copyItems, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// removeObject: + void removeObject(objc.ObjCObjectBase object) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObject_, + object.ref.pointer, + ); + } + + /// Returns a new instance of NSMutableSet constructed with the default `new` method. + factory NSMutableSet() => new$(); +} + +/// NSMutableString +class NSMutableString extends NSString { + NSMutableString._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableString] that points to the same underlying object as [other]. + NSMutableString.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableString] that wraps the given raw object pointer. + NSMutableString.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableString]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableString, + ); + } + + /// alloc + static NSMutableString alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_alloc); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSMutableString allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableString, + _sel_allocWithZone_, + zone, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// localizedStringWithFormat: + static NSMutableString localizedStringWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableString, + _sel_localizedStringWithFormat_, + format.ref.pointer, + ); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: + static NSMutableString? localizedStringWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSMutableString, + _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSMutableString new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_new); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static NSMutableString? objectWithItemProviderData( + NSData data, { + required NSString typeIdentifier, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableString.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSMutableString, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// string + static NSMutableString string() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_string); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithCString:encoding: + static NSMutableString? stringWithCString( + ffi.Pointer cString, { + required int encoding, + }) { + final _ret = _objc_msgSend_erqryg( + _class_NSMutableString, + _sel_stringWithCString_encoding_, + cString, + encoding, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithCharacters:length: + static NSMutableString stringWithCharacters( + ffi.Pointer characters, { + required int length, + }) { + final _ret = _objc_msgSend_9x4k8x( + _class_NSMutableString, + _sel_stringWithCharacters_length_, + characters, + length, + ); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfFile:encoding:error: + static NSMutableString? stringWithContentsOfFile( + NSString path, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + _class_NSMutableString, + _sel_stringWithContentsOfFile_encoding_error_, + path.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfFile:usedEncoding:error: + static NSMutableString? stringWithContentsOfFile$1( + NSString path, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + _class_NSMutableString, + _sel_stringWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfURL:encoding:error: + static NSMutableString? stringWithContentsOfURL( + NSURL url, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + _class_NSMutableString, + _sel_stringWithContentsOfURL_encoding_error_, + url.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfURL:usedEncoding:error: + static NSMutableString? stringWithContentsOfURL$1( + NSURL url, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + _class_NSMutableString, + _sel_stringWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithFormat: + static NSMutableString stringWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableString, + _sel_stringWithFormat_, + format.ref.pointer, + ); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithString: + static NSMutableString stringWithString(NSString string$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableString, + _sel_stringWithString_, + string$1.ref.pointer, + ); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithUTF8String: + static NSMutableString? stringWithUTF8String( + ffi.Pointer nullTerminatedCString, + ) { + final _ret = _objc_msgSend_56zxyn( + _class_NSMutableString, + _sel_stringWithUTF8String_, + nullTerminatedCString, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithValidatedFormat:validFormatSpecifiers:error: + static NSMutableString? stringWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableString.stringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSMutableString, + _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableString, + _sel_supportsSecureCoding, + ); + } + + /// autorelease + NSMutableString autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSMutableString init() { + objc.checkOsVersionInternal( + 'NSMutableString.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:length:encoding: + NSMutableString? initWithBytes( + ffi.Pointer bytes, { + required int length, + required int encoding, + }) { + final _ret = _objc_msgSend_9b3h4v( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_encoding_, + bytes, + length, + encoding, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:encoding:deallocator: + NSMutableString? initWithBytesNoCopy( + ffi.Pointer bytes, { + required int length, + required int encoding, + objc.ObjCBlock, ffi.UnsignedLong)>? + deallocator, + }) { + final _ret = _objc_msgSend_1lbgrac( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_encoding_deallocator_, + bytes, + length, + encoding, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:encoding:freeWhenDone: + NSMutableString? initWithBytesNoCopy$1( + ffi.Pointer bytes, { + required int length, + required int encoding, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_k4j8m3( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, + bytes, + length, + encoding, + freeWhenDone, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCString:encoding: + NSMutableString? initWithCString( + ffi.Pointer nullTerminatedCString, { + required int encoding, + }) { + final _ret = _objc_msgSend_erqryg( + this.ref.retainAndReturnPointer(), + _sel_initWithCString_encoding_, + nullTerminatedCString, + encoding, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharacters:length: + NSMutableString initWithCharacters( + ffi.Pointer characters, { + required int length, + }) { + final _ret = _objc_msgSend_9x4k8x( + this.ref.retainAndReturnPointer(), + _sel_initWithCharacters_length_, + characters, + length, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharactersNoCopy:length:deallocator: + NSMutableString initWithCharactersNoCopy( + ffi.Pointer chars, { + required int length, + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >? + deallocator, + }) { + final _ret = _objc_msgSend_talwei( + this.ref.retainAndReturnPointer(), + _sel_initWithCharactersNoCopy_length_deallocator_, + chars, + length, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharactersNoCopy:length:freeWhenDone: + NSMutableString initWithCharactersNoCopy$1( + ffi.Pointer characters, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_lh0jh5( + this.ref.retainAndReturnPointer(), + _sel_initWithCharactersNoCopy_length_freeWhenDone_, + characters, + length, + freeWhenDone, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSMutableString? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:encoding:error: + NSMutableString? initWithContentsOfFile( + NSString path, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_encoding_error_, + path.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:usedEncoding:error: + NSMutableString? initWithContentsOfFile$1( + NSString path, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:encoding:error: + NSMutableString? initWithContentsOfURL( + NSURL url, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_encoding_error_, + url.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:usedEncoding:error: + NSMutableString? initWithContentsOfURL$1( + NSURL url, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithData:encoding: + NSMutableString? initWithData(NSData data, {required int encoding}) { + final _ret = _objc_msgSend_1k4kd9s( + this.ref.retainAndReturnPointer(), + _sel_initWithData_encoding_, + data.ref.pointer, + encoding, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFormat: + NSMutableString initWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_, + format.ref.pointer, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFormat:locale: + NSMutableString initWithFormat$1( + NSString format, { + objc.ObjCObjectBase? locale, + }) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_locale_, + format.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithString: + NSMutableString initWithString(NSString aString) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithString_, + aString.ref.pointer, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUTF8String: + NSMutableString? initWithUTF8String( + ffi.Pointer nullTerminatedCString, + ) { + final _ret = _objc_msgSend_56zxyn( + this.ref.retainAndReturnPointer(), + _sel_initWithUTF8String_, + nullTerminatedCString, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithValidatedFormat:validFormatSpecifiers:error: + /// + /// iOS: introduced 16.0.0 + /// macOS: introduced 13.0.0 + NSMutableString? initWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithValidatedFormat:validFormatSpecifiers:locale:error: + /// + /// iOS: introduced 16.0.0 + /// macOS: introduced 13.0.0 + NSMutableString? initWithValidatedFormat$1( + NSString format, { + required NSString validFormatSpecifiers, + objc.ObjCObjectBase? locale, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + final _ret = _objc_msgSend_1k0ezzm( + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// replaceCharactersInRange:withString: + void replaceCharactersInRange(NSRange range, {required NSString withString}) { + _objc_msgSend_1tv4uax( + this.ref.pointer, + _sel_replaceCharactersInRange_withString_, + range, + withString.ref.pointer, + ); + } + + /// retain + NSMutableString retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSMutableString self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSMutableString constructed with the default `new` method. + factory NSMutableString() => new$(); +} + +/// NSNotification +class NSNotification extends NSObject implements NSCopying, NSCoding { + NSNotification._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSNotification] that points to the same underlying object as [other]. + NSNotification.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSNotification] that wraps the given raw object pointer. + NSNotification.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSNotification]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSNotification, + ); + } + + /// alloc + static NSNotification alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSNotification, _sel_alloc); + return NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSNotification allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSNotification, + _sel_allocWithZone_, + zone, + ); + return NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSNotification new$() { + final _ret = _objc_msgSend_151sglz(_class_NSNotification, _sel_new); + return NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// notificationWithName:object: + static NSNotification notificationWithName( + NSString aName, { + objc.ObjCObjectBase? object, + }) { + final _ret = _objc_msgSend_15qeuct( + _class_NSNotification, + _sel_notificationWithName_object_, + aName.ref.pointer, + object?.ref.pointer ?? ffi.nullptr, + ); + return NSNotification.castFromPointer(_ret, retain: true, release: true); + } + + /// notificationWithName:object:userInfo: + static NSNotification notificationWithName$1( + NSString aName, { + objc.ObjCObjectBase? object, + NSDictionary? userInfo, + }) { + final _ret = _objc_msgSend_11spmsz( + _class_NSNotification, + _sel_notificationWithName_object_userInfo_, + aName.ref.pointer, + object?.ref.pointer ?? ffi.nullptr, + userInfo?.ref.pointer ?? ffi.nullptr, + ); + return NSNotification.castFromPointer(_ret, retain: true, release: true); + } + + /// autorelease + NSNotification autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSNotification.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSNotification init() { + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSNotification? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithName:object:userInfo: + NSNotification initWithName( + NSString name, { + objc.ObjCObjectBase? object, + NSDictionary? userInfo, + }) { + objc.checkOsVersionInternal( + 'NSNotification.initWithName:object:userInfo:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_11spmsz( + this.ref.retainAndReturnPointer(), + _sel_initWithName_object_userInfo_, + name.ref.pointer, + object?.ref.pointer ?? ffi.nullptr, + userInfo?.ref.pointer ?? ffi.nullptr, + ); + return NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// name + NSString get name { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_name); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// object + objc.ObjCObjectBase? get object { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_object); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// retain + NSNotification retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSNotification.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSNotification self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSNotification.castFromPointer(_ret, retain: true, release: true); + } + + /// userInfo + NSDictionary? get userInfo { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); + return _ret.address == 0 + ? null + : NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSNotification constructed with the default `new` method. + factory NSNotification() => new$(); +} + +/// NSNumber +class NSNumber extends NSValue { + NSNumber._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSNumber] that points to the same underlying object as [other]. + NSNumber.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSNumber] that wraps the given raw object pointer. + NSNumber.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSNumber]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSNumber, + ); + } + + /// alloc + static NSNumber alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSNumber, _sel_alloc); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSNumber allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSNumber, + _sel_allocWithZone_, + zone, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSNumber new$() { + final _ret = _objc_msgSend_151sglz(_class_NSNumber, _sel_new); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSNumber, _sel_supportsSecureCoding); + } + + /// boolValue + bool get boolValue { + return _objc_msgSend_91o635(this.ref.pointer, _sel_boolValue); + } + + /// charValue + int get charValue { + return _objc_msgSend_xmlz1t(this.ref.pointer, _sel_charValue); + } + + /// compare: + NSComparisonResult compare(NSNumber otherNumber) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_compare_, + otherNumber.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// doubleValue + double get doubleValue { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_doubleValue) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_doubleValue); + } + + /// floatValue + double get floatValue { + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(this.ref.pointer, _sel_floatValue) + : _objc_msgSend_2cgrxl(this.ref.pointer, _sel_floatValue); + } + + /// init + NSNumber init() { + objc.checkOsVersionInternal( + 'NSNumber.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBool: + NSNumber initWithBool(bool value) { + final _ret = _objc_msgSend_1t6aok9( + this.ref.retainAndReturnPointer(), + _sel_initWithBool_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:objCType: + NSNumber initWithBytes( + ffi.Pointer value, { + required ffi.Pointer objCType, + }) { + final _ret = _objc_msgSend_e9mncn( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_objCType_, + value, + objCType, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithChar: + NSNumber initWithChar(int value) { + final _ret = _objc_msgSend_13mclwd( + this.ref.retainAndReturnPointer(), + _sel_initWithChar_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSNumber? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithDouble: + NSNumber initWithDouble(double value) { + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithDouble_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFloat: + NSNumber initWithFloat(double value) { + final _ret = _objc_msgSend_et8cuh( + this.ref.retainAndReturnPointer(), + _sel_initWithFloat_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithInt: + NSNumber initWithInt(int value) { + final _ret = _objc_msgSend_14hvw5k( + this.ref.retainAndReturnPointer(), + _sel_initWithInt_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithInteger: + NSNumber initWithInteger(int value) { + objc.checkOsVersionInternal( + 'NSNumber.initWithInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_qugqlf( + this.ref.retainAndReturnPointer(), + _sel_initWithInteger_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithLong: + NSNumber initWithLong(int value) { + final _ret = _objc_msgSend_qugqlf( + this.ref.retainAndReturnPointer(), + _sel_initWithLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithLongLong: + NSNumber initWithLongLong(int value) { + final _ret = _objc_msgSend_16f0drb( + this.ref.retainAndReturnPointer(), + _sel_initWithLongLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithShort: + NSNumber initWithShort(int value) { + final _ret = _objc_msgSend_68x6r1( + this.ref.retainAndReturnPointer(), + _sel_initWithShort_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedChar: + NSNumber initWithUnsignedChar(int value) { + final _ret = _objc_msgSend_7uautw( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedChar_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedInt: + NSNumber initWithUnsignedInt(int value) { + final _ret = _objc_msgSend_degb40( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedInt_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedInteger: + NSNumber initWithUnsignedInteger(int value) { + objc.checkOsVersionInternal( + 'NSNumber.initWithUnsignedInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedInteger_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedLong: + NSNumber initWithUnsignedLong(int value) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedLongLong: + NSNumber initWithUnsignedLongLong(int value) { + final _ret = _objc_msgSend_1x2hskc( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedLongLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedShort: + NSNumber initWithUnsignedShort(int value) { + final _ret = _objc_msgSend_1njucl2( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedShort_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// intValue + int get intValue { + return _objc_msgSend_13yqbb6(this.ref.pointer, _sel_intValue); + } + + /// integerValue + int get integerValue { + objc.checkOsVersionInternal( + 'NSNumber.integerValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_integerValue); + } + + /// isEqualToNumber: + bool isEqualToNumber(NSNumber number) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToNumber_, + number.ref.pointer, + ); + } + + /// longLongValue + int get longLongValue { + return _objc_msgSend_1k101e3(this.ref.pointer, _sel_longLongValue); + } + + /// longValue + int get longValue { + return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_longValue); + } + + /// shortValue + int get shortValue { + return _objc_msgSend_1jwityx(this.ref.pointer, _sel_shortValue); + } + + /// stringValue + NSString get stringValue { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_stringValue); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// unsignedCharValue + int get unsignedCharValue { + return _objc_msgSend_1ko4qka(this.ref.pointer, _sel_unsignedCharValue); + } + + /// unsignedIntValue + int get unsignedIntValue { + return _objc_msgSend_3pyzne(this.ref.pointer, _sel_unsignedIntValue); + } + + /// unsignedIntegerValue + int get unsignedIntegerValue { + objc.checkOsVersionInternal( + 'NSNumber.unsignedIntegerValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_unsignedIntegerValue); + } + + /// unsignedLongLongValue + int get unsignedLongLongValue { + return _objc_msgSend_1p4gbjy(this.ref.pointer, _sel_unsignedLongLongValue); + } + + /// unsignedLongValue + int get unsignedLongValue { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_unsignedLongValue); + } + + /// unsignedShortValue + int get unsignedShortValue { + return _objc_msgSend_ud8gg(this.ref.pointer, _sel_unsignedShortValue); + } + + /// Returns a new instance of NSNumber constructed with the default `new` method. + factory NSNumber() => new$(); +} + +/// NSNumberCreation +extension NSNumberCreation on NSNumber { + /// numberWithBool: + static NSNumber numberWithBool(bool value) { + final _ret = _objc_msgSend_1t6aok9( + _class_NSNumber, + _sel_numberWithBool_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithChar: + static NSNumber numberWithChar(int value) { + final _ret = _objc_msgSend_13mclwd( + _class_NSNumber, + _sel_numberWithChar_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithDouble: + static NSNumber numberWithDouble(double value) { + final _ret = _objc_msgSend_oa8mke( + _class_NSNumber, + _sel_numberWithDouble_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithFloat: + static NSNumber numberWithFloat(double value) { + final _ret = _objc_msgSend_et8cuh( + _class_NSNumber, + _sel_numberWithFloat_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithInt: + static NSNumber numberWithInt(int value) { + final _ret = _objc_msgSend_14hvw5k( + _class_NSNumber, + _sel_numberWithInt_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithInteger: + static NSNumber numberWithInteger(int value) { + objc.checkOsVersionInternal( + 'NSNumber.numberWithInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_qugqlf( + _class_NSNumber, + _sel_numberWithInteger_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithLong: + static NSNumber numberWithLong(int value) { + final _ret = _objc_msgSend_qugqlf( + _class_NSNumber, + _sel_numberWithLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithLongLong: + static NSNumber numberWithLongLong(int value) { + final _ret = _objc_msgSend_16f0drb( + _class_NSNumber, + _sel_numberWithLongLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithShort: + static NSNumber numberWithShort(int value) { + final _ret = _objc_msgSend_68x6r1( + _class_NSNumber, + _sel_numberWithShort_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedChar: + static NSNumber numberWithUnsignedChar(int value) { + final _ret = _objc_msgSend_7uautw( + _class_NSNumber, + _sel_numberWithUnsignedChar_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedInt: + static NSNumber numberWithUnsignedInt(int value) { + final _ret = _objc_msgSend_degb40( + _class_NSNumber, + _sel_numberWithUnsignedInt_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedInteger: + static NSNumber numberWithUnsignedInteger(int value) { + objc.checkOsVersionInternal( + 'NSNumber.numberWithUnsignedInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + _class_NSNumber, + _sel_numberWithUnsignedInteger_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedLong: + static NSNumber numberWithUnsignedLong(int value) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSNumber, + _sel_numberWithUnsignedLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedLongLong: + static NSNumber numberWithUnsignedLongLong(int value) { + final _ret = _objc_msgSend_1x2hskc( + _class_NSNumber, + _sel_numberWithUnsignedLongLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedShort: + static NSNumber numberWithUnsignedShort(int value) { + final _ret = _objc_msgSend_1njucl2( + _class_NSNumber, + _sel_numberWithUnsignedShort_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } +} + +/// NSObject +class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { + NSObject._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSObject', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSObject] that points to the same underlying object as [other]. + NSObject.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSObject] that wraps the given raw object pointer. + NSObject.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSObject]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSObject, + ); + } + + /// alloc + static NSObject alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_alloc); + return NSObject.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSObject allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSObject, + _sel_allocWithZone_, + zone, + ); + return NSObject.castFromPointer(_ret, retain: false, release: true); + } + + /// class + static objc.ObjCObjectBase class$() { + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_class); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// conformsToProtocol: + static bool conformsToProtocol(Protocol protocol) { + objc.checkOsVersionInternal( + 'NSObject.conformsToProtocol:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _class_NSObject, + _sel_conformsToProtocol_, + protocol.ref.pointer, + ); + } + + /// copyWithZone: + static objc.ObjCObjectBase copyWithZone(ffi.Pointer zone) { + objc.checkOsVersionInternal( + 'NSObject.copyWithZone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1cwp428( + _class_NSObject, + _sel_copyWithZone_, + zone, + ); + return objc.ObjCObjectBase(_ret, retain: false, release: true); + } + + /// debugDescription + static NSString debugDescription() { + objc.checkOsVersionInternal( + 'NSObject.debugDescription', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_debugDescription); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// description + static NSString description() { + objc.checkOsVersionInternal( + 'NSObject.description', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// hash + static int hash() { + objc.checkOsVersionInternal( + 'NSObject.hash', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_xw2lbc(_class_NSObject, _sel_hash); + } + + /// initialize + static void initialize() { + objc.checkOsVersionInternal( + 'NSObject.initialize', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_class_NSObject, _sel_initialize); + } + + /// instanceMethodForSelector: + static ffi.Pointer> + instanceMethodForSelector(ffi.Pointer aSelector) { + objc.checkOsVersionInternal( + 'NSObject.instanceMethodForSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1pa9f4m( + _class_NSObject, + _sel_instanceMethodForSelector_, + aSelector, + ); + } + + /// instanceMethodSignatureForSelector: + static NSMethodSignature instanceMethodSignatureForSelector( + ffi.Pointer aSelector, + ) { + final _ret = _objc_msgSend_3ctkt6( + _class_NSObject, + _sel_instanceMethodSignatureForSelector_, + aSelector, + ); + return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); + } + + /// instancesRespondToSelector: + static bool instancesRespondToSelector( + ffi.Pointer aSelector, + ) { + objc.checkOsVersionInternal( + 'NSObject.instancesRespondToSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1srf6wk( + _class_NSObject, + _sel_instancesRespondToSelector_, + aSelector, + ); + } + + /// isSubclassOfClass: + static bool isSubclassOfClass(objc.ObjCObjectBase aClass) { + objc.checkOsVersionInternal( + 'NSObject.isSubclassOfClass:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _class_NSObject, + _sel_isSubclassOfClass_, + aClass.ref.pointer, + ); + } + + /// load + static void load() { + objc.checkOsVersionInternal( + 'NSObject.load', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_class_NSObject, _sel_load); + } + + /// mutableCopyWithZone: + static objc.ObjCObjectBase mutableCopyWithZone(ffi.Pointer zone) { + objc.checkOsVersionInternal( + 'NSObject.mutableCopyWithZone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1cwp428( + _class_NSObject, + _sel_mutableCopyWithZone_, + zone, + ); + return objc.ObjCObjectBase(_ret, retain: false, release: true); + } + + /// new + static NSObject new$() { + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_new); + return NSObject.castFromPointer(_ret, retain: false, release: true); + } + + /// resolveClassMethod: + static bool resolveClassMethod(ffi.Pointer sel) { + objc.checkOsVersionInternal( + 'NSObject.resolveClassMethod:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1srf6wk( + _class_NSObject, + _sel_resolveClassMethod_, + sel, + ); + } + + /// resolveInstanceMethod: + static bool resolveInstanceMethod(ffi.Pointer sel) { + objc.checkOsVersionInternal( + 'NSObject.resolveInstanceMethod:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1srf6wk( + _class_NSObject, + _sel_resolveInstanceMethod_, + sel, + ); + } + + /// superclass + static objc.ObjCObjectBase superclass() { + objc.checkOsVersionInternal( + 'NSObject.superclass', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_superclass); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// autorelease + NSObject autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSObject.castFromPointer(_ret, retain: true, release: true); + } + + /// class + objc.ObjCObjectBase class$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_class); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// conformsToProtocol: + bool conformsToProtocol$1(Protocol aProtocol) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_conformsToProtocol_, + aProtocol.ref.pointer, + ); + } + + /// copy + objc.ObjCObjectBase copy() { + objc.checkOsVersionInternal( + 'NSObject.copy', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_copy); + return objc.ObjCObjectBase(_ret, retain: false, release: true); + } + + /// dealloc + void dealloc() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); + } + + /// debugDescription + NSString get debugDescription$1 { + if (!objc.respondsToSelector(this.ref.pointer, _sel_debugDescription)) { + throw objc.UnimplementedOptionalMethodException( + 'NSObject', + 'debugDescription', + ); + } + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_debugDescription); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// description + NSString get description$1 { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// doesNotRecognizeSelector: + void doesNotRecognizeSelector(ffi.Pointer aSelector) { + objc.checkOsVersionInternal( + 'NSObject.doesNotRecognizeSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1d9e4oe( + this.ref.pointer, + _sel_doesNotRecognizeSelector_, + aSelector, + ); + } + + /// forwardInvocation: + void forwardInvocation(NSInvocation anInvocation) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_forwardInvocation_, + anInvocation.ref.pointer, + ); + } + + /// forwardingTargetForSelector: + objc.ObjCObjectBase forwardingTargetForSelector( + ffi.Pointer aSelector, + ) { + objc.checkOsVersionInternal( + 'NSObject.forwardingTargetForSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_forwardingTargetForSelector_, + aSelector, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// hash + int get hash$1 { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_hash); + } + + /// init + NSObject init() { + objc.checkOsVersionInternal( + 'NSObject.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSObject.castFromPointer(_ret, retain: false, release: true); + } + + /// isEqual: + bool isEqual(objc.ObjCObjectBase object) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqual_, + object.ref.pointer, + ); + } + + /// isKindOfClass: + bool isKindOfClass(objc.ObjCObjectBase aClass) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isKindOfClass_, + aClass.ref.pointer, + ); + } + + /// isMemberOfClass: + bool isMemberOfClass(objc.ObjCObjectBase aClass) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isMemberOfClass_, + aClass.ref.pointer, + ); + } + + /// isProxy + bool isProxy() { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isProxy); + } + + /// methodForSelector: + ffi.Pointer> methodForSelector( + ffi.Pointer aSelector, + ) { + objc.checkOsVersionInternal( + 'NSObject.methodForSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1pa9f4m( + this.ref.pointer, + _sel_methodForSelector_, + aSelector, + ); + } + + /// methodSignatureForSelector: + NSMethodSignature methodSignatureForSelector( + ffi.Pointer aSelector, + ) { + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_methodSignatureForSelector_, + aSelector, + ); + return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); + } + + /// mutableCopy + objc.ObjCObjectBase mutableCopy() { + objc.checkOsVersionInternal( + 'NSObject.mutableCopy', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_mutableCopy); + return objc.ObjCObjectBase(_ret, retain: false, release: true); + } + + /// performSelector: + objc.ObjCObjectBase performSelector( + ffi.Pointer aSelector, + ) { + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_performSelector_, + aSelector, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// performSelector:withObject: + objc.ObjCObjectBase performSelector$1( + ffi.Pointer aSelector, { + required objc.ObjCObjectBase withObject, + }) { + final _ret = _objc_msgSend_gx50so( + this.ref.pointer, + _sel_performSelector_withObject_, + aSelector, + withObject.ref.pointer, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// performSelector:withObject:withObject: + objc.ObjCObjectBase performSelector$2( + ffi.Pointer aSelector, { + required objc.ObjCObjectBase withObject, + required objc.ObjCObjectBase withObject$1, + }) { + final _ret = _objc_msgSend_cfx8ce( + this.ref.pointer, + _sel_performSelector_withObject_withObject_, + aSelector, + withObject.ref.pointer, + withObject$1.ref.pointer, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// release + void release() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_release); + } + + /// respondsToSelector: + bool respondsToSelector(ffi.Pointer aSelector) { + return _objc_msgSend_1srf6wk( + this.ref.pointer, + _sel_respondsToSelector_, + aSelector, + ); + } + + /// retain + NSObject retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSObject.castFromPointer(_ret, retain: true, release: true); + } + + /// retainCount + int retainCount() { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_retainCount); + } + + /// self + NSObject self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSObject.castFromPointer(_ret, retain: true, release: true); + } + + /// superclass + objc.ObjCObjectBase get superclass$1 { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_superclass); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// zone + ffi.Pointer zone() { + return _objc_msgSend_sz90oi(this.ref.pointer, _sel_zone); + } + + /// Returns a new instance of NSObject constructed with the default `new` method. + factory NSObject() => new$(); +} + +/// NSObject +interface class NSObjectProtocol extends objc.ObjCProtocolBase { + NSObjectProtocol._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSObjectProtocol] that points to the same underlying object as [other]. + NSObjectProtocol.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSObjectProtocol] that wraps the given raw object pointer. + NSObjectProtocol.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSObjectProtocol]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSObject, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSObject.cast()); + + /// Builds an object that implements the NSObject protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSObjectProtocol implement({ + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implement(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + return NSObjectProtocol.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSObject protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implement(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSObject protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSObjectProtocol implementAsListener({ + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implementAsListener(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + return NSObjectProtocol.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSObject protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implementAsListener(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSObject protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSObjectProtocol implementAsBlocking({ + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implementAsBlocking(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + return NSObjectProtocol.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSObject protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implementAsBlocking(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + } + + /// autorelease + static final autorelease = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_autorelease, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_autorelease, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// class + static final class$ = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_class, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_class, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// conformsToProtocol: + static final conformsToProtocol_ = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_conformsToProtocol_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_conformsToProtocol_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(Protocol) func) => + ObjCBlock_bool_ffiVoid_Protocol.fromFunction( + (ffi.Pointer _, Protocol arg1) => func(arg1), + ), + ); + + /// debugDescription + static final debugDescription = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_debugDescription, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_debugDescription, + isRequired: false, + isInstanceMethod: true, + ), + (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// description + static final description = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_description, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_description, + isRequired: true, + isInstanceMethod: true, + ), + (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// hash + static final hash = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_hash, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1ckyi24) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_hash, + isRequired: true, + isInstanceMethod: true, + ), + (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// isEqual: + static final isEqual_ = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_isEqual_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isEqual_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.ObjCObjectBase) func) => + ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( + (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), + ), + ); + + /// isKindOfClass: + static final isKindOfClass_ = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_isKindOfClass_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isKindOfClass_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.ObjCObjectBase) func) => + ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( + (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), + ), + ); + + /// isMemberOfClass: + static final isMemberOfClass_ = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_isMemberOfClass_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isMemberOfClass_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.ObjCObjectBase) func) => + ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( + (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), + ), + ); + + /// isProxy + static final isProxy = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_isProxy, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isProxy, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// performSelector: + static final performSelector_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function(ffi.Pointer) + >( + _protocol_NSObject, + _sel_performSelector_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_50as9u) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_performSelector_, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function(ffi.Pointer) func) => + ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + ); + + /// performSelector:withObject: + static final performSelector_withObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + >( + _protocol_NSObject, + _sel_performSelector_withObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mllhpc) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_performSelector_withObject_, + isRequired: true, + isInstanceMethod: true, + ), + ( + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + func, + ) => + ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + ) => func(arg1, arg2), + ), + ); + + /// performSelector:withObject:withObject: + static final performSelector_withObject_withObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + >( + _protocol_NSObject, + _sel_performSelector_withObject_withObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_c7gk2u) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_performSelector_withObject_withObject_, + isRequired: true, + isInstanceMethod: true, + ), + ( + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + func, + ) => + ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + objc.ObjCObjectBase arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// release + static final release = objc.ObjCProtocolListenableMethod( + _protocol_NSObject, + _sel_release, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_release, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => + ObjCBlock_ffiVoid_ffiVoid.listener((ffi.Pointer _) => func()), + (void Function() func) => + ObjCBlock_ffiVoid_ffiVoid.blocking((ffi.Pointer _) => func()), + ); + + /// respondsToSelector: + static final respondsToSelector_ = + objc.ObjCProtocolMethod)>( + _protocol_NSObject, + _sel_respondsToSelector_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_w1e3k0) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_respondsToSelector_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(ffi.Pointer) func) => + ObjCBlock_bool_ffiVoid_objcObjCSelector.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + ); + + /// retain + static final retain = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_retain, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_retain, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// retainCount + static final retainCount = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_retainCount, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1ckyi24) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_retainCount, + isRequired: true, + isInstanceMethod: true, + ), + (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// self + static final self$1 = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_self, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_self, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// superclass + static final superclass = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_superclass, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_superclass, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// zone + static final zone = objc.ObjCProtocolMethod Function()>( + _protocol_NSObject, + _sel_zone, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1a8cl66) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_zone, + isRequired: true, + isInstanceMethod: true, + ), + (ffi.Pointer Function() func) => + ObjCBlock_NSZone_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); +} + +/// NSOrderedCollectionChange +/// +/// iOS: introduced 13.0.0 +/// macOS: introduced 10.15.0 +class NSOrderedCollectionChange extends NSObject { + NSOrderedCollectionChange._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + } + + /// Constructs a [NSOrderedCollectionChange] that points to the same underlying object as [other]. + NSOrderedCollectionChange.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSOrderedCollectionChange] that wraps the given raw object pointer. + NSOrderedCollectionChange.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSOrderedCollectionChange]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOrderedCollectionChange, + ); + } + + /// alloc + static NSOrderedCollectionChange alloc() { + final _ret = _objc_msgSend_151sglz( + _class_NSOrderedCollectionChange, + _sel_alloc, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSOrderedCollectionChange allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSOrderedCollectionChange, + _sel_allocWithZone_, + zone, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// changeWithObject:type:index: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + static NSOrderedCollectionChange changeWithObject( + objc.ObjCObjectBase? anObject, { + required NSCollectionChangeType type, + required int index, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.changeWithObject:type:index:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_vbymrb( + _class_NSOrderedCollectionChange, + _sel_changeWithObject_type_index_, + anObject?.ref.pointer ?? ffi.nullptr, + type.value, + index, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// changeWithObject:type:index:associatedIndex: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + static NSOrderedCollectionChange changeWithObject$1( + objc.ObjCObjectBase? anObject, { + required NSCollectionChangeType type, + required int index, + required int associatedIndex, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.changeWithObject:type:index:associatedIndex:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1egc1c( + _class_NSOrderedCollectionChange, + _sel_changeWithObject_type_index_associatedIndex_, + anObject?.ref.pointer ?? ffi.nullptr, + type.value, + index, + associatedIndex, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// new + static NSOrderedCollectionChange new$() { + final _ret = _objc_msgSend_151sglz( + _class_NSOrderedCollectionChange, + _sel_new, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + int get associatedIndex { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.associatedIndex', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_associatedIndex); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSCollectionChangeType get changeType { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.changeType', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_hc8exi(this.ref.pointer, _sel_changeType); + return NSCollectionChangeType.fromValue(_ret); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + int get index { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.index', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_index); + } + + /// init + NSOrderedCollectionChange init() { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObject:type:index: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionChange initWithObject( + objc.ObjCObjectBase? anObject, { + required NSCollectionChangeType type, + required int index$1, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.initWithObject:type:index:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_vbymrb( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_type_index_, + anObject?.ref.pointer ?? ffi.nullptr, + type.value, + index$1, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObject:type:index:associatedIndex: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionChange initWithObject$1( + objc.ObjCObjectBase? anObject, { + required NSCollectionChangeType type, + required int index$1, + required int associatedIndex$1, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.initWithObject:type:index:associatedIndex:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1egc1c( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_type_index_associatedIndex_, + anObject?.ref.pointer ?? ffi.nullptr, + type.value, + index$1, + associatedIndex$1, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + objc.ObjCObjectBase? get object { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.object', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_object); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSOrderedCollectionChange constructed with the default `new` method. + factory NSOrderedCollectionChange() => new$(); +} + +/// NSOrderedCollectionDifference +/// +/// iOS: introduced 13.0.0 +/// macOS: introduced 10.15.0 +class NSOrderedCollectionDifference extends NSObject + implements NSFastEnumeration { + NSOrderedCollectionDifference._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + } + + /// Constructs a [NSOrderedCollectionDifference] that points to the same underlying object as [other]. + NSOrderedCollectionDifference.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSOrderedCollectionDifference] that wraps the given raw object pointer. + NSOrderedCollectionDifference.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSOrderedCollectionDifference]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOrderedCollectionDifference, + ); + } + + /// alloc + static NSOrderedCollectionDifference alloc() { + final _ret = _objc_msgSend_151sglz( + _class_NSOrderedCollectionDifference, + _sel_alloc, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSOrderedCollectionDifference allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSOrderedCollectionDifference, + _sel_allocWithZone_, + zone, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// new + static NSOrderedCollectionDifference new$() { + final _ret = _objc_msgSend_151sglz( + _class_NSOrderedCollectionDifference, + _sel_new, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// differenceByTransformingChangesWithBlock: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionDifference differenceByTransformingChangesWithBlock( + objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.differenceByTransformingChangesWithBlock:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_differenceByTransformingChangesWithBlock_, + block.ref.pointer, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + bool get hasChanges { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.hasChanges', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_hasChanges); + } + + /// init + NSOrderedCollectionDifference init() { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithChanges: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionDifference initWithChanges(NSArray changes) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.initWithChanges:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithChanges_, + changes.ref.pointer, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionDifference initWithInsertIndexes( + NSIndexSet inserts, { + NSArray? insertedObjects, + required NSIndexSet removeIndexes, + NSArray? removedObjects, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_s92gih( + this.ref.retainAndReturnPointer(), + _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_, + inserts.ref.pointer, + insertedObjects?.ref.pointer ?? ffi.nullptr, + removeIndexes.ref.pointer, + removedObjects?.ref.pointer ?? ffi.nullptr, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionDifference initWithInsertIndexes$1( + NSIndexSet inserts, { + NSArray? insertedObjects, + required NSIndexSet removeIndexes, + NSArray? removedObjects, + required NSArray additionalChanges, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_3cbdpb( + this.ref.retainAndReturnPointer(), + _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_, + inserts.ref.pointer, + insertedObjects?.ref.pointer ?? ffi.nullptr, + removeIndexes.ref.pointer, + removedObjects?.ref.pointer ?? ffi.nullptr, + additionalChanges.ref.pointer, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSArray get insertions { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.insertions', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_insertions); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// inverseDifference + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionDifference inverseDifference() { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.inverseDifference', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_inverseDifference, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSArray get removals { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.removals', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_removals); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSOrderedCollectionDifference constructed with the default `new` method. + factory NSOrderedCollectionDifference() => new$(); +} + +/// iOS: introduced 13.0.0 +/// macOS: introduced 10.15.0 +enum NSOrderedCollectionDifferenceCalculationOptions { + NSOrderedCollectionDifferenceCalculationOmitInsertedObjects(1), + NSOrderedCollectionDifferenceCalculationOmitRemovedObjects(2), + NSOrderedCollectionDifferenceCalculationInferMoves(4); + + final int value; + const NSOrderedCollectionDifferenceCalculationOptions(this.value); + + static NSOrderedCollectionDifferenceCalculationOptions fromValue( + int value, + ) => switch (value) { + 1 => NSOrderedCollectionDifferenceCalculationOmitInsertedObjects, + 2 => NSOrderedCollectionDifferenceCalculationOmitRemovedObjects, + 4 => NSOrderedCollectionDifferenceCalculationInferMoves, + _ => throw ArgumentError( + 'Unknown value for NSOrderedCollectionDifferenceCalculationOptions: $value', + ), + }; +} + +/// NSOrderedSet +class NSOrderedSet extends NSObject + implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { + NSOrderedSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOrderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } + + /// Constructs a [NSOrderedSet] that points to the same underlying object as [other]. + NSOrderedSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSOrderedSet] that wraps the given raw object pointer. + NSOrderedSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSOrderedSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOrderedSet, + ); + } + + /// alloc + static NSOrderedSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_alloc); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSOrderedSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSOrderedSet, + _sel_allocWithZone_, + zone, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSOrderedSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_new); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// orderedSet + static NSOrderedSet orderedSet() { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithArray: + static NSOrderedSet orderedSetWithArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithArray_, + array.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithArray:range:copyItems: + static NSOrderedSet orderedSetWithArray$1( + NSArray array, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + _class_NSOrderedSet, + _sel_orderedSetWithArray_range_copyItems_, + array.ref.pointer, + range, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithObject: + static NSOrderedSet orderedSetWithObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithObject_, + object.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithObjects: + static NSOrderedSet orderedSetWithObjects(objc.ObjCObjectBase firstObj) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithObjects_, + firstObj.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithObjects:count: + static NSOrderedSet orderedSetWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + _class_NSOrderedSet, + _sel_orderedSetWithObjects_count_, + objects, + count, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet: + static NSOrderedSet orderedSetWithOrderedSet(NSOrderedSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_, + set$.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet:range:copyItems: + static NSOrderedSet orderedSetWithOrderedSet$1( + NSOrderedSet set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithSet: + static NSOrderedSet orderedSetWithSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithSet_, + set$.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithSet:copyItems: + static NSOrderedSet orderedSetWithSet$1( + NSSet set$, { + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSOrderedSet, + _sel_orderedSetWithSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSOrderedSet, _sel_supportsSecureCoding); + } + + /// autorelease + NSOrderedSet autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// count + int get count { + objc.checkOsVersionInternal( + 'NSOrderedSet.count', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// indexOfObject: + int indexOfObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_1vd1c5m( + this.ref.pointer, + _sel_indexOfObject_, + object.ref.pointer, + ); + } + + /// init + NSOrderedSet init() { + objc.checkOsVersionInternal( + 'NSOrderedSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray: + NSOrderedSet initWithArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + NSOrderedSet initWithArray$1(NSArray set$, {required bool copyItems}) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray:range:copyItems: + NSOrderedSet initWithArray$2( + NSArray set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSOrderedSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObject: + NSOrderedSet initWithObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_, + object.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects: + NSOrderedSet initWithObjects(objc.ObjCObjectBase firstObj) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:count: + NSOrderedSet initWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithOrderedSet: + NSOrderedSet initWithOrderedSet(NSOrderedSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_, + set$.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithOrderedSet:copyItems: + NSOrderedSet initWithOrderedSet$1( + NSOrderedSet set$, { + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithOrderedSet:range:copyItems: + NSOrderedSet initWithOrderedSet$2( + NSOrderedSet set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet: + NSOrderedSet initWithSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set$.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + NSOrderedSet initWithSet$1(NSSet set$, {required bool copyItems}) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// objectAtIndex: + objc.ObjCObjectBase objectAtIndex(int idx) { + objc.checkOsVersionInternal( + 'NSOrderedSet.objectAtIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_objectAtIndex_, + idx, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// retain + NSOrderedSet retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSOrderedSet self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSOrderedSet constructed with the default `new` method. + factory NSOrderedSet() => new$(); +} + +/// NSOutputStream +class NSOutputStream extends NSStream { + NSOutputStream._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSOutputStream] that points to the same underlying object as [other]. + NSOutputStream.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSOutputStream] that wraps the given raw object pointer. + NSOutputStream.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSOutputStream]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOutputStream, + ); + } + + /// outputStreamToBuffer:capacity: + static NSOutputStream outputStreamToBuffer( + ffi.Pointer buffer, { + required int capacity, + }) { + final _ret = _objc_msgSend_158ju31( + _class_NSOutputStream, + _sel_outputStreamToBuffer_capacity_, + buffer, + capacity, + ); + return NSOutputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// outputStreamToFileAtPath:append: + static NSOutputStream outputStreamToFileAtPath( + NSString path, { + required bool append, + }) { + final _ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamToFileAtPath_append_, + path.ref.pointer, + append, + ); + return NSOutputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// outputStreamToMemory + static NSOutputStream outputStreamToMemory() { + final _ret = _objc_msgSend_151sglz( + _class_NSOutputStream, + _sel_outputStreamToMemory, + ); + return NSOutputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// outputStreamWithURL:append: + static NSOutputStream? outputStreamWithURL( + NSURL url, { + required bool append, + }) { + objc.checkOsVersionInternal( + 'NSOutputStream.outputStreamWithURL:append:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamWithURL_append_, + url.ref.pointer, + append, + ); + return _ret.address == 0 + ? null + : NSOutputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// hasSpaceAvailable + bool get hasSpaceAvailable { + return _objc_msgSend_91o635(this.ref.pointer, _sel_hasSpaceAvailable); + } + + /// initToBuffer:capacity: + NSOutputStream initToBuffer( + ffi.Pointer buffer, { + required int capacity, + }) { + final _ret = _objc_msgSend_158ju31( + this.ref.retainAndReturnPointer(), + _sel_initToBuffer_capacity_, + buffer, + capacity, + ); + return NSOutputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// initToFileAtPath:append: + NSOutputStream? initToFileAtPath(NSString path, {required bool append}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initToFileAtPath_append_, + path.ref.pointer, + append, + ); + return _ret.address == 0 + ? null + : NSOutputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// initToMemory + NSOutputStream initToMemory() { + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_initToMemory, + ); + return NSOutputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithURL:append: + NSOutputStream? initWithURL(NSURL url, {required bool append}) { + objc.checkOsVersionInternal( + 'NSOutputStream.initWithURL:append:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithURL_append_, + url.ref.pointer, + append, + ); + return _ret.address == 0 + ? null + : NSOutputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// write:maxLength: + int write(ffi.Pointer buffer, {required int maxLength}) { + return _objc_msgSend_11e9f5x( + this.ref.pointer, + _sel_write_maxLength_, + buffer, + maxLength, + ); + } +} + +/// NSProgress +class NSProgress extends objc.ObjCObjectBase { + NSProgress._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSProgress] that points to the same underlying object as [other]. + NSProgress.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSProgress] that wraps the given raw object pointer. + NSProgress.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSProgress]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSProgress, + ); + } +} + +enum NSQualityOfService { + NSQualityOfServiceUserInteractive(33), + NSQualityOfServiceUserInitiated(25), + NSQualityOfServiceUtility(17), + NSQualityOfServiceBackground(9), + NSQualityOfServiceDefault(-1); + + final int value; + const NSQualityOfService(this.value); + + static NSQualityOfService fromValue(int value) => switch (value) { + 33 => NSQualityOfServiceUserInteractive, + 25 => NSQualityOfServiceUserInitiated, + 17 => NSQualityOfServiceUtility, + 9 => NSQualityOfServiceBackground, + -1 => NSQualityOfServiceDefault, + _ => throw ArgumentError('Unknown value for NSQualityOfService: $value'), + }; +} + +final class NSRange extends ffi.Struct { + @ffi.UnsignedLong() + external int location; + + @ffi.UnsignedLong() + external int length; +} + +/// NSRunLoop +class NSRunLoop extends objc.ObjCObjectBase { + NSRunLoop._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSRunLoop] that points to the same underlying object as [other]. + NSRunLoop.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSRunLoop] that wraps the given raw object pointer. + NSRunLoop.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSRunLoop]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSRunLoop, + ); + } +} + +/// NSSecureCoding +interface class NSSecureCoding extends objc.ObjCProtocolBase + implements NSCoding { + NSSecureCoding._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSSecureCoding] that points to the same underlying object as [other]. + NSSecureCoding.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSSecureCoding] that wraps the given raw object pointer. + NSSecureCoding.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSSecureCoding]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSSecureCoding, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSSecureCoding.cast()); + + /// Builds an object that implements the NSSecureCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSecureCoding implement({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); + NSSecureCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSSecureCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSecureCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSSecureCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSSecureCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSecureCoding implementAsListener({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); + NSSecureCoding.encodeWithCoder_.implementAsListener( + builder, + encodeWithCoder_, + ); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSSecureCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSecureCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSSecureCoding.encodeWithCoder_.implementAsListener( + builder, + encodeWithCoder_, + ); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSSecureCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSecureCoding implementAsBlocking({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); + NSSecureCoding.encodeWithCoder_.implementAsBlocking( + builder, + encodeWithCoder_, + ); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSSecureCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSecureCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSSecureCoding.encodeWithCoder_.implementAsBlocking( + builder, + encodeWithCoder_, + ); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// encodeWithCoder: + static final encodeWithCoder_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSSecureCoding, + _sel_encodeWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSecureCoding, + _sel_encodeWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); + + /// initWithCoder: + static final initWithCoder_ = + objc.ObjCProtocolMethod( + _protocol_NSSecureCoding, + _sel_initWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSecureCoding, + _sel_initWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (Dartinstancetype? Function(NSCoder) func) => + ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); +} + +/// NSSet +class NSSet extends NSObject + with collection.SetBase + implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { + /// Creates a [NSSet] from [elements]. + static NSSet of(Iterable elements) => + NSMutableSet.of(elements); + + @override + int get length => count; + + @override + bool contains(Object? element) => + element is objc.ObjCObjectBase ? containsObject(element) : false; + + @override + objc.ObjCObjectBase? lookup(Object? element) => + element is objc.ObjCObjectBase ? member(element) : null; + + @override + Iterator get iterator => objectEnumerator(); + + @override + Set toSet() => {...this}; + + @override + bool add(objc.ObjCObjectBase value) => + throw UnsupportedError("Cannot modify NSSet"); + + @override + bool remove(Object? value) => throw UnsupportedError("Cannot modify NSSet"); + + @override + void clear() => throw UnsupportedError("Cannot modify NSSet"); + + NSSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSSet] that points to the same underlying object as [other]. + NSSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSSet] that wraps the given raw object pointer. + NSSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSSet, + ); + } + + /// alloc + static NSSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_alloc); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428(_class_NSSet, _sel_allocWithZone_, zone); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_new); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// set + static NSSet set$() { + final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_set); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithArray: + static NSSet setWithArray(NSArray array) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithArray_, + array.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObject: + static NSSet setWithObject(objc.ObjCObjectBase object) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithObject_, + object.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObjects: + static NSSet setWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithObjects_, + firstObj.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObjects:count: + static NSSet setWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + _class_NSSet, + _sel_setWithObjects_count_, + objects, + count, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithSet: + static NSSet setWithSet(NSSet set$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithSet_, + set$1.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSSet, _sel_supportsSecureCoding); + } + + /// count + int get count { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSSet init() { + objc.checkOsVersionInternal( + 'NSSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray: + NSSet initWithArray(NSArray array) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects: + NSSet initWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:count: + NSSet initWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet: + NSSet initWithSet(NSSet set$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set$1.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + NSSet initWithSet$1(NSSet set$1, {required bool copyItems}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set$1.ref.pointer, + copyItems, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// member: + objc.ObjCObjectBase? member(objc.ObjCObjectBase object) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_member_, + object.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// objectEnumerator + NSEnumerator objectEnumerator() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSSet constructed with the default `new` method. + factory NSSet() => new$(); +} + +enum NSSortOptions { + NSSortConcurrent(1), + NSSortStable(16); + + final int value; + const NSSortOptions(this.value); + + static NSSortOptions fromValue(int value) => switch (value) { + 1 => NSSortConcurrent, + 16 => NSSortStable, + _ => throw ArgumentError('Unknown value for NSSortOptions: $value'), + }; +} + +/// NSStream +class NSStream extends NSObject { + NSStream._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSStream] that points to the same underlying object as [other]. + NSStream.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSStream] that wraps the given raw object pointer. + NSStream.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSStream]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSStream, + ); + } + + /// alloc + static NSStream alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSStream, _sel_alloc); + return NSStream.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSStream allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSStream, + _sel_allocWithZone_, + zone, + ); + return NSStream.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSStream new$() { + final _ret = _objc_msgSend_151sglz(_class_NSStream, _sel_new); + return NSStream.castFromPointer(_ret, retain: false, release: true); + } + + /// autorelease + NSStream autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSStream.castFromPointer(_ret, retain: true, release: true); + } + + /// close + void close() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_close); + } + + /// delegate + NSStreamDelegate? get delegate { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_delegate); + return _ret.address == 0 + ? null + : NSStreamDelegate.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSStream init() { + objc.checkOsVersionInternal( + 'NSStream.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSStream.castFromPointer(_ret, retain: false, release: true); + } + + /// open + void open() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_open); + } + + /// propertyForKey: + objc.ObjCObjectBase? propertyForKey(NSString key) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_propertyForKey_, + key.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// removeFromRunLoop:forMode: + void removeFromRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_removeFromRunLoop_forMode_, + aRunLoop.ref.pointer, + forMode.ref.pointer, + ); + } + + /// retain + NSStream retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSStream.castFromPointer(_ret, retain: true, release: true); + } + + /// scheduleInRunLoop:forMode: + void scheduleInRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_scheduleInRunLoop_forMode_, + aRunLoop.ref.pointer, + forMode.ref.pointer, + ); + } + + /// self + NSStream self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSStream.castFromPointer(_ret, retain: true, release: true); + } + + /// setDelegate: + set delegate(NSStreamDelegate? value) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setDelegate_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setProperty:forKey: + bool setProperty(objc.ObjCObjectBase? property, {required NSString forKey}) { + return _objc_msgSend_1lsax7n( + this.ref.pointer, + _sel_setProperty_forKey_, + property?.ref.pointer ?? ffi.nullptr, + forKey.ref.pointer, + ); + } + + /// streamError + NSError? get streamError { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_streamError); + return _ret.address == 0 + ? null + : NSError.castFromPointer(_ret, retain: true, release: true); + } + + /// streamStatus + NSStreamStatus get streamStatus { + final _ret = _objc_msgSend_1efxbd8(this.ref.pointer, _sel_streamStatus); + return NSStreamStatus.fromValue(_ret); + } + + /// Returns a new instance of NSStream constructed with the default `new` method. + factory NSStream() => new$(); +} + +/// NSStreamDelegate +interface class NSStreamDelegate extends objc.ObjCProtocolBase + implements NSObjectProtocol { + NSStreamDelegate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSStreamDelegate] that points to the same underlying object as [other]. + NSStreamDelegate.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSStreamDelegate] that wraps the given raw object pointer. + NSStreamDelegate.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSStreamDelegate]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSStreamDelegate, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSStreamDelegate.cast()); + + /// Builds an object that implements the NSStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSStreamDelegate implement({ + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); + NSStreamDelegate.stream_handleEvent_.implement( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + return NSStreamDelegate.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + NSStreamDelegate.stream_handleEvent_.implement( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSStreamDelegate implementAsListener({ + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); + NSStreamDelegate.stream_handleEvent_.implementAsListener( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + return NSStreamDelegate.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + NSStreamDelegate.stream_handleEvent_.implementAsListener( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSStreamDelegate implementAsBlocking({ + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); + NSStreamDelegate.stream_handleEvent_.implementAsBlocking( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + return NSStreamDelegate.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + NSStreamDelegate.stream_handleEvent_.implementAsBlocking( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + } + + /// stream:handleEvent: + static final stream_handleEvent_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSStreamDelegate, + _sel_stream_handleEvent_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_hoampi) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSStreamDelegate, + _sel_stream_handleEvent_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSStream, NSStreamEvent) func) => + ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.fromFunction( + (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => + func(arg1, arg2), + ), + (void Function(NSStream, NSStreamEvent) func) => + ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.listener( + (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => + func(arg1, arg2), + ), + (void Function(NSStream, NSStreamEvent) func) => + ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.blocking( + (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => + func(arg1, arg2), + ), + ); +} + +enum NSStreamEvent { + NSStreamEventNone(0), + NSStreamEventOpenCompleted(1), + NSStreamEventHasBytesAvailable(2), + NSStreamEventHasSpaceAvailable(4), + NSStreamEventErrorOccurred(8), + NSStreamEventEndEncountered(16); + + final int value; + const NSStreamEvent(this.value); + + static NSStreamEvent fromValue(int value) => switch (value) { + 0 => NSStreamEventNone, + 1 => NSStreamEventOpenCompleted, + 2 => NSStreamEventHasBytesAvailable, + 4 => NSStreamEventHasSpaceAvailable, + 8 => NSStreamEventErrorOccurred, + 16 => NSStreamEventEndEncountered, + _ => throw ArgumentError('Unknown value for NSStreamEvent: $value'), + }; +} + +enum NSStreamStatus { + NSStreamStatusNotOpen(0), + NSStreamStatusOpening(1), + NSStreamStatusOpen(2), + NSStreamStatusReading(3), + NSStreamStatusWriting(4), + NSStreamStatusAtEnd(5), + NSStreamStatusClosed(6), + NSStreamStatusError(7); + + final int value; + const NSStreamStatus(this.value); + + static NSStreamStatus fromValue(int value) => switch (value) { + 0 => NSStreamStatusNotOpen, + 1 => NSStreamStatusOpening, + 2 => NSStreamStatusOpen, + 3 => NSStreamStatusReading, + 4 => NSStreamStatusWriting, + 5 => NSStreamStatusAtEnd, + 6 => NSStreamStatusClosed, + 7 => NSStreamStatusError, + _ => throw ArgumentError('Unknown value for NSStreamStatus: $value'), + }; +} + +/// NSString +class NSString extends NSObject + implements NSCopying, NSMutableCopying, NSSecureCoding { + factory NSString(String str) { + final cstr = str.toNativeUtf16(); + final nsstr = stringWithCharacters(cstr.cast(), length: str.length); + pkg_ffi.calloc.free(cstr); + return nsstr; + } + + NSString._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSString] that points to the same underlying object as [other]. + NSString.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSString] that wraps the given raw object pointer. + NSString.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSString]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSString, + ); + } + + /// alloc + static NSString alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_alloc); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSString allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSString, + _sel_allocWithZone_, + zone, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// localizedStringWithFormat: + static NSString localizedStringWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_localizedStringWithFormat_, + format.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: + static NSString? localizedStringWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSString, + _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSString new$() { + final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_new); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static NSString? objectWithItemProviderData( + NSData data, { + required NSString typeIdentifier, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSString.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSString, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// string + static NSString string() { + final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_string); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithCString:encoding: + static NSString? stringWithCString( + ffi.Pointer cString, { + required int encoding, + }) { + final _ret = _objc_msgSend_erqryg( + _class_NSString, + _sel_stringWithCString_encoding_, + cString, + encoding, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithCharacters:length: + static NSString stringWithCharacters( + ffi.Pointer characters, { + required int length, + }) { + final _ret = _objc_msgSend_9x4k8x( + _class_NSString, + _sel_stringWithCharacters_length_, + characters, + length, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfFile:encoding:error: + static NSString? stringWithContentsOfFile( + NSString path, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + _class_NSString, + _sel_stringWithContentsOfFile_encoding_error_, + path.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfFile:usedEncoding:error: + static NSString? stringWithContentsOfFile$1( + NSString path, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + _class_NSString, + _sel_stringWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfURL:encoding:error: + static NSString? stringWithContentsOfURL( + NSURL url, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + _class_NSString, + _sel_stringWithContentsOfURL_encoding_error_, + url.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfURL:usedEncoding:error: + static NSString? stringWithContentsOfURL$1( + NSURL url, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + _class_NSString, + _sel_stringWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithFormat: + static NSString stringWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_stringWithFormat_, + format.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithString: + static NSString stringWithString(NSString string$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_stringWithString_, + string$1.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithUTF8String: + static NSString? stringWithUTF8String( + ffi.Pointer nullTerminatedCString, + ) { + final _ret = _objc_msgSend_56zxyn( + _class_NSString, + _sel_stringWithUTF8String_, + nullTerminatedCString, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithValidatedFormat:validFormatSpecifiers:error: + static NSString? stringWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSString.stringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSString, + _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSString, _sel_supportsSecureCoding); + } + + /// autorelease + NSString autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// characterAtIndex: + int characterAtIndex(int index) { + return _objc_msgSend_1deg8x( + this.ref.pointer, + _sel_characterAtIndex_, + index, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSString init() { + objc.checkOsVersionInternal( + 'NSString.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:length:encoding: + NSString? initWithBytes( + ffi.Pointer bytes, { + required int length, + required int encoding, + }) { + final _ret = _objc_msgSend_9b3h4v( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_encoding_, + bytes, + length, + encoding, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:encoding:deallocator: + NSString? initWithBytesNoCopy( + ffi.Pointer bytes, { + required int length, + required int encoding, + objc.ObjCBlock, ffi.UnsignedLong)>? + deallocator, + }) { + final _ret = _objc_msgSend_1lbgrac( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_encoding_deallocator_, + bytes, + length, + encoding, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:encoding:freeWhenDone: + NSString? initWithBytesNoCopy$1( + ffi.Pointer bytes, { + required int length, + required int encoding, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_k4j8m3( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, + bytes, + length, + encoding, + freeWhenDone, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCString:encoding: + NSString? initWithCString( + ffi.Pointer nullTerminatedCString, { + required int encoding, + }) { + final _ret = _objc_msgSend_erqryg( + this.ref.retainAndReturnPointer(), + _sel_initWithCString_encoding_, + nullTerminatedCString, + encoding, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharacters:length: + NSString initWithCharacters( + ffi.Pointer characters, { + required int length, + }) { + final _ret = _objc_msgSend_9x4k8x( + this.ref.retainAndReturnPointer(), + _sel_initWithCharacters_length_, + characters, + length, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharactersNoCopy:length:deallocator: + NSString initWithCharactersNoCopy( + ffi.Pointer chars, { + required int length, + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >? + deallocator, + }) { + final _ret = _objc_msgSend_talwei( + this.ref.retainAndReturnPointer(), + _sel_initWithCharactersNoCopy_length_deallocator_, + chars, + length, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharactersNoCopy:length:freeWhenDone: + NSString initWithCharactersNoCopy$1( + ffi.Pointer characters, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_lh0jh5( + this.ref.retainAndReturnPointer(), + _sel_initWithCharactersNoCopy_length_freeWhenDone_, + characters, + length, + freeWhenDone, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSString? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:encoding:error: + NSString? initWithContentsOfFile( + NSString path, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_encoding_error_, + path.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:usedEncoding:error: + NSString? initWithContentsOfFile$1( + NSString path, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:encoding:error: + NSString? initWithContentsOfURL( + NSURL url, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_encoding_error_, + url.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:usedEncoding:error: + NSString? initWithContentsOfURL$1( + NSURL url, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithData:encoding: + NSString? initWithData(NSData data, {required int encoding}) { + final _ret = _objc_msgSend_1k4kd9s( + this.ref.retainAndReturnPointer(), + _sel_initWithData_encoding_, + data.ref.pointer, + encoding, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFormat: + NSString initWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_, + format.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFormat:locale: + NSString initWithFormat$1(NSString format, {objc.ObjCObjectBase? locale}) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_locale_, + format.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithString: + NSString initWithString(NSString aString) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithString_, + aString.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUTF8String: + NSString? initWithUTF8String(ffi.Pointer nullTerminatedCString) { + final _ret = _objc_msgSend_56zxyn( + this.ref.retainAndReturnPointer(), + _sel_initWithUTF8String_, + nullTerminatedCString, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithValidatedFormat:validFormatSpecifiers:error: + /// + /// iOS: introduced 16.0.0 + /// macOS: introduced 13.0.0 + NSString? initWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSString.initWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithValidatedFormat:validFormatSpecifiers:locale:error: + /// + /// iOS: introduced 16.0.0 + /// macOS: introduced 13.0.0 + NSString? initWithValidatedFormat$1( + NSString format, { + required NSString validFormatSpecifiers, + objc.ObjCObjectBase? locale, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + final _ret = _objc_msgSend_1k0ezzm( + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// length + int get length { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); + } + + /// retain + NSString retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSString self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSString.castFromPointer(_ret, retain: true, release: true); + } +} + +enum NSStringCompareOptions { + NSCaseInsensitiveSearch(1), + NSLiteralSearch(2), + NSBackwardsSearch(4), + NSAnchoredSearch(8), + NSNumericSearch(64), + NSDiacriticInsensitiveSearch(128), + NSWidthInsensitiveSearch(256), + NSForcedOrderingSearch(512), + NSRegularExpressionSearch(1024); + + final int value; + const NSStringCompareOptions(this.value); + + static NSStringCompareOptions fromValue(int value) => switch (value) { + 1 => NSCaseInsensitiveSearch, + 2 => NSLiteralSearch, + 4 => NSBackwardsSearch, + 8 => NSAnchoredSearch, + 64 => NSNumericSearch, + 128 => NSDiacriticInsensitiveSearch, + 256 => NSWidthInsensitiveSearch, + 512 => NSForcedOrderingSearch, + 1024 => NSRegularExpressionSearch, + _ => throw ArgumentError( + 'Unknown value for NSStringCompareOptions: $value', + ), + }; +} + +enum NSStringEncodingConversionOptions { + NSStringEncodingConversionAllowLossy(1), + NSStringEncodingConversionExternalRepresentation(2); + + final int value; + const NSStringEncodingConversionOptions(this.value); + + static NSStringEncodingConversionOptions fromValue(int value) => + switch (value) { + 1 => NSStringEncodingConversionAllowLossy, + 2 => NSStringEncodingConversionExternalRepresentation, + _ => throw ArgumentError( + 'Unknown value for NSStringEncodingConversionOptions: $value', + ), + }; +} + +enum NSStringEnumerationOptions { + NSStringEnumerationByLines(0), + NSStringEnumerationByParagraphs(1), + NSStringEnumerationByComposedCharacterSequences(2), + NSStringEnumerationByWords(3), + NSStringEnumerationBySentences(4), + NSStringEnumerationByCaretPositions(5), + NSStringEnumerationByDeletionClusters(6), + NSStringEnumerationReverse(256), + NSStringEnumerationSubstringNotRequired(512), + NSStringEnumerationLocalized(1024); + + final int value; + const NSStringEnumerationOptions(this.value); + + static NSStringEnumerationOptions fromValue(int value) => switch (value) { + 0 => NSStringEnumerationByLines, + 1 => NSStringEnumerationByParagraphs, + 2 => NSStringEnumerationByComposedCharacterSequences, + 3 => NSStringEnumerationByWords, + 4 => NSStringEnumerationBySentences, + 5 => NSStringEnumerationByCaretPositions, + 6 => NSStringEnumerationByDeletionClusters, + 256 => NSStringEnumerationReverse, + 512 => NSStringEnumerationSubstringNotRequired, + 1024 => NSStringEnumerationLocalized, + _ => throw ArgumentError( + 'Unknown value for NSStringEnumerationOptions: $value', + ), + }; +} + +/// NSStringExtensionMethods +extension NSStringExtensionMethods on NSString { + /// availableStringEncodings + static ffi.Pointer getAvailableStringEncodings() { + return _objc_msgSend_1h2q612( + _class_NSString, + _sel_availableStringEncodings, + ); + } + + /// defaultCStringEncoding + static int getDefaultCStringEncoding() { + return _objc_msgSend_xw2lbc(_class_NSString, _sel_defaultCStringEncoding); + } + + /// localizedNameOfStringEncoding: + static NSString localizedNameOfStringEncoding(int encoding) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSString, + _sel_localizedNameOfStringEncoding_, + encoding, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// UTF8String + ffi.Pointer get UTF8String { + return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_UTF8String); + } + + /// boolValue + bool get boolValue { + objc.checkOsVersionInternal( + 'NSString.boolValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_boolValue); + } + + /// cStringUsingEncoding: + ffi.Pointer cStringUsingEncoding(int encoding) { + return _objc_msgSend_1jtxufi( + this.ref.pointer, + _sel_cStringUsingEncoding_, + encoding, + ); + } + + /// canBeConvertedToEncoding: + bool canBeConvertedToEncoding(int encoding) { + return _objc_msgSend_6peh6o( + this.ref.pointer, + _sel_canBeConvertedToEncoding_, + encoding, + ); + } + + /// capitalizedString + NSString get capitalizedString { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_capitalizedString, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// capitalizedStringWithLocale: + NSString capitalizedStringWithLocale(NSLocale? locale) { + objc.checkOsVersionInternal( + 'NSString.capitalizedStringWithLocale:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_capitalizedStringWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// caseInsensitiveCompare: + NSComparisonResult caseInsensitiveCompare(NSString string) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_caseInsensitiveCompare_, + string.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// commonPrefixWithString:options: + NSString commonPrefixWithString( + NSString str, { + required NSStringCompareOptions options, + }) { + final _ret = _objc_msgSend_diypgk( + this.ref.pointer, + _sel_commonPrefixWithString_options_, + str.ref.pointer, + options.value, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// compare: + NSComparisonResult compare(NSString string) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_compare_, + string.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// compare:options: + NSComparisonResult compare$1( + NSString string, { + required NSStringCompareOptions options, + }) { + final _ret = _objc_msgSend_pg1fnv( + this.ref.pointer, + _sel_compare_options_, + string.ref.pointer, + options.value, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// compare:options:range: + NSComparisonResult compare$2( + NSString string, { + required NSStringCompareOptions options, + required NSRange range, + }) { + final _ret = _objc_msgSend_xrqic1( + this.ref.pointer, + _sel_compare_options_range_, + string.ref.pointer, + options.value, + range, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// compare:options:range:locale: + NSComparisonResult compare$3( + NSString string, { + required NSStringCompareOptions options, + required NSRange range, + objc.ObjCObjectBase? locale, + }) { + final _ret = _objc_msgSend_1895u4n( + this.ref.pointer, + _sel_compare_options_range_locale_, + string.ref.pointer, + options.value, + range, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// componentsSeparatedByCharactersInSet: + NSArray componentsSeparatedByCharactersInSet(NSCharacterSet separator) { + objc.checkOsVersionInternal( + 'NSString.componentsSeparatedByCharactersInSet:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_componentsSeparatedByCharactersInSet_, + separator.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// componentsSeparatedByString: + NSArray componentsSeparatedByString(NSString separator) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_componentsSeparatedByString_, + separator.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// containsString: + bool containsString(NSString str) { + objc.checkOsVersionInternal( + 'NSString.containsString:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_containsString_, + str.ref.pointer, + ); + } + + /// dataUsingEncoding: + NSData? dataUsingEncoding(int encoding) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_dataUsingEncoding_, + encoding, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataUsingEncoding:allowLossyConversion: + NSData? dataUsingEncoding$1( + int encoding, { + required bool allowLossyConversion, + }) { + final _ret = _objc_msgSend_hiwitm( + this.ref.pointer, + _sel_dataUsingEncoding_allowLossyConversion_, + encoding, + allowLossyConversion, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// decomposedStringWithCanonicalMapping + NSString get decomposedStringWithCanonicalMapping { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_decomposedStringWithCanonicalMapping, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// decomposedStringWithCompatibilityMapping + NSString get decomposedStringWithCompatibilityMapping { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_decomposedStringWithCompatibilityMapping, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// doubleValue + double get doubleValue { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_doubleValue) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_doubleValue); + } + + /// enumerateLinesUsingBlock: + void enumerateLinesUsingBlock( + objc.ObjCBlock)> block, + ) { + objc.checkOsVersionInternal( + 'NSString.enumerateLinesUsingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateLinesUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateSubstringsInRange:options:usingBlock: + void enumerateSubstringsInRange( + NSRange range, { + required NSStringEnumerationOptions options, + required objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSString.enumerateSubstringsInRange:options:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_14ew8zr( + this.ref.pointer, + _sel_enumerateSubstringsInRange_options_usingBlock_, + range, + options.value, + usingBlock.ref.pointer, + ); + } + + /// fastestEncoding + int get fastestEncoding { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_fastestEncoding); + } + + /// floatValue + double get floatValue { + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(this.ref.pointer, _sel_floatValue) + : _objc_msgSend_2cgrxl(this.ref.pointer, _sel_floatValue); + } + + /// getBytes:maxLength:usedLength:encoding:options:range:remainingRange: + bool getBytes( + ffi.Pointer buffer, { + required int maxLength, + required ffi.Pointer usedLength, + required int encoding, + required NSStringEncodingConversionOptions options, + required NSRange range, + required ffi.Pointer remainingRange, + }) { + return _objc_msgSend_i30zh3( + this.ref.pointer, + _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_, + buffer, + maxLength, + usedLength, + encoding, + options.value, + range, + remainingRange, + ); + } + + /// getCString:maxLength:encoding: + bool getCString( + ffi.Pointer buffer, { + required int maxLength, + required int encoding, + }) { + return _objc_msgSend_1lv8yz3( + this.ref.pointer, + _sel_getCString_maxLength_encoding_, + buffer, + maxLength, + encoding, + ); + } + + /// getCharacters:range: + void getCharacters( + ffi.Pointer buffer, { + required NSRange range, + }) { + _objc_msgSend_898fog( + this.ref.pointer, + _sel_getCharacters_range_, + buffer, + range, + ); + } + + /// getLineStart:end:contentsEnd:forRange: + void getLineStart( + ffi.Pointer startPtr, { + required ffi.Pointer end, + required ffi.Pointer contentsEnd, + required NSRange forRange, + }) { + _objc_msgSend_ourvf2( + this.ref.pointer, + _sel_getLineStart_end_contentsEnd_forRange_, + startPtr, + end, + contentsEnd, + forRange, + ); + } + + /// getParagraphStart:end:contentsEnd:forRange: + void getParagraphStart( + ffi.Pointer startPtr, { + required ffi.Pointer end, + required ffi.Pointer contentsEnd, + required NSRange forRange, + }) { + _objc_msgSend_ourvf2( + this.ref.pointer, + _sel_getParagraphStart_end_contentsEnd_forRange_, + startPtr, + end, + contentsEnd, + forRange, + ); + } + + /// hasPrefix: + bool hasPrefix(NSString str) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_hasPrefix_, + str.ref.pointer, + ); + } + + /// hasSuffix: + bool hasSuffix(NSString str) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_hasSuffix_, + str.ref.pointer, + ); + } + + /// hash + int get hash { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_hash); + } + + /// intValue + int get intValue { + return _objc_msgSend_13yqbb6(this.ref.pointer, _sel_intValue); + } + + /// integerValue + int get integerValue { + objc.checkOsVersionInternal( + 'NSString.integerValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_integerValue); + } + + /// isEqualToString: + bool isEqualToString(NSString aString) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToString_, + aString.ref.pointer, + ); + } + + /// lengthOfBytesUsingEncoding: + int lengthOfBytesUsingEncoding(int enc) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_lengthOfBytesUsingEncoding_, + enc, + ); + } + + /// lineRangeForRange: + NSRange lineRangeForRange(NSRange range) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_uimyc7Stret( + _ptr, + this.ref.pointer, + _sel_lineRangeForRange_, + range, + ) + : _ptr.ref = _objc_msgSend_uimyc7( + this.ref.pointer, + _sel_lineRangeForRange_, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// localizedCapitalizedString + NSString get localizedCapitalizedString { + objc.checkOsVersionInternal( + 'NSString.localizedCapitalizedString', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedCapitalizedString, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedCaseInsensitiveCompare: + NSComparisonResult localizedCaseInsensitiveCompare(NSString string) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_localizedCaseInsensitiveCompare_, + string.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// localizedCaseInsensitiveContainsString: + bool localizedCaseInsensitiveContainsString(NSString str) { + objc.checkOsVersionInternal( + 'NSString.localizedCaseInsensitiveContainsString:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_localizedCaseInsensitiveContainsString_, + str.ref.pointer, + ); + } + + /// localizedCompare: + NSComparisonResult localizedCompare(NSString string) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_localizedCompare_, + string.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// localizedLowercaseString + NSString get localizedLowercaseString { + objc.checkOsVersionInternal( + 'NSString.localizedLowercaseString', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedLowercaseString, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedStandardCompare: + NSComparisonResult localizedStandardCompare(NSString string) { + objc.checkOsVersionInternal( + 'NSString.localizedStandardCompare:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_localizedStandardCompare_, + string.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// localizedStandardContainsString: + bool localizedStandardContainsString(NSString str) { + objc.checkOsVersionInternal( + 'NSString.localizedStandardContainsString:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_localizedStandardContainsString_, + str.ref.pointer, + ); + } + + /// localizedStandardRangeOfString: + NSRange localizedStandardRangeOfString(NSString str) { + objc.checkOsVersionInternal( + 'NSString.localizedStandardRangeOfString:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_182fzonStret( + _ptr, + this.ref.pointer, + _sel_localizedStandardRangeOfString_, + str.ref.pointer, + ) + : _ptr.ref = _objc_msgSend_182fzon( + this.ref.pointer, + _sel_localizedStandardRangeOfString_, + str.ref.pointer, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// localizedUppercaseString + NSString get localizedUppercaseString { + objc.checkOsVersionInternal( + 'NSString.localizedUppercaseString', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedUppercaseString, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// longLongValue + int get longLongValue { + objc.checkOsVersionInternal( + 'NSString.longLongValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1k101e3(this.ref.pointer, _sel_longLongValue); + } + + /// lowercaseString + NSString get lowercaseString { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lowercaseString); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// lowercaseStringWithLocale: + NSString lowercaseStringWithLocale(NSLocale? locale) { + objc.checkOsVersionInternal( + 'NSString.lowercaseStringWithLocale:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_lowercaseStringWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// maximumLengthOfBytesUsingEncoding: + int maximumLengthOfBytesUsingEncoding(int enc) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_maximumLengthOfBytesUsingEncoding_, + enc, + ); + } + + /// paragraphRangeForRange: + NSRange paragraphRangeForRange(NSRange range) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_uimyc7Stret( + _ptr, + this.ref.pointer, + _sel_paragraphRangeForRange_, + range, + ) + : _ptr.ref = _objc_msgSend_uimyc7( + this.ref.pointer, + _sel_paragraphRangeForRange_, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// precomposedStringWithCanonicalMapping + NSString get precomposedStringWithCanonicalMapping { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_precomposedStringWithCanonicalMapping, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// precomposedStringWithCompatibilityMapping + NSString get precomposedStringWithCompatibilityMapping { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_precomposedStringWithCompatibilityMapping, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// rangeOfCharacterFromSet: + NSRange rangeOfCharacterFromSet(NSCharacterSet searchSet) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_182fzonStret( + _ptr, + this.ref.pointer, + _sel_rangeOfCharacterFromSet_, + searchSet.ref.pointer, + ) + : _ptr.ref = _objc_msgSend_182fzon( + this.ref.pointer, + _sel_rangeOfCharacterFromSet_, + searchSet.ref.pointer, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfCharacterFromSet:options: + NSRange rangeOfCharacterFromSet$1( + NSCharacterSet searchSet, { + required NSStringCompareOptions options, + }) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_102xxo4Stret( + _ptr, + this.ref.pointer, + _sel_rangeOfCharacterFromSet_options_, + searchSet.ref.pointer, + options.value, + ) + : _ptr.ref = _objc_msgSend_102xxo4( + this.ref.pointer, + _sel_rangeOfCharacterFromSet_options_, + searchSet.ref.pointer, + options.value, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfCharacterFromSet:options:range: + NSRange rangeOfCharacterFromSet$2( + NSCharacterSet searchSet, { + required NSStringCompareOptions options, + required NSRange range, + }) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1nmlvqcStret( + _ptr, + this.ref.pointer, + _sel_rangeOfCharacterFromSet_options_range_, + searchSet.ref.pointer, + options.value, + range, + ) + : _ptr.ref = _objc_msgSend_1nmlvqc( + this.ref.pointer, + _sel_rangeOfCharacterFromSet_options_range_, + searchSet.ref.pointer, + options.value, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfComposedCharacterSequenceAtIndex: + NSRange rangeOfComposedCharacterSequenceAtIndex(int index) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_d3i1uyStret( + _ptr, + this.ref.pointer, + _sel_rangeOfComposedCharacterSequenceAtIndex_, + index, + ) + : _ptr.ref = _objc_msgSend_d3i1uy( + this.ref.pointer, + _sel_rangeOfComposedCharacterSequenceAtIndex_, + index, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfComposedCharacterSequencesForRange: + NSRange rangeOfComposedCharacterSequencesForRange(NSRange range) { + objc.checkOsVersionInternal( + 'NSString.rangeOfComposedCharacterSequencesForRange:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_uimyc7Stret( + _ptr, + this.ref.pointer, + _sel_rangeOfComposedCharacterSequencesForRange_, + range, + ) + : _ptr.ref = _objc_msgSend_uimyc7( + this.ref.pointer, + _sel_rangeOfComposedCharacterSequencesForRange_, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfString: + NSRange rangeOfString(NSString searchString) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_182fzonStret( + _ptr, + this.ref.pointer, + _sel_rangeOfString_, + searchString.ref.pointer, + ) + : _ptr.ref = _objc_msgSend_182fzon( + this.ref.pointer, + _sel_rangeOfString_, + searchString.ref.pointer, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfString:options: + NSRange rangeOfString$1( + NSString searchString, { + required NSStringCompareOptions options, + }) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_102xxo4Stret( + _ptr, + this.ref.pointer, + _sel_rangeOfString_options_, + searchString.ref.pointer, + options.value, + ) + : _ptr.ref = _objc_msgSend_102xxo4( + this.ref.pointer, + _sel_rangeOfString_options_, + searchString.ref.pointer, + options.value, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfString:options:range: + NSRange rangeOfString$2( + NSString searchString, { + required NSStringCompareOptions options, + required NSRange range, + }) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1nmlvqcStret( + _ptr, + this.ref.pointer, + _sel_rangeOfString_options_range_, + searchString.ref.pointer, + options.value, + range, + ) + : _ptr.ref = _objc_msgSend_1nmlvqc( + this.ref.pointer, + _sel_rangeOfString_options_range_, + searchString.ref.pointer, + options.value, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfString:options:range:locale: + NSRange rangeOfString$3( + NSString searchString, { + required NSStringCompareOptions options, + required NSRange range, + NSLocale? locale, + }) { + objc.checkOsVersionInternal( + 'NSString.rangeOfString:options:range:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_gg0462Stret( + _ptr, + this.ref.pointer, + _sel_rangeOfString_options_range_locale_, + searchString.ref.pointer, + options.value, + range, + locale?.ref.pointer ?? ffi.nullptr, + ) + : _ptr.ref = _objc_msgSend_gg0462( + this.ref.pointer, + _sel_rangeOfString_options_range_locale_, + searchString.ref.pointer, + options.value, + range, + locale?.ref.pointer ?? ffi.nullptr, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// smallestEncoding + int get smallestEncoding { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_smallestEncoding); + } + + /// stringByAppendingFormat: + NSString stringByAppendingFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_stringByAppendingFormat_, + format.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByAppendingString: + NSString stringByAppendingString(NSString aString) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_stringByAppendingString_, + aString.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByApplyingTransform:reverse: + NSString? stringByApplyingTransform( + NSString transform, { + required bool reverse, + }) { + objc.checkOsVersionInternal( + 'NSString.stringByApplyingTransform:reverse:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.pointer, + _sel_stringByApplyingTransform_reverse_, + transform.ref.pointer, + reverse, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByFoldingWithOptions:locale: + NSString stringByFoldingWithOptions( + NSStringCompareOptions options, { + NSLocale? locale, + }) { + objc.checkOsVersionInternal( + 'NSString.stringByFoldingWithOptions:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_11cbyu0( + this.ref.pointer, + _sel_stringByFoldingWithOptions_locale_, + options.value, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByPaddingToLength:withString:startingAtIndex: + NSString stringByPaddingToLength( + int newLength, { + required NSString withString, + required int startingAtIndex, + }) { + final _ret = _objc_msgSend_1tfztp( + this.ref.pointer, + _sel_stringByPaddingToLength_withString_startingAtIndex_, + newLength, + withString.ref.pointer, + startingAtIndex, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByReplacingCharactersInRange:withString: + NSString stringByReplacingCharactersInRange( + NSRange range, { + required NSString withString, + }) { + objc.checkOsVersionInternal( + 'NSString.stringByReplacingCharactersInRange:withString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_bstjp9( + this.ref.pointer, + _sel_stringByReplacingCharactersInRange_withString_, + range, + withString.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByReplacingOccurrencesOfString:withString: + NSString stringByReplacingOccurrencesOfString( + NSString target, { + required NSString withString, + }) { + objc.checkOsVersionInternal( + 'NSString.stringByReplacingOccurrencesOfString:withString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.pointer, + _sel_stringByReplacingOccurrencesOfString_withString_, + target.ref.pointer, + withString.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByReplacingOccurrencesOfString:withString:options:range: + NSString stringByReplacingOccurrencesOfString$1( + NSString target, { + required NSString withString, + required NSStringCompareOptions options, + required NSRange range, + }) { + objc.checkOsVersionInternal( + 'NSString.stringByReplacingOccurrencesOfString:withString:options:range:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_2u4jm6( + this.ref.pointer, + _sel_stringByReplacingOccurrencesOfString_withString_options_range_, + target.ref.pointer, + withString.ref.pointer, + options.value, + range, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByTrimmingCharactersInSet: + NSString stringByTrimmingCharactersInSet(NSCharacterSet set$) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_stringByTrimmingCharactersInSet_, + set$.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// substringFromIndex: + NSString substringFromIndex(int from) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_substringFromIndex_, + from, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// substringToIndex: + NSString substringToIndex(int to) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_substringToIndex_, + to, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// substringWithRange: + NSString substringWithRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + this.ref.pointer, + _sel_substringWithRange_, + range, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// uppercaseString + NSString get uppercaseString { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_uppercaseString); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// uppercaseStringWithLocale: + NSString uppercaseStringWithLocale(NSLocale? locale) { + objc.checkOsVersionInternal( + 'NSString.uppercaseStringWithLocale:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_uppercaseStringWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// writeToFile:atomically:encoding:error: + bool writeToFile( + NSString path, { + required bool atomically, + required int encoding, + required ffi.Pointer> error, + }) { + return _objc_msgSend_dv3z6r( + this.ref.pointer, + _sel_writeToFile_atomically_encoding_error_, + path.ref.pointer, + atomically, + encoding, + error, + ); + } + + /// writeToURL:atomically:encoding:error: + bool writeToURL( + NSURL url, { + required bool atomically, + required int encoding, + required ffi.Pointer> error, + }) { + return _objc_msgSend_dv3z6r( + this.ref.pointer, + _sel_writeToURL_atomically_encoding_error_, + url.ref.pointer, + atomically, + encoding, + error, + ); + } +} + +/// NSURL +class NSURL extends NSObject implements NSSecureCoding, NSCopying { + NSURL._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSURL] that points to the same underlying object as [other]. + NSURL.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSURL] that wraps the given raw object pointer. + NSURL.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURL]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURL, + ); + } + + /// URLByResolvingAliasFileAtURL:options:error: + static NSURL? URLByResolvingAliasFileAtURL( + NSURL url, { + required NSURLBookmarkResolutionOptions options, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.URLByResolvingAliasFileAtURL:options:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_1tiux5i( + _class_NSURL, + _sel_URLByResolvingAliasFileAtURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: + static NSURL? URLByResolvingBookmarkData( + NSData bookmarkData, { + required NSURLBookmarkResolutionOptions options, + NSURL? relativeToURL, + required ffi.Pointer bookmarkDataIsStale, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1ceswyu( + _class_NSURL, + _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, + bookmarkData.ref.pointer, + options.value, + relativeToURL?.ref.pointer ?? ffi.nullptr, + bookmarkDataIsStale, + error, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// URLWithDataRepresentation:relativeToURL: + static NSURL URLWithDataRepresentation(NSData data, {NSURL? relativeToURL}) { + objc.checkOsVersionInternal( + 'NSURL.URLWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + _class_NSURL, + _sel_URLWithDataRepresentation_relativeToURL_, + data.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// URLWithString: + static NSURL? URLWithString(NSString URLString) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSURL, + _sel_URLWithString_, + URLString.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// URLWithString:encodingInvalidCharacters: + /// + /// iOS: introduced 17.0.0 + /// macOS: introduced 14.0.0 + static NSURL? URLWithString$1( + NSString URLString, { + required bool encodingInvalidCharacters, + }) { + objc.checkOsVersionInternal( + 'NSURL.URLWithString:encodingInvalidCharacters:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSURL, + _sel_URLWithString_encodingInvalidCharacters_, + URLString.ref.pointer, + encodingInvalidCharacters, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// URLWithString:relativeToURL: + static NSURL? URLWithString$2(NSString URLString, {NSURL? relativeToURL}) { + final _ret = _objc_msgSend_15qeuct( + _class_NSURL, + _sel_URLWithString_relativeToURL_, + URLString.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// absoluteURLWithDataRepresentation:relativeToURL: + static NSURL absoluteURLWithDataRepresentation( + NSData data, { + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.absoluteURLWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + _class_NSURL, + _sel_absoluteURLWithDataRepresentation_relativeToURL_, + data.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// alloc + static NSURL alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSURL, _sel_alloc); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSURL allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428(_class_NSURL, _sel_allocWithZone_, zone); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// bookmarkDataWithContentsOfURL:error: + static NSData? bookmarkDataWithContentsOfURL( + NSURL bookmarkFileURL, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.bookmarkDataWithContentsOfURL:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1lhpu4m( + _class_NSURL, + _sel_bookmarkDataWithContentsOfURL_error_, + bookmarkFileURL.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURLWithFileSystemRepresentation:isDirectory:relativeToURL: + static NSURL fileURLWithFileSystemRepresentation( + ffi.Pointer path, { + required bool isDirectory, + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_1n40f6p( + _class_NSURL, + _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, + path, + isDirectory, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURLWithPath: + static NSURL fileURLWithPath(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSURL, + _sel_fileURLWithPath_, + path.ref.pointer, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURLWithPath:isDirectory: + static NSURL fileURLWithPath$1(NSString path, {required bool isDirectory}) { + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPath:isDirectory:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSURL, + _sel_fileURLWithPath_isDirectory_, + path.ref.pointer, + isDirectory, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURLWithPath:isDirectory:relativeToURL: + static NSURL fileURLWithPath$2( + NSString path, { + required bool isDirectory, + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPath:isDirectory:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_1ged0jd( + _class_NSURL, + _sel_fileURLWithPath_isDirectory_relativeToURL_, + path.ref.pointer, + isDirectory, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURLWithPath:relativeToURL: + static NSURL fileURLWithPath$3(NSString path, {NSURL? relativeToURL}) { + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPath:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + _class_NSURL, + _sel_fileURLWithPath_relativeToURL_, + path.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSURL new$() { + final _ret = _objc_msgSend_151sglz(_class_NSURL, _sel_new); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static NSURL? objectWithItemProviderData( + NSData data, { + required NSString typeIdentifier, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSURL, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// resourceValuesForKeys:fromBookmarkData: + static NSDictionary? resourceValuesForKeys( + NSArray keys, { + required NSData fromBookmarkData, + }) { + objc.checkOsVersionInternal( + 'NSURL.resourceValuesForKeys:fromBookmarkData:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + _class_NSURL, + _sel_resourceValuesForKeys_fromBookmarkData_, + keys.ref.pointer, + fromBookmarkData.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSURL, _sel_supportsSecureCoding); + } + + /// writeBookmarkData:toURL:options:error: + static bool writeBookmarkData( + NSData bookmarkData, { + required NSURL toURL, + required int options, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.writeBookmarkData:toURL:options:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1vxoo9h( + _class_NSURL, + _sel_writeBookmarkData_toURL_options_error_, + bookmarkData.ref.pointer, + toURL.ref.pointer, + options, + error, + ); + } + + /// absoluteString + NSString? get absoluteString { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_absoluteString); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// absoluteURL + NSURL? get absoluteURL { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_absoluteURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// baseURL + NSURL? get baseURL { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_baseURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error: + NSData? bookmarkDataWithOptions( + NSURLBookmarkCreationOptions options, { + NSArray? includingResourceValuesForKeys, + NSURL? relativeToURL, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1wt9a7r( + this.ref.pointer, + _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_, + options.value, + includingResourceValuesForKeys?.ref.pointer ?? ffi.nullptr, + relativeToURL?.ref.pointer ?? ffi.nullptr, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataRepresentation + NSData get dataRepresentation { + objc.checkOsVersionInternal( + 'NSURL.dataRepresentation', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_dataRepresentation, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// filePathURL + NSURL? get filePathURL { + objc.checkOsVersionInternal( + 'NSURL.filePathURL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_filePathURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileReferenceURL + NSURL? fileReferenceURL() { + objc.checkOsVersionInternal( + 'NSURL.fileReferenceURL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fileReferenceURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileSystemRepresentation + ffi.Pointer get fileSystemRepresentation { + objc.checkOsVersionInternal( + 'NSURL.fileSystemRepresentation', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_1fuqfwb( + this.ref.pointer, + _sel_fileSystemRepresentation, + ); + } + + /// fragment + NSString? get fragment { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fragment); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// getFileSystemRepresentation:maxLength: + bool getFileSystemRepresentation( + ffi.Pointer buffer, { + required int maxLength, + }) { + objc.checkOsVersionInternal( + 'NSURL.getFileSystemRepresentation:maxLength:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_8cymbm( + this.ref.pointer, + _sel_getFileSystemRepresentation_maxLength_, + buffer, + maxLength, + ); + } + + /// getResourceValue:forKey:error: + bool getResourceValue( + ffi.Pointer> value, { + required NSString forKey, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.getResourceValue:forKey:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1j9bhml( + this.ref.pointer, + _sel_getResourceValue_forKey_error_, + value, + forKey.ref.pointer, + error, + ); + } + + /// hasDirectoryPath + bool get hasDirectoryPath { + objc.checkOsVersionInternal( + 'NSURL.hasDirectoryPath', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_hasDirectoryPath); + } + + /// host + NSString? get host { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_host); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSURL init() { + objc.checkOsVersionInternal( + 'NSURL.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initAbsoluteURLWithDataRepresentation:relativeToURL: + NSURL initAbsoluteURLWithDataRepresentation( + NSData data, { + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.initAbsoluteURLWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_, + data.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: + NSURL? initByResolvingBookmarkData( + NSData bookmarkData, { + required NSURLBookmarkResolutionOptions options, + NSURL? relativeToURL, + required ffi.Pointer bookmarkDataIsStale, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1ceswyu( + this.ref.retainAndReturnPointer(), + _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, + bookmarkData.ref.pointer, + options.value, + relativeToURL?.ref.pointer ?? ffi.nullptr, + bookmarkDataIsStale, + error, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL: + NSURL initFileURLWithFileSystemRepresentation( + ffi.Pointer path, { + required bool isDirectory, + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_1n40f6p( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, + path, + isDirectory, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initFileURLWithPath: + NSURL initFileURLWithPath(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_, + path.ref.pointer, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initFileURLWithPath:isDirectory: + NSURL initFileURLWithPath$1(NSString path, {required bool isDirectory}) { + objc.checkOsVersionInternal( + 'NSURL.initFileURLWithPath:isDirectory:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_isDirectory_, + path.ref.pointer, + isDirectory, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initFileURLWithPath:isDirectory:relativeToURL: + NSURL initFileURLWithPath$2( + NSString path, { + required bool isDirectory, + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.initFileURLWithPath:isDirectory:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_1ged0jd( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_isDirectory_relativeToURL_, + path.ref.pointer, + isDirectory, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initFileURLWithPath:relativeToURL: + NSURL initFileURLWithPath$3(NSString path, {NSURL? relativeToURL}) { + objc.checkOsVersionInternal( + 'NSURL.initFileURLWithPath:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_relativeToURL_, + path.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSURL? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithDataRepresentation:relativeToURL: + NSURL initWithDataRepresentation(NSData data, {NSURL? relativeToURL}) { + objc.checkOsVersionInternal( + 'NSURL.initWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithDataRepresentation_relativeToURL_, + data.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithString: + NSURL? initWithString(NSString URLString) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithString_, + URLString.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithString:encodingInvalidCharacters: + /// + /// iOS: introduced 17.0.0 + /// macOS: introduced 14.0.0 + NSURL? initWithString$1( + NSString URLString, { + required bool encodingInvalidCharacters, + }) { + objc.checkOsVersionInternal( + 'NSURL.initWithString:encodingInvalidCharacters:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithString_encodingInvalidCharacters_, + URLString.ref.pointer, + encodingInvalidCharacters, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithString:relativeToURL: + NSURL? initWithString$2(NSString URLString, {NSURL? relativeToURL}) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithString_relativeToURL_, + URLString.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// isFileReferenceURL + bool isFileReferenceURL() { + objc.checkOsVersionInternal( + 'NSURL.isFileReferenceURL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isFileReferenceURL); + } + + /// isFileURL + bool get fileURL { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isFileURL); + } + + /// iOS: introduced 2.0.0, deprecated 13.0.0 + /// macOS: introduced 10.2.0, deprecated 10.15.0 + NSString? get parameterString { + objc.checkOsVersionInternal( + 'NSURL.parameterString', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_parameterString); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// password + NSString? get password { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_password); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// path + NSString? get path { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_path); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// port + NSNumber? get port { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_port); + return _ret.address == 0 + ? null + : NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// query + NSString? get query { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_query); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// relativePath + NSString? get relativePath { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_relativePath); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// relativeString + NSString get relativeString { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_relativeString); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// removeAllCachedResourceValues + void removeAllCachedResourceValues() { + objc.checkOsVersionInternal( + 'NSURL.removeAllCachedResourceValues', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllCachedResourceValues); + } + + /// removeCachedResourceValueForKey: + void removeCachedResourceValueForKey(NSString key) { + objc.checkOsVersionInternal( + 'NSURL.removeCachedResourceValueForKey:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeCachedResourceValueForKey_, + key.ref.pointer, + ); + } + + /// resourceSpecifier + NSString? get resourceSpecifier { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_resourceSpecifier, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// resourceValuesForKeys:error: + NSDictionary? resourceValuesForKeys$1( + NSArray keys, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.resourceValuesForKeys:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1lhpu4m( + this.ref.pointer, + _sel_resourceValuesForKeys_error_, + keys.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// scheme + NSString? get scheme { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_scheme); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// setResourceValue:forKey:error: + bool setResourceValue( + objc.ObjCObjectBase? value, { + required NSString forKey, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.setResourceValue:forKey:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_6z4k82( + this.ref.pointer, + _sel_setResourceValue_forKey_error_, + value?.ref.pointer ?? ffi.nullptr, + forKey.ref.pointer, + error, + ); + } + + /// setResourceValues:error: + bool setResourceValues( + NSDictionary keyedValues, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.setResourceValues:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_l9p60w( + this.ref.pointer, + _sel_setResourceValues_error_, + keyedValues.ref.pointer, + error, + ); + } + + /// setTemporaryResourceValue:forKey: + void setTemporaryResourceValue( + objc.ObjCObjectBase? value, { + required NSString forKey, + }) { + objc.checkOsVersionInternal( + 'NSURL.setTemporaryResourceValue:forKey:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_setTemporaryResourceValue_forKey_, + value?.ref.pointer ?? ffi.nullptr, + forKey.ref.pointer, + ); + } + + /// standardizedURL + NSURL? get standardizedURL { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_standardizedURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// startAccessingSecurityScopedResource + bool startAccessingSecurityScopedResource() { + objc.checkOsVersionInternal( + 'NSURL.startAccessingSecurityScopedResource', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635( + this.ref.pointer, + _sel_startAccessingSecurityScopedResource, + ); + } + + /// stopAccessingSecurityScopedResource + void stopAccessingSecurityScopedResource() { + objc.checkOsVersionInternal( + 'NSURL.stopAccessingSecurityScopedResource', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv( + this.ref.pointer, + _sel_stopAccessingSecurityScopedResource, + ); + } + + /// user + NSString? get user { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_user); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSURL constructed with the default `new` method. + factory NSURL() => new$(); +} + +enum NSURLBookmarkCreationOptions { + NSURLBookmarkCreationPreferFileIDResolution(256), + NSURLBookmarkCreationMinimalBookmark(512), + NSURLBookmarkCreationSuitableForBookmarkFile(1024), + NSURLBookmarkCreationWithSecurityScope(2048), + NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess(4096), + NSURLBookmarkCreationWithoutImplicitSecurityScope(536870912); + + final int value; + const NSURLBookmarkCreationOptions(this.value); + + static NSURLBookmarkCreationOptions fromValue(int value) => switch (value) { + 256 => NSURLBookmarkCreationPreferFileIDResolution, + 512 => NSURLBookmarkCreationMinimalBookmark, + 1024 => NSURLBookmarkCreationSuitableForBookmarkFile, + 2048 => NSURLBookmarkCreationWithSecurityScope, + 4096 => NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess, + 536870912 => NSURLBookmarkCreationWithoutImplicitSecurityScope, + _ => throw ArgumentError( + 'Unknown value for NSURLBookmarkCreationOptions: $value', + ), + }; +} + +enum NSURLBookmarkResolutionOptions { + NSURLBookmarkResolutionWithoutUI(256), + NSURLBookmarkResolutionWithoutMounting(512), + NSURLBookmarkResolutionWithSecurityScope(1024), + NSURLBookmarkResolutionWithoutImplicitStartAccessing(32768); + + final int value; + const NSURLBookmarkResolutionOptions(this.value); + + static NSURLBookmarkResolutionOptions fromValue(int value) => switch (value) { + 256 => NSURLBookmarkResolutionWithoutUI, + 512 => NSURLBookmarkResolutionWithoutMounting, + 1024 => NSURLBookmarkResolutionWithSecurityScope, + 32768 => NSURLBookmarkResolutionWithoutImplicitStartAccessing, + _ => throw ArgumentError( + 'Unknown value for NSURLBookmarkResolutionOptions: $value', + ), + }; +} + +/// NSURLHandle +class NSURLHandle extends NSObject { + NSURLHandle._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSURLHandle] that points to the same underlying object as [other]. + NSURLHandle.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSURLHandle] that wraps the given raw object pointer. + NSURLHandle.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLHandle]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLHandle, + ); + } + + /// alloc + static NSURLHandle alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSURLHandle, _sel_alloc); + return NSURLHandle.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSURLHandle allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSURLHandle, + _sel_allocWithZone_, + zone, + ); + return NSURLHandle.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSURLHandle new$() { + final _ret = _objc_msgSend_151sglz(_class_NSURLHandle, _sel_new); + return NSURLHandle.castFromPointer(_ret, retain: false, release: true); + } + + /// autorelease + NSURLHandle autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSURLHandle.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSURLHandle init() { + objc.checkOsVersionInternal( + 'NSURLHandle.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSURLHandle.castFromPointer(_ret, retain: false, release: true); + } + + /// retain + NSURLHandle retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSURLHandle.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSURLHandle self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSURLHandle.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSURLHandle constructed with the default `new` method. + factory NSURLHandle() => new$(); +} + +enum NSURLHandleStatus { + NSURLHandleNotLoaded(0), + NSURLHandleLoadSucceeded(1), + NSURLHandleLoadInProgress(2), + NSURLHandleLoadFailed(3); + + final int value; + const NSURLHandleStatus(this.value); + + static NSURLHandleStatus fromValue(int value) => switch (value) { + 0 => NSURLHandleNotLoaded, + 1 => NSURLHandleLoadSucceeded, + 2 => NSURLHandleLoadInProgress, + 3 => NSURLHandleLoadFailed, + _ => throw ArgumentError('Unknown value for NSURLHandleStatus: $value'), + }; +} + +/// NSValue +class NSValue extends NSObject implements NSCopying, NSSecureCoding { + NSValue._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSValue] that points to the same underlying object as [other]. + NSValue.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSValue] that wraps the given raw object pointer. + NSValue.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSValue]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSValue, + ); + } + + /// alloc + static NSValue alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSValue, _sel_alloc); + return NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSValue allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSValue, + _sel_allocWithZone_, + zone, + ); + return NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSValue new$() { + final _ret = _objc_msgSend_151sglz(_class_NSValue, _sel_new); + return NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSValue, _sel_supportsSecureCoding); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// getValue:size: + void getValue(ffi.Pointer value, {required int size}) { + objc.checkOsVersionInternal( + 'NSValue.getValue:size:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_zuf90e(this.ref.pointer, _sel_getValue_size_, value, size); + } + + /// init + NSValue init() { + objc.checkOsVersionInternal( + 'NSValue.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:objCType: + NSValue initWithBytes( + ffi.Pointer value, { + required ffi.Pointer objCType, + }) { + final _ret = _objc_msgSend_e9mncn( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_objCType_, + value, + objCType, + ); + return NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSValue? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// objCType + ffi.Pointer get objCType { + return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_objCType); + } + + /// Returns a new instance of NSValue constructed with the default `new` method. + factory NSValue() => new$(); +} + +final class NSZone extends ffi.Opaque {} + +ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSArray_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSArray_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_NSArray_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + NSArray Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSArray_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSArray_ffiVoid_CallExtension + on objc.ObjCBlock)> { + NSArray call(ffi.Pointer arg0) => NSArray.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); +} + +int _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline, + 0, + ) + .cast(); +int +_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as int Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline, + 0, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + NSComparisonResult Function(objc.ObjCObjectBase, objc.ObjCObjectBase) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + objc.ObjCObjectBase(arg1, retain: true, release: true), + ).value, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_CallExtension + on + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + NSComparisonResult call(objc.ObjCObjectBase arg0, objc.ObjCObjectBase arg1) => + NSComparisonResult.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer), + ); +} + +int +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline, + 0, + ) + .cast(); +int +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as int Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable = + ffi.Pointer.fromFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline, + 0, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock, NSString)>`. +abstract final class ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSString)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSString)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock, NSString)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSString)>( + objc.newPointerBlock( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSString)> + fromFunction( + NSItemProviderRepresentationVisibility Function( + ffi.Pointer, + NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSString)>( + objc.newClosureBlock( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSString.castFromPointer(arg1, retain: true, release: true), + ).value, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, NSString)>`. +extension ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_CallExtension + on objc.ObjCBlock, NSString)> { + NSItemProviderRepresentationVisibility call( + ffi.Pointer arg0, + NSString arg1, + ) => NSItemProviderRepresentationVisibility.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer), + ); +} + +ffi.Pointer +_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer +_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrTrampoline, + ) + .cast(); +ffi.Pointer +_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); +ffi.Pointer +_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureTrampoline, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + >( + objc.newPointerBlock( + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + > + fromFunction( + NSOrderedCollectionChange Function(NSOrderedCollectionChange) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + >( + objc.newClosureBlock( + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureCallable, + (ffi.Pointer arg0) => fn( + NSOrderedCollectionChange.castFromPointer( + arg0, + retain: true, + release: true, + ), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_CallExtension + on + objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + > { + NSOrderedCollectionChange call(NSOrderedCollectionChange arg0) => + NSOrderedCollectionChange.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ))(arg0); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSProgress_ffiVoidNSDataNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSProgress? Function(objc.ObjCBlock) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + NSProgress? Function(objc.ObjCBlock) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSProgress? Function(objc.ObjCBlock) + > + fromFunction( + NSProgress? Function(objc.ObjCBlock) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureCallable, + (ffi.Pointer arg0) => + fn( + ObjCBlock_ffiVoid_NSData_NSError.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSProgress_ffiVoidNSDataNSError_CallExtension + on + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > { + NSProgress? call(objc.ObjCBlock arg0) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer) + .address == + 0 + ? null + : NSProgress.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ))(arg0); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > + fromFunction( + NSProgress? Function( + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureCallable, + (ffi.Pointer arg0) => + fn( + ObjCBlock_ffiVoid_NSURL_bool_NSError.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_CallExtension + on + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > { + NSProgress? call( + objc.ObjCBlock arg0, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer) + .address == + 0 + ? null + : NSProgress.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock, NSString, objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + > + fromFunction( + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + fn( + arg0, + NSString.castFromPointer(arg1, retain: true, release: true), + ObjCBlock_ffiVoid_NSData_NSError.castFromPointer( + arg2, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, NSString, objc.ObjCBlock)>`. +extension ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_CallExtension + on + objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + > { + NSProgress? call( + ffi.Pointer arg0, + NSString arg1, + objc.ObjCBlock arg2, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer) + .address == + 0 + ? null + : NSProgress.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ))(arg0); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock?, NSError?)>)>`. +abstract final class ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + > + fromFunction( + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureCallable, + (ffi.Pointer arg0) => + fn( + ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock?, NSError?)>)>`. +extension ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_CallExtension + on + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + > { + NSProgress? call( + objc.ObjCBlock?, NSError?)> + arg0, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer) + .address == + 0 + ? null + : NSProgress.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer _ObjCBlock_NSString_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer _ObjCBlock_NSString_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSString_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer _ObjCBlock_NSString_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_NSString_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSString_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSString_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_NSString_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + NSString Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSString_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSString_ffiVoid_CallExtension + on objc.ObjCBlock)> { + NSString call(ffi.Pointer arg0) => NSString.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); +} + +int _ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline, 0) + .cast(); +int _ObjCBlock_NSUInteger_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_NSUInteger_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSUInteger_ffiVoid_closureTrampoline, 0) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSUInteger_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + int Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSUInteger_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSUInteger_ffiVoid_CallExtension + on objc.ObjCBlock)> { + int call(ffi.Pointer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); +} + +int +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + ffi.UnsignedLong arg3, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >()(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline, + 0, + ) + .cast(); +int +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, +) => + (objc.getBlockClosure(block) + as int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ))(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable = + ffi.Pointer.fromFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline, + 0, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + ffi.UnsignedLong arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + fromFunction( + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, + ) => fn(arg0, arg1, arg2, arg3), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. +extension ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_CallExtension + on + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > { + int call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + ffi.UnsignedLong arg3, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >()(ref.pointer, arg0, arg1, arg2, arg3); +} + +ffi.Pointer _ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction Function(ffi.Pointer)>()(arg0); +ffi.Pointer _ObjCBlock_NSZone_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer _ObjCBlock_NSZone_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_NSZone_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSZone_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_NSZone_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function(ffi.Pointer)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newPointerBlock(_ObjCBlock_NSZone_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunction( + ffi.Pointer Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newClosureBlock( + _ObjCBlock_NSZone_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_NSZone_ffiVoid_CallExtension + on objc.ObjCBlock Function(ffi.Pointer)> { + ffi.Pointer call(ffi.Pointer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); +} + +bool _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_KeyType_ObjectType_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_bool_KeyType_ObjectType_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_KeyType_ObjectType_bool_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_KeyType_ObjectType_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function( + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_bool_KeyType_ObjectType_bool_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + objc.ObjCObjectBase(arg1, retain: true, release: true), + arg2, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_bool_KeyType_ObjectType_bool_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call( + objc.ObjCObjectBase arg0, + objc.ObjCObjectBase arg1, + ffi.Pointer arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2); +} + +bool _ObjCBlock_bool_NSUInteger_bool_fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + >() + .asFunction)>()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_NSUInteger_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_bool_NSUInteger_bool_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_NSUInteger_bool_closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => (objc.getBlockClosure(block) as bool Function(int, ffi.Pointer))( + arg0, + arg1, +); +ffi.Pointer _ObjCBlock_bool_NSUInteger_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_bool_NSUInteger_bool_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_bool_NSUInteger_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_bool_NSUInteger_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + fromFunction( + bool Function(int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_bool_NSUInteger_bool_closureCallable, + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_bool_NSUInteger_bool_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > { + bool call(int arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); +} + +bool _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, int, ffi.Pointer) + >()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ObjectType_NSUInteger_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_bool_ObjectType_NSUInteger_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ObjectType_NSUInteger_bool_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ObjectType_NSUInteger_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + fromFunction( + bool Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_bool_ObjectType_NSUInteger_bool_closureCallable, + ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + arg1, + arg2, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. +extension ObjCBlock_bool_ObjectType_NSUInteger_bool_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > { + bool call(objc.ObjCObjectBase arg0, int arg1, ffi.Pointer arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1, arg2); +} + +bool _ObjCBlock_bool_ObjectType_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ObjectType_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ObjectType_bool_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ObjectType_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_bool_ObjectType_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ObjectType_bool_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ObjectType_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_bool_ObjectType_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + bool Function(objc.ObjCObjectBase, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_bool_ObjectType_bool_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(objc.ObjCObjectBase(arg0, retain: true, release: true), arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_ObjectType_bool_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > { + bool call(objc.ObjCObjectBase arg0, ffi.Pointer arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1); +} + +bool _ObjCBlock_bool_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_bool_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) as bool Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_bool_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_bool_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + bool Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_bool_ffiVoid_CallExtension + on objc.ObjCBlock)> { + bool call(ffi.Pointer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); +} + +bool _ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_bool_ffiVoid_Protocol_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, Protocol)>`. +abstract final class ObjCBlock_bool_ffiVoid_Protocol { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, Protocol)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, Protocol)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock, Protocol)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, Protocol)>( + objc.newPointerBlock( + _ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, Protocol)> + fromFunction( + bool Function(ffi.Pointer, Protocol) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, Protocol)>( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_Protocol_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, Protocol.castFromPointer(arg1, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, Protocol)>`. +extension ObjCBlock_bool_ffiVoid_Protocol_CallExtension + on objc.ObjCBlock, Protocol)> { + bool call(ffi.Pointer arg0, Protocol arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); +} + +bool _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ffiVoid_objcObjCObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + bool Function(ffi.Pointer, objc.ObjCObjectBase) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, objc.ObjCObjectBase(arg1, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_ffiVoid_objcObjCObject_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > { + bool call(ffi.Pointer arg0, objc.ObjCObjectBase arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); +} + +bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ffiVoid_objcObjCSelector { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + bool Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_ffiVoid_objcObjCSelector_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call(ffi.Pointer arg0, ffi.Pointer arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); +} + +void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_KeyType_ObjectType_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + void Function( + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + objc.ObjCObjectBase(arg1, retain: true, release: true), + arg2, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + listener( + void Function( + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + objc.ObjCObjectBase(arg1, retain: false, release: true), + arg2, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1o83rbn(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + blocking( + void Function( + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + objc.ObjCObjectBase(arg1, retain: false, release: true), + arg2, + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + objc.ObjCObjectBase(arg1, retain: false, release: true), + arg2, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1o83rbn( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_KeyType_ObjectType_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + void call( + objc.ObjCObjectBase arg0, + objc.ObjCObjectBase arg1, + ffi.Pointer arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2); +} + +void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSData_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSData?, NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_NSError_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSData.castFromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSData?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_NSError_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSData?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_NSError_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSData_NSError_CallExtension + on objc.ObjCBlock { + void call(NSData? arg0, NSError? arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + ); +} + +void +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>`. +abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + fromFunction( + void Function( + objc.ObjCBlock?, NSError)>, + objc.ObjCObjectBase, + NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: true, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: true, release: true), + NSDictionary.castFromPointer(arg2, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + listener( + void Function( + objc.ObjCBlock?, NSError)>, + objc.ObjCObjectBase, + NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1b3bb6a(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + blocking( + void Function( + objc.ObjCBlock?, NSError)>, + objc.ObjCObjectBase, + NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>`. +extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + > { + void call( + objc.ObjCBlock?, NSError)> + arg0, + objc.ObjCObjectBase arg1, + NSDictionary arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); +} + +void _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline( + ffi.Pointer block, + NSRange arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(NSRange arg0, ffi.Pointer arg1) + > + >() + .asFunction)>()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer block, + NSRange arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(NSRange, ffi.Pointer))(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSRange_bool_listenerTrampoline( + ffi.Pointer block, + NSRange arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(NSRange, ffi.Pointer))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSRange_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSRange_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + NSRange arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(NSRange, ffi.Pointer))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSRange_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSRange_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(NSRange arg0, ffi.Pointer arg1) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSRange_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + void Function(NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSRange_bool_closureCallable, + (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + listener( + void Function(NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSRange_bool_listenerCallable.nativeFunction.cast(), + (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_zkjmn1(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> + blocking( + void Function(NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSRange_bool_blockingCallable.nativeFunction.cast(), + (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSRange_bool_blockingListenerCallable.nativeFunction + .cast(), + (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_zkjmn1( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSRange_bool_CallExtension + on objc.ObjCBlock)> { + void call(NSRange arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSRange arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); +} + +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + fromFunction( + void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureCallable, + ( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => fn( + arg0.address == 0 + ? null + : NSString.castFromPointer(arg0, retain: true, release: true), + arg1, + arg2, + arg3, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + listener( + void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => fn( + arg0.address == 0 + ? null + : NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2, + arg3, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_lmc3p5(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + blocking( + void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => fn( + arg0.address == 0 + ? null + : NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2, + arg3, + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => fn( + arg0.address == 0 + ? null + : NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2, + arg3, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_lmc3p5( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > { + void call( + NSString? arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1, arg2, arg3); +} + +void _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSString_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSString_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSString_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSString_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + void Function(NSString, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_bool_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSString.castFromPointer(arg0, retain: true, release: true), arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + listener( + void Function(NSString, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_bool_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_t8l8el(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> + blocking( + void Function(NSString, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_bool_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_bool_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_t8l8el( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSString_bool_CallExtension + on objc.ObjCBlock)> { + void call(NSString arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1); +} + +void _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + >() + .asFunction)>()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( + arg0, + arg1, +); +ffi.Pointer _ObjCBlock_ffiVoid_NSUInteger_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSUInteger_bool_listenerTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSUInteger_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSUInteger_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSUInteger_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSUInteger_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSUInteger_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + fromFunction( + void Function(int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSUInteger_bool_closureCallable, + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + listener( + void Function(int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSUInteger_bool_listenerCallable.nativeFunction.cast(), + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_q5jeyk(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + blocking( + void Function(int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSUInteger_bool_blockingCallable.nativeFunction.cast(), + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSUInteger_bool_blockingListenerCallable.nativeFunction + .cast(), + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_q5jeyk( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSUInteger_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > { + void call(int arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); +} + +void _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSURL_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSURL_NSError_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURL_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSURL?, NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_NSError_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURL?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_NSError_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURL?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_NSError_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_NSError_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURL_NSError_CallExtension + on objc.ObjCBlock { + void call(NSURL? arg0, NSError? arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + ); +} + +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + bool, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + bool, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + bool, + ffi.Pointer, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + bool, + ffi.Pointer, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURL_bool_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(NSURL?, bool, NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureCallable, + ( + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: true, release: true), + arg1, + arg2.address == 0 + ? null + : NSError.castFromPointer(arg2, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURL?, bool, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2.address == 0 + ? null + : NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_rnu2c5(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURL?, bool, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2.address == 0 + ? null + : NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2.address == 0 + ? null + : NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_rnu2c5( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURL_bool_NSError_CallExtension + on objc.ObjCBlock { + void call(NSURL? arg0, bool arg1, NSError? arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1, + arg2?.ref.pointer ?? ffi.nullptr, + ); +} + +void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, int, ffi.Pointer) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + fromFunction( + void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureCallable, + ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + arg1, + arg2, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + listener( + void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + arg1, + arg2, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1p9ui4q(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + blocking( + void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + arg1, + arg2, + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + arg1, + arg2, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > { + void call(objc.ObjCObjectBase arg0, int arg1, ffi.Pointer arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1, arg2); +} + +void _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ObjectType_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ObjectType_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_ffiVoid_ObjectType_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ObjectType_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ObjectType_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ObjectType_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ObjectType_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_bool_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(objc.ObjCObjectBase(arg0, retain: true, release: true), arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + listener( + void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_bool_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_t8l8el(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + blocking( + void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_bool_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_bool_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_t8l8el( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ObjectType_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > { + void call(objc.ObjCObjectBase arg0, ffi.Pointer arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1); +} + +void _ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_ffiVoid_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { + try { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_ovsamd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_ovsamd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_CallExtension + on objc.ObjCBlock)> { + void call(ffi.Pointer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, NSCoder)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSCoder)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSCoder)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock, NSCoder)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSCoder)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSCoder)> + fromFunction( + void Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSCoder)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSCoder)> + listener( + void Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_18v1jvf(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock, NSCoder)>( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSCoder)> + blocking( + void Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock, NSCoder)>( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock, NSCoder)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSCoder_CallExtension + on objc.ObjCBlock, NSCoder)> { + void call(ffi.Pointer arg0, NSCoder arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, NSRange, ffi.Pointer) + >()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, NSRange, ffi.Pointer))( + arg0, + arg1, + arg2, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, NSRange, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + fromFunction( + void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureCallable, + ( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => fn(arg0, arg1, arg2), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + listener( + void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1q8ia8l(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + blocking( + void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, NSRange, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > { + void call( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, NSStream, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: true, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: false, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_hoampi(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: false, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: false, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_hoampi( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, NSStream, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > { + void call(ffi.Pointer arg0, NSStream arg1, NSStreamEvent arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.value); +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.UnsignedLong arg1) + > + >() + .asFunction, int)>()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) => (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( + arg0, + arg1, +); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + int arg1, +) { + try { + (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.UnsignedLong arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureCallable, + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_zuf90e(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_zuf90e( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSUInteger_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > { + void call(ffi.Pointer arg0, int arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, arg1); +} + +void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock?, NSError?)>`. +abstract final class ObjCBlock_ffiVoid_idNSItemProviderReading_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + fromFunction( + void Function(NSItemProviderReading?, NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : NSItemProviderReading.castFromPointer( + arg0, + retain: true, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + listener( + void Function(NSItemProviderReading?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderReading.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + blocking( + void Function(NSItemProviderReading?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderReading.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderReading.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock?, NSError?)>`. +extension ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > { + void call(NSItemProviderReading? arg0, NSError? arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + ); +} + +void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock?, NSError?)>`. +abstract final class ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + fromFunction( + void Function(NSItemProviderWriting?, NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : NSItemProviderWriting.castFromPointer( + arg0, + retain: true, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + listener( + void Function(NSItemProviderWriting?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderWriting.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + blocking( + void Function(NSItemProviderWriting?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderWriting.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderWriting.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock?, NSError?)>`. +extension ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > { + void call(NSItemProviderWriting? arg0, NSError? arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + ); +} + +void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock?, NSError)>`. +abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock?, NSError)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock?, NSError)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + fromFunction( + void Function(NSSecureCoding?, NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock?, NSError)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: true, + release: true, + ), + NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + listener( + void Function(NSSecureCoding?, NSError) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + blocking( + void Function(NSSecureCoding?, NSError) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock?, NSError)>`. +extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > { + void call(NSSecureCoding? arg0, NSError arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1.ref.pointer); +} + +void _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + >() + .asFunction, int)>()( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, int))(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_unichar_NSUInteger_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_unichar_NSUInteger_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, int))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_unichar_NSUInteger_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener(_ObjCBlock_ffiVoid_unichar_NSUInteger_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + int arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, int))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener(_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_unichar_NSUInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_unichar_NSUInteger_closureCallable, + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_unichar_NSUInteger_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_vhbh5h(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_vhbh5h( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_unichar_NSUInteger_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > { + void call(ffi.Pointer arg0, int arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, arg1); +} + +instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline) + .cast(); +instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as instancetype Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>`. +abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + >( + objc.newPointerBlock( + _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > + fromFunction( + Dartinstancetype? Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + >( + objc.newClosureBlock( + _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0, + NSCoder.castFromPointer(arg1, retain: true, release: true), + )?.ref.retainAndReturnPointer() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>`. +extension ObjCBlock_instancetype_ffiVoid_NSCoder_CallExtension + on + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > { + Dartinstancetype? call(ffi.Pointer arg0, NSCoder arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer) + .address == + 0 + ? null + : objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer), + retain: false, + release: true, + ); +} + +instancetype +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline) + .cast(); +instancetype +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +) => + (objc.getBlockClosure(block) + as instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ))(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>`. +abstract final class ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + >( + objc.newPointerBlock( + _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > + fromFunction( + Dartinstancetype? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + >( + objc.newClosureBlock( + _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) => + fn( + arg0, + NSData.castFromPointer(arg1, retain: true, release: true), + NSString.castFromPointer(arg2, retain: true, release: true), + arg3, + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>`. +extension ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > { + Dartinstancetype? call( + ffi.Pointer arg0, + NSData arg1, + NSString arg2, + ffi.Pointer> arg3, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3) + .address == + 0 + ? null + : objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock? Function(NSError, NSString)>`. +abstract final class ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer? Function(NSError, NSString) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock? Function(NSError, NSString)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer? Function(NSError, NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock? Function(NSError, NSString)>( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer? Function(NSError, NSString) + > + fromFunction( + objc.ObjCObjectBase? Function(NSError, NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock? Function(NSError, NSString)>( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + fn( + NSError.castFromPointer(arg0, retain: true, release: true), + NSString.castFromPointer(arg1, retain: true, release: true), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock? Function(NSError, NSString)>`. +extension ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_CallExtension + on + objc.ObjCBlock< + ffi.Pointer? Function(NSError, NSString) + > { + objc.ObjCObjectBase? call(NSError arg0, NSString arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer) + .address == + 0 + ? null + : objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid_NSZone { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1).ref.retainAndReturnPointer(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_NSZone_CallExtension + on + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.ObjCObjectBase call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1), + retain: false, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function( + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.ObjCObjectBase call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline, + ) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function( + ffi.Pointer, + ffi.Pointer, + objc.ObjCObjectBase, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + arg1, + objc.ObjCObjectBase(arg2, retain: true, release: true), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.ObjCObjectBase call( + ffi.Pointer arg0, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline, + ) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function( + ffi.Pointer, + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + arg1, + objc.ObjCObjectBase(arg2, retain: true, release: true), + objc.ObjCObjectBase(arg3, retain: true, release: true), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.ObjCObjectBase call( + ffi.Pointer arg0, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + objc.ObjCObjectBase arg3, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2.ref.pointer, arg3.ref.pointer), + retain: true, + release: true, + ); +} + +/// Protocol +class Protocol extends objc.ObjCObjectBase { + Protocol._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [Protocol] that points to the same underlying object as [other]. + Protocol.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [Protocol] that wraps the given raw object pointer. + Protocol.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [Protocol]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_Protocol, + ); + } +} + +late final _class_NSArray = objc.getClass("NSArray"); +late final _class_NSCharacterSet = objc.getClass("NSCharacterSet"); +late final _class_NSCoder = objc.getClass("NSCoder"); +late final _class_NSData = objc.getClass("NSData"); +late final _class_NSDate = objc.getClass("NSDate"); +late final _class_NSDictionary = objc.getClass("NSDictionary"); +late final _class_NSEnumerator = objc.getClass("NSEnumerator"); +late final _class_NSError = objc.getClass("NSError"); +late final _class_NSIndexSet = objc.getClass("NSIndexSet"); +late final _class_NSInputStream = objc.getClass("NSInputStream"); +late final _class_NSInvocation = objc.getClass("NSInvocation"); +late final _class_NSItemProvider = objc.getClass("NSItemProvider"); +late final _class_NSLocale = objc.getClass("NSLocale"); +late final _class_NSMethodSignature = objc.getClass("NSMethodSignature"); +late final _class_NSMutableArray = objc.getClass("NSMutableArray"); +late final _class_NSMutableData = objc.getClass("NSMutableData"); +late final _class_NSMutableDictionary = objc.getClass("NSMutableDictionary"); +late final _class_NSMutableIndexSet = objc.getClass("NSMutableIndexSet"); +late final _class_NSMutableOrderedSet = objc.getClass("NSMutableOrderedSet"); +late final _class_NSMutableSet = objc.getClass("NSMutableSet"); +late final _class_NSMutableString = objc.getClass("NSMutableString"); +late final _class_NSNotification = objc.getClass("NSNotification"); +late final _class_NSNumber = objc.getClass("NSNumber"); +late final _class_NSObject = objc.getClass("NSObject"); +late final _class_NSOrderedCollectionChange = objc.getClass( + "NSOrderedCollectionChange", +); +late final _class_NSOrderedCollectionDifference = objc.getClass( + "NSOrderedCollectionDifference", +); +late final _class_NSOrderedSet = objc.getClass("NSOrderedSet"); +late final _class_NSOutputStream = objc.getClass("NSOutputStream"); +late final _class_NSProgress = objc.getClass("NSProgress"); +late final _class_NSRunLoop = objc.getClass("NSRunLoop"); +late final _class_NSSet = objc.getClass("NSSet"); +late final _class_NSStream = objc.getClass("NSStream"); +late final _class_NSString = objc.getClass("NSString"); +late final _class_NSURL = objc.getClass("NSURL"); +late final _class_NSURLHandle = objc.getClass("NSURLHandle"); +late final _class_NSValue = objc.getClass("NSValue"); +late final _class_Protocol = objc.getClass("Protocol"); +final _objc_msgSend_102xxo4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_102xxo4Stret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_10mlopr = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11cbyu0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11e9f5x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_11spmsz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_122v0cv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_12py2ux = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_134vhyh = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_13mclwd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Char, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_13x5boi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_13yqbb6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_14ew8zr = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_14hpxwa = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_14hvw5k = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_158ju31 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_15bolr3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_15qeuct = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_161ne8y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); +final _objc_msgSend_1698hqz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_16f0drb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_16fy0up = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_177cajs = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_17amj0z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_182fzon = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_182fzonStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1895u4n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18qun1e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_19lrthf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + >(); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1alewu7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1b5ysjl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_1bvics1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ceswyu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1co9mn4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedShort, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1d8s65w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_1d8s65wStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_1d9e4oe = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1deg8x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedShort Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1dydpdi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_1e3pm0z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_1efxbd8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1egc1c = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >(); +final _objc_msgSend_1ffoev1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1fuqfwb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ged0jd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1gypgok = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1h2q612 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1hz7y9r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1i2r70j = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1i9r4xy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1i9v144 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1iyq28l = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1j9bhml = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1jtxufi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1jwityx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1k0ezzm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1k101e3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1k1o1s7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_1k4kd9s = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1k745tv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1ko4qka = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedChar Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1lbgrac = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1lsax7n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lv8yz3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_1n40f6p = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1njucl2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedShort, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1nmlvqc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_1nmlvqcStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_1nomli1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1oteutl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_1ozwf6k = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1p4gbjy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1pa9f4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pl40xc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1q30cs4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1qv0eq4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1sotr3r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1srf6wk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1t6aok9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1tfztp = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1tiux5i = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1tv4uax = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vd1c5m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vnlaqg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1vxoo9h = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1wdb8ji = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1wt9a7r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1x2hskc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLongLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1x5ew3h = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1xi08ar = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1ym6zyw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2u4jm6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_3cbdpb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3ctkt6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3nbx5e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_3pyzne = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_56zxyn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_68x6r1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Short, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_6ex6p5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_6jmuyz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_6peh6o = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_6z4k82 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_7g3u2y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_7kpg7m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_7uautw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedChar, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_8321cp = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_898fog = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_89xgla = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_8cymbm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_91o635 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_9b3h4v = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_9x4k8x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_a3wp08 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_arew0j = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_bfp043 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_bstjp9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_c0vg4w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_cfx8ce = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_cnxxyq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_d3i1uy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_d3i1uyStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_degb40 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_diypgk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_djsa9o = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_dv3z6r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_e3qsqz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_e9mncn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_eh32gn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_erqryg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_et8cuh = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_f167m6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_gcjqkl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_gerswc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint8, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_gg0462 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_gg0462Stret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_gx50so = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hc8exi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_hiwitm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); +final _objc_msgSend_i30zh3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + int, + int, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_jjgvjt = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_jsclrq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_k1x6mt = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_k4j8m3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + bool, + ) + >(); +final _objc_msgSend_kshx9d = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_l9p60w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_lh0jh5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); +final _objc_msgSend_mabicu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_n2svg2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_nnxkei = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_o16d3k = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSRange, + ) + >(); +final _objc_msgSend_o762yo = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_oa8mke = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_otx1t4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_ourvf2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_p4nurx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_pfv6jd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_pg1fnv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_qm9f5w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_qugqlf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_r0bo0s = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_rc4ypv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_s92gih = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_sz90oi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_t7arir = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_talwei = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_ud8gg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedShort Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_uimyc7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_uimyc7Stret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_vbymrb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_w9bq5x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + bool, + ) + >(); +final _objc_msgSend_xmlz1t = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Char Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_xpqfd7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_xrqic1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_xw2lbc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_yx8yc6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_zmbtbd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_zuf90e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_zug4wi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +late final _protocol_NSCoding = objc.getProtocol("NSCoding"); +late final _protocol_NSCopying = objc.getProtocol("NSCopying"); +late final _protocol_NSFastEnumeration = objc.getProtocol("NSFastEnumeration"); +late final _protocol_NSItemProviderReading = objc.getProtocol( + "NSItemProviderReading", +); +late final _protocol_NSItemProviderWriting = objc.getProtocol( + "NSItemProviderWriting", +); +late final _protocol_NSMutableCopying = objc.getProtocol("NSMutableCopying"); +late final _protocol_NSObject = objc.getProtocol("NSObject"); +late final _protocol_NSSecureCoding = objc.getProtocol("NSSecureCoding"); +late final _protocol_NSStreamDelegate = objc.getProtocol("NSStreamDelegate"); +late final _sel_URLByResolvingAliasFileAtURL_options_error_ = objc.registerName( + "URLByResolvingAliasFileAtURL:options:error:", +); +late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = + objc.registerName( + "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", + ); +late final _sel_URLWithDataRepresentation_relativeToURL_ = objc.registerName( + "URLWithDataRepresentation:relativeToURL:", +); +late final _sel_URLWithString_ = objc.registerName("URLWithString:"); +late final _sel_URLWithString_encodingInvalidCharacters_ = objc.registerName( + "URLWithString:encodingInvalidCharacters:", +); +late final _sel_URLWithString_relativeToURL_ = objc.registerName( + "URLWithString:relativeToURL:", +); +late final _sel_UTF8String = objc.registerName("UTF8String"); +late final _sel_absoluteString = objc.registerName("absoluteString"); +late final _sel_absoluteURL = objc.registerName("absoluteURL"); +late final _sel_absoluteURLWithDataRepresentation_relativeToURL_ = objc + .registerName("absoluteURLWithDataRepresentation:relativeToURL:"); +late final _sel_addEntriesFromDictionary_ = objc.registerName( + "addEntriesFromDictionary:", +); +late final _sel_addIndex_ = objc.registerName("addIndex:"); +late final _sel_addIndexesInRange_ = objc.registerName("addIndexesInRange:"); +late final _sel_addIndexes_ = objc.registerName("addIndexes:"); +late final _sel_addObject_ = objc.registerName("addObject:"); +late final _sel_addObjectsFromArray_ = objc.registerName( + "addObjectsFromArray:", +); +late final _sel_addObjects_count_ = objc.registerName("addObjects:count:"); +late final _sel_allKeys = objc.registerName("allKeys"); +late final _sel_allKeysForObject_ = objc.registerName("allKeysForObject:"); +late final _sel_allObjects = objc.registerName("allObjects"); +late final _sel_allValues = objc.registerName("allValues"); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +late final _sel_alphanumericCharacterSet = objc.registerName( + "alphanumericCharacterSet", +); +late final _sel_anyObject = objc.registerName("anyObject"); +late final _sel_appendBytes_length_ = objc.registerName("appendBytes:length:"); +late final _sel_appendData_ = objc.registerName("appendData:"); +late final _sel_array = objc.registerName("array"); +late final _sel_arrayByAddingObject_ = objc.registerName( + "arrayByAddingObject:", +); +late final _sel_arrayByAddingObjectsFromArray_ = objc.registerName( + "arrayByAddingObjectsFromArray:", +); +late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); +late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); +late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); +late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); +late final _sel_arrayWithObjects_count_ = objc.registerName( + "arrayWithObjects:count:", +); +late final _sel_associatedIndex = objc.registerName("associatedIndex"); +late final _sel_autorelease = objc.registerName("autorelease"); +late final _sel_availableStringEncodings = objc.registerName( + "availableStringEncodings", +); +late final _sel_baseURL = objc.registerName("baseURL"); +late final _sel_bitmapRepresentation = objc.registerName( + "bitmapRepresentation", +); +late final _sel_bookmarkDataWithContentsOfURL_error_ = objc.registerName( + "bookmarkDataWithContentsOfURL:error:", +); +late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_ = + objc.registerName( + "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:", + ); +late final _sel_boolValue = objc.registerName("boolValue"); +late final _sel_bytes = objc.registerName("bytes"); +late final _sel_cStringUsingEncoding_ = objc.registerName( + "cStringUsingEncoding:", +); +late final _sel_canBeConvertedToEncoding_ = objc.registerName( + "canBeConvertedToEncoding:", +); +late final _sel_canLoadObjectOfClass_ = objc.registerName( + "canLoadObjectOfClass:", +); +late final _sel_capitalizedLetterCharacterSet = objc.registerName( + "capitalizedLetterCharacterSet", +); +late final _sel_capitalizedString = objc.registerName("capitalizedString"); +late final _sel_capitalizedStringWithLocale_ = objc.registerName( + "capitalizedStringWithLocale:", +); +late final _sel_caseInsensitiveCompare_ = objc.registerName( + "caseInsensitiveCompare:", +); +late final _sel_changeType = objc.registerName("changeType"); +late final _sel_changeWithObject_type_index_ = objc.registerName( + "changeWithObject:type:index:", +); +late final _sel_changeWithObject_type_index_associatedIndex_ = objc + .registerName("changeWithObject:type:index:associatedIndex:"); +late final _sel_charValue = objc.registerName("charValue"); +late final _sel_characterAtIndex_ = objc.registerName("characterAtIndex:"); +late final _sel_characterIsMember_ = objc.registerName("characterIsMember:"); +late final _sel_characterSetWithBitmapRepresentation_ = objc.registerName( + "characterSetWithBitmapRepresentation:", +); +late final _sel_characterSetWithCharactersInString_ = objc.registerName( + "characterSetWithCharactersInString:", +); +late final _sel_characterSetWithContentsOfFile_ = objc.registerName( + "characterSetWithContentsOfFile:", +); +late final _sel_characterSetWithRange_ = objc.registerName( + "characterSetWithRange:", +); +late final _sel_class = objc.registerName("class"); +late final _sel_close = objc.registerName("close"); +late final _sel_code = objc.registerName("code"); +late final _sel_commonPrefixWithString_options_ = objc.registerName( + "commonPrefixWithString:options:", +); +late final _sel_compare_ = objc.registerName("compare:"); +late final _sel_compare_options_ = objc.registerName("compare:options:"); +late final _sel_compare_options_range_ = objc.registerName( + "compare:options:range:", +); +late final _sel_compare_options_range_locale_ = objc.registerName( + "compare:options:range:locale:", +); +late final _sel_componentsJoinedByString_ = objc.registerName( + "componentsJoinedByString:", +); +late final _sel_componentsSeparatedByCharactersInSet_ = objc.registerName( + "componentsSeparatedByCharactersInSet:", +); +late final _sel_componentsSeparatedByString_ = objc.registerName( + "componentsSeparatedByString:", +); +late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( + "compressedDataUsingAlgorithm:error:", +); +late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); +late final _sel_containsIndex_ = objc.registerName("containsIndex:"); +late final _sel_containsIndexesInRange_ = objc.registerName( + "containsIndexesInRange:", +); +late final _sel_containsIndexes_ = objc.registerName("containsIndexes:"); +late final _sel_containsObject_ = objc.registerName("containsObject:"); +late final _sel_containsString_ = objc.registerName("containsString:"); +late final _sel_controlCharacterSet = objc.registerName("controlCharacterSet"); +late final _sel_copy = objc.registerName("copy"); +late final _sel_copyWithZone_ = objc.registerName("copyWithZone:"); +late final _sel_count = objc.registerName("count"); +late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( + "countByEnumeratingWithState:objects:count:", +); +late final _sel_countOfIndexesInRange_ = objc.registerName( + "countOfIndexesInRange:", +); +late final _sel_data = objc.registerName("data"); +late final _sel_dataRepresentation = objc.registerName("dataRepresentation"); +late final _sel_dataUsingEncoding_ = objc.registerName("dataUsingEncoding:"); +late final _sel_dataUsingEncoding_allowLossyConversion_ = objc.registerName( + "dataUsingEncoding:allowLossyConversion:", +); +late final _sel_dataWithBytesNoCopy_length_ = objc.registerName( + "dataWithBytesNoCopy:length:", +); +late final _sel_dataWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( + "dataWithBytesNoCopy:length:freeWhenDone:", +); +late final _sel_dataWithBytes_length_ = objc.registerName( + "dataWithBytes:length:", +); +late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); +late final _sel_dataWithContentsOfFile_ = objc.registerName( + "dataWithContentsOfFile:", +); +late final _sel_dataWithContentsOfFile_options_error_ = objc.registerName( + "dataWithContentsOfFile:options:error:", +); +late final _sel_dataWithContentsOfURL_ = objc.registerName( + "dataWithContentsOfURL:", +); +late final _sel_dataWithContentsOfURL_options_error_ = objc.registerName( + "dataWithContentsOfURL:options:error:", +); +late final _sel_dataWithData_ = objc.registerName("dataWithData:"); +late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); +late final _sel_date = objc.registerName("date"); +late final _sel_dateByAddingTimeInterval_ = objc.registerName( + "dateByAddingTimeInterval:", +); +late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( + "dateWithTimeIntervalSince1970:", +); +late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( + "dateWithTimeIntervalSinceNow:", +); +late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( + "dateWithTimeIntervalSinceReferenceDate:", +); +late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( + "dateWithTimeInterval:sinceDate:", +); +late final _sel_dealloc = objc.registerName("dealloc"); +late final _sel_debugDescription = objc.registerName("debugDescription"); +late final _sel_decimalDigitCharacterSet = objc.registerName( + "decimalDigitCharacterSet", +); +late final _sel_decomposableCharacterSet = objc.registerName( + "decomposableCharacterSet", +); +late final _sel_decomposedStringWithCanonicalMapping = objc.registerName( + "decomposedStringWithCanonicalMapping", +); +late final _sel_decomposedStringWithCompatibilityMapping = objc.registerName( + "decomposedStringWithCompatibilityMapping", +); +late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( + "decompressedDataUsingAlgorithm:error:", +); +late final _sel_defaultCStringEncoding = objc.registerName( + "defaultCStringEncoding", +); +late final _sel_delegate = objc.registerName("delegate"); +late final _sel_description = objc.registerName("description"); +late final _sel_descriptionInStringsFileFormat = objc.registerName( + "descriptionInStringsFileFormat", +); +late final _sel_descriptionWithLocale_ = objc.registerName( + "descriptionWithLocale:", +); +late final _sel_descriptionWithLocale_indent_ = objc.registerName( + "descriptionWithLocale:indent:", +); +late final _sel_dictionary = objc.registerName("dictionary"); +late final _sel_dictionaryWithCapacity_ = objc.registerName( + "dictionaryWithCapacity:", +); +late final _sel_dictionaryWithDictionary_ = objc.registerName( + "dictionaryWithDictionary:", +); +late final _sel_dictionaryWithObject_forKey_ = objc.registerName( + "dictionaryWithObject:forKey:", +); +late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( + "dictionaryWithObjectsAndKeys:", +); +late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( + "dictionaryWithObjects:forKeys:", +); +late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( + "dictionaryWithObjects:forKeys:count:", +); +late final _sel_differenceByTransformingChangesWithBlock_ = objc.registerName( + "differenceByTransformingChangesWithBlock:", +); +late final _sel_doesNotRecognizeSelector_ = objc.registerName( + "doesNotRecognizeSelector:", +); +late final _sel_domain = objc.registerName("domain"); +late final _sel_doubleValue = objc.registerName("doubleValue"); +late final _sel_earlierDate_ = objc.registerName("earlierDate:"); +late final _sel_encodeWithCoder_ = objc.registerName("encodeWithCoder:"); +late final _sel_enumerateByteRangesUsingBlock_ = objc.registerName( + "enumerateByteRangesUsingBlock:", +); +late final _sel_enumerateIndexesInRange_options_usingBlock_ = objc.registerName( + "enumerateIndexesInRange:options:usingBlock:", +); +late final _sel_enumerateIndexesUsingBlock_ = objc.registerName( + "enumerateIndexesUsingBlock:", +); +late final _sel_enumerateIndexesWithOptions_usingBlock_ = objc.registerName( + "enumerateIndexesWithOptions:usingBlock:", +); +late final _sel_enumerateKeysAndObjectsUsingBlock_ = objc.registerName( + "enumerateKeysAndObjectsUsingBlock:", +); +late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_ = objc + .registerName("enumerateKeysAndObjectsWithOptions:usingBlock:"); +late final _sel_enumerateLinesUsingBlock_ = objc.registerName( + "enumerateLinesUsingBlock:", +); +late final _sel_enumerateObjectsAtIndexes_options_usingBlock_ = objc + .registerName("enumerateObjectsAtIndexes:options:usingBlock:"); +late final _sel_enumerateObjectsUsingBlock_ = objc.registerName( + "enumerateObjectsUsingBlock:", +); +late final _sel_enumerateObjectsWithOptions_usingBlock_ = objc.registerName( + "enumerateObjectsWithOptions:usingBlock:", +); +late final _sel_enumerateRangesInRange_options_usingBlock_ = objc.registerName( + "enumerateRangesInRange:options:usingBlock:", +); +late final _sel_enumerateRangesUsingBlock_ = objc.registerName( + "enumerateRangesUsingBlock:", +); +late final _sel_enumerateRangesWithOptions_usingBlock_ = objc.registerName( + "enumerateRangesWithOptions:usingBlock:", +); +late final _sel_enumerateSubstringsInRange_options_usingBlock_ = objc + .registerName("enumerateSubstringsInRange:options:usingBlock:"); +late final _sel_errorWithDomain_code_userInfo_ = objc.registerName( + "errorWithDomain:code:userInfo:", +); +late final _sel_exchangeObjectAtIndex_withObjectAtIndex_ = objc.registerName( + "exchangeObjectAtIndex:withObjectAtIndex:", +); +late final _sel_fastestEncoding = objc.registerName("fastestEncoding"); +late final _sel_filePathURL = objc.registerName("filePathURL"); +late final _sel_fileReferenceURL = objc.registerName("fileReferenceURL"); +late final _sel_fileSystemRepresentation = objc.registerName( + "fileSystemRepresentation", +); +late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = + objc.registerName( + "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", + ); +late final _sel_fileURLWithPath_ = objc.registerName("fileURLWithPath:"); +late final _sel_fileURLWithPath_isDirectory_ = objc.registerName( + "fileURLWithPath:isDirectory:", +); +late final _sel_fileURLWithPath_isDirectory_relativeToURL_ = objc.registerName( + "fileURLWithPath:isDirectory:relativeToURL:", +); +late final _sel_fileURLWithPath_relativeToURL_ = objc.registerName( + "fileURLWithPath:relativeToURL:", +); +late final _sel_firstIndex = objc.registerName("firstIndex"); +late final _sel_firstObject = objc.registerName("firstObject"); +late final _sel_firstObjectCommonWithArray_ = objc.registerName( + "firstObjectCommonWithArray:", +); +late final _sel_floatValue = objc.registerName("floatValue"); +late final _sel_forwardInvocation_ = objc.registerName("forwardInvocation:"); +late final _sel_forwardingTargetForSelector_ = objc.registerName( + "forwardingTargetForSelector:", +); +late final _sel_fragment = objc.registerName("fragment"); +late final _sel_frameLength = objc.registerName("frameLength"); +late final _sel_getArgumentTypeAtIndex_ = objc.registerName( + "getArgumentTypeAtIndex:", +); +late final _sel_getBuffer_length_ = objc.registerName("getBuffer:length:"); +late final _sel_getBytes_length_ = objc.registerName("getBytes:length:"); +late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_ = + objc.registerName( + "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:", + ); +late final _sel_getBytes_range_ = objc.registerName("getBytes:range:"); +late final _sel_getCString_maxLength_encoding_ = objc.registerName( + "getCString:maxLength:encoding:", +); +late final _sel_getCharacters_range_ = objc.registerName( + "getCharacters:range:", +); +late final _sel_getFileSystemRepresentation_maxLength_ = objc.registerName( + "getFileSystemRepresentation:maxLength:", +); +late final _sel_getIndexes_maxCount_inIndexRange_ = objc.registerName( + "getIndexes:maxCount:inIndexRange:", +); +late final _sel_getLineStart_end_contentsEnd_forRange_ = objc.registerName( + "getLineStart:end:contentsEnd:forRange:", +); +late final _sel_getObjects_andKeys_count_ = objc.registerName( + "getObjects:andKeys:count:", +); +late final _sel_getObjects_range_ = objc.registerName("getObjects:range:"); +late final _sel_getParagraphStart_end_contentsEnd_forRange_ = objc.registerName( + "getParagraphStart:end:contentsEnd:forRange:", +); +late final _sel_getResourceValue_forKey_error_ = objc.registerName( + "getResourceValue:forKey:error:", +); +late final _sel_getValue_size_ = objc.registerName("getValue:size:"); +late final _sel_hasBytesAvailable = objc.registerName("hasBytesAvailable"); +late final _sel_hasChanges = objc.registerName("hasChanges"); +late final _sel_hasDirectoryPath = objc.registerName("hasDirectoryPath"); +late final _sel_hasItemConformingToTypeIdentifier_ = objc.registerName( + "hasItemConformingToTypeIdentifier:", +); +late final _sel_hasMemberInPlane_ = objc.registerName("hasMemberInPlane:"); +late final _sel_hasPrefix_ = objc.registerName("hasPrefix:"); +late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_ = objc + .registerName("hasRepresentationConformingToTypeIdentifier:fileOptions:"); +late final _sel_hasSpaceAvailable = objc.registerName("hasSpaceAvailable"); +late final _sel_hasSuffix_ = objc.registerName("hasSuffix:"); +late final _sel_hash = objc.registerName("hash"); +late final _sel_helpAnchor = objc.registerName("helpAnchor"); +late final _sel_host = objc.registerName("host"); +late final _sel_illegalCharacterSet = objc.registerName("illegalCharacterSet"); +late final _sel_increaseLengthBy_ = objc.registerName("increaseLengthBy:"); +late final _sel_index = objc.registerName("index"); +late final _sel_indexGreaterThanIndex_ = objc.registerName( + "indexGreaterThanIndex:", +); +late final _sel_indexGreaterThanOrEqualToIndex_ = objc.registerName( + "indexGreaterThanOrEqualToIndex:", +); +late final _sel_indexInRange_options_passingTest_ = objc.registerName( + "indexInRange:options:passingTest:", +); +late final _sel_indexLessThanIndex_ = objc.registerName("indexLessThanIndex:"); +late final _sel_indexLessThanOrEqualToIndex_ = objc.registerName( + "indexLessThanOrEqualToIndex:", +); +late final _sel_indexOfObjectAtIndexes_options_passingTest_ = objc.registerName( + "indexOfObjectAtIndexes:options:passingTest:", +); +late final _sel_indexOfObjectIdenticalTo_ = objc.registerName( + "indexOfObjectIdenticalTo:", +); +late final _sel_indexOfObjectIdenticalTo_inRange_ = objc.registerName( + "indexOfObjectIdenticalTo:inRange:", +); +late final _sel_indexOfObjectPassingTest_ = objc.registerName( + "indexOfObjectPassingTest:", +); +late final _sel_indexOfObjectWithOptions_passingTest_ = objc.registerName( + "indexOfObjectWithOptions:passingTest:", +); +late final _sel_indexOfObject_ = objc.registerName("indexOfObject:"); +late final _sel_indexOfObject_inRange_ = objc.registerName( + "indexOfObject:inRange:", +); +late final _sel_indexOfObject_inSortedRange_options_usingComparator_ = objc + .registerName("indexOfObject:inSortedRange:options:usingComparator:"); +late final _sel_indexPassingTest_ = objc.registerName("indexPassingTest:"); +late final _sel_indexSet = objc.registerName("indexSet"); +late final _sel_indexSetWithIndex_ = objc.registerName("indexSetWithIndex:"); +late final _sel_indexSetWithIndexesInRange_ = objc.registerName( + "indexSetWithIndexesInRange:", +); +late final _sel_indexWithOptions_passingTest_ = objc.registerName( + "indexWithOptions:passingTest:", +); +late final _sel_indexesInRange_options_passingTest_ = objc.registerName( + "indexesInRange:options:passingTest:", +); +late final _sel_indexesOfObjectsAtIndexes_options_passingTest_ = objc + .registerName("indexesOfObjectsAtIndexes:options:passingTest:"); +late final _sel_indexesOfObjectsPassingTest_ = objc.registerName( + "indexesOfObjectsPassingTest:", +); +late final _sel_indexesOfObjectsWithOptions_passingTest_ = objc.registerName( + "indexesOfObjectsWithOptions:passingTest:", +); +late final _sel_indexesPassingTest_ = objc.registerName("indexesPassingTest:"); +late final _sel_indexesWithOptions_passingTest_ = objc.registerName( + "indexesWithOptions:passingTest:", +); +late final _sel_init = objc.registerName("init"); +late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_ = objc + .registerName("initAbsoluteURLWithDataRepresentation:relativeToURL:"); +late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = + objc.registerName( + "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", + ); +late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = + objc.registerName( + "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", + ); +late final _sel_initFileURLWithPath_ = objc.registerName( + "initFileURLWithPath:", +); +late final _sel_initFileURLWithPath_isDirectory_ = objc.registerName( + "initFileURLWithPath:isDirectory:", +); +late final _sel_initFileURLWithPath_isDirectory_relativeToURL_ = objc + .registerName("initFileURLWithPath:isDirectory:relativeToURL:"); +late final _sel_initFileURLWithPath_relativeToURL_ = objc.registerName( + "initFileURLWithPath:relativeToURL:", +); +late final _sel_initToBuffer_capacity_ = objc.registerName( + "initToBuffer:capacity:", +); +late final _sel_initToFileAtPath_append_ = objc.registerName( + "initToFileAtPath:append:", +); +late final _sel_initToMemory = objc.registerName("initToMemory"); +late final _sel_initWithArray_ = objc.registerName("initWithArray:"); +late final _sel_initWithArray_copyItems_ = objc.registerName( + "initWithArray:copyItems:", +); +late final _sel_initWithArray_range_copyItems_ = objc.registerName( + "initWithArray:range:copyItems:", +); +late final _sel_initWithBase64EncodedData_options_ = objc.registerName( + "initWithBase64EncodedData:options:", +); +late final _sel_initWithBase64EncodedString_options_ = objc.registerName( + "initWithBase64EncodedString:options:", +); +late final _sel_initWithBool_ = objc.registerName("initWithBool:"); +late final _sel_initWithBytesNoCopy_length_ = objc.registerName( + "initWithBytesNoCopy:length:", +); +late final _sel_initWithBytesNoCopy_length_deallocator_ = objc.registerName( + "initWithBytesNoCopy:length:deallocator:", +); +late final _sel_initWithBytesNoCopy_length_encoding_deallocator_ = objc + .registerName("initWithBytesNoCopy:length:encoding:deallocator:"); +late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_ = objc + .registerName("initWithBytesNoCopy:length:encoding:freeWhenDone:"); +late final _sel_initWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( + "initWithBytesNoCopy:length:freeWhenDone:", +); +late final _sel_initWithBytes_length_ = objc.registerName( + "initWithBytes:length:", +); +late final _sel_initWithBytes_length_encoding_ = objc.registerName( + "initWithBytes:length:encoding:", +); +late final _sel_initWithBytes_objCType_ = objc.registerName( + "initWithBytes:objCType:", +); +late final _sel_initWithCString_encoding_ = objc.registerName( + "initWithCString:encoding:", +); +late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); +late final _sel_initWithChanges_ = objc.registerName("initWithChanges:"); +late final _sel_initWithChar_ = objc.registerName("initWithChar:"); +late final _sel_initWithCharactersNoCopy_length_deallocator_ = objc + .registerName("initWithCharactersNoCopy:length:deallocator:"); +late final _sel_initWithCharactersNoCopy_length_freeWhenDone_ = objc + .registerName("initWithCharactersNoCopy:length:freeWhenDone:"); +late final _sel_initWithCharacters_length_ = objc.registerName( + "initWithCharacters:length:", +); +late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); +late final _sel_initWithContentsOfFile_ = objc.registerName( + "initWithContentsOfFile:", +); +late final _sel_initWithContentsOfFile_encoding_error_ = objc.registerName( + "initWithContentsOfFile:encoding:error:", +); +late final _sel_initWithContentsOfFile_options_error_ = objc.registerName( + "initWithContentsOfFile:options:error:", +); +late final _sel_initWithContentsOfFile_usedEncoding_error_ = objc.registerName( + "initWithContentsOfFile:usedEncoding:error:", +); +late final _sel_initWithContentsOfURL_ = objc.registerName( + "initWithContentsOfURL:", +); +late final _sel_initWithContentsOfURL_encoding_error_ = objc.registerName( + "initWithContentsOfURL:encoding:error:", +); +late final _sel_initWithContentsOfURL_options_error_ = objc.registerName( + "initWithContentsOfURL:options:error:", +); +late final _sel_initWithContentsOfURL_usedEncoding_error_ = objc.registerName( + "initWithContentsOfURL:usedEncoding:error:", +); +late final _sel_initWithDataRepresentation_relativeToURL_ = objc.registerName( + "initWithDataRepresentation:relativeToURL:", +); +late final _sel_initWithData_ = objc.registerName("initWithData:"); +late final _sel_initWithData_encoding_ = objc.registerName( + "initWithData:encoding:", +); +late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); +late final _sel_initWithDictionary_copyItems_ = objc.registerName( + "initWithDictionary:copyItems:", +); +late final _sel_initWithDomain_code_userInfo_ = objc.registerName( + "initWithDomain:code:userInfo:", +); +late final _sel_initWithDouble_ = objc.registerName("initWithDouble:"); +late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); +late final _sel_initWithFloat_ = objc.registerName("initWithFloat:"); +late final _sel_initWithFormat_ = objc.registerName("initWithFormat:"); +late final _sel_initWithFormat_locale_ = objc.registerName( + "initWithFormat:locale:", +); +late final _sel_initWithIndexSet_ = objc.registerName("initWithIndexSet:"); +late final _sel_initWithIndex_ = objc.registerName("initWithIndex:"); +late final _sel_initWithIndexesInRange_ = objc.registerName( + "initWithIndexesInRange:", +); +late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_ = + objc.registerName( + "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:", + ); +late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_ = + objc.registerName( + "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:", + ); +late final _sel_initWithInt_ = objc.registerName("initWithInt:"); +late final _sel_initWithInteger_ = objc.registerName("initWithInteger:"); +late final _sel_initWithItem_typeIdentifier_ = objc.registerName( + "initWithItem:typeIdentifier:", +); +late final _sel_initWithLength_ = objc.registerName("initWithLength:"); +late final _sel_initWithLongLong_ = objc.registerName("initWithLongLong:"); +late final _sel_initWithLong_ = objc.registerName("initWithLong:"); +late final _sel_initWithName_object_userInfo_ = objc.registerName( + "initWithName:object:userInfo:", +); +late final _sel_initWithObject_ = objc.registerName("initWithObject:"); +late final _sel_initWithObject_type_index_ = objc.registerName( + "initWithObject:type:index:", +); +late final _sel_initWithObject_type_index_associatedIndex_ = objc.registerName( + "initWithObject:type:index:associatedIndex:", +); +late final _sel_initWithObjectsAndKeys_ = objc.registerName( + "initWithObjectsAndKeys:", +); +late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); +late final _sel_initWithObjects_count_ = objc.registerName( + "initWithObjects:count:", +); +late final _sel_initWithObjects_forKeys_ = objc.registerName( + "initWithObjects:forKeys:", +); +late final _sel_initWithObjects_forKeys_count_ = objc.registerName( + "initWithObjects:forKeys:count:", +); +late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); +late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( + "initWithOrderedSet:copyItems:", +); +late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( + "initWithOrderedSet:range:copyItems:", +); +late final _sel_initWithSet_ = objc.registerName("initWithSet:"); +late final _sel_initWithSet_copyItems_ = objc.registerName( + "initWithSet:copyItems:", +); +late final _sel_initWithShort_ = objc.registerName("initWithShort:"); +late final _sel_initWithString_ = objc.registerName("initWithString:"); +late final _sel_initWithString_encodingInvalidCharacters_ = objc.registerName( + "initWithString:encodingInvalidCharacters:", +); +late final _sel_initWithString_relativeToURL_ = objc.registerName( + "initWithString:relativeToURL:", +); +late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( + "initWithTimeIntervalSince1970:", +); +late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( + "initWithTimeIntervalSinceNow:", +); +late final _sel_initWithTimeIntervalSinceReferenceDate_ = objc.registerName( + "initWithTimeIntervalSinceReferenceDate:", +); +late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( + "initWithTimeInterval:sinceDate:", +); +late final _sel_initWithURL_ = objc.registerName("initWithURL:"); +late final _sel_initWithURL_append_ = objc.registerName("initWithURL:append:"); +late final _sel_initWithUTF8String_ = objc.registerName("initWithUTF8String:"); +late final _sel_initWithUnsignedChar_ = objc.registerName( + "initWithUnsignedChar:", +); +late final _sel_initWithUnsignedInt_ = objc.registerName( + "initWithUnsignedInt:", +); +late final _sel_initWithUnsignedInteger_ = objc.registerName( + "initWithUnsignedInteger:", +); +late final _sel_initWithUnsignedLongLong_ = objc.registerName( + "initWithUnsignedLongLong:", +); +late final _sel_initWithUnsignedLong_ = objc.registerName( + "initWithUnsignedLong:", +); +late final _sel_initWithUnsignedShort_ = objc.registerName( + "initWithUnsignedShort:", +); +late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_ = objc + .registerName("initWithValidatedFormat:validFormatSpecifiers:error:"); +late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_ = + objc.registerName( + "initWithValidatedFormat:validFormatSpecifiers:locale:error:", + ); +late final _sel_initialize = objc.registerName("initialize"); +late final _sel_inputStreamWithData_ = objc.registerName( + "inputStreamWithData:", +); +late final _sel_inputStreamWithFileAtPath_ = objc.registerName( + "inputStreamWithFileAtPath:", +); +late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); +late final _sel_insertObject_atIndex_ = objc.registerName( + "insertObject:atIndex:", +); +late final _sel_insertObjects_atIndexes_ = objc.registerName( + "insertObjects:atIndexes:", +); +late final _sel_insertions = objc.registerName("insertions"); +late final _sel_instanceMethodForSelector_ = objc.registerName( + "instanceMethodForSelector:", +); +late final _sel_instanceMethodSignatureForSelector_ = objc.registerName( + "instanceMethodSignatureForSelector:", +); +late final _sel_instancesRespondToSelector_ = objc.registerName( + "instancesRespondToSelector:", +); +late final _sel_intValue = objc.registerName("intValue"); +late final _sel_integerValue = objc.registerName("integerValue"); +late final _sel_intersectOrderedSet_ = objc.registerName( + "intersectOrderedSet:", +); +late final _sel_intersectSet_ = objc.registerName("intersectSet:"); +late final _sel_intersectsIndexesInRange_ = objc.registerName( + "intersectsIndexesInRange:", +); +late final _sel_intersectsOrderedSet_ = objc.registerName( + "intersectsOrderedSet:", +); +late final _sel_intersectsSet_ = objc.registerName("intersectsSet:"); +late final _sel_inverseDifference = objc.registerName("inverseDifference"); +late final _sel_invertedSet = objc.registerName("invertedSet"); +late final _sel_isEqualToArray_ = objc.registerName("isEqualToArray:"); +late final _sel_isEqualToData_ = objc.registerName("isEqualToData:"); +late final _sel_isEqualToDate_ = objc.registerName("isEqualToDate:"); +late final _sel_isEqualToDictionary_ = objc.registerName( + "isEqualToDictionary:", +); +late final _sel_isEqualToIndexSet_ = objc.registerName("isEqualToIndexSet:"); +late final _sel_isEqualToNumber_ = objc.registerName("isEqualToNumber:"); +late final _sel_isEqualToOrderedSet_ = objc.registerName( + "isEqualToOrderedSet:", +); +late final _sel_isEqualToSet_ = objc.registerName("isEqualToSet:"); +late final _sel_isEqualToString_ = objc.registerName("isEqualToString:"); +late final _sel_isEqual_ = objc.registerName("isEqual:"); +late final _sel_isFileReferenceURL = objc.registerName("isFileReferenceURL"); +late final _sel_isFileURL = objc.registerName("isFileURL"); +late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_isMemberOfClass_ = objc.registerName("isMemberOfClass:"); +late final _sel_isOneway = objc.registerName("isOneway"); +late final _sel_isProxy = objc.registerName("isProxy"); +late final _sel_isSubclassOfClass_ = objc.registerName("isSubclassOfClass:"); +late final _sel_isSubsetOfOrderedSet_ = objc.registerName( + "isSubsetOfOrderedSet:", +); +late final _sel_isSubsetOfSet_ = objc.registerName("isSubsetOfSet:"); +late final _sel_isSupersetOfSet_ = objc.registerName("isSupersetOfSet:"); +late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = + objc.registerName( + "itemProviderVisibilityForRepresentationWithTypeIdentifier:", + ); +late final _sel_keyEnumerator = objc.registerName("keyEnumerator"); +late final _sel_keysOfEntriesPassingTest_ = objc.registerName( + "keysOfEntriesPassingTest:", +); +late final _sel_keysOfEntriesWithOptions_passingTest_ = objc.registerName( + "keysOfEntriesWithOptions:passingTest:", +); +late final _sel_keysSortedByValueUsingComparator_ = objc.registerName( + "keysSortedByValueUsingComparator:", +); +late final _sel_keysSortedByValueUsingSelector_ = objc.registerName( + "keysSortedByValueUsingSelector:", +); +late final _sel_keysSortedByValueWithOptions_usingComparator_ = objc + .registerName("keysSortedByValueWithOptions:usingComparator:"); +late final _sel_lastIndex = objc.registerName("lastIndex"); +late final _sel_lastObject = objc.registerName("lastObject"); +late final _sel_laterDate_ = objc.registerName("laterDate:"); +late final _sel_length = objc.registerName("length"); +late final _sel_lengthOfBytesUsingEncoding_ = objc.registerName( + "lengthOfBytesUsingEncoding:", +); +late final _sel_letterCharacterSet = objc.registerName("letterCharacterSet"); +late final _sel_lineRangeForRange_ = objc.registerName("lineRangeForRange:"); +late final _sel_load = objc.registerName("load"); +late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_ = + objc.registerName( + "loadDataRepresentationForTypeIdentifier:completionHandler:", + ); +late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = + objc.registerName( + "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", + ); +late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_ = + objc.registerName( + "loadFileRepresentationForTypeIdentifier:completionHandler:", + ); +late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_ = + objc.registerName( + "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:", + ); +late final _sel_loadItemForTypeIdentifier_options_completionHandler_ = objc + .registerName("loadItemForTypeIdentifier:options:completionHandler:"); +late final _sel_loadObjectOfClass_completionHandler_ = objc.registerName( + "loadObjectOfClass:completionHandler:", +); +late final _sel_localizedCapitalizedString = objc.registerName( + "localizedCapitalizedString", +); +late final _sel_localizedCaseInsensitiveCompare_ = objc.registerName( + "localizedCaseInsensitiveCompare:", +); +late final _sel_localizedCaseInsensitiveContainsString_ = objc.registerName( + "localizedCaseInsensitiveContainsString:", +); +late final _sel_localizedCompare_ = objc.registerName("localizedCompare:"); +late final _sel_localizedDescription = objc.registerName( + "localizedDescription", +); +late final _sel_localizedFailureReason = objc.registerName( + "localizedFailureReason", +); +late final _sel_localizedLowercaseString = objc.registerName( + "localizedLowercaseString", +); +late final _sel_localizedNameOfStringEncoding_ = objc.registerName( + "localizedNameOfStringEncoding:", +); +late final _sel_localizedRecoveryOptions = objc.registerName( + "localizedRecoveryOptions", +); +late final _sel_localizedRecoverySuggestion = objc.registerName( + "localizedRecoverySuggestion", +); +late final _sel_localizedStandardCompare_ = objc.registerName( + "localizedStandardCompare:", +); +late final _sel_localizedStandardContainsString_ = objc.registerName( + "localizedStandardContainsString:", +); +late final _sel_localizedStandardRangeOfString_ = objc.registerName( + "localizedStandardRangeOfString:", +); +late final _sel_localizedStringWithFormat_ = objc.registerName( + "localizedStringWithFormat:", +); +late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_ = + objc.registerName( + "localizedStringWithValidatedFormat:validFormatSpecifiers:error:", + ); +late final _sel_localizedUppercaseString = objc.registerName( + "localizedUppercaseString", +); +late final _sel_longCharacterIsMember_ = objc.registerName( + "longCharacterIsMember:", +); +late final _sel_longLongValue = objc.registerName("longLongValue"); +late final _sel_longValue = objc.registerName("longValue"); +late final _sel_lowercaseLetterCharacterSet = objc.registerName( + "lowercaseLetterCharacterSet", +); +late final _sel_lowercaseString = objc.registerName("lowercaseString"); +late final _sel_lowercaseStringWithLocale_ = objc.registerName( + "lowercaseStringWithLocale:", +); +late final _sel_makeObjectsPerformSelector_ = objc.registerName( + "makeObjectsPerformSelector:", +); +late final _sel_makeObjectsPerformSelector_withObject_ = objc.registerName( + "makeObjectsPerformSelector:withObject:", +); +late final _sel_maximumLengthOfBytesUsingEncoding_ = objc.registerName( + "maximumLengthOfBytesUsingEncoding:", +); +late final _sel_member_ = objc.registerName("member:"); +late final _sel_methodForSelector_ = objc.registerName("methodForSelector:"); +late final _sel_methodReturnLength = objc.registerName("methodReturnLength"); +late final _sel_methodReturnType = objc.registerName("methodReturnType"); +late final _sel_methodSignatureForSelector_ = objc.registerName( + "methodSignatureForSelector:", +); +late final _sel_minusOrderedSet_ = objc.registerName("minusOrderedSet:"); +late final _sel_minusSet_ = objc.registerName("minusSet:"); +late final _sel_moveObjectsAtIndexes_toIndex_ = objc.registerName( + "moveObjectsAtIndexes:toIndex:", +); +late final _sel_mutableBytes = objc.registerName("mutableBytes"); +late final _sel_mutableCopy = objc.registerName("mutableCopy"); +late final _sel_mutableCopyWithZone_ = objc.registerName( + "mutableCopyWithZone:", +); +late final _sel_name = objc.registerName("name"); +late final _sel_new = objc.registerName("new"); +late final _sel_newlineCharacterSet = objc.registerName("newlineCharacterSet"); +late final _sel_nextObject = objc.registerName("nextObject"); +late final _sel_nonBaseCharacterSet = objc.registerName("nonBaseCharacterSet"); +late final _sel_notificationWithName_object_ = objc.registerName( + "notificationWithName:object:", +); +late final _sel_notificationWithName_object_userInfo_ = objc.registerName( + "notificationWithName:object:userInfo:", +); +late final _sel_numberOfArguments = objc.registerName("numberOfArguments"); +late final _sel_numberWithBool_ = objc.registerName("numberWithBool:"); +late final _sel_numberWithChar_ = objc.registerName("numberWithChar:"); +late final _sel_numberWithDouble_ = objc.registerName("numberWithDouble:"); +late final _sel_numberWithFloat_ = objc.registerName("numberWithFloat:"); +late final _sel_numberWithInt_ = objc.registerName("numberWithInt:"); +late final _sel_numberWithInteger_ = objc.registerName("numberWithInteger:"); +late final _sel_numberWithLongLong_ = objc.registerName("numberWithLongLong:"); +late final _sel_numberWithLong_ = objc.registerName("numberWithLong:"); +late final _sel_numberWithShort_ = objc.registerName("numberWithShort:"); +late final _sel_numberWithUnsignedChar_ = objc.registerName( + "numberWithUnsignedChar:", +); +late final _sel_numberWithUnsignedInt_ = objc.registerName( + "numberWithUnsignedInt:", +); +late final _sel_numberWithUnsignedInteger_ = objc.registerName( + "numberWithUnsignedInteger:", +); +late final _sel_numberWithUnsignedLongLong_ = objc.registerName( + "numberWithUnsignedLongLong:", +); +late final _sel_numberWithUnsignedLong_ = objc.registerName( + "numberWithUnsignedLong:", +); +late final _sel_numberWithUnsignedShort_ = objc.registerName( + "numberWithUnsignedShort:", +); +late final _sel_objCType = objc.registerName("objCType"); +late final _sel_object = objc.registerName("object"); +late final _sel_objectAtIndex_ = objc.registerName("objectAtIndex:"); +late final _sel_objectAtIndexedSubscript_ = objc.registerName( + "objectAtIndexedSubscript:", +); +late final _sel_objectEnumerator = objc.registerName("objectEnumerator"); +late final _sel_objectForKey_ = objc.registerName("objectForKey:"); +late final _sel_objectForKeyedSubscript_ = objc.registerName( + "objectForKeyedSubscript:", +); +late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc + .registerName("objectWithItemProviderData:typeIdentifier:error:"); +late final _sel_objectsAtIndexes_ = objc.registerName("objectsAtIndexes:"); +late final _sel_objectsForKeys_notFoundMarker_ = objc.registerName( + "objectsForKeys:notFoundMarker:", +); +late final _sel_objectsPassingTest_ = objc.registerName("objectsPassingTest:"); +late final _sel_objectsWithOptions_passingTest_ = objc.registerName( + "objectsWithOptions:passingTest:", +); +late final _sel_open = objc.registerName("open"); +late final _sel_orderedSet = objc.registerName("orderedSet"); +late final _sel_orderedSetWithArray_ = objc.registerName( + "orderedSetWithArray:", +); +late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( + "orderedSetWithArray:range:copyItems:", +); +late final _sel_orderedSetWithCapacity_ = objc.registerName( + "orderedSetWithCapacity:", +); +late final _sel_orderedSetWithObject_ = objc.registerName( + "orderedSetWithObject:", +); +late final _sel_orderedSetWithObjects_ = objc.registerName( + "orderedSetWithObjects:", +); +late final _sel_orderedSetWithObjects_count_ = objc.registerName( + "orderedSetWithObjects:count:", +); +late final _sel_orderedSetWithOrderedSet_ = objc.registerName( + "orderedSetWithOrderedSet:", +); +late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( + "orderedSetWithOrderedSet:range:copyItems:", +); +late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); +late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( + "orderedSetWithSet:copyItems:", +); +late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( + "outputStreamToBuffer:capacity:", +); +late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( + "outputStreamToFileAtPath:append:", +); +late final _sel_outputStreamToMemory = objc.registerName( + "outputStreamToMemory", +); +late final _sel_outputStreamWithURL_append_ = objc.registerName( + "outputStreamWithURL:append:", +); +late final _sel_paragraphRangeForRange_ = objc.registerName( + "paragraphRangeForRange:", +); +late final _sel_parameterString = objc.registerName("parameterString"); +late final _sel_password = objc.registerName("password"); +late final _sel_path = objc.registerName("path"); +late final _sel_performSelector_ = objc.registerName("performSelector:"); +late final _sel_performSelector_withObject_ = objc.registerName( + "performSelector:withObject:", +); +late final _sel_performSelector_withObject_withObject_ = objc.registerName( + "performSelector:withObject:withObject:", +); +late final _sel_port = objc.registerName("port"); +late final _sel_precomposedStringWithCanonicalMapping = objc.registerName( + "precomposedStringWithCanonicalMapping", +); +late final _sel_precomposedStringWithCompatibilityMapping = objc.registerName( + "precomposedStringWithCompatibilityMapping", +); +late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); +late final _sel_punctuationCharacterSet = objc.registerName( + "punctuationCharacterSet", +); +late final _sel_query = objc.registerName("query"); +late final _sel_rangeOfCharacterFromSet_ = objc.registerName( + "rangeOfCharacterFromSet:", +); +late final _sel_rangeOfCharacterFromSet_options_ = objc.registerName( + "rangeOfCharacterFromSet:options:", +); +late final _sel_rangeOfCharacterFromSet_options_range_ = objc.registerName( + "rangeOfCharacterFromSet:options:range:", +); +late final _sel_rangeOfComposedCharacterSequenceAtIndex_ = objc.registerName( + "rangeOfComposedCharacterSequenceAtIndex:", +); +late final _sel_rangeOfComposedCharacterSequencesForRange_ = objc.registerName( + "rangeOfComposedCharacterSequencesForRange:", +); +late final _sel_rangeOfData_options_range_ = objc.registerName( + "rangeOfData:options:range:", +); +late final _sel_rangeOfString_ = objc.registerName("rangeOfString:"); +late final _sel_rangeOfString_options_ = objc.registerName( + "rangeOfString:options:", +); +late final _sel_rangeOfString_options_range_ = objc.registerName( + "rangeOfString:options:range:", +); +late final _sel_rangeOfString_options_range_locale_ = objc.registerName( + "rangeOfString:options:range:locale:", +); +late final _sel_read_maxLength_ = objc.registerName("read:maxLength:"); +late final _sel_recoveryAttempter = objc.registerName("recoveryAttempter"); +late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_ = + objc.registerName( + "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:", + ); +late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_ = + objc.registerName( + "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:", + ); +late final _sel_registerItemForTypeIdentifier_loadHandler_ = objc.registerName( + "registerItemForTypeIdentifier:loadHandler:", +); +late final _sel_registerObjectOfClass_visibility_loadHandler_ = objc + .registerName("registerObjectOfClass:visibility:loadHandler:"); +late final _sel_registerObject_visibility_ = objc.registerName( + "registerObject:visibility:", +); +late final _sel_registeredTypeIdentifiers = objc.registerName( + "registeredTypeIdentifiers", +); +late final _sel_registeredTypeIdentifiersWithFileOptions_ = objc.registerName( + "registeredTypeIdentifiersWithFileOptions:", +); +late final _sel_relativePath = objc.registerName("relativePath"); +late final _sel_relativeString = objc.registerName("relativeString"); +late final _sel_release = objc.registerName("release"); +late final _sel_removals = objc.registerName("removals"); +late final _sel_removeAllCachedResourceValues = objc.registerName( + "removeAllCachedResourceValues", +); +late final _sel_removeAllIndexes = objc.registerName("removeAllIndexes"); +late final _sel_removeAllObjects = objc.registerName("removeAllObjects"); +late final _sel_removeCachedResourceValueForKey_ = objc.registerName( + "removeCachedResourceValueForKey:", +); +late final _sel_removeFromRunLoop_forMode_ = objc.registerName( + "removeFromRunLoop:forMode:", +); +late final _sel_removeIndex_ = objc.registerName("removeIndex:"); +late final _sel_removeIndexesInRange_ = objc.registerName( + "removeIndexesInRange:", +); +late final _sel_removeIndexes_ = objc.registerName("removeIndexes:"); +late final _sel_removeLastObject = objc.registerName("removeLastObject"); +late final _sel_removeObjectAtIndex_ = objc.registerName( + "removeObjectAtIndex:", +); +late final _sel_removeObjectForKey_ = objc.registerName("removeObjectForKey:"); +late final _sel_removeObjectIdenticalTo_ = objc.registerName( + "removeObjectIdenticalTo:", +); +late final _sel_removeObjectIdenticalTo_inRange_ = objc.registerName( + "removeObjectIdenticalTo:inRange:", +); +late final _sel_removeObject_ = objc.registerName("removeObject:"); +late final _sel_removeObject_inRange_ = objc.registerName( + "removeObject:inRange:", +); +late final _sel_removeObjectsAtIndexes_ = objc.registerName( + "removeObjectsAtIndexes:", +); +late final _sel_removeObjectsForKeys_ = objc.registerName( + "removeObjectsForKeys:", +); +late final _sel_removeObjectsInArray_ = objc.registerName( + "removeObjectsInArray:", +); +late final _sel_removeObjectsInRange_ = objc.registerName( + "removeObjectsInRange:", +); +late final _sel_replaceBytesInRange_withBytes_ = objc.registerName( + "replaceBytesInRange:withBytes:", +); +late final _sel_replaceBytesInRange_withBytes_length_ = objc.registerName( + "replaceBytesInRange:withBytes:length:", +); +late final _sel_replaceCharactersInRange_withString_ = objc.registerName( + "replaceCharactersInRange:withString:", +); +late final _sel_replaceObjectAtIndex_withObject_ = objc.registerName( + "replaceObjectAtIndex:withObject:", +); +late final _sel_replaceObjectsAtIndexes_withObjects_ = objc.registerName( + "replaceObjectsAtIndexes:withObjects:", +); +late final _sel_replaceObjectsInRange_withObjectsFromArray_ = objc.registerName( + "replaceObjectsInRange:withObjectsFromArray:", +); +late final _sel_replaceObjectsInRange_withObjectsFromArray_range_ = objc + .registerName("replaceObjectsInRange:withObjectsFromArray:range:"); +late final _sel_replaceObjectsInRange_withObjects_count_ = objc.registerName( + "replaceObjectsInRange:withObjects:count:", +); +late final _sel_resetBytesInRange_ = objc.registerName("resetBytesInRange:"); +late final _sel_resolveClassMethod_ = objc.registerName("resolveClassMethod:"); +late final _sel_resolveInstanceMethod_ = objc.registerName( + "resolveInstanceMethod:", +); +late final _sel_resourceSpecifier = objc.registerName("resourceSpecifier"); +late final _sel_resourceValuesForKeys_error_ = objc.registerName( + "resourceValuesForKeys:error:", +); +late final _sel_resourceValuesForKeys_fromBookmarkData_ = objc.registerName( + "resourceValuesForKeys:fromBookmarkData:", +); +late final _sel_respondsToSelector_ = objc.registerName("respondsToSelector:"); +late final _sel_retain = objc.registerName("retain"); +late final _sel_retainCount = objc.registerName("retainCount"); +late final _sel_reverseObjectEnumerator = objc.registerName( + "reverseObjectEnumerator", +); +late final _sel_reversedOrderedSet = objc.registerName("reversedOrderedSet"); +late final _sel_scheduleInRunLoop_forMode_ = objc.registerName( + "scheduleInRunLoop:forMode:", +); +late final _sel_scheme = objc.registerName("scheme"); +late final _sel_self = objc.registerName("self"); +late final _sel_set = objc.registerName("set"); +late final _sel_setArray_ = objc.registerName("setArray:"); +late final _sel_setByAddingObject_ = objc.registerName("setByAddingObject:"); +late final _sel_setByAddingObjectsFromArray_ = objc.registerName( + "setByAddingObjectsFromArray:", +); +late final _sel_setByAddingObjectsFromSet_ = objc.registerName( + "setByAddingObjectsFromSet:", +); +late final _sel_setData_ = objc.registerName("setData:"); +late final _sel_setDelegate_ = objc.registerName("setDelegate:"); +late final _sel_setDictionary_ = objc.registerName("setDictionary:"); +late final _sel_setLength_ = objc.registerName("setLength:"); +late final _sel_setObject_atIndex_ = objc.registerName("setObject:atIndex:"); +late final _sel_setObject_atIndexedSubscript_ = objc.registerName( + "setObject:atIndexedSubscript:", +); +late final _sel_setObject_forKey_ = objc.registerName("setObject:forKey:"); +late final _sel_setObject_forKeyedSubscript_ = objc.registerName( + "setObject:forKeyedSubscript:", +); +late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); +late final _sel_setResourceValue_forKey_error_ = objc.registerName( + "setResourceValue:forKey:error:", +); +late final _sel_setResourceValues_error_ = objc.registerName( + "setResourceValues:error:", +); +late final _sel_setSet_ = objc.registerName("setSet:"); +late final _sel_setSuggestedName_ = objc.registerName("setSuggestedName:"); +late final _sel_setTemporaryResourceValue_forKey_ = objc.registerName( + "setTemporaryResourceValue:forKey:", +); +late final _sel_setUserInfoValueProviderForDomain_provider_ = objc.registerName( + "setUserInfoValueProviderForDomain:provider:", +); +late final _sel_setWithArray_ = objc.registerName("setWithArray:"); +late final _sel_setWithCapacity_ = objc.registerName("setWithCapacity:"); +late final _sel_setWithObject_ = objc.registerName("setWithObject:"); +late final _sel_setWithObjects_ = objc.registerName("setWithObjects:"); +late final _sel_setWithObjects_count_ = objc.registerName( + "setWithObjects:count:", +); +late final _sel_setWithSet_ = objc.registerName("setWithSet:"); +late final _sel_shiftIndexesStartingAtIndex_by_ = objc.registerName( + "shiftIndexesStartingAtIndex:by:", +); +late final _sel_shortValue = objc.registerName("shortValue"); +late final _sel_signatureWithObjCTypes_ = objc.registerName( + "signatureWithObjCTypes:", +); +late final _sel_smallestEncoding = objc.registerName("smallestEncoding"); +late final _sel_sortRange_options_usingComparator_ = objc.registerName( + "sortRange:options:usingComparator:", +); +late final _sel_sortUsingComparator_ = objc.registerName( + "sortUsingComparator:", +); +late final _sel_sortUsingFunction_context_ = objc.registerName( + "sortUsingFunction:context:", +); +late final _sel_sortUsingSelector_ = objc.registerName("sortUsingSelector:"); +late final _sel_sortWithOptions_usingComparator_ = objc.registerName( + "sortWithOptions:usingComparator:", +); +late final _sel_sortedArrayHint = objc.registerName("sortedArrayHint"); +late final _sel_sortedArrayUsingComparator_ = objc.registerName( + "sortedArrayUsingComparator:", +); +late final _sel_sortedArrayUsingFunction_context_ = objc.registerName( + "sortedArrayUsingFunction:context:", +); +late final _sel_sortedArrayUsingFunction_context_hint_ = objc.registerName( + "sortedArrayUsingFunction:context:hint:", +); +late final _sel_sortedArrayUsingSelector_ = objc.registerName( + "sortedArrayUsingSelector:", +); +late final _sel_sortedArrayWithOptions_usingComparator_ = objc.registerName( + "sortedArrayWithOptions:usingComparator:", +); +late final _sel_standardizedURL = objc.registerName("standardizedURL"); +late final _sel_startAccessingSecurityScopedResource = objc.registerName( + "startAccessingSecurityScopedResource", +); +late final _sel_stopAccessingSecurityScopedResource = objc.registerName( + "stopAccessingSecurityScopedResource", +); +late final _sel_streamError = objc.registerName("streamError"); +late final _sel_streamStatus = objc.registerName("streamStatus"); +late final _sel_stream_handleEvent_ = objc.registerName("stream:handleEvent:"); +late final _sel_string = objc.registerName("string"); +late final _sel_stringByAppendingFormat_ = objc.registerName( + "stringByAppendingFormat:", +); +late final _sel_stringByAppendingString_ = objc.registerName( + "stringByAppendingString:", +); +late final _sel_stringByApplyingTransform_reverse_ = objc.registerName( + "stringByApplyingTransform:reverse:", +); +late final _sel_stringByFoldingWithOptions_locale_ = objc.registerName( + "stringByFoldingWithOptions:locale:", +); +late final _sel_stringByPaddingToLength_withString_startingAtIndex_ = objc + .registerName("stringByPaddingToLength:withString:startingAtIndex:"); +late final _sel_stringByReplacingCharactersInRange_withString_ = objc + .registerName("stringByReplacingCharactersInRange:withString:"); +late final _sel_stringByReplacingOccurrencesOfString_withString_ = objc + .registerName("stringByReplacingOccurrencesOfString:withString:"); +late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_ = + objc.registerName( + "stringByReplacingOccurrencesOfString:withString:options:range:", + ); +late final _sel_stringByTrimmingCharactersInSet_ = objc.registerName( + "stringByTrimmingCharactersInSet:", +); +late final _sel_stringValue = objc.registerName("stringValue"); +late final _sel_stringWithCString_encoding_ = objc.registerName( + "stringWithCString:encoding:", +); +late final _sel_stringWithCharacters_length_ = objc.registerName( + "stringWithCharacters:length:", +); +late final _sel_stringWithContentsOfFile_encoding_error_ = objc.registerName( + "stringWithContentsOfFile:encoding:error:", +); +late final _sel_stringWithContentsOfFile_usedEncoding_error_ = objc + .registerName("stringWithContentsOfFile:usedEncoding:error:"); +late final _sel_stringWithContentsOfURL_encoding_error_ = objc.registerName( + "stringWithContentsOfURL:encoding:error:", +); +late final _sel_stringWithContentsOfURL_usedEncoding_error_ = objc.registerName( + "stringWithContentsOfURL:usedEncoding:error:", +); +late final _sel_stringWithFormat_ = objc.registerName("stringWithFormat:"); +late final _sel_stringWithString_ = objc.registerName("stringWithString:"); +late final _sel_stringWithUTF8String_ = objc.registerName( + "stringWithUTF8String:", +); +late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_ = objc + .registerName("stringWithValidatedFormat:validFormatSpecifiers:error:"); +late final _sel_subarrayWithRange_ = objc.registerName("subarrayWithRange:"); +late final _sel_subdataWithRange_ = objc.registerName("subdataWithRange:"); +late final _sel_substringFromIndex_ = objc.registerName("substringFromIndex:"); +late final _sel_substringToIndex_ = objc.registerName("substringToIndex:"); +late final _sel_substringWithRange_ = objc.registerName("substringWithRange:"); +late final _sel_suggestedName = objc.registerName("suggestedName"); +late final _sel_superclass = objc.registerName("superclass"); +late final _sel_supportsSecureCoding = objc.registerName( + "supportsSecureCoding", +); +late final _sel_symbolCharacterSet = objc.registerName("symbolCharacterSet"); +late final _sel_timeIntervalSince1970 = objc.registerName( + "timeIntervalSince1970", +); +late final _sel_timeIntervalSinceDate_ = objc.registerName( + "timeIntervalSinceDate:", +); +late final _sel_timeIntervalSinceNow = objc.registerName( + "timeIntervalSinceNow", +); +late final _sel_timeIntervalSinceReferenceDate = objc.registerName( + "timeIntervalSinceReferenceDate", +); +late final _sel_underlyingErrors = objc.registerName("underlyingErrors"); +late final _sel_unionOrderedSet_ = objc.registerName("unionOrderedSet:"); +late final _sel_unionSet_ = objc.registerName("unionSet:"); +late final _sel_unsignedCharValue = objc.registerName("unsignedCharValue"); +late final _sel_unsignedIntValue = objc.registerName("unsignedIntValue"); +late final _sel_unsignedIntegerValue = objc.registerName( + "unsignedIntegerValue", +); +late final _sel_unsignedLongLongValue = objc.registerName( + "unsignedLongLongValue", +); +late final _sel_unsignedLongValue = objc.registerName("unsignedLongValue"); +late final _sel_unsignedShortValue = objc.registerName("unsignedShortValue"); +late final _sel_uppercaseLetterCharacterSet = objc.registerName( + "uppercaseLetterCharacterSet", +); +late final _sel_uppercaseString = objc.registerName("uppercaseString"); +late final _sel_uppercaseStringWithLocale_ = objc.registerName( + "uppercaseStringWithLocale:", +); +late final _sel_user = objc.registerName("user"); +late final _sel_userInfo = objc.registerName("userInfo"); +late final _sel_userInfoValueProviderForDomain_ = objc.registerName( + "userInfoValueProviderForDomain:", +); +late final _sel_whitespaceAndNewlineCharacterSet = objc.registerName( + "whitespaceAndNewlineCharacterSet", +); +late final _sel_whitespaceCharacterSet = objc.registerName( + "whitespaceCharacterSet", +); +late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( + "writableTypeIdentifiersForItemProvider", +); +late final _sel_writeBookmarkData_toURL_options_error_ = objc.registerName( + "writeBookmarkData:toURL:options:error:", +); +late final _sel_writeToFile_atomically_ = objc.registerName( + "writeToFile:atomically:", +); +late final _sel_writeToFile_atomically_encoding_error_ = objc.registerName( + "writeToFile:atomically:encoding:error:", +); +late final _sel_writeToFile_options_error_ = objc.registerName( + "writeToFile:options:error:", +); +late final _sel_writeToURL_atomically_ = objc.registerName( + "writeToURL:atomically:", +); +late final _sel_writeToURL_atomically_encoding_error_ = objc.registerName( + "writeToURL:atomically:encoding:error:", +); +late final _sel_writeToURL_error_ = objc.registerName("writeToURL:error:"); +late final _sel_writeToURL_options_error_ = objc.registerName( + "writeToURL:options:error:", +); +late final _sel_write_maxLength_ = objc.registerName("write:maxLength:"); +late final _sel_zone = objc.registerName("zone"); +typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = objc.ObjCObjectBase; + +class _NSArrayIterator implements Iterator { + final Iterable _iterable; + final int _length; + int _index; + objc.ObjCObjectBase? _current; + + _NSArrayIterator(Iterable iterable) + : _iterable = iterable, + _length = iterable.length, + _index = 0; + + @override + objc.ObjCObjectBase get current => _current!; + + @override + @pragma('vm:prefer-inline') + bool moveNext() { + final length = _iterable.length; + if (_length != length) { + throw ConcurrentModificationError(_iterable); + } + if (_index >= length) { + _current = null; + return false; + } + _current = _iterable.elementAt(_index); + _index++; + return true; + } +} + +class _NSDictionaryKeyIterable with Iterable { + NSDictionary _dictionary; + + _NSDictionaryKeyIterable(this._dictionary); + + @override + int get length => _dictionary.length; + + @override + Iterator get iterator => + _NSDictionaryKeyIterator(_dictionary.keyEnumerator()); + + @override + bool contains(Object? key) => _dictionary.containsKey(key); +} + +class _NSDictionaryValueIterable with Iterable { + NSDictionary _dictionary; + + _NSDictionaryValueIterable(this._dictionary); + + @override + int get length => _dictionary.length; + + @override + Iterator get iterator => _dictionary.objectEnumerator(); +} + +class _NSDictionaryKeyIterator implements Iterator { + final Iterator _iterator; + _NSDictionaryKeyIterator(this._iterator); + + @override + NSCopying get current => NSCopying.castFrom(_iterator.current); + + @override + @pragma('vm:prefer-inline') + bool moveNext() => _iterator.moveNext(); +} diff --git a/pkgs/objective_c/lib/src/ns_data.dart b/pkgs/objective_c/lib/src/ns_data.dart index 0a0e690f9..2fb9430a6 100644 --- a/pkgs/objective_c/lib/src/ns_data.dart +++ b/pkgs/objective_c/lib/src/ns_data.dart @@ -7,6 +7,7 @@ import 'dart:typed_data'; import 'package:ffi/ffi.dart'; +import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension NSDataExtensions on NSData { diff --git a/pkgs/objective_c/lib/src/ns_date.dart b/pkgs/objective_c/lib/src/ns_date.dart index 4c12ca3d5..e123a7964 100644 --- a/pkgs/objective_c/lib/src/ns_date.dart +++ b/pkgs/objective_c/lib/src/ns_date.dart @@ -2,6 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension DateTimeToNSDate on DateTime { diff --git a/pkgs/objective_c/lib/src/ns_input_stream.dart b/pkgs/objective_c/lib/src/ns_input_stream.dart index 8fd8ec742..572c4a6e5 100644 --- a/pkgs/objective_c/lib/src/ns_input_stream.dart +++ b/pkgs/objective_c/lib/src/ns_input_stream.dart @@ -4,6 +4,7 @@ import 'dart:isolate'; import 'ns_data.dart'; import 'ns_string.dart'; +import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension NSInputStreamStreamExtension on Stream> { diff --git a/pkgs/objective_c/lib/src/ns_mutable_data.dart b/pkgs/objective_c/lib/src/ns_mutable_data.dart index 9873410ed..943afed9e 100644 --- a/pkgs/objective_c/lib/src/ns_mutable_data.dart +++ b/pkgs/objective_c/lib/src/ns_mutable_data.dart @@ -6,6 +6,7 @@ import 'dart:ffi'; import 'package:ffi/ffi.dart'; +import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension NSMutableDataExtensions on NSMutableData { diff --git a/pkgs/objective_c/lib/src/ns_number.dart b/pkgs/objective_c/lib/src/ns_number.dart index 4e8583d0d..cc1452dc1 100644 --- a/pkgs/objective_c/lib/src/ns_number.dart +++ b/pkgs/objective_c/lib/src/ns_number.dart @@ -2,6 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension IntToNSNumber on int { diff --git a/pkgs/objective_c/lib/src/ns_string.dart b/pkgs/objective_c/lib/src/ns_string.dart index 552b418e5..9efd8bc09 100644 --- a/pkgs/objective_c/lib/src/ns_string.dart +++ b/pkgs/objective_c/lib/src/ns_string.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. import 'package:ffi/ffi.dart'; + +import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension StringToNSString on String { diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart index 95cd58e20..594046758 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -// Bindings for `src/foundation.h`. +// Bindings for package:objective_c's custom ObjC interfaces. // Regenerate bindings with `dart run tool/generate_code.dart`. // ignore_for_file: always_specify_types @@ -17,40456 +17,900 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint -@ffi.DefaultAsset('package:objective_c/objective_c.dylib') -library; - -import 'dart:collection' as collection; import 'dart:ffi' as ffi; -import '../objective_c.dart' as objc; -import 'package:ffi/ffi.dart' as pkg_ffi; - -@ffi.Native>(symbol: 'NSKeyValueChangeIndexesKey') -external ffi.Pointer _NSKeyValueChangeIndexesKey; - -NSString get NSKeyValueChangeIndexesKey => NSString.castFromPointer( - _NSKeyValueChangeIndexesKey, - retain: true, - release: true, -); - -set NSKeyValueChangeIndexesKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeIndexesKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeIndexesKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSKeyValueChangeKindKey') -external ffi.Pointer _NSKeyValueChangeKindKey; - -NSString get NSKeyValueChangeKindKey => NSString.castFromPointer( - _NSKeyValueChangeKindKey, - retain: true, - release: true, -); - -set NSKeyValueChangeKindKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeKindKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeKindKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSKeyValueChangeNewKey') -external ffi.Pointer _NSKeyValueChangeNewKey; - -NSString get NSKeyValueChangeNewKey => NSString.castFromPointer( - _NSKeyValueChangeNewKey, - retain: true, - release: true, -); - -set NSKeyValueChangeNewKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeNewKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeNewKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSKeyValueChangeNotificationIsPriorKey', -) -external ffi.Pointer _NSKeyValueChangeNotificationIsPriorKey; - -NSString get NSKeyValueChangeNotificationIsPriorKey => NSString.castFromPointer( - _NSKeyValueChangeNotificationIsPriorKey, - retain: true, - release: true, -); - -set NSKeyValueChangeNotificationIsPriorKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeNotificationIsPriorKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeNotificationIsPriorKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSKeyValueChangeOldKey') -external ffi.Pointer _NSKeyValueChangeOldKey; - -NSString get NSKeyValueChangeOldKey => NSString.castFromPointer( - _NSKeyValueChangeOldKey, - retain: true, - release: true, -); - -set NSKeyValueChangeOldKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeOldKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeOldKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSLocalizedDescriptionKey') -external ffi.Pointer _NSLocalizedDescriptionKey; - -NSString get NSLocalizedDescriptionKey => NSString.castFromPointer( - _NSLocalizedDescriptionKey, - retain: true, - release: true, -); - -set NSLocalizedDescriptionKey(NSString value) { - NSString.castFromPointer( - _NSLocalizedDescriptionKey, - retain: false, - release: true, - ).ref.release(); - _NSLocalizedDescriptionKey = value.ref.retainAndReturnPointer(); -} +import 'package:objective_c/objective_c.dart' as objc; @ffi.Native< - instancetype Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ) ->() -external instancetype _ObjectiveCBindings_protocolTrampoline_10z9f5k( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, -); - -@ffi.Native< - ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, ) >() -external int _ObjectiveCBindings_protocolTrampoline_17ap02x( +external void _ObjectiveCBindings_protocolTrampoline_1sr3ozv( ffi.Pointer target, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_18nsem0( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, ); @ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _ObjectiveCBindings_protocolTrampoline_18v1jvf( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1sr3ozv( + ffi.Pointer block, ); -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _ObjectiveCBindings_protocolTrampoline_1a8cl66( - ffi.Pointer target, - ffi.Pointer arg0, -); +typedef CFStringRef = ffi.Pointer; -@ffi.Native< - ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) ->() -external int _ObjectiveCBindings_protocolTrampoline_1ckyi24( - ffi.Pointer target, - ffi.Pointer arg0, -); +/// NSNumberIsFloat +extension NSNumberIsFloat on objc.NSNumber { + /// isFloat + bool get isFloat { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isFloat); + } +} -@ffi.Native< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int _ObjectiveCBindings_protocolTrampoline_1ldqghh( - ffi.Pointer target, +void +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, ffi.Pointer arg0, ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_1mbt9g9( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_1mllhpc( - ffi.Pointer target, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureTrampoline( + ffi.Pointer block, ffi.Pointer arg0, - ffi.Pointer arg1, + ffi.Pointer arg1, ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_1q0i84( - ffi.Pointer target, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerTrampoline( + ffi.Pointer block, ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2, -); + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + objc.objectRelease(block.cast()); +} -@ffi.Native< +ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ) ->() -external void _ObjectiveCBindings_protocolTrampoline_1sr3ozv( - ffi.Pointer target, +> +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2, ffi.Pointer arg3, ffi.Pointer arg4, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _ObjectiveCBindings_protocolTrampoline_3su7tt( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_50as9u( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_c7gk2u( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) ->() -external bool _ObjectiveCBindings_protocolTrampoline_e3qsqz( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< +> +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ) ->() -external void _ObjectiveCBindings_protocolTrampoline_hoampi( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void _ObjectiveCBindings_protocolTrampoline_ovsamd( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Bool Function( ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _ObjectiveCBindings_protocolTrampoline_w1e3k0( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ) ->() -external instancetype _ObjectiveCBindings_protocolTrampoline_xr62hr( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_18v1jvf( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1o83rbn( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); +> +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline, + ) + ..keepIsolateAlive = false; -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1pl9qdv( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); +/// Construction methods for `objc.ObjCBlock, objc.NSString, ffi.Pointer, objc.NSDictionary, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); + /// 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. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_hoampi( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_lmc3p5( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_ovsamd( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_q5jeyk( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_rnu2c5( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_t8l8el( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_vhbh5h( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_xtuoz7( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_zkjmn1( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_zuf90e( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_18v1jvf( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1b3bb6a( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1o83rbn( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1p9ui4q( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1pl9qdv( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1q8ia8l( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1sr3ozv( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_hoampi( - ffi.Pointer block, -); + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + > + fromFunction( + void Function( + ffi.Pointer, + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + objc.NSString.castFromPointer(arg1, retain: true, release: true), + objc.ObjCObjectBase(arg2, retain: true, release: true), + objc.NSDictionary.castFromPointer( + arg3, + retain: true, + release: true, + ), + arg4, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_lmc3p5( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_ovsamd( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_pfv6jd( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_q5jeyk( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_rnu2c5( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_t8l8el( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_vhbh5h( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_xtuoz7( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_zkjmn1( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_zuf90e( - ffi.Pointer block, -); - -@ffi.Packed(2) -final class AEDesc extends ffi.Struct { - @ffi.UnsignedInt() - external int descriptorType; - - external ffi.Pointer> dataHandle; -} - -final class CFRunLoop extends ffi.Opaque {} - -final class CFString extends ffi.Opaque {} - -typedef CFStringRef = ffi.Pointer; - -final class CGPoint extends ffi.Struct { - @ffi.Double() - external double x; - - @ffi.Double() - external double y; -} - -final class CGRect extends ffi.Struct { - external CGPoint origin; - - external CGSize size; -} - -final class CGSize extends ffi.Struct { - @ffi.Double() - external double width; - - @ffi.Double() - external double height; -} - -/// Represents a single KVO observation. Each observation creates a new -/// DOBJCObservation, even for the same observer, observed object, and keyPath. -class DOBJCObservation extends NSObject { - DOBJCObservation._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [DOBJCObservation] that points to the same underlying object as [other]. - DOBJCObservation.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [DOBJCObservation] that wraps the given raw object pointer. - DOBJCObservation.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [DOBJCObservation]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_DOBJCObservation, - ); - } - - /// alloc - static DOBJCObservation alloc() { - final _ret = _objc_msgSend_151sglz(_class_DOBJCObservation, _sel_alloc); - return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static DOBJCObservation allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_DOBJCObservation, - _sel_allocWithZone_, - zone, - ); - return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static DOBJCObservation new$() { - final _ret = _objc_msgSend_151sglz(_class_DOBJCObservation, _sel_new); - return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); - } - - /// autorelease - DOBJCObservation autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); - } - - /// dealloc - void dealloc() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); - } - - /// debugObserver - ffi.Pointer debugObserver() { - return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_debugObserver); - } - - /// init - DOBJCObservation init() { - objc.checkOsVersionInternal( - 'DOBJCObservation.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); - } - - /// initForKeyPath:ofObject:withObserver:options:context: - DOBJCObservation initForKeyPath( - NSString keyPath, { - required objc.ObjCObjectBase ofObject, - required Observer withObserver, - required NSKeyValueObservingOptions options, - required ffi.Pointer context, - }) { - final _ret = _objc_msgSend_1jiinfj( - this.ref.retainAndReturnPointer(), - _sel_initForKeyPath_ofObject_withObserver_options_context_, - keyPath.ref.pointer, - ofObject.ref.pointer, - withObserver.ref.pointer, - options.value, - context, - ); - return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); - } - - /// remove - void remove() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_remove); - } - - /// retain - DOBJCObservation retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); - } - - /// self - DOBJCObservation self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of DOBJCObservation constructed with the default `new` method. - factory DOBJCObservation() => new$(); -} - -/// Helper class to adapt a Dart stream into a `NSInputStream`. -class DartInputStreamAdapter extends NSInputStream implements NSStreamDelegate { - DartInputStreamAdapter._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [DartInputStreamAdapter] that points to the same underlying object as [other]. - DartInputStreamAdapter.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [DartInputStreamAdapter] that wraps the given raw object pointer. - DartInputStreamAdapter.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [DartInputStreamAdapter]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_DOBJCDartInputStreamAdapter, - ); - } - - /// inputStreamWithData: - static DartInputStreamAdapter? inputStreamWithData(NSData data) { - final _ret = _objc_msgSend_1sotr3r( - _class_DOBJCDartInputStreamAdapter, - _sel_inputStreamWithData_, - data.ref.pointer, - ); - return _ret.address == 0 - ? null - : DartInputStreamAdapter.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// inputStreamWithFileAtPath: - static DartInputStreamAdapter? inputStreamWithFileAtPath(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - _class_DOBJCDartInputStreamAdapter, - _sel_inputStreamWithFileAtPath_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : DartInputStreamAdapter.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// Creates the adapter. - /// @param sendPort A port to that is will receive two types of messages: - /// -1 => The `NSInputStream` has been closed and the port can be closed. - /// _ => The number of types being required in a `read:maxLength` call. - static DartInputStreamAdapter inputStreamWithPort(int sendPort) { - final _ret = _objc_msgSend_1ya1kjn( - _class_DOBJCDartInputStreamAdapter, - _sel_inputStreamWithPort_, - sendPort, - ); - return DartInputStreamAdapter.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// inputStreamWithURL: - static DartInputStreamAdapter? inputStreamWithURL(NSURL url) { - objc.checkOsVersionInternal( - 'DOBJCDartInputStreamAdapter.inputStreamWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_DOBJCDartInputStreamAdapter, - _sel_inputStreamWithURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : DartInputStreamAdapter.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// addData: - int addData(NSData data) { - return _objc_msgSend_1vd1c5m( - this.ref.pointer, - _sel_addData_, - data.ref.pointer, - ); - } - - /// initWithData: - DartInputStreamAdapter initWithData(NSData data) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithData_, - data.ref.pointer, - ); - return DartInputStreamAdapter.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithFileAtPath: - DartInputStreamAdapter? initWithFileAtPath(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithFileAtPath_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : DartInputStreamAdapter.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithURL: - DartInputStreamAdapter? initWithURL(NSURL url) { - objc.checkOsVersionInternal( - 'DOBJCDartInputStreamAdapter.initWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : DartInputStreamAdapter.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// setDone - void setDone() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_setDone); - } - - /// setError: - void setError(NSError error) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setError_, error.ref.pointer); - } - - /// stream:handleEvent: - void stream(NSStream aStream, {required NSStreamEvent handleEvent}) { - if (!objc.respondsToSelector(this.ref.pointer, _sel_stream_handleEvent_)) { - throw objc.UnimplementedOptionalMethodException( - 'DOBJCDartInputStreamAdapter', - 'stream:handleEvent:', - ); - } - _objc_msgSend_3l8zum( - this.ref.pointer, - _sel_stream_handleEvent_, - aStream.ref.pointer, - handleEvent.value, - ); - } -} - -/// Base class of all classes DOBJCDartProtocolBuilder creates. -class DartProtocol extends NSObject { - DartProtocol._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [DartProtocol] that points to the same underlying object as [other]. - DartProtocol.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [DartProtocol] that wraps the given raw object pointer. - DartProtocol.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [DartProtocol]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_DOBJCDartProtocol, - ); - } - - /// alloc - static DartProtocol alloc() { - final _ret = _objc_msgSend_151sglz(_class_DOBJCDartProtocol, _sel_alloc); - return DartProtocol.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static DartProtocol allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_DOBJCDartProtocol, - _sel_allocWithZone_, - zone, - ); - return DartProtocol.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static DartProtocol new$() { - final _ret = _objc_msgSend_151sglz(_class_DOBJCDartProtocol, _sel_new); - return DartProtocol.castFromPointer(_ret, retain: false, release: true); - } - - /// autorelease - DartProtocol autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return DartProtocol.castFromPointer(_ret, retain: true, release: true); - } - - /// dealloc - void dealloc() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); - } - - /// getDOBJCDartProtocolMethodForSelector: - objc.ObjCObjectBase getDOBJCDartProtocolMethodForSelector( - ffi.Pointer sel, - ) { - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_getDOBJCDartProtocolMethodForSelector_, - sel, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// init - DartProtocol init() { - objc.checkOsVersionInternal( - 'DOBJCDartProtocol.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return DartProtocol.castFromPointer(_ret, retain: false, release: true); - } - - /// initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort: - DartProtocol initDOBJCDartProtocolFromDartProtocolBuilder( - DartProtocolBuilder builder, { - required int withDisposePort, + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + > + listener( + void Function( + ffi.Pointer, + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, }) { - final _ret = _objc_msgSend_dbvvll( - this.ref.retainAndReturnPointer(), - _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_, - builder.ref.pointer, - withDisposePort, - ); - return DartProtocol.castFromPointer(_ret, retain: false, release: true); - } - - /// retain - DartProtocol retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return DartProtocol.castFromPointer(_ret, retain: true, release: true); - } - - /// self - DartProtocol self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return DartProtocol.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of DartProtocol constructed with the default `new` method. - factory DartProtocol() => new$(); -} - -/// Used by the Dart ObjCProtocolBuilder to construct ObjC classes at runtime to -/// implement protocols. -class DartProtocolBuilder extends NSObject { - DartProtocolBuilder._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [DartProtocolBuilder] that points to the same underlying object as [other]. - DartProtocolBuilder.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [DartProtocolBuilder] that wraps the given raw object pointer. - DartProtocolBuilder.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [DartProtocolBuilder]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_DOBJCDartProtocolBuilder, - ); - } - - /// alloc - static DartProtocolBuilder alloc() { - final _ret = _objc_msgSend_151sglz( - _class_DOBJCDartProtocolBuilder, - _sel_alloc, - ); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static DartProtocolBuilder allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_DOBJCDartProtocolBuilder, - _sel_allocWithZone_, - zone, - ); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// new - static DartProtocolBuilder new$() { - final _ret = _objc_msgSend_151sglz( - _class_DOBJCDartProtocolBuilder, - _sel_new, - ); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// addProtocol: - void addProtocol(Protocol protocol) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addProtocol_, - protocol.ref.pointer, - ); - } - - /// autorelease - DartProtocolBuilder autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// buildInstance: - DartProtocol buildInstance(int port) { - final _ret = _objc_msgSend_1ya1kjn( - this.ref.pointer, - _sel_buildInstance_, - port, - ); - return DartProtocol.castFromPointer(_ret, retain: true, release: true); - } - - /// implementMethod:withBlock:withTrampoline:withSignature: - void implementMethod( - ffi.Pointer sel, { - required ffi.Pointer withBlock, - required ffi.Pointer withTrampoline, - required ffi.Pointer withSignature, - }) { - _objc_msgSend_1s2gdyk( - this.ref.pointer, - _sel_implementMethod_withBlock_withTrampoline_withSignature_, - sel, - withBlock, - withTrampoline, - withSignature, - ); - } - - /// init - DartProtocolBuilder init() { - objc.checkOsVersionInternal( - 'DOBJCDartProtocolBuilder.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithClassName: - DartProtocolBuilder initWithClassName(ffi.Pointer name) { - final _ret = _objc_msgSend_56zxyn( - this.ref.retainAndReturnPointer(), - _sel_initWithClassName_, - name, - ); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// registerClass - void registerClass() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_registerClass); - } - - /// retain - DartProtocolBuilder retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// self - DartProtocolBuilder self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// Returns a new instance of DartProtocolBuilder constructed with the default `new` method. - factory DartProtocolBuilder() => new$(); -} - -/// iOS: unavailable -/// macOS: introduced 10.11.0 -enum NSAppleEventSendOptions { - NSAppleEventSendNoReply(1), - NSAppleEventSendQueueReply(2), - NSAppleEventSendWaitForReply(3), - NSAppleEventSendNeverInteract(16), - NSAppleEventSendCanInteract(32), - NSAppleEventSendAlwaysInteract(48), - NSAppleEventSendCanSwitchLayer(64), - NSAppleEventSendDontRecord(4096), - NSAppleEventSendDontExecute(8192), - NSAppleEventSendDontAnnotate(65536), - NSAppleEventSendDefaultOptions(35); - - final int value; - const NSAppleEventSendOptions(this.value); - - static NSAppleEventSendOptions fromValue(int value) => switch (value) { - 1 => NSAppleEventSendNoReply, - 2 => NSAppleEventSendQueueReply, - 3 => NSAppleEventSendWaitForReply, - 16 => NSAppleEventSendNeverInteract, - 32 => NSAppleEventSendCanInteract, - 48 => NSAppleEventSendAlwaysInteract, - 64 => NSAppleEventSendCanSwitchLayer, - 4096 => NSAppleEventSendDontRecord, - 8192 => NSAppleEventSendDontExecute, - 65536 => NSAppleEventSendDontAnnotate, - 35 => NSAppleEventSendDefaultOptions, - _ => throw ArgumentError( - 'Unknown value for NSAppleEventSendOptions: $value', - ), - }; -} - -/// NSArray -class NSArray extends NSObject - with Iterable - implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - /// Creates a [NSArray] of the given length with [fill] at each position. - /// - /// The [length] must be a non-negative integer. - static NSArray filled(int length, objc.ObjCObjectBase fill) => - NSMutableArray.filled(length, fill); - - /// Creates a [NSArray] from [elements]. - static NSArray of(Iterable elements) => - NSMutableArray.of(elements); - - @override - int get length => count; - - @override - objc.ObjCObjectBase elementAt(int index) => objectAtIndex(index); - - @override - Iterator get iterator => _NSArrayIterator(this); - - objc.ObjCObjectBase operator [](int index) => objectAtIndex(index); - - NSArray._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSArray] that points to the same underlying object as [other]. - NSArray.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSArray] that wraps the given raw object pointer. - NSArray.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSArray]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSArray, - ); - } - - /// alloc - static NSArray alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_alloc); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSArray allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSArray, - _sel_allocWithZone_, - zone, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// array - static NSArray array() { - final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_array); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithArray: - static NSArray arrayWithArray(NSArray array$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithArray_, - array$1.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObject: - static NSArray arrayWithObject(objc.ObjCObjectBase anObject) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithObject_, - anObject.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObjects: - static NSArray arrayWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithObjects_, - firstObj.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObjects:count: - static NSArray arrayWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - _class_NSArray, - _sel_arrayWithObjects_count_, - objects, - count, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSArray new$() { - final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_new); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSArray, _sel_supportsSecureCoding); - } - - /// count - int get count { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSArray init() { - objc.checkOsVersionInternal( - 'NSArray.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray: - NSArray initWithArray(NSArray array$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array$1.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - NSArray initWithArray$1(NSArray array$1, {required bool copyItems}) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - array$1.ref.pointer, - copyItems, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSArray? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects: - NSArray initWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:count: - NSArray initWithObjects$1( - ffi.Pointer> objects, { - required int count$1, - }) { - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count$1, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// objectAtIndex: - objc.ObjCObjectBase objectAtIndex(int index) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_objectAtIndex_, - index, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSArray constructed with the default `new` method. - factory NSArray() => new$(); -} - -enum NSBinarySearchingOptions { - NSBinarySearchingFirstEqual(256), - NSBinarySearchingLastEqual(512), - NSBinarySearchingInsertionIndex(1024); - - final int value; - const NSBinarySearchingOptions(this.value); - - static NSBinarySearchingOptions fromValue(int value) => switch (value) { - 256 => NSBinarySearchingFirstEqual, - 512 => NSBinarySearchingLastEqual, - 1024 => NSBinarySearchingInsertionIndex, - _ => throw ArgumentError( - 'Unknown value for NSBinarySearchingOptions: $value', - ), - }; -} - -/// NSCharacterSet -class NSCharacterSet extends NSObject - implements NSCopying, NSMutableCopying, NSSecureCoding { - NSCharacterSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSCharacterSet] that points to the same underlying object as [other]. - NSCharacterSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSCharacterSet] that wraps the given raw object pointer. - NSCharacterSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSCharacterSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSCharacterSet, - ); - } - - /// alloc - static NSCharacterSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_alloc); - return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSCharacterSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSCharacterSet, - _sel_allocWithZone_, - zone, - ); - return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); - } - - /// alphanumericCharacterSet - static NSCharacterSet getAlphanumericCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_alphanumericCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// capitalizedLetterCharacterSet - static NSCharacterSet getCapitalizedLetterCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_capitalizedLetterCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// characterSetWithBitmapRepresentation: - static NSCharacterSet characterSetWithBitmapRepresentation(NSData data) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSCharacterSet, - _sel_characterSetWithBitmapRepresentation_, - data.ref.pointer, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// characterSetWithCharactersInString: - static NSCharacterSet characterSetWithCharactersInString(NSString aString) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSCharacterSet, - _sel_characterSetWithCharactersInString_, - aString.ref.pointer, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// characterSetWithContentsOfFile: - static NSCharacterSet? characterSetWithContentsOfFile(NSString fName) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSCharacterSet, - _sel_characterSetWithContentsOfFile_, - fName.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// characterSetWithRange: - static NSCharacterSet characterSetWithRange(NSRange aRange) { - final _ret = _objc_msgSend_1k1o1s7( - _class_NSCharacterSet, - _sel_characterSetWithRange_, - aRange, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// controlCharacterSet - static NSCharacterSet getControlCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_controlCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// decimalDigitCharacterSet - static NSCharacterSet getDecimalDigitCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_decimalDigitCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// decomposableCharacterSet - static NSCharacterSet getDecomposableCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_decomposableCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// illegalCharacterSet - static NSCharacterSet getIllegalCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_illegalCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// letterCharacterSet - static NSCharacterSet getLetterCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_letterCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// lowercaseLetterCharacterSet - static NSCharacterSet getLowercaseLetterCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_lowercaseLetterCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSCharacterSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_new); - return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); - } - - /// newlineCharacterSet - static NSCharacterSet getNewlineCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.newlineCharacterSet', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_newlineCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// nonBaseCharacterSet - static NSCharacterSet getNonBaseCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_nonBaseCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// punctuationCharacterSet - static NSCharacterSet getPunctuationCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_punctuationCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSCharacterSet, - _sel_supportsSecureCoding, - ); - } - - /// symbolCharacterSet - static NSCharacterSet getSymbolCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_symbolCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// uppercaseLetterCharacterSet - static NSCharacterSet getUppercaseLetterCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_uppercaseLetterCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// whitespaceAndNewlineCharacterSet - static NSCharacterSet getWhitespaceAndNewlineCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_whitespaceAndNewlineCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// whitespaceCharacterSet - static NSCharacterSet getWhitespaceCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_whitespaceCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// autorelease - NSCharacterSet autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// bitmapRepresentation - NSData get bitmapRepresentation { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_bitmapRepresentation, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// characterIsMember: - bool characterIsMember(int aCharacter) { - return _objc_msgSend_1co9mn4( - this.ref.pointer, - _sel_characterIsMember_, - aCharacter, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// hasMemberInPlane: - bool hasMemberInPlane(int thePlane) { - return _objc_msgSend_gerswc( - this.ref.pointer, - _sel_hasMemberInPlane_, - thePlane, - ); - } - - /// init - NSCharacterSet init() { - objc.checkOsVersionInternal( - 'NSCharacterSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSCharacterSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSCharacterSet.castFromPointer(_ret, retain: false, release: true); - } - - /// invertedSet - NSCharacterSet get invertedSet { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_invertedSet); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// isSupersetOfSet: - bool isSupersetOfSet(NSCharacterSet theOtherSet) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isSupersetOfSet_, - theOtherSet.ref.pointer, - ); - } - - /// longCharacterIsMember: - bool longCharacterIsMember(int theLongChar) { - return _objc_msgSend_jsclrq( - this.ref.pointer, - _sel_longCharacterIsMember_, - theLongChar, - ); - } - - /// retain - NSCharacterSet retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSCharacterSet self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSCharacterSet constructed with the default `new` method. - factory NSCharacterSet() => new$(); -} - -/// NSCoder -class NSCoder extends NSObject { - NSCoder._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSCoder] that points to the same underlying object as [other]. - NSCoder.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSCoder] that wraps the given raw object pointer. - NSCoder.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSCoder]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSCoder, - ); - } - - /// alloc - static NSCoder alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSCoder, _sel_alloc); - return NSCoder.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSCoder allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSCoder, - _sel_allocWithZone_, - zone, - ); - return NSCoder.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSCoder new$() { - final _ret = _objc_msgSend_151sglz(_class_NSCoder, _sel_new); - return NSCoder.castFromPointer(_ret, retain: false, release: true); - } - - /// decodeDataObject - NSData? decodeDataObject() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_decodeDataObject); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// decodeValueOfObjCType:at:size: - void decodeValueOfObjCType( - ffi.Pointer type, { - required ffi.Pointer at, - required int size, - }) { - objc.checkOsVersionInternal( - 'NSCoder.decodeValueOfObjCType:at:size:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_nc6uds( - this.ref.pointer, - _sel_decodeValueOfObjCType_at_size_, - type, - at, - size, - ); - } - - /// encodeDataObject: - void encodeDataObject(NSData data) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeDataObject_, - data.ref.pointer, - ); - } - - /// encodeValueOfObjCType:at: - void encodeValueOfObjCType( - ffi.Pointer type, { - required ffi.Pointer at, - }) { - _objc_msgSend_1flkydz( - this.ref.pointer, - _sel_encodeValueOfObjCType_at_, - type, - at, - ); - } - - /// init - NSCoder init() { - objc.checkOsVersionInternal( - 'NSCoder.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSCoder.castFromPointer(_ret, retain: false, release: true); - } - - /// versionForClassName: - int versionForClassName(NSString className) { - return _objc_msgSend_1r6ymhb( - this.ref.pointer, - _sel_versionForClassName_, - className.ref.pointer, - ); - } - - /// Returns a new instance of NSCoder constructed with the default `new` method. - factory NSCoder() => new$(); -} - -/// NSCoding -interface class NSCoding extends objc.ObjCProtocolBase { - NSCoding._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSCoding] that points to the same underlying object as [other]. - NSCoding.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSCoding] that wraps the given raw object pointer. - NSCoding.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSCoding]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSCoding, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSCoding.cast()); - - /// Builds an object that implements the NSCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCoding implement({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); - NSCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCoding implementAsListener({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); - NSCoding.encodeWithCoder_.implementAsListener(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSCoding.encodeWithCoder_.implementAsListener(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCoding implementAsBlocking({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); - NSCoding.encodeWithCoder_.implementAsBlocking(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSCoding.encodeWithCoder_.implementAsBlocking(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// encodeWithCoder: - static final encodeWithCoder_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSCoding, - _sel_encodeWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCoding, - _sel_encodeWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - ); - - /// initWithCoder: - static final initWithCoder_ = - objc.ObjCProtocolMethod( - _protocol_NSCoding, - _sel_initWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_xr62hr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCoding, - _sel_initWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (Dartinstancetype? Function(NSCoder) func) => - ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - ); -} - -/// iOS: introduced 13.0.0 -/// macOS: introduced 10.15.0 -enum NSCollectionChangeType { - NSCollectionChangeInsert(0), - NSCollectionChangeRemove(1); - - final int value; - const NSCollectionChangeType(this.value); - - static NSCollectionChangeType fromValue(int value) => switch (value) { - 0 => NSCollectionChangeInsert, - 1 => NSCollectionChangeRemove, - _ => throw ArgumentError( - 'Unknown value for NSCollectionChangeType: $value', - ), - }; -} - -enum NSComparisonResult { - NSOrderedAscending(-1), - NSOrderedSame(0), - NSOrderedDescending(1); - - final int value; - const NSComparisonResult(this.value); - - static NSComparisonResult fromValue(int value) => switch (value) { - -1 => NSOrderedAscending, - 0 => NSOrderedSame, - 1 => NSOrderedDescending, - _ => throw ArgumentError('Unknown value for NSComparisonResult: $value'), - }; -} - -/// NSCopying -interface class NSCopying extends objc.ObjCProtocolBase { - NSCopying._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSCopying] that points to the same underlying object as [other]. - NSCopying.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSCopying] that wraps the given raw object pointer. - NSCopying.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSCopying]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSCopying, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSCopying.cast()); - - /// Builds an object that implements the NSCopying protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCopying implement({ - required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCopying'); - NSCopying.copyWithZone_.implement(builder, copyWithZone_); - builder.addProtocol($protocol); - return NSCopying.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCopying protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, - bool $keepIsolateAlive = true, - }) { - NSCopying.copyWithZone_.implement(builder, copyWithZone_); - builder.addProtocol($protocol); - } - - /// copyWithZone: - static final copyWithZone_ = - objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function(ffi.Pointer) - >( - _protocol_NSCopying, - _sel_copyWithZone_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_18nsem0) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCopying, - _sel_copyWithZone_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function(ffi.Pointer) func) => - ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => func(arg1), - ), - ); -} - -/// NSData -class NSData extends NSObject - implements NSCopying, NSMutableCopying, NSSecureCoding { - NSData._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSData] that points to the same underlying object as [other]. - NSData.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSData] that wraps the given raw object pointer. - NSData.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSData]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSData, - ); - } - - /// alloc - static NSData alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_alloc); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSData allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSData, - _sel_allocWithZone_, - zone, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// data - static NSData data() { - final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_data); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytes:length: - static NSData dataWithBytes( - ffi.Pointer bytes, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - _class_NSData, - _sel_dataWithBytes_length_, - bytes, - length, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytesNoCopy:length: - static NSData dataWithBytesNoCopy( - ffi.Pointer bytes, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - _class_NSData, - _sel_dataWithBytesNoCopy_length_, - bytes, - length, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytesNoCopy:length:freeWhenDone: - static NSData dataWithBytesNoCopy$1( - ffi.Pointer bytes, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_161ne8y( - _class_NSData, - _sel_dataWithBytesNoCopy_length_freeWhenDone_, - bytes, - length, - freeWhenDone, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfFile: - static NSData? dataWithContentsOfFile(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSData, - _sel_dataWithContentsOfFile_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfFile:options:error: - static NSData? dataWithContentsOfFile$1( - NSString path, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - _class_NSData, - _sel_dataWithContentsOfFile_options_error_, - path.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfURL: - static NSData? dataWithContentsOfURL(NSURL url) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSData, - _sel_dataWithContentsOfURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfURL:options:error: - static NSData? dataWithContentsOfURL$1( - NSURL url, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - _class_NSData, - _sel_dataWithContentsOfURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithData: - static NSData dataWithData(NSData data$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSData, - _sel_dataWithData_, - data$1.ref.pointer, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSData new$() { - final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_new); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSData, _sel_supportsSecureCoding); - } - - /// bytes - ffi.Pointer get bytes { - return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_bytes); - } - - /// compressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSData? compressedDataUsingAlgorithm( - NSDataCompressionAlgorithm algorithm, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSData.compressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1vnlaqg( - this.ref.pointer, - _sel_compressedDataUsingAlgorithm_error_, - algorithm.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// decompressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSData? decompressedDataUsingAlgorithm( - NSDataCompressionAlgorithm algorithm, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSData.decompressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1vnlaqg( - this.ref.pointer, - _sel_decompressedDataUsingAlgorithm_error_, - algorithm.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSData init() { - objc.checkOsVersionInternal( - 'NSData.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBase64EncodedData:options: - NSData? initWithBase64EncodedData( - NSData base64Data, { - required NSDataBase64DecodingOptions options, - }) { - objc.checkOsVersionInternal( - 'NSData.initWithBase64EncodedData:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedData_options_, - base64Data.ref.pointer, - options.value, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBase64EncodedString:options: - NSData? initWithBase64EncodedString( - NSString base64String, { - required NSDataBase64DecodingOptions options, - }) { - objc.checkOsVersionInternal( - 'NSData.initWithBase64EncodedString:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedString_options_, - base64String.ref.pointer, - options.value, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:length: - NSData initWithBytes(ffi.Pointer bytes$1, {required int length}) { - final _ret = _objc_msgSend_3nbx5e( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_, - bytes$1, - length, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length: - NSData initWithBytesNoCopy( - ffi.Pointer bytes$1, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_, - bytes$1, - length, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:deallocator: - NSData initWithBytesNoCopy$1( - ffi.Pointer bytes$1, { - required int length, - objc.ObjCBlock, ffi.UnsignedLong)>? - deallocator, - }) { - objc.checkOsVersionInternal( - 'NSData.initWithBytesNoCopy:length:deallocator:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_134vhyh( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_deallocator_, - bytes$1, - length, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:freeWhenDone: - NSData initWithBytesNoCopy$2( - ffi.Pointer bytes$1, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_161ne8y( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_freeWhenDone_, - bytes$1, - length, - freeWhenDone, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSData? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile: - NSData? initWithContentsOfFile(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:options:error: - NSData? initWithContentsOfFile$1( - NSString path, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_options_error_, - path.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - NSData? initWithContentsOfURL(NSURL url) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:options:error: - NSData? initWithContentsOfURL$1( - NSURL url, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithData: - NSData initWithData(NSData data$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithData_, - data$1.ref.pointer, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// length - int get length { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); - } - - /// Returns a new instance of NSData constructed with the default `new` method. - factory NSData() => new$(); -} - -enum NSDataBase64DecodingOptions { - NSDataBase64DecodingIgnoreUnknownCharacters(1); - - final int value; - const NSDataBase64DecodingOptions(this.value); - - static NSDataBase64DecodingOptions fromValue(int value) => switch (value) { - 1 => NSDataBase64DecodingIgnoreUnknownCharacters, - _ => throw ArgumentError( - 'Unknown value for NSDataBase64DecodingOptions: $value', - ), - }; -} - -enum NSDataBase64EncodingOptions { - NSDataBase64Encoding64CharacterLineLength(1), - NSDataBase64Encoding76CharacterLineLength(2), - NSDataBase64EncodingEndLineWithCarriageReturn(16), - NSDataBase64EncodingEndLineWithLineFeed(32); - - final int value; - const NSDataBase64EncodingOptions(this.value); - - static NSDataBase64EncodingOptions fromValue(int value) => switch (value) { - 1 => NSDataBase64Encoding64CharacterLineLength, - 2 => NSDataBase64Encoding76CharacterLineLength, - 16 => NSDataBase64EncodingEndLineWithCarriageReturn, - 32 => NSDataBase64EncodingEndLineWithLineFeed, - _ => throw ArgumentError( - 'Unknown value for NSDataBase64EncodingOptions: $value', - ), - }; -} - -/// iOS: introduced 13.0.0 -/// macOS: introduced 10.15.0 -enum NSDataCompressionAlgorithm { - NSDataCompressionAlgorithmLZFSE(0), - NSDataCompressionAlgorithmLZ4(1), - NSDataCompressionAlgorithmLZMA(2), - NSDataCompressionAlgorithmZlib(3); - - final int value; - const NSDataCompressionAlgorithm(this.value); - - static NSDataCompressionAlgorithm fromValue(int value) => switch (value) { - 0 => NSDataCompressionAlgorithmLZFSE, - 1 => NSDataCompressionAlgorithmLZ4, - 2 => NSDataCompressionAlgorithmLZMA, - 3 => NSDataCompressionAlgorithmZlib, - _ => throw ArgumentError( - 'Unknown value for NSDataCompressionAlgorithm: $value', - ), - }; -} - -/// NSDataCreation -extension NSDataCreation on NSData {} - -enum NSDataReadingOptions { - NSDataReadingMappedIfSafe(1), - NSDataReadingUncached(2), - NSDataReadingMappedAlways(8); - - static const NSDataReadingMapped = NSDataReadingMappedIfSafe; - static const NSMappedRead = NSDataReadingMappedIfSafe; - static const NSUncachedRead = NSDataReadingUncached; - - final int value; - const NSDataReadingOptions(this.value); - - static NSDataReadingOptions fromValue(int value) => switch (value) { - 1 => NSDataReadingMappedIfSafe, - 2 => NSDataReadingUncached, - 8 => NSDataReadingMappedAlways, - _ => throw ArgumentError('Unknown value for NSDataReadingOptions: $value'), - }; - - @override - String toString() { - if (this == NSDataReadingMappedIfSafe) - return "NSDataReadingOptions.NSDataReadingMappedIfSafe, NSDataReadingOptions.NSDataReadingMapped, NSDataReadingOptions.NSMappedRead"; - if (this == NSDataReadingUncached) - return "NSDataReadingOptions.NSDataReadingUncached, NSDataReadingOptions.NSUncachedRead"; - return super.toString(); - } -} - -enum NSDataSearchOptions { - NSDataSearchBackwards(1), - NSDataSearchAnchored(2); - - final int value; - const NSDataSearchOptions(this.value); - - static NSDataSearchOptions fromValue(int value) => switch (value) { - 1 => NSDataSearchBackwards, - 2 => NSDataSearchAnchored, - _ => throw ArgumentError('Unknown value for NSDataSearchOptions: $value'), - }; -} - -enum NSDataWritingOptions { - NSDataWritingAtomic(1), - NSDataWritingWithoutOverwriting(2), - NSDataWritingFileProtectionNone(268435456), - NSDataWritingFileProtectionComplete(536870912), - NSDataWritingFileProtectionCompleteUnlessOpen(805306368), - NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication(1073741824), - NSDataWritingFileProtectionCompleteWhenUserInactive(1342177280), - NSDataWritingFileProtectionMask(4026531840); - - static const NSAtomicWrite = NSDataWritingAtomic; - - final int value; - const NSDataWritingOptions(this.value); - - static NSDataWritingOptions fromValue(int value) => switch (value) { - 1 => NSDataWritingAtomic, - 2 => NSDataWritingWithoutOverwriting, - 268435456 => NSDataWritingFileProtectionNone, - 536870912 => NSDataWritingFileProtectionComplete, - 805306368 => NSDataWritingFileProtectionCompleteUnlessOpen, - 1073741824 => - NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication, - 1342177280 => NSDataWritingFileProtectionCompleteWhenUserInactive, - 4026531840 => NSDataWritingFileProtectionMask, - _ => throw ArgumentError('Unknown value for NSDataWritingOptions: $value'), - }; - - @override - String toString() { - if (this == NSDataWritingAtomic) - return "NSDataWritingOptions.NSDataWritingAtomic, NSDataWritingOptions.NSAtomicWrite"; - return super.toString(); - } -} - -/// NSDate -class NSDate extends NSObject implements NSCopying, NSSecureCoding { - NSDate._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSDate] that points to the same underlying object as [other]. - NSDate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSDate] that wraps the given raw object pointer. - NSDate.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSDate]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSDate, - ); - } - - /// alloc - static NSDate alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_alloc); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSDate allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSDate, - _sel_allocWithZone_, - zone, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// date - static NSDate date() { - final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_date); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// dateWithTimeInterval:sinceDate: - static NSDate dateWithTimeInterval( - double secsToBeAdded, { - required NSDate sinceDate, - }) { - final _ret = _objc_msgSend_1ozwf6k( - _class_NSDate, - _sel_dateWithTimeInterval_sinceDate_, - secsToBeAdded, - sinceDate.ref.pointer, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSince1970: - static NSDate dateWithTimeIntervalSince1970(double secs) { - final _ret = _objc_msgSend_oa8mke( - _class_NSDate, - _sel_dateWithTimeIntervalSince1970_, - secs, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSinceNow: - static NSDate dateWithTimeIntervalSinceNow(double secs) { - final _ret = _objc_msgSend_oa8mke( - _class_NSDate, - _sel_dateWithTimeIntervalSinceNow_, - secs, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSinceReferenceDate: - static NSDate dateWithTimeIntervalSinceReferenceDate(double ti) { - final _ret = _objc_msgSend_oa8mke( - _class_NSDate, - _sel_dateWithTimeIntervalSinceReferenceDate_, - ti, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSDate new$() { - final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_new); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSDate, _sel_supportsSecureCoding); - } - - /// dateByAddingTimeInterval: - NSDate dateByAddingTimeInterval(double ti) { - objc.checkOsVersionInternal( - 'NSDate.dateByAddingTimeInterval:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_oa8mke( - this.ref.pointer, - _sel_dateByAddingTimeInterval_, - ti, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSDate init() { - objc.checkOsVersionInternal( - 'NSDate.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSDate? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithTimeInterval:sinceDate: - NSDate initWithTimeInterval( - double secsToBeAdded, { - required NSDate sinceDate, - }) { - final _ret = _objc_msgSend_1ozwf6k( - this.ref.retainAndReturnPointer(), - _sel_initWithTimeInterval_sinceDate_, - secsToBeAdded, - sinceDate.ref.pointer, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithTimeIntervalSince1970: - NSDate initWithTimeIntervalSince1970(double secs) { - final _ret = _objc_msgSend_oa8mke( - this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSince1970_, - secs, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithTimeIntervalSinceNow: - NSDate initWithTimeIntervalSinceNow(double secs) { - final _ret = _objc_msgSend_oa8mke( - this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSinceNow_, - secs, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithTimeIntervalSinceReferenceDate: - NSDate initWithTimeIntervalSinceReferenceDate(double ti) { - final _ret = _objc_msgSend_oa8mke( - this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSinceReferenceDate_, - ti, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// timeIntervalSinceReferenceDate - double get timeIntervalSinceReferenceDate { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, - _sel_timeIntervalSinceReferenceDate, - ) - : _objc_msgSend_1ukqyt8( - this.ref.pointer, - _sel_timeIntervalSinceReferenceDate, - ); - } - - /// Returns a new instance of NSDate constructed with the default `new` method. - factory NSDate() => new$(); -} - -enum NSDecodingFailurePolicy { - NSDecodingFailurePolicyRaiseException(0), - NSDecodingFailurePolicySetErrorAndReturn(1); - - final int value; - const NSDecodingFailurePolicy(this.value); - - static NSDecodingFailurePolicy fromValue(int value) => switch (value) { - 0 => NSDecodingFailurePolicyRaiseException, - 1 => NSDecodingFailurePolicySetErrorAndReturn, - _ => throw ArgumentError( - 'Unknown value for NSDecodingFailurePolicy: $value', - ), - }; -} - -/// NSDictionary -class NSDictionary extends NSObject - with collection.MapBase - implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - /// Creates a [NSDictionary] from [other]. - static NSDictionary of(Map other) => - NSMutableDictionary.of(other); - - /// Creates a [NSDictionary] from [entries]. - static NSDictionary fromEntries( - Iterable> entries, - ) => NSMutableDictionary.fromEntries(entries); - - @override - int get length => count; - - @override - objc.ObjCObjectBase? operator [](Object? key) => - key is NSCopying ? objectForKey(key) : null; - - @override - Iterable get keys => _NSDictionaryKeyIterable(this); - - @override - Iterable get values => _NSDictionaryValueIterable(this); - - @override - bool containsKey(Object? key) => this[key] != null; - - @override - void operator []=(NSCopying key, objc.ObjCObjectBase value) => - throw UnsupportedError("Cannot modify NSDictionary"); - - @override - void clear() => throw UnsupportedError("Cannot modify NSDictionary"); - - @override - objc.ObjCObjectBase? remove(Object? key) => - throw UnsupportedError("Cannot modify NSDictionary"); - - NSDictionary._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSDictionary] that points to the same underlying object as [other]. - NSDictionary.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSDictionary] that wraps the given raw object pointer. - NSDictionary.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSDictionary]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSDictionary, - ); - } - - /// alloc - static NSDictionary alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_alloc); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSDictionary allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSDictionary, - _sel_allocWithZone_, - zone, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// dictionary - static NSDictionary dictionary() { - final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_dictionary); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// dictionaryWithDictionary: - static NSDictionary dictionaryWithDictionary(NSDictionary dict) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, - _sel_dictionaryWithDictionary_, - dict.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// dictionaryWithObject:forKey: - static NSDictionary dictionaryWithObject( - objc.ObjCObjectBase object, { - required NSCopying forKey, - }) { - final _ret = _objc_msgSend_15qeuct( - _class_NSDictionary, - _sel_dictionaryWithObject_forKey_, - object.ref.pointer, - forKey.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// dictionaryWithObjects:forKeys: - static NSDictionary dictionaryWithObjects( - NSArray objects, { - required NSArray forKeys, - }) { - final _ret = _objc_msgSend_15qeuct( - _class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_, - objects.ref.pointer, - forKeys.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// dictionaryWithObjects:forKeys:count: - static NSDictionary dictionaryWithObjects$1( - ffi.Pointer> objects, { - required ffi.Pointer> forKeys, - required int count, - }) { - final _ret = _objc_msgSend_1dydpdi( - _class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_count_, - objects, - forKeys, - count, - ); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// dictionaryWithObjectsAndKeys: - static NSDictionary dictionaryWithObjectsAndKeys( - objc.ObjCObjectBase firstObject, - ) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, - _sel_dictionaryWithObjectsAndKeys_, - firstObject.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSDictionary new$() { - final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_new); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSDictionary, _sel_supportsSecureCoding); - } - - /// count - int get count { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSDictionary init() { - objc.checkOsVersionInternal( - 'NSDictionary.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSDictionary? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithDictionary: - NSDictionary initWithDictionary(NSDictionary otherDictionary) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_, - otherDictionary.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithDictionary:copyItems: - NSDictionary initWithDictionary$1( - NSDictionary otherDictionary, { - required bool copyItems, - }) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_copyItems_, - otherDictionary.ref.pointer, - copyItems, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:forKeys: - NSDictionary initWithObjects(NSArray objects, {required NSArray forKeys}) { - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_, - objects.ref.pointer, - forKeys.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:forKeys:count: - NSDictionary initWithObjects$1( - ffi.Pointer> objects, { - required ffi.Pointer> forKeys, - required int count$1, - }) { - final _ret = _objc_msgSend_1dydpdi( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_count_, - objects, - forKeys, - count$1, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjectsAndKeys: - NSDictionary initWithObjectsAndKeys(objc.ObjCObjectBase firstObject) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjectsAndKeys_, - firstObject.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// keyEnumerator - NSEnumerator keyEnumerator() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_keyEnumerator); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// objectForKey: - objc.ObjCObjectBase? objectForKey(objc.ObjCObjectBase aKey) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_objectForKey_, - aKey.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSDictionary constructed with the default `new` method. - factory NSDictionary() => new$(); -} - -final class NSEdgeInsets extends ffi.Struct { - @ffi.Double() - external double top; - - @ffi.Double() - external double left; - - @ffi.Double() - external double bottom; - - @ffi.Double() - external double right; -} - -enum NSEnumerationOptions { - NSEnumerationConcurrent(1), - NSEnumerationReverse(2); - - final int value; - const NSEnumerationOptions(this.value); - - static NSEnumerationOptions fromValue(int value) => switch (value) { - 1 => NSEnumerationConcurrent, - 2 => NSEnumerationReverse, - _ => throw ArgumentError('Unknown value for NSEnumerationOptions: $value'), - }; -} - -/// NSEnumerator -class NSEnumerator extends NSObject - implements NSFastEnumeration, Iterator { - objc.ObjCObjectBase? _current; - - @override - objc.ObjCObjectBase get current => _current!; - - @override - @pragma('vm:prefer-inline') - bool moveNext() { - _current = nextObject(); - return _current != null; - } - - NSEnumerator._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSEnumerator] that points to the same underlying object as [other]. - NSEnumerator.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSEnumerator] that wraps the given raw object pointer. - NSEnumerator.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSEnumerator]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSEnumerator, - ); - } - - /// alloc - static NSEnumerator alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSEnumerator, _sel_alloc); - return NSEnumerator.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSEnumerator allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSEnumerator, - _sel_allocWithZone_, - zone, - ); - return NSEnumerator.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSEnumerator new$() { - final _ret = _objc_msgSend_151sglz(_class_NSEnumerator, _sel_new); - return NSEnumerator.castFromPointer(_ret, retain: false, release: true); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// init - NSEnumerator init() { - objc.checkOsVersionInternal( - 'NSEnumerator.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSEnumerator.castFromPointer(_ret, retain: false, release: true); - } - - /// nextObject - objc.ObjCObjectBase? nextObject() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_nextObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSEnumerator constructed with the default `new` method. - factory NSEnumerator() => new$(); -} - -/// NSError -class NSError extends NSObject implements NSCopying, NSSecureCoding { - NSError._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSError] that points to the same underlying object as [other]. - NSError.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSError] that wraps the given raw object pointer. - NSError.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSError]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSError, - ); - } - - /// alloc - static NSError alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSError, _sel_alloc); - return NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSError allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSError, - _sel_allocWithZone_, - zone, - ); - return NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// errorWithDomain:code:userInfo: - static NSError errorWithDomain( - NSString domain, { - required int code, - NSDictionary? userInfo, - }) { - final _ret = _objc_msgSend_rc4ypv( - _class_NSError, - _sel_errorWithDomain_code_userInfo_, - domain.ref.pointer, - code, - userInfo?.ref.pointer ?? ffi.nullptr, - ); - return NSError.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSError new$() { - final _ret = _objc_msgSend_151sglz(_class_NSError, _sel_new); - return NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// setUserInfoValueProviderForDomain:provider: - static void setUserInfoValueProviderForDomain( - NSString errorDomain, { - objc.ObjCBlock? Function(NSError, NSString)>? - provider, - }) { - objc.checkOsVersionInternal( - 'NSError.setUserInfoValueProviderForDomain:provider:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - _objc_msgSend_o762yo( - _class_NSError, - _sel_setUserInfoValueProviderForDomain_provider_, - errorDomain.ref.pointer, - provider?.ref.pointer ?? ffi.nullptr, - ); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSError, _sel_supportsSecureCoding); - } - - /// userInfoValueProviderForDomain: - static objc.ObjCBlock< - ffi.Pointer? Function(NSError, NSString) - >? - userInfoValueProviderForDomain_( - NSError err, { - required NSString userInfoKey, - required NSString errorDomain, - }) { - objc.checkOsVersionInternal( - 'NSError.userInfoValueProviderForDomain:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_cnxxyq( - _class_NSError, - _sel_userInfoValueProviderForDomain_, - err.ref.pointer, - userInfoKey.ref.pointer, - errorDomain.ref.pointer, - ); - return _ret.address == 0 - ? null - : ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// code - int get code { - return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_code); - } - - /// domain - NSString get domain { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_domain); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// helpAnchor - NSString? get helpAnchor { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_helpAnchor); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSError init() { - objc.checkOsVersionInternal( - 'NSError.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSError? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithDomain:code:userInfo: - NSError initWithDomain( - NSString domain$1, { - required int code$1, - NSDictionary? userInfo, - }) { - final _ret = _objc_msgSend_rc4ypv( - this.ref.retainAndReturnPointer(), - _sel_initWithDomain_code_userInfo_, - domain$1.ref.pointer, - code$1, - userInfo?.ref.pointer ?? ffi.nullptr, - ); - return NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// localizedDescription - NSString get localizedDescription { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedDescription, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedFailureReason - NSString? get localizedFailureReason { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedFailureReason, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedRecoveryOptions - NSArray? get localizedRecoveryOptions { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedRecoveryOptions, - ); - return _ret.address == 0 - ? null - : NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedRecoverySuggestion - NSString? get localizedRecoverySuggestion { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedRecoverySuggestion, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// recoveryAttempter - objc.ObjCObjectBase? get recoveryAttempter { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_recoveryAttempter, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// iOS: introduced 14.5.0 - /// macOS: introduced 11.3.0 - NSArray get underlyingErrors { - objc.checkOsVersionInternal( - 'NSError.underlyingErrors', - iOS: (false, (14, 5, 0)), - macOS: (false, (11, 3, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_underlyingErrors); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// userInfo - NSDictionary get userInfo { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSError constructed with the default `new` method. - factory NSError() => new$(); -} - -/// NSExtendedArray -extension NSExtendedArray on NSArray { - /// arrayByAddingObject: - NSArray arrayByAddingObject(objc.ObjCObjectBase anObject) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_arrayByAddingObject_, - anObject.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayByAddingObjectsFromArray: - NSArray arrayByAddingObjectsFromArray(NSArray otherArray) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_arrayByAddingObjectsFromArray_, - otherArray.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// componentsJoinedByString: - NSString componentsJoinedByString(NSString separator) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_componentsJoinedByString_, - separator.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// containsObject: - bool containsObject(objc.ObjCObjectBase anObject) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_containsObject_, - anObject.ref.pointer, - ); - } - - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale:indent: - NSString descriptionWithLocale$1( - objc.ObjCObjectBase? locale, { - required int indent, - }) { - final _ret = _objc_msgSend_1k4kd9s( - this.ref.pointer, - _sel_descriptionWithLocale_indent_, - locale?.ref.pointer ?? ffi.nullptr, - indent, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// enumerateObjectsAtIndexes:options:usingBlock: - void enumerateObjectsAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSArray.enumerateObjectsAtIndexes:options:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_a3wp08( - this.ref.pointer, - _sel_enumerateObjectsAtIndexes_options_usingBlock_, - s.ref.pointer, - options.value, - usingBlock.ref.pointer, - ); - } - - /// enumerateObjectsUsingBlock: - void enumerateObjectsUsingBlock( - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSArray.enumerateObjectsUsingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateObjectsUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateObjectsWithOptions:usingBlock: - void enumerateObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSArray.enumerateObjectsWithOptions:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateObjectsWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// firstObject - objc.ObjCObjectBase? get firstObject { - objc.checkOsVersionInternal( - 'NSArray.firstObject', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_firstObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// firstObjectCommonWithArray: - objc.ObjCObjectBase? firstObjectCommonWithArray(NSArray otherArray) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_firstObjectCommonWithArray_, - otherArray.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// getObjects:range: - void getObjects( - ffi.Pointer> objects, { - required NSRange range, - }) { - _objc_msgSend_o16d3k( - this.ref.pointer, - _sel_getObjects_range_, - objects, - range, - ); - } - - /// indexOfObject: - int indexOfObject(objc.ObjCObjectBase anObject) { - return _objc_msgSend_1vd1c5m( - this.ref.pointer, - _sel_indexOfObject_, - anObject.ref.pointer, - ); - } - - /// indexOfObject:inRange: - int indexOfObject$1( - objc.ObjCObjectBase anObject, { - required NSRange inRange, - }) { - return _objc_msgSend_zug4wi( - this.ref.pointer, - _sel_indexOfObject_inRange_, - anObject.ref.pointer, - inRange, - ); - } - - /// indexOfObject:inSortedRange:options:usingComparator: - int indexOfObject$2( - objc.ObjCObjectBase obj, { - required NSRange inSortedRange, - required NSBinarySearchingOptions options, - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSArray.indexOfObject:inSortedRange:options:usingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_kshx9d( - this.ref.pointer, - _sel_indexOfObject_inSortedRange_options_usingComparator_, - obj.ref.pointer, - inSortedRange, - options.value, - usingComparator.ref.pointer, - ); - } - - /// indexOfObjectAtIndexes:options:passingTest: - int indexOfObjectAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSArray.indexOfObjectAtIndexes:options:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_k1x6mt( - this.ref.pointer, - _sel_indexOfObjectAtIndexes_options_passingTest_, - s.ref.pointer, - options.value, - passingTest.ref.pointer, - ); - } - - /// indexOfObjectIdenticalTo: - int indexOfObjectIdenticalTo(objc.ObjCObjectBase anObject) { - return _objc_msgSend_1vd1c5m( - this.ref.pointer, - _sel_indexOfObjectIdenticalTo_, - anObject.ref.pointer, - ); - } - - /// indexOfObjectIdenticalTo:inRange: - int indexOfObjectIdenticalTo$1( - objc.ObjCObjectBase anObject, { - required NSRange inRange, - }) { - return _objc_msgSend_zug4wi( - this.ref.pointer, - _sel_indexOfObjectIdenticalTo_inRange_, - anObject.ref.pointer, - inRange, - ); - } - - /// indexOfObjectPassingTest: - int indexOfObjectPassingTest( - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSArray.indexOfObjectPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_10mlopr( - this.ref.pointer, - _sel_indexOfObjectPassingTest_, - predicate.ref.pointer, - ); - } - - /// indexOfObjectWithOptions:passingTest: - int indexOfObjectWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSArray.indexOfObjectWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_1698hqz( - this.ref.pointer, - _sel_indexOfObjectWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - } - - /// indexesOfObjectsAtIndexes:options:passingTest: - NSIndexSet indexesOfObjectsAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSArray.indexesOfObjectsAtIndexes:options:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1i9v144( - this.ref.pointer, - _sel_indexesOfObjectsAtIndexes_options_passingTest_, - s.ref.pointer, - options.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesOfObjectsPassingTest: - NSIndexSet indexesOfObjectsPassingTest( - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSArray.indexesOfObjectsPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_indexesOfObjectsPassingTest_, - predicate.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesOfObjectsWithOptions:passingTest: - NSIndexSet indexesOfObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSArray.indexesOfObjectsWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_13x5boi( - this.ref.pointer, - _sel_indexesOfObjectsWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// isEqualToArray: - bool isEqualToArray(NSArray otherArray) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToArray_, - otherArray.ref.pointer, - ); - } - - /// lastObject - objc.ObjCObjectBase? get lastObject { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lastObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// makeObjectsPerformSelector: - void makeObjectsPerformSelector(ffi.Pointer aSelector) { - _objc_msgSend_1d9e4oe( - this.ref.pointer, - _sel_makeObjectsPerformSelector_, - aSelector, - ); - } - - /// makeObjectsPerformSelector:withObject: - void makeObjectsPerformSelector$1( - ffi.Pointer aSelector, { - objc.ObjCObjectBase? withObject, - }) { - _objc_msgSend_1qv0eq4( - this.ref.pointer, - _sel_makeObjectsPerformSelector_withObject_, - aSelector, - withObject?.ref.pointer ?? ffi.nullptr, - ); - } - - /// objectAtIndexedSubscript: - objc.ObjCObjectBase objectAtIndexedSubscript(int idx) { - objc.checkOsVersionInternal( - 'NSArray.objectAtIndexedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_objectAtIndexedSubscript_, - idx, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// objectEnumerator - NSEnumerator objectEnumerator() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// objectsAtIndexes: - NSArray objectsAtIndexes(NSIndexSet indexes) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_objectsAtIndexes_, - indexes.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// reverseObjectEnumerator - NSEnumerator reverseObjectEnumerator() { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_reverseObjectEnumerator, - ); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayHint - NSData get sortedArrayHint { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_sortedArrayHint); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayUsingComparator: - NSArray sortedArrayUsingComparator( - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - cmptr, - ) { - objc.checkOsVersionInternal( - 'NSArray.sortedArrayUsingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_sortedArrayUsingComparator_, - cmptr.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayUsingFunction:context: - NSArray sortedArrayUsingFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - comparator, { - required ffi.Pointer context, - }) { - final _ret = _objc_msgSend_1ffoev1( - this.ref.pointer, - _sel_sortedArrayUsingFunction_context_, - comparator, - context, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayUsingFunction:context:hint: - NSArray sortedArrayUsingFunction$1( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - comparator, { - required ffi.Pointer context, - NSData? hint, - }) { - final _ret = _objc_msgSend_1i2r70j( - this.ref.pointer, - _sel_sortedArrayUsingFunction_context_hint_, - comparator, - context, - hint?.ref.pointer ?? ffi.nullptr, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayUsingSelector: - NSArray sortedArrayUsingSelector(ffi.Pointer comparator) { - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_sortedArrayUsingSelector_, - comparator, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayWithOptions:usingComparator: - NSArray sortedArrayWithOptions( - NSSortOptions opts, { - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSArray.sortedArrayWithOptions:usingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1x5ew3h( - this.ref.pointer, - _sel_sortedArrayWithOptions_usingComparator_, - opts.value, - usingComparator.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// subarrayWithRange: - NSArray subarrayWithRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - this.ref.pointer, - _sel_subarrayWithRange_, - range, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// writeToURL:error: - bool writeToURL( - NSURL url, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSArray.writeToURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - return _objc_msgSend_l9p60w( - this.ref.pointer, - _sel_writeToURL_error_, - url.ref.pointer, - error, - ); - } -} - -/// NSExtendedData -extension NSExtendedData on NSData { - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// enumerateByteRangesUsingBlock: - void enumerateByteRangesUsingBlock( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSData.enumerateByteRangesUsingBlock:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateByteRangesUsingBlock_, - block.ref.pointer, - ); - } - - /// getBytes:length: - void getBytes(ffi.Pointer buffer, {required int length}) { - _objc_msgSend_zuf90e( - this.ref.pointer, - _sel_getBytes_length_, - buffer, - length, - ); - } - - /// getBytes:range: - void getBytes$1(ffi.Pointer buffer, {required NSRange range}) { - _objc_msgSend_xpqfd7(this.ref.pointer, _sel_getBytes_range_, buffer, range); - } - - /// isEqualToData: - bool isEqualToData(NSData other) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToData_, - other.ref.pointer, - ); - } - - /// rangeOfData:options:range: - NSRange rangeOfData( - NSData dataToFind, { - required NSDataSearchOptions options, - required NSRange range, - }) { - objc.checkOsVersionInternal( - 'NSData.rangeOfData:options:range:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1d8s65wStret( - _ptr, - this.ref.pointer, - _sel_rangeOfData_options_range_, - dataToFind.ref.pointer, - options.value, - range, - ) - : _ptr.ref = _objc_msgSend_1d8s65w( - this.ref.pointer, - _sel_rangeOfData_options_range_, - dataToFind.ref.pointer, - options.value, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// subdataWithRange: - NSData subdataWithRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - this.ref.pointer, - _sel_subdataWithRange_, - range, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// writeToFile:atomically: - bool writeToFile(NSString path, {required bool atomically}) { - return _objc_msgSend_1iyq28l( - this.ref.pointer, - _sel_writeToFile_atomically_, - path.ref.pointer, - atomically, - ); - } - - /// writeToFile:options:error: - bool writeToFile$1( - NSString path, { - required NSDataWritingOptions options, - required ffi.Pointer> error, - }) { - return _objc_msgSend_1xi08ar( - this.ref.pointer, - _sel_writeToFile_options_error_, - path.ref.pointer, - options.value, - error, - ); - } - - /// writeToURL:atomically: - bool writeToURL(NSURL url, {required bool atomically}) { - return _objc_msgSend_1iyq28l( - this.ref.pointer, - _sel_writeToURL_atomically_, - url.ref.pointer, - atomically, - ); - } - - /// writeToURL:options:error: - bool writeToURL$1( - NSURL url, { - required NSDataWritingOptions options, - required ffi.Pointer> error, - }) { - return _objc_msgSend_1xi08ar( - this.ref.pointer, - _sel_writeToURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - } -} - -/// NSExtendedDate -extension NSExtendedDate on NSDate { - /// timeIntervalSinceReferenceDate - static double getTimeIntervalSinceReferenceDate() { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - _class_NSDate, - _sel_timeIntervalSinceReferenceDate, - ) - : _objc_msgSend_1ukqyt8( - _class_NSDate, - _sel_timeIntervalSinceReferenceDate, - ); - } - - /// compare: - NSComparisonResult compare(NSDate other) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_compare_, - other.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// earlierDate: - NSDate earlierDate(NSDate anotherDate) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_earlierDate_, - anotherDate.ref.pointer, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// isEqualToDate: - bool isEqualToDate(NSDate otherDate) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToDate_, - otherDate.ref.pointer, - ); - } - - /// laterDate: - NSDate laterDate(NSDate anotherDate) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_laterDate_, - anotherDate.ref.pointer, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// timeIntervalSince1970 - double get timeIntervalSince1970 { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, - _sel_timeIntervalSince1970, - ) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeIntervalSince1970); - } - - /// timeIntervalSinceDate: - double timeIntervalSinceDate(NSDate anotherDate) { - return objc.useMsgSendVariants - ? _objc_msgSend_mabicuFpret( - this.ref.pointer, - _sel_timeIntervalSinceDate_, - anotherDate.ref.pointer, - ) - : _objc_msgSend_mabicu( - this.ref.pointer, - _sel_timeIntervalSinceDate_, - anotherDate.ref.pointer, - ); - } - - /// timeIntervalSinceNow - double get timeIntervalSinceNow { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, - _sel_timeIntervalSinceNow, - ) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeIntervalSinceNow); - } -} - -/// NSExtendedDictionary -extension NSExtendedDictionary on NSDictionary { - /// allKeys - NSArray get allKeys { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allKeys); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// allKeysForObject: - NSArray allKeysForObject(objc.ObjCObjectBase anObject) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_allKeysForObject_, - anObject.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// allValues - NSArray get allValues { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allValues); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionInStringsFileFormat - NSString get descriptionInStringsFileFormat { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_descriptionInStringsFileFormat, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale:indent: - NSString descriptionWithLocale$1( - objc.ObjCObjectBase? locale, { - required int indent, - }) { - final _ret = _objc_msgSend_1k4kd9s( - this.ref.pointer, - _sel_descriptionWithLocale_indent_, - locale?.ref.pointer ?? ffi.nullptr, - indent, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// enumerateKeysAndObjectsUsingBlock: - void enumerateKeysAndObjectsUsingBlock( - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSDictionary.enumerateKeysAndObjectsUsingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateKeysAndObjectsUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateKeysAndObjectsWithOptions:usingBlock: - void enumerateKeysAndObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSDictionary.enumerateKeysAndObjectsWithOptions:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateKeysAndObjectsWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// getObjects:andKeys:count: - void getObjects( - ffi.Pointer> objects, { - required ffi.Pointer> andKeys, - required int count, - }) { - objc.checkOsVersionInternal( - 'NSDictionary.getObjects:andKeys:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_n2svg2( - this.ref.pointer, - _sel_getObjects_andKeys_count_, - objects, - andKeys, - count, - ); - } - - /// isEqualToDictionary: - bool isEqualToDictionary(NSDictionary otherDictionary) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToDictionary_, - otherDictionary.ref.pointer, - ); - } - - /// keysOfEntriesPassingTest: - NSSet keysOfEntriesPassingTest( - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSDictionary.keysOfEntriesPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_keysOfEntriesPassingTest_, - predicate.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// keysOfEntriesWithOptions:passingTest: - NSSet keysOfEntriesWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSDictionary.keysOfEntriesWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_13x5boi( - this.ref.pointer, - _sel_keysOfEntriesWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// keysSortedByValueUsingComparator: - NSArray keysSortedByValueUsingComparator( - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - cmptr, - ) { - objc.checkOsVersionInternal( - 'NSDictionary.keysSortedByValueUsingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_keysSortedByValueUsingComparator_, - cmptr.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// keysSortedByValueUsingSelector: - NSArray keysSortedByValueUsingSelector( - ffi.Pointer comparator, - ) { - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_keysSortedByValueUsingSelector_, - comparator, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// keysSortedByValueWithOptions:usingComparator: - NSArray keysSortedByValueWithOptions( - NSSortOptions opts, { - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSDictionary.keysSortedByValueWithOptions:usingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1x5ew3h( - this.ref.pointer, - _sel_keysSortedByValueWithOptions_usingComparator_, - opts.value, - usingComparator.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// objectEnumerator - NSEnumerator objectEnumerator() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// objectForKeyedSubscript: - objc.ObjCObjectBase? objectForKeyedSubscript(objc.ObjCObjectBase key) { - objc.checkOsVersionInternal( - 'NSDictionary.objectForKeyedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_objectForKeyedSubscript_, - key.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// objectsForKeys:notFoundMarker: - NSArray objectsForKeys( - NSArray keys, { - required objc.ObjCObjectBase notFoundMarker, - }) { - final _ret = _objc_msgSend_15qeuct( - this.ref.pointer, - _sel_objectsForKeys_notFoundMarker_, - keys.ref.pointer, - notFoundMarker.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// writeToURL:error: - bool writeToURL( - NSURL url, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSDictionary.writeToURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - return _objc_msgSend_l9p60w( - this.ref.pointer, - _sel_writeToURL_error_, - url.ref.pointer, - error, - ); - } -} - -/// NSExtendedEnumerator -extension NSExtendedEnumerator on NSEnumerator { - /// allObjects - NSArray get allObjects { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allObjects); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } -} - -/// NSExtendedMutableArray -extension NSExtendedMutableArray on NSMutableArray { - /// addObjectsFromArray: - void addObjectsFromArray(NSArray otherArray) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addObjectsFromArray_, - otherArray.ref.pointer, - ); - } - - /// exchangeObjectAtIndex:withObjectAtIndex: - void exchangeObjectAtIndex(int idx1, {required int withObjectAtIndex}) { - _objc_msgSend_bfp043( - this.ref.pointer, - _sel_exchangeObjectAtIndex_withObjectAtIndex_, - idx1, - withObjectAtIndex, - ); - } - - /// insertObjects:atIndexes: - void insertObjects(NSArray objects, {required NSIndexSet atIndexes}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_insertObjects_atIndexes_, - objects.ref.pointer, - atIndexes.ref.pointer, - ); - } - - /// removeAllObjects - void removeAllObjects() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); - } - - /// removeObject: - void removeObject(objc.ObjCObjectBase anObject) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObject_, - anObject.ref.pointer, - ); - } - - /// removeObject:inRange: - void removeObject$1( - objc.ObjCObjectBase anObject, { - required NSRange inRange, - }) { - _objc_msgSend_1oteutl( - this.ref.pointer, - _sel_removeObject_inRange_, - anObject.ref.pointer, - inRange, - ); - } - - /// removeObjectIdenticalTo: - void removeObjectIdenticalTo(objc.ObjCObjectBase anObject) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectIdenticalTo_, - anObject.ref.pointer, - ); - } - - /// removeObjectIdenticalTo:inRange: - void removeObjectIdenticalTo$1( - objc.ObjCObjectBase anObject, { - required NSRange inRange, - }) { - _objc_msgSend_1oteutl( - this.ref.pointer, - _sel_removeObjectIdenticalTo_inRange_, - anObject.ref.pointer, - inRange, - ); - } - - /// removeObjectsAtIndexes: - void removeObjectsAtIndexes(NSIndexSet indexes) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectsAtIndexes_, - indexes.ref.pointer, - ); - } - - /// removeObjectsInArray: - void removeObjectsInArray(NSArray otherArray) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectsInArray_, - otherArray.ref.pointer, - ); - } - - /// removeObjectsInRange: - void removeObjectsInRange(NSRange range) { - _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeObjectsInRange_, range); - } - - /// replaceObjectsAtIndexes:withObjects: - void replaceObjectsAtIndexes( - NSIndexSet indexes, { - required NSArray withObjects, - }) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_replaceObjectsAtIndexes_withObjects_, - indexes.ref.pointer, - withObjects.ref.pointer, - ); - } - - /// replaceObjectsInRange:withObjectsFromArray: - void replaceObjectsInRange( - NSRange range, { - required NSArray withObjectsFromArray, - }) { - _objc_msgSend_1tv4uax( - this.ref.pointer, - _sel_replaceObjectsInRange_withObjectsFromArray_, - range, - withObjectsFromArray.ref.pointer, - ); - } - - /// replaceObjectsInRange:withObjectsFromArray:range: - void replaceObjectsInRange$1( - NSRange range, { - required NSArray withObjectsFromArray, - required NSRange range$1, - }) { - _objc_msgSend_15bolr3( - this.ref.pointer, - _sel_replaceObjectsInRange_withObjectsFromArray_range_, - range, - withObjectsFromArray.ref.pointer, - range$1, - ); - } - - /// setArray: - void setArray(NSArray otherArray) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setArray_, - otherArray.ref.pointer, - ); - } - - /// setObject:atIndexedSubscript: - void setObject(objc.ObjCObjectBase obj, {required int atIndexedSubscript}) { - objc.checkOsVersionInternal( - 'NSMutableArray.setObject:atIndexedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_setObject_atIndexedSubscript_, - obj.ref.pointer, - atIndexedSubscript, - ); - } - - /// sortUsingComparator: - void sortUsingComparator( - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - cmptr, - ) { - objc.checkOsVersionInternal( - 'NSMutableArray.sortUsingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_sortUsingComparator_, - cmptr.ref.pointer, - ); - } - - /// sortUsingFunction:context: - void sortUsingFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - compare, { - required ffi.Pointer context, - }) { - _objc_msgSend_1bvics1( - this.ref.pointer, - _sel_sortUsingFunction_context_, - compare, - context, - ); - } - - /// sortUsingSelector: - void sortUsingSelector(ffi.Pointer comparator) { - _objc_msgSend_1d9e4oe( - this.ref.pointer, - _sel_sortUsingSelector_, - comparator, - ); - } - - /// sortWithOptions:usingComparator: - void sortWithOptions( - NSSortOptions opts, { - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSMutableArray.sortWithOptions:usingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_jjgvjt( - this.ref.pointer, - _sel_sortWithOptions_usingComparator_, - opts.value, - usingComparator.ref.pointer, - ); - } -} - -/// NSExtendedMutableData -extension NSExtendedMutableData on NSMutableData { - /// appendBytes:length: - void appendBytes(ffi.Pointer bytes, {required int length}) { - _objc_msgSend_zuf90e( - this.ref.pointer, - _sel_appendBytes_length_, - bytes, - length, - ); - } - - /// appendData: - void appendData(NSData other) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_appendData_, other.ref.pointer); - } - - /// increaseLengthBy: - void increaseLengthBy(int extraLength) { - _objc_msgSend_1i9r4xy( - this.ref.pointer, - _sel_increaseLengthBy_, - extraLength, - ); - } - - /// replaceBytesInRange:withBytes: - void replaceBytesInRange( - NSRange range, { - required ffi.Pointer withBytes, - }) { - _objc_msgSend_eh32gn( - this.ref.pointer, - _sel_replaceBytesInRange_withBytes_, - range, - withBytes, - ); - } - - /// replaceBytesInRange:withBytes:length: - void replaceBytesInRange$1( - NSRange range, { - required ffi.Pointer withBytes, - required int length, - }) { - _objc_msgSend_c0vg4w( - this.ref.pointer, - _sel_replaceBytesInRange_withBytes_length_, - range, - withBytes, - length, - ); - } - - /// resetBytesInRange: - void resetBytesInRange(NSRange range) { - _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_resetBytesInRange_, range); - } - - /// setData: - void setData(NSData data) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setData_, data.ref.pointer); - } -} - -/// NSExtendedMutableDictionary -extension NSExtendedMutableDictionary on NSMutableDictionary { - /// addEntriesFromDictionary: - void addEntriesFromDictionary(NSDictionary otherDictionary) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addEntriesFromDictionary_, - otherDictionary.ref.pointer, - ); - } - - /// removeAllObjects - void removeAllObjects() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); - } - - /// removeObjectsForKeys: - void removeObjectsForKeys(NSArray keyArray) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectsForKeys_, - keyArray.ref.pointer, - ); - } - - /// setDictionary: - void setDictionary(NSDictionary otherDictionary) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setDictionary_, - otherDictionary.ref.pointer, - ); - } - - /// setObject:forKeyedSubscript: - void setObject( - objc.ObjCObjectBase? obj, { - required NSCopying forKeyedSubscript, - }) { - objc.checkOsVersionInternal( - 'NSMutableDictionary.setObject:forKeyedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_setObject_forKeyedSubscript_, - obj?.ref.pointer ?? ffi.nullptr, - forKeyedSubscript.ref.pointer, - ); - } -} - -/// NSExtendedMutableOrderedSet -extension NSExtendedMutableOrderedSet on NSMutableOrderedSet { - /// addObject: - void addObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.addObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addObject_, object.ref.pointer); - } - - /// addObjects:count: - void addObjects( - ffi.Pointer> objects, { - required int count, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.addObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_gcjqkl( - this.ref.pointer, - _sel_addObjects_count_, - objects, - count, - ); - } - - /// addObjectsFromArray: - void addObjectsFromArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.addObjectsFromArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addObjectsFromArray_, - array.ref.pointer, - ); - } - - /// exchangeObjectAtIndex:withObjectAtIndex: - void exchangeObjectAtIndex(int idx1, {required int withObjectAtIndex}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.exchangeObjectAtIndex:withObjectAtIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_bfp043( - this.ref.pointer, - _sel_exchangeObjectAtIndex_withObjectAtIndex_, - idx1, - withObjectAtIndex, - ); - } - - /// insertObjects:atIndexes: - void insertObjects(NSArray objects, {required NSIndexSet atIndexes}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.insertObjects:atIndexes:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_insertObjects_atIndexes_, - objects.ref.pointer, - atIndexes.ref.pointer, - ); - } - - /// intersectOrderedSet: - void intersectOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.intersectOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_intersectOrderedSet_, - other.ref.pointer, - ); - } - - /// intersectSet: - void intersectSet(NSSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.intersectSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_intersectSet_, - other.ref.pointer, - ); - } - - /// minusOrderedSet: - void minusOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.minusOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_minusOrderedSet_, - other.ref.pointer, - ); - } - - /// minusSet: - void minusSet(NSSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.minusSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_minusSet_, other.ref.pointer); - } - - /// moveObjectsAtIndexes:toIndex: - void moveObjectsAtIndexes(NSIndexSet indexes, {required int toIndex}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.moveObjectsAtIndexes:toIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_moveObjectsAtIndexes_toIndex_, - indexes.ref.pointer, - toIndex, - ); - } - - /// removeAllObjects - void removeAllObjects() { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeAllObjects', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); - } - - /// removeObject: - void removeObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObject_, - object.ref.pointer, - ); - } - - /// removeObjectsAtIndexes: - void removeObjectsAtIndexes(NSIndexSet indexes) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeObjectsAtIndexes:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectsAtIndexes_, - indexes.ref.pointer, - ); - } - - /// removeObjectsInArray: - void removeObjectsInArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeObjectsInArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectsInArray_, - array.ref.pointer, - ); - } - - /// removeObjectsInRange: - void removeObjectsInRange(NSRange range) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeObjectsInRange:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeObjectsInRange_, range); - } - - /// replaceObjectsAtIndexes:withObjects: - void replaceObjectsAtIndexes( - NSIndexSet indexes, { - required NSArray withObjects, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.replaceObjectsAtIndexes:withObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_replaceObjectsAtIndexes_withObjects_, - indexes.ref.pointer, - withObjects.ref.pointer, - ); - } - - /// replaceObjectsInRange:withObjects:count: - void replaceObjectsInRange( - NSRange range, { - required ffi.Pointer> withObjects, - required int count, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.replaceObjectsInRange:withObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_122v0cv( - this.ref.pointer, - _sel_replaceObjectsInRange_withObjects_count_, - range, - withObjects, - count, - ); - } - - /// setObject:atIndex: - void setObject(objc.ObjCObjectBase obj, {required int atIndex}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.setObject:atIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_setObject_atIndex_, - obj.ref.pointer, - atIndex, - ); - } - - /// setObject:atIndexedSubscript: - void setObject$1(objc.ObjCObjectBase obj, {required int atIndexedSubscript}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.setObject:atIndexedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_setObject_atIndexedSubscript_, - obj.ref.pointer, - atIndexedSubscript, - ); - } - - /// sortRange:options:usingComparator: - void sortRange( - NSRange range, { - required NSSortOptions options, - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.sortRange:options:usingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_arew0j( - this.ref.pointer, - _sel_sortRange_options_usingComparator_, - range, - options.value, - usingComparator.ref.pointer, - ); - } - - /// sortUsingComparator: - void sortUsingComparator( - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - cmptr, - ) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.sortUsingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_sortUsingComparator_, - cmptr.ref.pointer, - ); - } - - /// sortWithOptions:usingComparator: - void sortWithOptions( - NSSortOptions opts, { - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.sortWithOptions:usingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_jjgvjt( - this.ref.pointer, - _sel_sortWithOptions_usingComparator_, - opts.value, - usingComparator.ref.pointer, - ); - } - - /// unionOrderedSet: - void unionOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.unionOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_unionOrderedSet_, - other.ref.pointer, - ); - } - - /// unionSet: - void unionSet(NSSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.unionSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_unionSet_, other.ref.pointer); - } -} - -/// NSExtendedMutableSet -extension NSExtendedMutableSet on NSMutableSet { - /// addObjectsFromArray: - void addObjectsFromArray(NSArray array) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addObjectsFromArray_, - array.ref.pointer, - ); - } - - /// intersectSet: - void intersectSet(NSSet otherSet) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_intersectSet_, - otherSet.ref.pointer, - ); - } - - /// minusSet: - void minusSet(NSSet otherSet) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_minusSet_, - otherSet.ref.pointer, - ); - } - - /// removeAllObjects - void removeAllObjects() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); - } - - /// setSet: - void setSet(NSSet otherSet) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setSet_, otherSet.ref.pointer); - } - - /// unionSet: - void unionSet(NSSet otherSet) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_unionSet_, - otherSet.ref.pointer, - ); - } -} - -/// NSExtendedOrderedSet -extension NSExtendedOrderedSet on NSOrderedSet { - /// array - NSArray get array { - objc.checkOsVersionInternal( - 'NSOrderedSet.array', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_array); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// containsObject: - bool containsObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSOrderedSet.containsObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_containsObject_, - object.ref.pointer, - ); - } - - /// description - NSString get description { - objc.checkOsVersionInternal( - 'NSOrderedSet.description', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - objc.checkOsVersionInternal( - 'NSOrderedSet.descriptionWithLocale:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale:indent: - NSString descriptionWithLocale$1( - objc.ObjCObjectBase? locale, { - required int indent, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.descriptionWithLocale:indent:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1k4kd9s( - this.ref.pointer, - _sel_descriptionWithLocale_indent_, - locale?.ref.pointer ?? ffi.nullptr, - indent, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// enumerateObjectsAtIndexes:options:usingBlock: - void enumerateObjectsAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.enumerateObjectsAtIndexes:options:usingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_a3wp08( - this.ref.pointer, - _sel_enumerateObjectsAtIndexes_options_usingBlock_, - s.ref.pointer, - options.value, - usingBlock.ref.pointer, - ); - } - - /// enumerateObjectsUsingBlock: - void enumerateObjectsUsingBlock( - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSOrderedSet.enumerateObjectsUsingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateObjectsUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateObjectsWithOptions:usingBlock: - void enumerateObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.enumerateObjectsWithOptions:usingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateObjectsWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// firstObject - objc.ObjCObjectBase? get firstObject { - objc.checkOsVersionInternal( - 'NSOrderedSet.firstObject', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_firstObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// getObjects:range: - void getObjects( - ffi.Pointer> objects, { - required NSRange range, - }) { - _objc_msgSend_o16d3k( - this.ref.pointer, - _sel_getObjects_range_, - objects, - range, - ); - } - - /// indexOfObject:inSortedRange:options:usingComparator: - int indexOfObject( - objc.ObjCObjectBase object, { - required NSRange inSortedRange, - required NSBinarySearchingOptions options, - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexOfObject:inSortedRange:options:usingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_kshx9d( - this.ref.pointer, - _sel_indexOfObject_inSortedRange_options_usingComparator_, - object.ref.pointer, - inSortedRange, - options.value, - usingComparator.ref.pointer, - ); - } - - /// indexOfObjectAtIndexes:options:passingTest: - int indexOfObjectAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexOfObjectAtIndexes:options:passingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_k1x6mt( - this.ref.pointer, - _sel_indexOfObjectAtIndexes_options_passingTest_, - s.ref.pointer, - options.value, - passingTest.ref.pointer, - ); - } - - /// indexOfObjectPassingTest: - int indexOfObjectPassingTest( - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexOfObjectPassingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_10mlopr( - this.ref.pointer, - _sel_indexOfObjectPassingTest_, - predicate.ref.pointer, - ); - } - - /// indexOfObjectWithOptions:passingTest: - int indexOfObjectWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexOfObjectWithOptions:passingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_1698hqz( - this.ref.pointer, - _sel_indexOfObjectWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - } - - /// indexesOfObjectsAtIndexes:options:passingTest: - NSIndexSet indexesOfObjectsAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexesOfObjectsAtIndexes:options:passingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1i9v144( - this.ref.pointer, - _sel_indexesOfObjectsAtIndexes_options_passingTest_, - s.ref.pointer, - options.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesOfObjectsPassingTest: - NSIndexSet indexesOfObjectsPassingTest( - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexesOfObjectsPassingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_indexesOfObjectsPassingTest_, - predicate.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesOfObjectsWithOptions:passingTest: - NSIndexSet indexesOfObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexesOfObjectsWithOptions:passingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_13x5boi( - this.ref.pointer, - _sel_indexesOfObjectsWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// intersectsOrderedSet: - bool intersectsOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSOrderedSet.intersectsOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_intersectsOrderedSet_, - other.ref.pointer, - ); - } - - /// intersectsSet: - bool intersectsSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.intersectsSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_intersectsSet_, - set$.ref.pointer, - ); - } - - /// isEqualToOrderedSet: - bool isEqualToOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSOrderedSet.isEqualToOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToOrderedSet_, - other.ref.pointer, - ); - } - - /// isSubsetOfOrderedSet: - bool isSubsetOfOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSOrderedSet.isSubsetOfOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isSubsetOfOrderedSet_, - other.ref.pointer, - ); - } - - /// isSubsetOfSet: - bool isSubsetOfSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.isSubsetOfSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isSubsetOfSet_, - set$.ref.pointer, - ); - } - - /// lastObject - objc.ObjCObjectBase? get lastObject { - objc.checkOsVersionInternal( - 'NSOrderedSet.lastObject', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lastObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// objectAtIndexedSubscript: - objc.ObjCObjectBase objectAtIndexedSubscript(int idx) { - objc.checkOsVersionInternal( - 'NSOrderedSet.objectAtIndexedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_objectAtIndexedSubscript_, - idx, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// objectEnumerator - NSEnumerator objectEnumerator() { - objc.checkOsVersionInternal( - 'NSOrderedSet.objectEnumerator', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// objectsAtIndexes: - NSArray objectsAtIndexes(NSIndexSet indexes) { - objc.checkOsVersionInternal( - 'NSOrderedSet.objectsAtIndexes:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_objectsAtIndexes_, - indexes.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// reverseObjectEnumerator - NSEnumerator reverseObjectEnumerator() { - objc.checkOsVersionInternal( - 'NSOrderedSet.reverseObjectEnumerator', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_reverseObjectEnumerator, - ); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// reversedOrderedSet - NSOrderedSet get reversedOrderedSet { - objc.checkOsVersionInternal( - 'NSOrderedSet.reversedOrderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_reversedOrderedSet, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// set - NSSet get set$ { - objc.checkOsVersionInternal( - 'NSOrderedSet.set', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_set); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayUsingComparator: - NSArray sortedArrayUsingComparator( - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - cmptr, - ) { - objc.checkOsVersionInternal( - 'NSOrderedSet.sortedArrayUsingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_sortedArrayUsingComparator_, - cmptr.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayWithOptions:usingComparator: - NSArray sortedArrayWithOptions( - NSSortOptions opts, { - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.sortedArrayWithOptions:usingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1x5ew3h( - this.ref.pointer, - _sel_sortedArrayWithOptions_usingComparator_, - opts.value, - usingComparator.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } -} - -/// NSExtendedSet -extension NSExtendedSet on NSSet { - /// allObjects - NSArray get allObjects { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allObjects); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// anyObject - objc.ObjCObjectBase? anyObject() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_anyObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// containsObject: - bool containsObject(objc.ObjCObjectBase anObject) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_containsObject_, - anObject.ref.pointer, - ); - } - - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// enumerateObjectsUsingBlock: - void enumerateObjectsUsingBlock( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSSet.enumerateObjectsUsingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateObjectsUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateObjectsWithOptions:usingBlock: - void enumerateObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSSet.enumerateObjectsWithOptions:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateObjectsWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// intersectsSet: - bool intersectsSet(NSSet otherSet) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_intersectsSet_, - otherSet.ref.pointer, - ); - } - - /// isEqualToSet: - bool isEqualToSet(NSSet otherSet) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToSet_, - otherSet.ref.pointer, - ); - } - - /// isSubsetOfSet: - bool isSubsetOfSet(NSSet otherSet) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isSubsetOfSet_, - otherSet.ref.pointer, - ); - } - - /// makeObjectsPerformSelector: - void makeObjectsPerformSelector(ffi.Pointer aSelector) { - _objc_msgSend_1d9e4oe( - this.ref.pointer, - _sel_makeObjectsPerformSelector_, - aSelector, - ); - } - - /// makeObjectsPerformSelector:withObject: - void makeObjectsPerformSelector$1( - ffi.Pointer aSelector, { - objc.ObjCObjectBase? withObject, - }) { - _objc_msgSend_1qv0eq4( - this.ref.pointer, - _sel_makeObjectsPerformSelector_withObject_, - aSelector, - withObject?.ref.pointer ?? ffi.nullptr, - ); - } - - /// objectsPassingTest: - NSSet objectsPassingTest( - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSSet.objectsPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_objectsPassingTest_, - predicate.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// objectsWithOptions:passingTest: - NSSet objectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSSet.objectsWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_13x5boi( - this.ref.pointer, - _sel_objectsWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setByAddingObject: - NSSet setByAddingObject(objc.ObjCObjectBase anObject) { - objc.checkOsVersionInternal( - 'NSSet.setByAddingObject:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_setByAddingObject_, - anObject.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setByAddingObjectsFromArray: - NSSet setByAddingObjectsFromArray(NSArray other) { - objc.checkOsVersionInternal( - 'NSSet.setByAddingObjectsFromArray:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_setByAddingObjectsFromArray_, - other.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setByAddingObjectsFromSet: - NSSet setByAddingObjectsFromSet(NSSet other) { - objc.checkOsVersionInternal( - 'NSSet.setByAddingObjectsFromSet:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_setByAddingObjectsFromSet_, - other.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } -} - -/// NSFastEnumeration -interface class NSFastEnumeration extends objc.ObjCProtocolBase { - NSFastEnumeration._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSFastEnumeration] that points to the same underlying object as [other]. - NSFastEnumeration.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSFastEnumeration] that wraps the given raw object pointer. - NSFastEnumeration.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSFastEnumeration]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSFastEnumeration, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSFastEnumeration.cast()); - - /// Builds an object that implements the NSFastEnumeration protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSFastEnumeration implement({ - required int Function( - ffi.Pointer, - ffi.Pointer>, - int, - ) - countByEnumeratingWithState_objects_count_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSFastEnumeration'); - NSFastEnumeration.countByEnumeratingWithState_objects_count_.implement( - builder, - countByEnumeratingWithState_objects_count_, - ); - builder.addProtocol($protocol); - return NSFastEnumeration.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSFastEnumeration protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required int Function( - ffi.Pointer, - ffi.Pointer>, - int, - ) - countByEnumeratingWithState_objects_count_, - bool $keepIsolateAlive = true, - }) { - NSFastEnumeration.countByEnumeratingWithState_objects_count_.implement( - builder, - countByEnumeratingWithState_objects_count_, - ); - builder.addProtocol($protocol); - } - - /// countByEnumeratingWithState:objects:count: - static final countByEnumeratingWithState_objects_count_ = - objc.ObjCProtocolMethod< - int Function( - ffi.Pointer, - ffi.Pointer>, - int, - ) - >( - _protocol_NSFastEnumeration, - _sel_countByEnumeratingWithState_objects_count_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_17ap02x) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFastEnumeration, - _sel_countByEnumeratingWithState_objects_count_, - isRequired: true, - isInstanceMethod: true, - ), - ( - int Function( - ffi.Pointer, - ffi.Pointer>, - int, - ) - func, - ) => - ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - ); -} - -final class NSFastEnumerationState extends ffi.Struct { - @ffi.UnsignedLong() - external int state; - - external ffi.Pointer> itemsPtr; - - external ffi.Pointer mutationsPtr; - - @ffi.Array.multi([5]) - external ffi.Array extra; -} - -/// NSIndexSet -class NSIndexSet extends NSObject - implements NSCopying, NSMutableCopying, NSSecureCoding { - NSIndexSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSIndexSet] that points to the same underlying object as [other]. - NSIndexSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSIndexSet] that wraps the given raw object pointer. - NSIndexSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSIndexSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSIndexSet, - ); - } - - /// alloc - static NSIndexSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_alloc); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSIndexSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSIndexSet, - _sel_allocWithZone_, - zone, - ); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// indexSet - static NSIndexSet indexSet() { - final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_indexSet); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexSetWithIndex: - static NSIndexSet indexSetWithIndex(int value) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSIndexSet, - _sel_indexSetWithIndex_, - value, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexSetWithIndexesInRange: - static NSIndexSet indexSetWithIndexesInRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - _class_NSIndexSet, - _sel_indexSetWithIndexesInRange_, - range, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSIndexSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_new); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSIndexSet, _sel_supportsSecureCoding); - } - - /// containsIndex: - bool containsIndex(int value) { - return _objc_msgSend_6peh6o(this.ref.pointer, _sel_containsIndex_, value); - } - - /// containsIndexes: - bool containsIndexes(NSIndexSet indexSet$1) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_containsIndexes_, - indexSet$1.ref.pointer, - ); - } - - /// containsIndexesInRange: - bool containsIndexesInRange(NSRange range) { - return _objc_msgSend_p4nurx( - this.ref.pointer, - _sel_containsIndexesInRange_, - range, - ); - } - - /// count - int get count { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); - } - - /// countOfIndexesInRange: - int countOfIndexesInRange(NSRange range) { - objc.checkOsVersionInternal( - 'NSIndexSet.countOfIndexesInRange:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_qm9f5w( - this.ref.pointer, - _sel_countOfIndexesInRange_, - range, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// enumerateIndexesInRange:options:usingBlock: - void enumerateIndexesInRange( - NSRange range, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateIndexesInRange:options:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_177cajs( - this.ref.pointer, - _sel_enumerateIndexesInRange_options_usingBlock_, - range, - options.value, - usingBlock.ref.pointer, - ); - } - - /// enumerateIndexesUsingBlock: - void enumerateIndexesUsingBlock( - objc.ObjCBlock)> - block, - ) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateIndexesUsingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateIndexesUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateIndexesWithOptions:usingBlock: - void enumerateIndexesWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateIndexesWithOptions:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateIndexesWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// enumerateRangesInRange:options:usingBlock: - void enumerateRangesInRange( - NSRange range, { - required NSEnumerationOptions options, - required objc.ObjCBlock)> - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateRangesInRange:options:usingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_177cajs( - this.ref.pointer, - _sel_enumerateRangesInRange_options_usingBlock_, - range, - options.value, - usingBlock.ref.pointer, - ); - } - - /// enumerateRangesUsingBlock: - void enumerateRangesUsingBlock( - objc.ObjCBlock)> block, - ) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateRangesUsingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateRangesUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateRangesWithOptions:usingBlock: - void enumerateRangesWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock)> - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateRangesWithOptions:usingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateRangesWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// firstIndex - int get firstIndex { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_firstIndex); - } - - /// getIndexes:maxCount:inIndexRange: - int getIndexes( - ffi.Pointer indexBuffer, { - required int maxCount, - required ffi.Pointer inIndexRange, - }) { - return _objc_msgSend_89xgla( - this.ref.pointer, - _sel_getIndexes_maxCount_inIndexRange_, - indexBuffer, - maxCount, - inIndexRange, - ); - } - - /// indexGreaterThanIndex: - int indexGreaterThanIndex(int value) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_indexGreaterThanIndex_, - value, - ); - } - - /// indexGreaterThanOrEqualToIndex: - int indexGreaterThanOrEqualToIndex(int value) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_indexGreaterThanOrEqualToIndex_, - value, - ); - } - - /// indexInRange:options:passingTest: - int indexInRange( - NSRange range, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexInRange:options:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_6jmuyz( - this.ref.pointer, - _sel_indexInRange_options_passingTest_, - range, - options.value, - passingTest.ref.pointer, - ); - } - - /// indexLessThanIndex: - int indexLessThanIndex(int value) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_indexLessThanIndex_, - value, - ); - } - - /// indexLessThanOrEqualToIndex: - int indexLessThanOrEqualToIndex(int value) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_indexLessThanOrEqualToIndex_, - value, - ); - } - - /// indexPassingTest: - int indexPassingTest( - objc.ObjCBlock)> - predicate, - ) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_10mlopr( - this.ref.pointer, - _sel_indexPassingTest_, - predicate.ref.pointer, - ); - } - - /// indexWithOptions:passingTest: - int indexWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_1698hqz( - this.ref.pointer, - _sel_indexWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - } - - /// indexesInRange:options:passingTest: - NSIndexSet indexesInRange( - NSRange range, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexesInRange:options:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1q30cs4( - this.ref.pointer, - _sel_indexesInRange_options_passingTest_, - range, - options.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesPassingTest: - NSIndexSet indexesPassingTest( - objc.ObjCBlock)> - predicate, - ) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexesPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_indexesPassingTest_, - predicate.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesWithOptions:passingTest: - NSIndexSet indexesWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexesWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_13x5boi( - this.ref.pointer, - _sel_indexesWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSIndexSet init() { - objc.checkOsVersionInternal( - 'NSIndexSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSIndexSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithIndex: - NSIndexSet initWithIndex(int value) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithIndex_, - value, - ); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithIndexSet: - NSIndexSet initWithIndexSet(NSIndexSet indexSet$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithIndexSet_, - indexSet$1.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithIndexesInRange: - NSIndexSet initWithIndexesInRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - this.ref.retainAndReturnPointer(), - _sel_initWithIndexesInRange_, - range, - ); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// intersectsIndexesInRange: - bool intersectsIndexesInRange(NSRange range) { - return _objc_msgSend_p4nurx( - this.ref.pointer, - _sel_intersectsIndexesInRange_, - range, - ); - } - - /// isEqualToIndexSet: - bool isEqualToIndexSet(NSIndexSet indexSet$1) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToIndexSet_, - indexSet$1.ref.pointer, - ); - } - - /// lastIndex - int get lastIndex { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_lastIndex); - } - - /// Returns a new instance of NSIndexSet constructed with the default `new` method. - factory NSIndexSet() => new$(); -} - -/// NSInputStream -class NSInputStream extends NSStream { - NSInputStream._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSInputStream] that points to the same underlying object as [other]. - NSInputStream.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSInputStream] that wraps the given raw object pointer. - NSInputStream.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSInputStream]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSInputStream, - ); - } - - /// inputStreamWithData: - static NSInputStream? inputStreamWithData(NSData data) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithData_, - data.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSInputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// inputStreamWithFileAtPath: - static NSInputStream? inputStreamWithFileAtPath(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithFileAtPath_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSInputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// inputStreamWithURL: - static NSInputStream? inputStreamWithURL(NSURL url) { - objc.checkOsVersionInternal( - 'NSInputStream.inputStreamWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSInputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// getBuffer:length: - bool getBuffer( - ffi.Pointer> buffer, { - required ffi.Pointer length, - }) { - return _objc_msgSend_19lrthf( - this.ref.pointer, - _sel_getBuffer_length_, - buffer, - length, - ); - } - - /// hasBytesAvailable - bool get hasBytesAvailable { - return _objc_msgSend_91o635(this.ref.pointer, _sel_hasBytesAvailable); - } - - /// initWithData: - NSInputStream initWithData(NSData data) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithData_, - data.ref.pointer, - ); - return NSInputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFileAtPath: - NSInputStream? initWithFileAtPath(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithFileAtPath_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSInputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithURL: - NSInputStream? initWithURL(NSURL url) { - objc.checkOsVersionInternal( - 'NSInputStream.initWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSInputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// read:maxLength: - int read(ffi.Pointer buffer, {required int maxLength}) { - return _objc_msgSend_11e9f5x( - this.ref.pointer, - _sel_read_maxLength_, - buffer, - maxLength, - ); - } -} - -/// NSInvocation -class NSInvocation extends NSObject { - NSInvocation._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSInvocation] that points to the same underlying object as [other]. - NSInvocation.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSInvocation] that wraps the given raw object pointer. - NSInvocation.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSInvocation]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSInvocation, - ); - } - - /// alloc - static NSInvocation alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSInvocation, _sel_alloc); - return NSInvocation.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSInvocation allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSInvocation, - _sel_allocWithZone_, - zone, - ); - return NSInvocation.castFromPointer(_ret, retain: false, release: true); - } - - /// invocationWithMethodSignature: - static NSInvocation invocationWithMethodSignature(NSMethodSignature sig) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSInvocation, - _sel_invocationWithMethodSignature_, - sig.ref.pointer, - ); - return NSInvocation.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSInvocation new$() { - final _ret = _objc_msgSend_151sglz(_class_NSInvocation, _sel_new); - return NSInvocation.castFromPointer(_ret, retain: false, release: true); - } - - /// argumentsRetained - bool get argumentsRetained { - return _objc_msgSend_91o635(this.ref.pointer, _sel_argumentsRetained); - } - - /// getArgument:atIndex: - void getArgument( - ffi.Pointer argumentLocation, { - required int atIndex, - }) { - _objc_msgSend_unr2j3( - this.ref.pointer, - _sel_getArgument_atIndex_, - argumentLocation, - atIndex, - ); - } - - /// getReturnValue: - void getReturnValue(ffi.Pointer retLoc) { - _objc_msgSend_ovsamd(this.ref.pointer, _sel_getReturnValue_, retLoc); - } - - /// init - NSInvocation init() { - objc.checkOsVersionInternal( - 'NSInvocation.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSInvocation.castFromPointer(_ret, retain: false, release: true); - } - - /// invoke - void invoke() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_invoke); - } - - /// invokeUsingIMP: - void invokeUsingIMP( - ffi.Pointer> imp, - ) { - _objc_msgSend_hk6irj(this.ref.pointer, _sel_invokeUsingIMP_, imp); - } - - /// invokeWithTarget: - void invokeWithTarget(objc.ObjCObjectBase target) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_invokeWithTarget_, - target.ref.pointer, - ); - } - - /// methodSignature - NSMethodSignature get methodSignature { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_methodSignature); - return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); - } - - /// retainArguments - void retainArguments() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_retainArguments); - } - - /// selector - ffi.Pointer get selector { - return _objc_msgSend_1ovaulg(this.ref.pointer, _sel_selector); - } - - /// setArgument:atIndex: - void setArgument( - ffi.Pointer argumentLocation, { - required int atIndex, - }) { - _objc_msgSend_unr2j3( - this.ref.pointer, - _sel_setArgument_atIndex_, - argumentLocation, - atIndex, - ); - } - - /// setReturnValue: - void setReturnValue(ffi.Pointer retLoc) { - _objc_msgSend_ovsamd(this.ref.pointer, _sel_setReturnValue_, retLoc); - } - - /// setSelector: - set selector(ffi.Pointer value) { - _objc_msgSend_1d9e4oe(this.ref.pointer, _sel_setSelector_, value); - } - - /// setTarget: - set target(objc.ObjCObjectBase? value) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setTarget_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// target - objc.ObjCObjectBase? get target { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_target); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSInvocation constructed with the default `new` method. - factory NSInvocation() => new$(); -} - -/// NSItemProvider -class NSItemProvider extends NSObject implements NSCopying { - NSItemProvider._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSItemProvider', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } - - /// Constructs a [NSItemProvider] that points to the same underlying object as [other]. - NSItemProvider.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSItemProvider] that wraps the given raw object pointer. - NSItemProvider.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSItemProvider]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSItemProvider, - ); - } - - /// alloc - static NSItemProvider alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSItemProvider, _sel_alloc); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSItemProvider allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSItemProvider, - _sel_allocWithZone_, - zone, - ); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSItemProvider new$() { - final _ret = _objc_msgSend_151sglz(_class_NSItemProvider, _sel_new); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// autorelease - NSItemProvider autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSItemProvider.castFromPointer(_ret, retain: true, release: true); - } - - /// canLoadObjectOfClass: - bool canLoadObjectOfClass(NSItemProviderReading aClass) { - objc.checkOsVersionInternal( - 'NSItemProvider.canLoadObjectOfClass:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_canLoadObjectOfClass_, - aClass.ref.pointer, - ); - } - - /// hasItemConformingToTypeIdentifier: - bool hasItemConformingToTypeIdentifier(NSString typeIdentifier) { - objc.checkOsVersionInternal( - 'NSItemProvider.hasItemConformingToTypeIdentifier:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_hasItemConformingToTypeIdentifier_, - typeIdentifier.ref.pointer, - ); - } - - /// hasRepresentationConformingToTypeIdentifier:fileOptions: - bool hasRepresentationConformingToTypeIdentifier( - NSString typeIdentifier, { - required NSItemProviderFileOptions fileOptions, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.hasRepresentationConformingToTypeIdentifier:fileOptions:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - return _objc_msgSend_1wdb8ji( - this.ref.pointer, - _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_, - typeIdentifier.ref.pointer, - fileOptions.value, - ); - } - - /// init - NSItemProvider init() { - objc.checkOsVersionInternal( - 'NSItemProvider.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - NSItemProvider? initWithContentsOfURL(NSURL fileURL) { - objc.checkOsVersionInternal( - 'NSItemProvider.initWithContentsOfURL:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - fileURL.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithItem:typeIdentifier: - NSItemProvider initWithItem( - NSSecureCoding? item, { - NSString? typeIdentifier, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.initWithItem:typeIdentifier:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithItem_typeIdentifier_, - item?.ref.pointer ?? ffi.nullptr, - typeIdentifier?.ref.pointer ?? ffi.nullptr, - ); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObject: - NSItemProvider initWithObject(NSItemProviderWriting object) { - objc.checkOsVersionInternal( - 'NSItemProvider.initWithObject:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObject_, - object.ref.pointer, - ); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// loadDataRepresentationForTypeIdentifier:completionHandler: - NSProgress loadDataRepresentationForTypeIdentifier( - NSString typeIdentifier, { - required objc.ObjCBlock - completionHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadDataRepresentationForTypeIdentifier:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_loadDataRepresentationForTypeIdentifier_completionHandler_, - typeIdentifier.ref.pointer, - completionHandler.ref.pointer, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// loadFileRepresentationForTypeIdentifier:completionHandler: - NSProgress loadFileRepresentationForTypeIdentifier( - NSString typeIdentifier, { - required objc.ObjCBlock - completionHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadFileRepresentationForTypeIdentifier:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_loadFileRepresentationForTypeIdentifier_completionHandler_, - typeIdentifier.ref.pointer, - completionHandler.ref.pointer, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// loadInPlaceFileRepresentationForTypeIdentifier:completionHandler: - NSProgress loadInPlaceFileRepresentationForTypeIdentifier( - NSString typeIdentifier, { - required objc.ObjCBlock - completionHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_, - typeIdentifier.ref.pointer, - completionHandler.ref.pointer, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// loadItemForTypeIdentifier:options:completionHandler: - void loadItemForTypeIdentifier( - NSString typeIdentifier, { - NSDictionary? options, - objc.ObjCBlock?, NSError)>? - completionHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadItemForTypeIdentifier:options:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_18qun1e( - this.ref.pointer, - _sel_loadItemForTypeIdentifier_options_completionHandler_, - typeIdentifier.ref.pointer, - options?.ref.pointer ?? ffi.nullptr, - completionHandler?.ref.pointer ?? ffi.nullptr, - ); - } - - /// loadObjectOfClass:completionHandler: - NSProgress loadObjectOfClass( - NSItemProviderReading aClass, { - required objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - completionHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadObjectOfClass:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_loadObjectOfClass_completionHandler_, - aClass.ref.pointer, - completionHandler.ref.pointer, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// registerDataRepresentationForTypeIdentifier:visibility:loadHandler: - void registerDataRepresentationForTypeIdentifier( - NSString typeIdentifier, { - required NSItemProviderRepresentationVisibility visibility, - required objc.ObjCBlock< - NSProgress? Function(objc.ObjCBlock) - > - loadHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.registerDataRepresentationForTypeIdentifier:visibility:loadHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_1pl40xc( - this.ref.pointer, - _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_, - typeIdentifier.ref.pointer, - visibility.value, - loadHandler.ref.pointer, - ); - } - - /// registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler: - void registerFileRepresentationForTypeIdentifier( - NSString typeIdentifier, { - required NSItemProviderFileOptions fileOptions, - required NSItemProviderRepresentationVisibility visibility, - required objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > - loadHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_t7arir( - this.ref.pointer, - _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_, - typeIdentifier.ref.pointer, - fileOptions.value, - visibility.value, - loadHandler.ref.pointer, - ); - } - - /// registerItemForTypeIdentifier:loadHandler: - void registerItemForTypeIdentifier( - NSString typeIdentifier, { - required objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - > - loadHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.registerItemForTypeIdentifier:loadHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_o762yo( - this.ref.pointer, - _sel_registerItemForTypeIdentifier_loadHandler_, - typeIdentifier.ref.pointer, - loadHandler.ref.pointer, - ); - } - - /// registerObject:visibility: - void registerObject( - NSItemProviderWriting object, { - required NSItemProviderRepresentationVisibility visibility, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.registerObject:visibility:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_1k745tv( - this.ref.pointer, - _sel_registerObject_visibility_, - object.ref.pointer, - visibility.value, - ); - } - - /// registerObjectOfClass:visibility:loadHandler: - void registerObjectOfClass( - NSItemProviderWriting aClass, { - required NSItemProviderRepresentationVisibility visibility, - required objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - > - loadHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.registerObjectOfClass:visibility:loadHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_1pl40xc( - this.ref.pointer, - _sel_registerObjectOfClass_visibility_loadHandler_, - aClass.ref.pointer, - visibility.value, - loadHandler.ref.pointer, - ); - } - - /// registeredTypeIdentifiers - NSArray get registeredTypeIdentifiers { - objc.checkOsVersionInternal( - 'NSItemProvider.registeredTypeIdentifiers', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_registeredTypeIdentifiers, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// registeredTypeIdentifiersWithFileOptions: - NSArray registeredTypeIdentifiersWithFileOptions( - NSItemProviderFileOptions fileOptions, - ) { - objc.checkOsVersionInternal( - 'NSItemProvider.registeredTypeIdentifiersWithFileOptions:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_7g3u2y( - this.ref.pointer, - _sel_registeredTypeIdentifiersWithFileOptions_, - fileOptions.value, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// retain - NSItemProvider retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSItemProvider.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSItemProvider self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSItemProvider.castFromPointer(_ret, retain: true, release: true); - } - - /// setSuggestedName: - set suggestedName(NSString? value) { - objc.checkOsVersionInternal( - 'NSItemProvider.setSuggestedName:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 14, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setSuggestedName_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// suggestedName - NSString? get suggestedName { - objc.checkOsVersionInternal( - 'NSItemProvider.suggestedName', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 14, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_suggestedName); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSItemProvider constructed with the default `new` method. - factory NSItemProvider() => new$(); -} - -enum NSItemProviderFileOptions { - NSItemProviderFileOptionOpenInPlace(1); - - final int value; - const NSItemProviderFileOptions(this.value); - - static NSItemProviderFileOptions fromValue(int value) => switch (value) { - 1 => NSItemProviderFileOptionOpenInPlace, - _ => throw ArgumentError( - 'Unknown value for NSItemProviderFileOptions: $value', - ), - }; -} - -/// NSItemProviderReading -interface class NSItemProviderReading extends objc.ObjCProtocolBase - implements NSObjectProtocol { - NSItemProviderReading._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSItemProviderReading] that points to the same underlying object as [other]. - NSItemProviderReading.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSItemProviderReading] that wraps the given raw object pointer. - NSItemProviderReading.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSItemProviderReading]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSItemProviderReading, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSItemProviderReading.cast()); - - /// Builds an object that implements the NSItemProviderReading protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSItemProviderReading implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSItemProviderReading', - ); - - builder.addProtocol($protocol); - return NSItemProviderReading.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSItemProviderReading protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -enum NSItemProviderRepresentationVisibility { - NSItemProviderRepresentationVisibilityAll(0), - NSItemProviderRepresentationVisibilityTeam(1), - NSItemProviderRepresentationVisibilityGroup(2), - NSItemProviderRepresentationVisibilityOwnProcess(3); - - final int value; - const NSItemProviderRepresentationVisibility(this.value); - - static NSItemProviderRepresentationVisibility fromValue(int value) => - switch (value) { - 0 => NSItemProviderRepresentationVisibilityAll, - 1 => NSItemProviderRepresentationVisibilityTeam, - 2 => NSItemProviderRepresentationVisibilityGroup, - 3 => NSItemProviderRepresentationVisibilityOwnProcess, - _ => throw ArgumentError( - 'Unknown value for NSItemProviderRepresentationVisibility: $value', - ), - }; -} - -/// NSItemProviderWriting -interface class NSItemProviderWriting extends objc.ObjCProtocolBase - implements NSObjectProtocol { - NSItemProviderWriting._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSItemProviderWriting] that points to the same underlying object as [other]. - NSItemProviderWriting.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSItemProviderWriting] that wraps the given raw object pointer. - NSItemProviderWriting.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSItemProviderWriting]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSItemProviderWriting, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSItemProviderWriting.cast()); - - /// Builds an object that implements the NSItemProviderWriting protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSItemProviderWriting implement({ - NSItemProviderRepresentationVisibility Function(NSString)? - itemProviderVisibilityForRepresentationWithTypeIdentifier_, - required NSProgress? Function( - NSString, - objc.ObjCBlock, - ) - loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - NSArray Function()? writableTypeIdentifiersForItemProvider, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSItemProviderWriting', - ); - NSItemProviderWriting - .itemProviderVisibilityForRepresentationWithTypeIdentifier_ - .implement( - builder, - itemProviderVisibilityForRepresentationWithTypeIdentifier_, - ); - NSItemProviderWriting - .loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ - .implement( - builder, - loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - ); - NSItemProviderWriting.writableTypeIdentifiersForItemProvider.implement( - builder, - writableTypeIdentifiersForItemProvider, - ); - builder.addProtocol($protocol); - return NSItemProviderWriting.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSItemProviderWriting protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - NSItemProviderRepresentationVisibility Function(NSString)? - itemProviderVisibilityForRepresentationWithTypeIdentifier_, - required NSProgress? Function( - NSString, - objc.ObjCBlock, - ) - loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - NSArray Function()? writableTypeIdentifiersForItemProvider, - bool $keepIsolateAlive = true, - }) { - NSItemProviderWriting - .itemProviderVisibilityForRepresentationWithTypeIdentifier_ - .implement( - builder, - itemProviderVisibilityForRepresentationWithTypeIdentifier_, - ); - NSItemProviderWriting - .loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ - .implement( - builder, - loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - ); - NSItemProviderWriting.writableTypeIdentifiersForItemProvider.implement( - builder, - writableTypeIdentifiersForItemProvider, - ); - builder.addProtocol($protocol); - } - - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - static final itemProviderVisibilityForRepresentationWithTypeIdentifier_ = - objc.ObjCProtocolMethod< - NSItemProviderRepresentationVisibility Function(NSString) - >( - _protocol_NSItemProviderWriting, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1ldqghh) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSItemProviderWriting, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - isRequired: false, - isInstanceMethod: true, - ), - (NSItemProviderRepresentationVisibility Function(NSString) func) => - ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString.fromFunction( - (ffi.Pointer _, NSString arg1) => func(arg1), - ), - ); - - /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - static final loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = - objc.ObjCProtocolMethod< - NSProgress? Function( - NSString, - objc.ObjCBlock, - ) - >( - _protocol_NSItemProviderWriting, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1q0i84) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSItemProviderWriting, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - isRequired: true, - isInstanceMethod: true, - ), - ( - NSProgress? Function( - NSString, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError.fromFunction( - ( - ffi.Pointer _, - NSString arg1, - objc.ObjCBlock arg2, - ) => func(arg1, arg2), - ), - ); - - /// writableTypeIdentifiersForItemProvider - static final writableTypeIdentifiersForItemProvider = - objc.ObjCProtocolMethod( - _protocol_NSItemProviderWriting, - _sel_writableTypeIdentifiersForItemProvider, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSItemProviderWriting, - _sel_writableTypeIdentifiersForItemProvider, - isRequired: false, - isInstanceMethod: true, - ), - (NSArray Function() func) => ObjCBlock_NSArray_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); -} - -enum NSKeyValueChange { - NSKeyValueChangeSetting(1), - NSKeyValueChangeInsertion(2), - NSKeyValueChangeRemoval(3), - NSKeyValueChangeReplacement(4); - - final int value; - const NSKeyValueChange(this.value); - - static NSKeyValueChange fromValue(int value) => switch (value) { - 1 => NSKeyValueChangeSetting, - 2 => NSKeyValueChangeInsertion, - 3 => NSKeyValueChangeRemoval, - 4 => NSKeyValueChangeReplacement, - _ => throw ArgumentError('Unknown value for NSKeyValueChange: $value'), - }; -} - -enum NSKeyValueObservingOptions { - NSKeyValueObservingOptionNew(1), - NSKeyValueObservingOptionOld(2), - NSKeyValueObservingOptionInitial(4), - NSKeyValueObservingOptionPrior(8); - - final int value; - const NSKeyValueObservingOptions(this.value); - - static NSKeyValueObservingOptions fromValue(int value) => switch (value) { - 1 => NSKeyValueObservingOptionNew, - 2 => NSKeyValueObservingOptionOld, - 4 => NSKeyValueObservingOptionInitial, - 8 => NSKeyValueObservingOptionPrior, - _ => throw ArgumentError( - 'Unknown value for NSKeyValueObservingOptions: $value', - ), - }; -} - -enum NSKeyValueSetMutationKind { - NSKeyValueUnionSetMutation(1), - NSKeyValueMinusSetMutation(2), - NSKeyValueIntersectSetMutation(3), - NSKeyValueSetSetMutation(4); - - final int value; - const NSKeyValueSetMutationKind(this.value); - - static NSKeyValueSetMutationKind fromValue(int value) => switch (value) { - 1 => NSKeyValueUnionSetMutation, - 2 => NSKeyValueMinusSetMutation, - 3 => NSKeyValueIntersectSetMutation, - 4 => NSKeyValueSetSetMutation, - _ => throw ArgumentError( - 'Unknown value for NSKeyValueSetMutationKind: $value', - ), - }; -} - -enum NSLinguisticTaggerOptions { - NSLinguisticTaggerOmitWords(1), - NSLinguisticTaggerOmitPunctuation(2), - NSLinguisticTaggerOmitWhitespace(4), - NSLinguisticTaggerOmitOther(8), - NSLinguisticTaggerJoinNames(16); - - final int value; - const NSLinguisticTaggerOptions(this.value); - - static NSLinguisticTaggerOptions fromValue(int value) => switch (value) { - 1 => NSLinguisticTaggerOmitWords, - 2 => NSLinguisticTaggerOmitPunctuation, - 4 => NSLinguisticTaggerOmitWhitespace, - 8 => NSLinguisticTaggerOmitOther, - 16 => NSLinguisticTaggerJoinNames, - _ => throw ArgumentError( - 'Unknown value for NSLinguisticTaggerOptions: $value', - ), - }; -} - -/// NSLocale -class NSLocale extends NSObject implements NSCopying, NSSecureCoding { - NSLocale._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSLocale] that points to the same underlying object as [other]. - NSLocale.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSLocale] that wraps the given raw object pointer. - NSLocale.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSLocale]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSLocale, - ); - } - - /// alloc - static NSLocale alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_alloc); - return NSLocale.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSLocale allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSLocale, - _sel_allocWithZone_, - zone, - ); - return NSLocale.castFromPointer(_ret, retain: false, release: true); - } - - /// localeWithLocaleIdentifier: - static NSLocale localeWithLocaleIdentifier(NSString ident) { - objc.checkOsVersionInternal( - 'NSLocale.localeWithLocaleIdentifier:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSLocale, - _sel_localeWithLocaleIdentifier_, - ident.ref.pointer, - ); - return NSLocale.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSLocale new$() { - final _ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_new); - return NSLocale.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSLocale, _sel_supportsSecureCoding); - } - - /// autorelease - NSLocale autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSLocale.castFromPointer(_ret, retain: true, release: true); - } - - /// displayNameForKey:value: - NSString? displayNameForKey( - NSString key, { - required objc.ObjCObjectBase value, - }) { - final _ret = _objc_msgSend_15qeuct( - this.ref.pointer, - _sel_displayNameForKey_value_, - key.ref.pointer, - value.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSLocale init() { - objc.checkOsVersionInternal( - 'NSLocale.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSLocale.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSLocale? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSLocale.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithLocaleIdentifier: - NSLocale initWithLocaleIdentifier(NSString string) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithLocaleIdentifier_, - string.ref.pointer, - ); - return NSLocale.castFromPointer(_ret, retain: false, release: true); - } - - /// objectForKey: - objc.ObjCObjectBase? objectForKey(NSString key) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_objectForKey_, - key.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// retain - NSLocale retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSLocale.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSLocale self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSLocale.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSLocale constructed with the default `new` method. - factory NSLocale() => new$(); -} - -enum NSLocaleLanguageDirection { - NSLocaleLanguageDirectionUnknown(0), - NSLocaleLanguageDirectionLeftToRight(1), - NSLocaleLanguageDirectionRightToLeft(2), - NSLocaleLanguageDirectionTopToBottom(3), - NSLocaleLanguageDirectionBottomToTop(4); - - final int value; - const NSLocaleLanguageDirection(this.value); - - static NSLocaleLanguageDirection fromValue(int value) => switch (value) { - 0 => NSLocaleLanguageDirectionUnknown, - 1 => NSLocaleLanguageDirectionLeftToRight, - 2 => NSLocaleLanguageDirectionRightToLeft, - 3 => NSLocaleLanguageDirectionTopToBottom, - 4 => NSLocaleLanguageDirectionBottomToTop, - _ => throw ArgumentError( - 'Unknown value for NSLocaleLanguageDirection: $value', - ), - }; -} - -/// NSMethodSignature -class NSMethodSignature extends NSObject { - NSMethodSignature._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMethodSignature] that points to the same underlying object as [other]. - NSMethodSignature.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMethodSignature] that wraps the given raw object pointer. - NSMethodSignature.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMethodSignature]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMethodSignature, - ); - } - - /// alloc - static NSMethodSignature alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_alloc); - return NSMethodSignature.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSMethodSignature allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMethodSignature, - _sel_allocWithZone_, - zone, - ); - return NSMethodSignature.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// new - static NSMethodSignature new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_new); - return NSMethodSignature.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// signatureWithObjCTypes: - static NSMethodSignature? signatureWithObjCTypes( - ffi.Pointer types, - ) { - final _ret = _objc_msgSend_56zxyn( - _class_NSMethodSignature, - _sel_signatureWithObjCTypes_, - types, - ); - return _ret.address == 0 - ? null - : NSMethodSignature.castFromPointer(_ret, retain: true, release: true); - } - - /// frameLength - int get frameLength { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_frameLength); - } - - /// getArgumentTypeAtIndex: - ffi.Pointer getArgumentTypeAtIndex(int idx) { - return _objc_msgSend_1jtxufi( - this.ref.pointer, - _sel_getArgumentTypeAtIndex_, - idx, - ); - } - - /// init - NSMethodSignature init() { - objc.checkOsVersionInternal( - 'NSMethodSignature.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMethodSignature.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// isOneway - bool isOneway() { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isOneway); - } - - /// methodReturnLength - int get methodReturnLength { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_methodReturnLength); - } - - /// methodReturnType - ffi.Pointer get methodReturnType { - return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_methodReturnType); - } - - /// numberOfArguments - int get numberOfArguments { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_numberOfArguments); - } - - /// Returns a new instance of NSMethodSignature constructed with the default `new` method. - factory NSMethodSignature() => new$(); -} - -/// NSMutableArray -class NSMutableArray extends NSArray - with collection.ListBase { - /// Creates a [NSMutableArray] of the given length with [fill] at each - /// position. - /// - /// The [length] must be a non-negative integer. - static NSMutableArray filled(int length, objc.ObjCObjectBase fill) { - final a = arrayWithCapacity(length); - for (var i = 0; i < length; ++i) a.add(fill); - return a; - } - - /// Creates a [NSMutableArray] from [elements]. - static NSMutableArray of(Iterable elements) => - arrayWithCapacity(elements.length)..addAll(elements); - - @override - set length(int newLength) { - var len = length; - RangeError.checkValueInInterval(newLength, 0, len); - for (; len > newLength; --len) removeLastObject(); - } - - @override - Iterator get iterator => _NSArrayIterator(this); - - @override - objc.ObjCObjectBase operator [](int index) => objectAtIndex(index); - - @override - void operator []=(int index, objc.ObjCObjectBase value) => - replaceObjectAtIndex(index, withObject: value); - - @override - void add(objc.ObjCObjectBase value) => addObject(value); - - NSMutableArray._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableArray] that points to the same underlying object as [other]. - NSMutableArray.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableArray] that wraps the given raw object pointer. - NSMutableArray.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableArray]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableArray, - ); - } - - /// alloc - static NSMutableArray alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_alloc); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSMutableArray allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableArray, - _sel_allocWithZone_, - zone, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// array - static NSMutableArray array() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_array); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithArray: - static NSMutableArray arrayWithArray(NSArray array$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, - _sel_arrayWithArray_, - array$1.ref.pointer, - ); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithCapacity: - static NSMutableArray arrayWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableArray, - _sel_arrayWithCapacity_, - numItems, - ); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObject: - static NSMutableArray arrayWithObject(objc.ObjCObjectBase anObject) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, - _sel_arrayWithObject_, - anObject.ref.pointer, - ); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObjects: - static NSMutableArray arrayWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, - _sel_arrayWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObjects:count: - static NSMutableArray arrayWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - _class_NSMutableArray, - _sel_arrayWithObjects_count_, - objects, - count, - ); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSMutableArray new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_new); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableArray, - _sel_supportsSecureCoding, - ); - } - - /// addObject: - void addObject(objc.ObjCObjectBase anObject) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addObject_, - anObject.ref.pointer, - ); - } - - /// init - NSMutableArray init() { - objc.checkOsVersionInternal( - 'NSMutableArray.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray: - NSMutableArray initWithArray(NSArray array$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array$1.ref.pointer, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - NSMutableArray initWithArray$1(NSArray array$1, {required bool copyItems}) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - array$1.ref.pointer, - copyItems, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCapacity: - NSMutableArray initWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - numItems, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSMutableArray? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects: - NSMutableArray initWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:count: - NSMutableArray initWithObjects$1( - ffi.Pointer> objects, { - required int count$1, - }) { - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count$1, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// insertObject:atIndex: - void insertObject(objc.ObjCObjectBase anObject, {required int atIndex}) { - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_insertObject_atIndex_, - anObject.ref.pointer, - atIndex, - ); - } - - /// removeLastObject - void removeLastObject() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeLastObject); - } - - /// removeObjectAtIndex: - void removeObjectAtIndex(int index) { - _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeObjectAtIndex_, index); - } - - /// replaceObjectAtIndex:withObject: - void replaceObjectAtIndex( - int index, { - required objc.ObjCObjectBase withObject, - }) { - _objc_msgSend_1gypgok( - this.ref.pointer, - _sel_replaceObjectAtIndex_withObject_, - index, - withObject.ref.pointer, - ); - } - - /// Returns a new instance of NSMutableArray constructed with the default `new` method. - factory NSMutableArray() => new$(); -} - -/// NSMutableCopying -interface class NSMutableCopying extends objc.ObjCProtocolBase { - NSMutableCopying._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableCopying] that points to the same underlying object as [other]. - NSMutableCopying.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableCopying] that wraps the given raw object pointer. - NSMutableCopying.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableCopying]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSMutableCopying, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSMutableCopying.cast()); - - /// Builds an object that implements the NSMutableCopying protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSMutableCopying implement({ - required objc.ObjCObjectBase Function(ffi.Pointer) - mutableCopyWithZone_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSMutableCopying'); - NSMutableCopying.mutableCopyWithZone_.implement( - builder, - mutableCopyWithZone_, - ); - builder.addProtocol($protocol); - return NSMutableCopying.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSMutableCopying protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObjectBase Function(ffi.Pointer) - mutableCopyWithZone_, - bool $keepIsolateAlive = true, - }) { - NSMutableCopying.mutableCopyWithZone_.implement( - builder, - mutableCopyWithZone_, - ); - builder.addProtocol($protocol); - } - - /// mutableCopyWithZone: - static final mutableCopyWithZone_ = - objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function(ffi.Pointer) - >( - _protocol_NSMutableCopying, - _sel_mutableCopyWithZone_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_18nsem0) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMutableCopying, - _sel_mutableCopyWithZone_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function(ffi.Pointer) func) => - ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => func(arg1), - ), - ); -} - -/// NSMutableData -class NSMutableData extends NSData { - NSMutableData._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableData] that points to the same underlying object as [other]. - NSMutableData.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableData] that wraps the given raw object pointer. - NSMutableData.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableData]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableData, - ); - } - - /// alloc - static NSMutableData alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_alloc); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSMutableData allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableData, - _sel_allocWithZone_, - zone, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// data - static NSMutableData data() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_data); - return NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytes:length: - static NSMutableData dataWithBytes( - ffi.Pointer bytes, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - _class_NSMutableData, - _sel_dataWithBytes_length_, - bytes, - length, - ); - return NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytesNoCopy:length: - static NSMutableData dataWithBytesNoCopy( - ffi.Pointer bytes, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - _class_NSMutableData, - _sel_dataWithBytesNoCopy_length_, - bytes, - length, - ); - return NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytesNoCopy:length:freeWhenDone: - static NSMutableData dataWithBytesNoCopy$1( - ffi.Pointer bytes, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_161ne8y( - _class_NSMutableData, - _sel_dataWithBytesNoCopy_length_freeWhenDone_, - bytes, - length, - freeWhenDone, - ); - return NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithCapacity: - static NSMutableData? dataWithCapacity(int aNumItems) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableData, - _sel_dataWithCapacity_, - aNumItems, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfFile: - static NSMutableData? dataWithContentsOfFile(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableData, - _sel_dataWithContentsOfFile_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfFile:options:error: - static NSMutableData? dataWithContentsOfFile$1( - NSString path, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - _class_NSMutableData, - _sel_dataWithContentsOfFile_options_error_, - path.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfURL: - static NSMutableData? dataWithContentsOfURL(NSURL url) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableData, - _sel_dataWithContentsOfURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfURL:options:error: - static NSMutableData? dataWithContentsOfURL$1( - NSURL url, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - _class_NSMutableData, - _sel_dataWithContentsOfURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithData: - static NSMutableData dataWithData(NSData data$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableData, - _sel_dataWithData_, - data$1.ref.pointer, - ); - return NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithLength: - static NSMutableData? dataWithLength(int length) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableData, - _sel_dataWithLength_, - length, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSMutableData new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_new); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableData, - _sel_supportsSecureCoding, - ); - } - - /// compressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSMutableData? compressedDataUsingAlgorithm( - NSDataCompressionAlgorithm algorithm, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableData.compressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1vnlaqg( - this.ref.pointer, - _sel_compressedDataUsingAlgorithm_error_, - algorithm.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// decompressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSMutableData? decompressedDataUsingAlgorithm( - NSDataCompressionAlgorithm algorithm, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableData.decompressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1vnlaqg( - this.ref.pointer, - _sel_decompressedDataUsingAlgorithm_error_, - algorithm.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSMutableData init() { - objc.checkOsVersionInternal( - 'NSMutableData.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBase64EncodedData:options: - NSMutableData? initWithBase64EncodedData( - NSData base64Data, { - required NSDataBase64DecodingOptions options, - }) { - objc.checkOsVersionInternal( - 'NSMutableData.initWithBase64EncodedData:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedData_options_, - base64Data.ref.pointer, - options.value, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBase64EncodedString:options: - NSMutableData? initWithBase64EncodedString( - NSString base64String, { - required NSDataBase64DecodingOptions options, - }) { - objc.checkOsVersionInternal( - 'NSMutableData.initWithBase64EncodedString:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedString_options_, - base64String.ref.pointer, - options.value, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:length: - NSMutableData initWithBytes( - ffi.Pointer bytes$1, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_, - bytes$1, - length, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length: - NSMutableData initWithBytesNoCopy( - ffi.Pointer bytes$1, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_, - bytes$1, - length, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:deallocator: - NSMutableData initWithBytesNoCopy$1( - ffi.Pointer bytes$1, { - required int length, - objc.ObjCBlock, ffi.UnsignedLong)>? - deallocator, - }) { - objc.checkOsVersionInternal( - 'NSMutableData.initWithBytesNoCopy:length:deallocator:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_134vhyh( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_deallocator_, - bytes$1, - length, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:freeWhenDone: - NSMutableData initWithBytesNoCopy$2( - ffi.Pointer bytes$1, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_161ne8y( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_freeWhenDone_, - bytes$1, - length, - freeWhenDone, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCapacity: - NSMutableData? initWithCapacity(int capacity) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - capacity, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSMutableData? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile: - NSMutableData? initWithContentsOfFile(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:options:error: - NSMutableData? initWithContentsOfFile$1( - NSString path, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_options_error_, - path.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - NSMutableData? initWithContentsOfURL(NSURL url) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:options:error: - NSMutableData? initWithContentsOfURL$1( - NSURL url, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithData: - NSMutableData initWithData(NSData data$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithData_, - data$1.ref.pointer, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithLength: - NSMutableData? initWithLength(int length) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithLength_, - length, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// length - int get length { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); - } - - /// mutableBytes - ffi.Pointer get mutableBytes { - return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_mutableBytes); - } - - /// setLength: - set length(int value) { - _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_setLength_, value); - } - - /// Returns a new instance of NSMutableData constructed with the default `new` method. - factory NSMutableData() => new$(); -} - -/// NSMutableDictionary -class NSMutableDictionary extends NSDictionary { - /// Creates a [NSMutableDictionary] from [other]. - static NSDictionary of(Map other) => - NSMutableDictionary.dictionaryWithCapacity(other.length)..addAll(other); - - /// Creates a [NSMutableDictionary] from [entries]. - static NSMutableDictionary fromEntries( - Iterable> entries, - ) => - NSMutableDictionary.dictionaryWithCapacity(entries.length) - ..addEntries(entries); - - @override - void clear() => removeAllObjects(); - - @override - objc.ObjCObjectBase? remove(Object? key) { - if (key is! NSCopying) return null; - final old = this[key]; - removeObjectForKey(key); - return old; - } - - @override - void operator []=(NSCopying key, objc.ObjCObjectBase value) => - setObject(value, forKey: NSCopying.castFrom(key)); - - NSMutableDictionary._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableDictionary] that points to the same underlying object as [other]. - NSMutableDictionary.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableDictionary] that wraps the given raw object pointer. - NSMutableDictionary.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableDictionary]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableDictionary, - ); - } - - /// alloc - static NSMutableDictionary alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_alloc); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSMutableDictionary allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableDictionary, - _sel_allocWithZone_, - zone, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// dictionary - static NSMutableDictionary dictionary() { - final _ret = _objc_msgSend_151sglz( - _class_NSMutableDictionary, - _sel_dictionary, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithCapacity: - static NSMutableDictionary dictionaryWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableDictionary, - _sel_dictionaryWithCapacity_, - numItems, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithDictionary: - static NSMutableDictionary dictionaryWithDictionary(NSDictionary dict) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableDictionary, - _sel_dictionaryWithDictionary_, - dict.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithObject:forKey: - static NSMutableDictionary dictionaryWithObject( - objc.ObjCObjectBase object, { - required NSCopying forKey, - }) { - final _ret = _objc_msgSend_15qeuct( - _class_NSMutableDictionary, - _sel_dictionaryWithObject_forKey_, - object.ref.pointer, - forKey.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithObjects:forKeys: - static NSMutableDictionary dictionaryWithObjects( - NSArray objects, { - required NSArray forKeys, - }) { - final _ret = _objc_msgSend_15qeuct( - _class_NSMutableDictionary, - _sel_dictionaryWithObjects_forKeys_, - objects.ref.pointer, - forKeys.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithObjects:forKeys:count: - static NSMutableDictionary dictionaryWithObjects$1( - ffi.Pointer> objects, { - required ffi.Pointer> forKeys, - required int count, - }) { - final _ret = _objc_msgSend_1dydpdi( - _class_NSMutableDictionary, - _sel_dictionaryWithObjects_forKeys_count_, - objects, - forKeys, - count, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithObjectsAndKeys: - static NSMutableDictionary dictionaryWithObjectsAndKeys( - objc.ObjCObjectBase firstObject, - ) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableDictionary, - _sel_dictionaryWithObjectsAndKeys_, - firstObject.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// new - static NSMutableDictionary new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_new); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableDictionary, - _sel_supportsSecureCoding, - ); - } - - /// init - NSMutableDictionary init() { - objc.checkOsVersionInternal( - 'NSMutableDictionary.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithCapacity: - NSMutableDictionary initWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - numItems, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithCoder: - NSMutableDictionary? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithDictionary: - NSMutableDictionary initWithDictionary(NSDictionary otherDictionary) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_, - otherDictionary.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithDictionary:copyItems: - NSMutableDictionary initWithDictionary$1( - NSDictionary otherDictionary, { - required bool copyItems, - }) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_copyItems_, - otherDictionary.ref.pointer, - copyItems, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObjects:forKeys: - NSMutableDictionary initWithObjects( - NSArray objects, { - required NSArray forKeys, - }) { - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_, - objects.ref.pointer, - forKeys.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObjects:forKeys:count: - NSMutableDictionary initWithObjects$1( - ffi.Pointer> objects, { - required ffi.Pointer> forKeys, - required int count$1, - }) { - final _ret = _objc_msgSend_1dydpdi( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_count_, - objects, - forKeys, - count$1, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObjectsAndKeys: - NSMutableDictionary initWithObjectsAndKeys(objc.ObjCObjectBase firstObject) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjectsAndKeys_, - firstObject.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// removeObjectForKey: - void removeObjectForKey(objc.ObjCObjectBase aKey) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectForKey_, - aKey.ref.pointer, - ); - } - - /// setObject:forKey: - void setObject(objc.ObjCObjectBase anObject, {required NSCopying forKey}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_setObject_forKey_, - anObject.ref.pointer, - forKey.ref.pointer, - ); - } - - /// Returns a new instance of NSMutableDictionary constructed with the default `new` method. - factory NSMutableDictionary() => new$(); -} - -/// NSMutableIndexSet -class NSMutableIndexSet extends NSIndexSet { - NSMutableIndexSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableIndexSet] that points to the same underlying object as [other]. - NSMutableIndexSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableIndexSet] that wraps the given raw object pointer. - NSMutableIndexSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableIndexSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableIndexSet, - ); - } - - /// alloc - static NSMutableIndexSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_alloc); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSMutableIndexSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableIndexSet, - _sel_allocWithZone_, - zone, - ); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// indexSet - static NSMutableIndexSet indexSet() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_indexSet); - return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexSetWithIndex: - static NSMutableIndexSet indexSetWithIndex(int value) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableIndexSet, - _sel_indexSetWithIndex_, - value, - ); - return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexSetWithIndexesInRange: - static NSMutableIndexSet indexSetWithIndexesInRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - _class_NSMutableIndexSet, - _sel_indexSetWithIndexesInRange_, - range, - ); - return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSMutableIndexSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_new); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableIndexSet, - _sel_supportsSecureCoding, - ); - } - - /// addIndex: - void addIndex(int value) { - _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_addIndex_, value); - } - - /// addIndexes: - void addIndexes(NSIndexSet indexSet) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addIndexes_, - indexSet.ref.pointer, - ); - } - - /// addIndexesInRange: - void addIndexesInRange(NSRange range) { - _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_addIndexesInRange_, range); - } - - /// init - NSMutableIndexSet init() { - objc.checkOsVersionInternal( - 'NSMutableIndexSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithCoder: - NSMutableIndexSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithIndex: - NSMutableIndexSet initWithIndex(int value) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithIndex_, - value, - ); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithIndexSet: - NSMutableIndexSet initWithIndexSet(NSIndexSet indexSet$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithIndexSet_, - indexSet$1.ref.pointer, - ); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithIndexesInRange: - NSMutableIndexSet initWithIndexesInRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - this.ref.retainAndReturnPointer(), - _sel_initWithIndexesInRange_, - range, - ); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// removeAllIndexes - void removeAllIndexes() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllIndexes); - } - - /// removeIndex: - void removeIndex(int value) { - _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeIndex_, value); - } - - /// removeIndexes: - void removeIndexes(NSIndexSet indexSet) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeIndexes_, - indexSet.ref.pointer, - ); - } - - /// removeIndexesInRange: - void removeIndexesInRange(NSRange range) { - _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeIndexesInRange_, range); - } - - /// shiftIndexesStartingAtIndex:by: - void shiftIndexesStartingAtIndex(int index, {required int by}) { - _objc_msgSend_otx1t4( - this.ref.pointer, - _sel_shiftIndexesStartingAtIndex_by_, - index, - by, - ); - } - - /// Returns a new instance of NSMutableIndexSet constructed with the default `new` method. - factory NSMutableIndexSet() => new$(); -} - -/// NSMutableOrderedSet -class NSMutableOrderedSet extends NSOrderedSet { - NSMutableOrderedSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } - - /// Constructs a [NSMutableOrderedSet] that points to the same underlying object as [other]. - NSMutableOrderedSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableOrderedSet] that wraps the given raw object pointer. - NSMutableOrderedSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableOrderedSet, - ); - } - - /// alloc - static NSMutableOrderedSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_alloc); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSMutableOrderedSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableOrderedSet, - _sel_allocWithZone_, - zone, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// new - static NSMutableOrderedSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_new); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// orderedSet - static NSMutableOrderedSet orderedSet() { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz( - _class_NSMutableOrderedSet, - _sel_orderedSet, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithArray: - static NSMutableOrderedSet orderedSetWithArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithArray_, - array.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithArray:range:copyItems: - static NSMutableOrderedSet orderedSetWithArray$1( - NSArray array, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - _class_NSMutableOrderedSet, - _sel_orderedSetWithArray_range_copyItems_, - array.ref.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithCapacity: - static NSMutableOrderedSet orderedSetWithCapacity(int numItems) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithCapacity:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableOrderedSet, - _sel_orderedSetWithCapacity_, - numItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithObject: - static NSMutableOrderedSet orderedSetWithObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithObject_, - object.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithObjects: - static NSMutableOrderedSet orderedSetWithObjects( - objc.ObjCObjectBase firstObj, - ) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithObjects:count: - static NSMutableOrderedSet orderedSetWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_zmbtbd( - _class_NSMutableOrderedSet, - _sel_orderedSetWithObjects_count_, - objects, - count, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithOrderedSet: - static NSMutableOrderedSet orderedSetWithOrderedSet(NSOrderedSet set$) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithOrderedSet_, - set$.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithOrderedSet:range:copyItems: - static NSMutableOrderedSet orderedSetWithOrderedSet$1( - NSOrderedSet set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - _class_NSMutableOrderedSet, - _sel_orderedSetWithOrderedSet_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithSet: - static NSMutableOrderedSet orderedSetWithSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithSet_, - set$.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithSet:copyItems: - static NSMutableOrderedSet orderedSetWithSet$1( - NSSet set$, { - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - _class_NSMutableOrderedSet, - _sel_orderedSetWithSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableOrderedSet, - _sel_supportsSecureCoding, - ); - } - - /// init - NSMutableOrderedSet init() { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithArray: - NSMutableOrderedSet initWithArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithArray:copyItems: - NSMutableOrderedSet initWithArray$1(NSArray set$, {required bool copyItems}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithArray:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithArray:range:copyItems: - NSMutableOrderedSet initWithArray$2( - NSArray set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithCapacity: - NSMutableOrderedSet initWithCapacity(int numItems) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithCapacity:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - numItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithCoder: - NSMutableOrderedSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObject: - NSMutableOrderedSet initWithObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObject_, - object.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObjects: - NSMutableOrderedSet initWithObjects(objc.ObjCObjectBase firstObj) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObjects:count: - NSMutableOrderedSet initWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithOrderedSet: - NSMutableOrderedSet initWithOrderedSet(NSOrderedSet set$) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_, - set$.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithOrderedSet:copyItems: - NSMutableOrderedSet initWithOrderedSet$1( - NSOrderedSet set$, { - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithOrderedSet:range:copyItems: - NSMutableOrderedSet initWithOrderedSet$2( - NSOrderedSet set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithSet: - NSMutableOrderedSet initWithSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_, - set$.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithSet:copyItems: - NSMutableOrderedSet initWithSet$1(NSSet set$, {required bool copyItems}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// insertObject:atIndex: - void insertObject(objc.ObjCObjectBase object, {required int atIndex}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.insertObject:atIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_insertObject_atIndex_, - object.ref.pointer, - atIndex, - ); - } - - /// removeObjectAtIndex: - void removeObjectAtIndex(int idx) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeObjectAtIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeObjectAtIndex_, idx); - } - - /// replaceObjectAtIndex:withObject: - void replaceObjectAtIndex( - int idx, { - required objc.ObjCObjectBase withObject, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.replaceObjectAtIndex:withObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1gypgok( - this.ref.pointer, - _sel_replaceObjectAtIndex_withObject_, - idx, - withObject.ref.pointer, - ); - } - - /// Returns a new instance of NSMutableOrderedSet constructed with the default `new` method. - factory NSMutableOrderedSet() => new$(); -} - -/// NSMutableSet -class NSMutableSet extends NSSet { - /// Creates a [NSMutableSet] from [elements]. - static NSMutableSet of(Iterable elements) => - setWithCapacity(elements.length)..addAll(elements); - - @override - bool add(objc.ObjCObjectBase value) { - final alreadyContains = contains(value); - addObject(value); - return !alreadyContains; - } - - @override - bool remove(Object? value) { - if (value is! objc.ObjCObjectBase) return false; - final alreadyContains = contains(value); - removeObject(value); - return alreadyContains; - } - - @override - void clear() => removeAllObjects(); - - NSMutableSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableSet] that points to the same underlying object as [other]. - NSMutableSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableSet] that wraps the given raw object pointer. - NSMutableSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableSet, - ); - } - - /// alloc - static NSMutableSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_alloc); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSMutableSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableSet, - _sel_allocWithZone_, - zone, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSMutableSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_new); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// set - static NSMutableSet set$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_set); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithArray: - static NSMutableSet setWithArray(NSArray array) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, - _sel_setWithArray_, - array.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithCapacity: - static NSMutableSet setWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableSet, - _sel_setWithCapacity_, - numItems, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObject: - static NSMutableSet setWithObject(objc.ObjCObjectBase object) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, - _sel_setWithObject_, - object.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObjects: - static NSMutableSet setWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, - _sel_setWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObjects:count: - static NSMutableSet setWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - _class_NSMutableSet, - _sel_setWithObjects_count_, - objects, - count, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithSet: - static NSMutableSet setWithSet(NSSet set$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, - _sel_setWithSet_, - set$1.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSMutableSet, _sel_supportsSecureCoding); - } - - /// addObject: - void addObject(objc.ObjCObjectBase object) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addObject_, object.ref.pointer); - } - - /// init - NSMutableSet init() { - objc.checkOsVersionInternal( - 'NSMutableSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray: - NSMutableSet initWithArray(NSArray array) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCapacity: - NSMutableSet initWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - numItems, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSMutableSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects: - NSMutableSet initWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:count: - NSMutableSet initWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet: - NSMutableSet initWithSet(NSSet set$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_, - set$1.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - NSMutableSet initWithSet$1(NSSet set$1, {required bool copyItems}) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - set$1.ref.pointer, - copyItems, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// removeObject: - void removeObject(objc.ObjCObjectBase object) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObject_, - object.ref.pointer, - ); - } - - /// Returns a new instance of NSMutableSet constructed with the default `new` method. - factory NSMutableSet() => new$(); -} - -/// NSMutableString -class NSMutableString extends NSString { - NSMutableString._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableString] that points to the same underlying object as [other]. - NSMutableString.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableString] that wraps the given raw object pointer. - NSMutableString.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableString]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableString, - ); - } - - /// alloc - static NSMutableString alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_alloc); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSMutableString allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableString, - _sel_allocWithZone_, - zone, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// localizedStringWithFormat: - static NSMutableString localizedStringWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableString, - _sel_localizedStringWithFormat_, - format.ref.pointer, - ); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: - static NSMutableString? localizedStringWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSMutableString, - _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSMutableString new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_new); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static NSMutableString? objectWithItemProviderData( - NSData data, { - required NSString typeIdentifier, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableString.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSMutableString, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// string - static NSMutableString string() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_string); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithCString:encoding: - static NSMutableString? stringWithCString( - ffi.Pointer cString, { - required int encoding, - }) { - final _ret = _objc_msgSend_erqryg( - _class_NSMutableString, - _sel_stringWithCString_encoding_, - cString, - encoding, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithCharacters:length: - static NSMutableString stringWithCharacters( - ffi.Pointer characters, { - required int length, - }) { - final _ret = _objc_msgSend_9x4k8x( - _class_NSMutableString, - _sel_stringWithCharacters_length_, - characters, - length, - ); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfFile:encoding:error: - static NSMutableString? stringWithContentsOfFile( - NSString path, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - _class_NSMutableString, - _sel_stringWithContentsOfFile_encoding_error_, - path.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfFile:usedEncoding:error: - static NSMutableString? stringWithContentsOfFile$1( - NSString path, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - _class_NSMutableString, - _sel_stringWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfURL:encoding:error: - static NSMutableString? stringWithContentsOfURL( - NSURL url, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - _class_NSMutableString, - _sel_stringWithContentsOfURL_encoding_error_, - url.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfURL:usedEncoding:error: - static NSMutableString? stringWithContentsOfURL$1( - NSURL url, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - _class_NSMutableString, - _sel_stringWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithFormat: - static NSMutableString stringWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableString, - _sel_stringWithFormat_, - format.ref.pointer, - ); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithString: - static NSMutableString stringWithString(NSString string$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableString, - _sel_stringWithString_, - string$1.ref.pointer, - ); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithUTF8String: - static NSMutableString? stringWithUTF8String( - ffi.Pointer nullTerminatedCString, - ) { - final _ret = _objc_msgSend_56zxyn( - _class_NSMutableString, - _sel_stringWithUTF8String_, - nullTerminatedCString, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithValidatedFormat:validFormatSpecifiers:error: - static NSMutableString? stringWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableString.stringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSMutableString, - _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableString, - _sel_supportsSecureCoding, - ); - } - - /// autorelease - NSMutableString autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSMutableString init() { - objc.checkOsVersionInternal( - 'NSMutableString.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:length:encoding: - NSMutableString? initWithBytes( - ffi.Pointer bytes, { - required int length, - required int encoding, - }) { - final _ret = _objc_msgSend_9b3h4v( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_encoding_, - bytes, - length, - encoding, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:encoding:deallocator: - NSMutableString? initWithBytesNoCopy( - ffi.Pointer bytes, { - required int length, - required int encoding, - objc.ObjCBlock, ffi.UnsignedLong)>? - deallocator, - }) { - final _ret = _objc_msgSend_1lbgrac( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_encoding_deallocator_, - bytes, - length, - encoding, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:encoding:freeWhenDone: - NSMutableString? initWithBytesNoCopy$1( - ffi.Pointer bytes, { - required int length, - required int encoding, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_k4j8m3( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, - bytes, - length, - encoding, - freeWhenDone, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCString:encoding: - NSMutableString? initWithCString( - ffi.Pointer nullTerminatedCString, { - required int encoding, - }) { - final _ret = _objc_msgSend_erqryg( - this.ref.retainAndReturnPointer(), - _sel_initWithCString_encoding_, - nullTerminatedCString, - encoding, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharacters:length: - NSMutableString initWithCharacters( - ffi.Pointer characters, { - required int length, - }) { - final _ret = _objc_msgSend_9x4k8x( - this.ref.retainAndReturnPointer(), - _sel_initWithCharacters_length_, - characters, - length, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharactersNoCopy:length:deallocator: - NSMutableString initWithCharactersNoCopy( - ffi.Pointer chars, { - required int length, - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >? - deallocator, - }) { - final _ret = _objc_msgSend_talwei( - this.ref.retainAndReturnPointer(), - _sel_initWithCharactersNoCopy_length_deallocator_, - chars, - length, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharactersNoCopy:length:freeWhenDone: - NSMutableString initWithCharactersNoCopy$1( - ffi.Pointer characters, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_lh0jh5( - this.ref.retainAndReturnPointer(), - _sel_initWithCharactersNoCopy_length_freeWhenDone_, - characters, - length, - freeWhenDone, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSMutableString? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:encoding:error: - NSMutableString? initWithContentsOfFile( - NSString path, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_encoding_error_, - path.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:usedEncoding:error: - NSMutableString? initWithContentsOfFile$1( - NSString path, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:encoding:error: - NSMutableString? initWithContentsOfURL( - NSURL url, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_encoding_error_, - url.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:usedEncoding:error: - NSMutableString? initWithContentsOfURL$1( - NSURL url, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithData:encoding: - NSMutableString? initWithData(NSData data, {required int encoding}) { - final _ret = _objc_msgSend_1k4kd9s( - this.ref.retainAndReturnPointer(), - _sel_initWithData_encoding_, - data.ref.pointer, - encoding, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFormat: - NSMutableString initWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithFormat_, - format.ref.pointer, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFormat:locale: - NSMutableString initWithFormat$1( - NSString format, { - objc.ObjCObjectBase? locale, - }) { - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithFormat_locale_, - format.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithString: - NSMutableString initWithString(NSString aString) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithString_, - aString.ref.pointer, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUTF8String: - NSMutableString? initWithUTF8String( - ffi.Pointer nullTerminatedCString, - ) { - final _ret = _objc_msgSend_56zxyn( - this.ref.retainAndReturnPointer(), - _sel_initWithUTF8String_, - nullTerminatedCString, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithValidatedFormat:validFormatSpecifiers:error: - /// - /// iOS: introduced 16.0.0 - /// macOS: introduced 13.0.0 - NSMutableString? initWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithValidatedFormat:validFormatSpecifiers:locale:error: - /// - /// iOS: introduced 16.0.0 - /// macOS: introduced 13.0.0 - NSMutableString? initWithValidatedFormat$1( - NSString format, { - required NSString validFormatSpecifiers, - objc.ObjCObjectBase? locale, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - final _ret = _objc_msgSend_1k0ezzm( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// replaceCharactersInRange:withString: - void replaceCharactersInRange(NSRange range, {required NSString withString}) { - _objc_msgSend_1tv4uax( - this.ref.pointer, - _sel_replaceCharactersInRange_withString_, - range, - withString.ref.pointer, - ); - } - - /// retain - NSMutableString retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSMutableString self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSMutableString constructed with the default `new` method. - factory NSMutableString() => new$(); -} - -/// NSNotification -class NSNotification extends NSObject implements NSCopying, NSCoding { - NSNotification._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSNotification] that points to the same underlying object as [other]. - NSNotification.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSNotification] that wraps the given raw object pointer. - NSNotification.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSNotification]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSNotification, - ); - } - - /// alloc - static NSNotification alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSNotification, _sel_alloc); - return NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSNotification allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSNotification, - _sel_allocWithZone_, - zone, - ); - return NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSNotification new$() { - final _ret = _objc_msgSend_151sglz(_class_NSNotification, _sel_new); - return NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// notificationWithName:object: - static NSNotification notificationWithName( - NSString aName, { - objc.ObjCObjectBase? object, - }) { - final _ret = _objc_msgSend_15qeuct( - _class_NSNotification, - _sel_notificationWithName_object_, - aName.ref.pointer, - object?.ref.pointer ?? ffi.nullptr, - ); - return NSNotification.castFromPointer(_ret, retain: true, release: true); - } - - /// notificationWithName:object:userInfo: - static NSNotification notificationWithName$1( - NSString aName, { - objc.ObjCObjectBase? object, - NSDictionary? userInfo, - }) { - final _ret = _objc_msgSend_11spmsz( - _class_NSNotification, - _sel_notificationWithName_object_userInfo_, - aName.ref.pointer, - object?.ref.pointer ?? ffi.nullptr, - userInfo?.ref.pointer ?? ffi.nullptr, - ); - return NSNotification.castFromPointer(_ret, retain: true, release: true); - } - - /// autorelease - NSNotification autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSNotification.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSNotification init() { - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSNotification? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithName:object:userInfo: - NSNotification initWithName( - NSString name, { - objc.ObjCObjectBase? object, - NSDictionary? userInfo, - }) { - objc.checkOsVersionInternal( - 'NSNotification.initWithName:object:userInfo:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_11spmsz( - this.ref.retainAndReturnPointer(), - _sel_initWithName_object_userInfo_, - name.ref.pointer, - object?.ref.pointer ?? ffi.nullptr, - userInfo?.ref.pointer ?? ffi.nullptr, - ); - return NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// name - NSString get name { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_name); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// object - objc.ObjCObjectBase? get object { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_object); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// retain - NSNotification retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSNotification.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSNotification self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSNotification.castFromPointer(_ret, retain: true, release: true); - } - - /// userInfo - NSDictionary? get userInfo { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); - return _ret.address == 0 - ? null - : NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSNotification constructed with the default `new` method. - factory NSNotification() => new$(); -} - -/// NSNumber -class NSNumber extends NSValue { - NSNumber._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSNumber] that points to the same underlying object as [other]. - NSNumber.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSNumber] that wraps the given raw object pointer. - NSNumber.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSNumber]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSNumber, - ); - } - - /// alloc - static NSNumber alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSNumber, _sel_alloc); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSNumber allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSNumber, - _sel_allocWithZone_, - zone, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSNumber new$() { - final _ret = _objc_msgSend_151sglz(_class_NSNumber, _sel_new); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSNumber, _sel_supportsSecureCoding); - } - - /// boolValue - bool get boolValue { - return _objc_msgSend_91o635(this.ref.pointer, _sel_boolValue); - } - - /// charValue - int get charValue { - return _objc_msgSend_xmlz1t(this.ref.pointer, _sel_charValue); - } - - /// compare: - NSComparisonResult compare(NSNumber otherNumber) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_compare_, - otherNumber.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// doubleValue - double get doubleValue { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_doubleValue) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_doubleValue); - } - - /// floatValue - double get floatValue { - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(this.ref.pointer, _sel_floatValue) - : _objc_msgSend_2cgrxl(this.ref.pointer, _sel_floatValue); - } - - /// init - NSNumber init() { - objc.checkOsVersionInternal( - 'NSNumber.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBool: - NSNumber initWithBool(bool value) { - final _ret = _objc_msgSend_1t6aok9( - this.ref.retainAndReturnPointer(), - _sel_initWithBool_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:objCType: - NSNumber initWithBytes( - ffi.Pointer value, { - required ffi.Pointer objCType, - }) { - final _ret = _objc_msgSend_e9mncn( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_objCType_, - value, - objCType, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithChar: - NSNumber initWithChar(int value) { - final _ret = _objc_msgSend_13mclwd( - this.ref.retainAndReturnPointer(), - _sel_initWithChar_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSNumber? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithDouble: - NSNumber initWithDouble(double value) { - final _ret = _objc_msgSend_oa8mke( - this.ref.retainAndReturnPointer(), - _sel_initWithDouble_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFloat: - NSNumber initWithFloat(double value) { - final _ret = _objc_msgSend_et8cuh( - this.ref.retainAndReturnPointer(), - _sel_initWithFloat_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithInt: - NSNumber initWithInt(int value) { - final _ret = _objc_msgSend_14hvw5k( - this.ref.retainAndReturnPointer(), - _sel_initWithInt_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithInteger: - NSNumber initWithInteger(int value) { - objc.checkOsVersionInternal( - 'NSNumber.initWithInteger:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_qugqlf( - this.ref.retainAndReturnPointer(), - _sel_initWithInteger_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithLong: - NSNumber initWithLong(int value) { - final _ret = _objc_msgSend_qugqlf( - this.ref.retainAndReturnPointer(), - _sel_initWithLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithLongLong: - NSNumber initWithLongLong(int value) { - final _ret = _objc_msgSend_16f0drb( - this.ref.retainAndReturnPointer(), - _sel_initWithLongLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithShort: - NSNumber initWithShort(int value) { - final _ret = _objc_msgSend_68x6r1( - this.ref.retainAndReturnPointer(), - _sel_initWithShort_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedChar: - NSNumber initWithUnsignedChar(int value) { - final _ret = _objc_msgSend_7uautw( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedChar_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedInt: - NSNumber initWithUnsignedInt(int value) { - final _ret = _objc_msgSend_degb40( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedInt_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedInteger: - NSNumber initWithUnsignedInteger(int value) { - objc.checkOsVersionInternal( - 'NSNumber.initWithUnsignedInteger:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedInteger_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedLong: - NSNumber initWithUnsignedLong(int value) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedLongLong: - NSNumber initWithUnsignedLongLong(int value) { - final _ret = _objc_msgSend_1x2hskc( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedLongLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedShort: - NSNumber initWithUnsignedShort(int value) { - final _ret = _objc_msgSend_1njucl2( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedShort_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// intValue - int get intValue { - return _objc_msgSend_13yqbb6(this.ref.pointer, _sel_intValue); - } - - /// integerValue - int get integerValue { - objc.checkOsVersionInternal( - 'NSNumber.integerValue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_integerValue); - } - - /// isEqualToNumber: - bool isEqualToNumber(NSNumber number) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToNumber_, - number.ref.pointer, - ); - } - - /// longLongValue - int get longLongValue { - return _objc_msgSend_1k101e3(this.ref.pointer, _sel_longLongValue); - } - - /// longValue - int get longValue { - return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_longValue); - } - - /// shortValue - int get shortValue { - return _objc_msgSend_1jwityx(this.ref.pointer, _sel_shortValue); - } - - /// stringValue - NSString get stringValue { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_stringValue); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// unsignedCharValue - int get unsignedCharValue { - return _objc_msgSend_1ko4qka(this.ref.pointer, _sel_unsignedCharValue); - } - - /// unsignedIntValue - int get unsignedIntValue { - return _objc_msgSend_3pyzne(this.ref.pointer, _sel_unsignedIntValue); - } - - /// unsignedIntegerValue - int get unsignedIntegerValue { - objc.checkOsVersionInternal( - 'NSNumber.unsignedIntegerValue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_unsignedIntegerValue); - } - - /// unsignedLongLongValue - int get unsignedLongLongValue { - return _objc_msgSend_1p4gbjy(this.ref.pointer, _sel_unsignedLongLongValue); - } - - /// unsignedLongValue - int get unsignedLongValue { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_unsignedLongValue); - } - - /// unsignedShortValue - int get unsignedShortValue { - return _objc_msgSend_ud8gg(this.ref.pointer, _sel_unsignedShortValue); - } - - /// Returns a new instance of NSNumber constructed with the default `new` method. - factory NSNumber() => new$(); -} - -/// NSNumberCreation -extension NSNumberCreation on NSNumber { - /// numberWithBool: - static NSNumber numberWithBool(bool value) { - final _ret = _objc_msgSend_1t6aok9( - _class_NSNumber, - _sel_numberWithBool_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithChar: - static NSNumber numberWithChar(int value) { - final _ret = _objc_msgSend_13mclwd( - _class_NSNumber, - _sel_numberWithChar_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithDouble: - static NSNumber numberWithDouble(double value) { - final _ret = _objc_msgSend_oa8mke( - _class_NSNumber, - _sel_numberWithDouble_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithFloat: - static NSNumber numberWithFloat(double value) { - final _ret = _objc_msgSend_et8cuh( - _class_NSNumber, - _sel_numberWithFloat_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithInt: - static NSNumber numberWithInt(int value) { - final _ret = _objc_msgSend_14hvw5k( - _class_NSNumber, - _sel_numberWithInt_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithInteger: - static NSNumber numberWithInteger(int value) { - objc.checkOsVersionInternal( - 'NSNumber.numberWithInteger:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_qugqlf( - _class_NSNumber, - _sel_numberWithInteger_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithLong: - static NSNumber numberWithLong(int value) { - final _ret = _objc_msgSend_qugqlf( - _class_NSNumber, - _sel_numberWithLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithLongLong: - static NSNumber numberWithLongLong(int value) { - final _ret = _objc_msgSend_16f0drb( - _class_NSNumber, - _sel_numberWithLongLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithShort: - static NSNumber numberWithShort(int value) { - final _ret = _objc_msgSend_68x6r1( - _class_NSNumber, - _sel_numberWithShort_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedChar: - static NSNumber numberWithUnsignedChar(int value) { - final _ret = _objc_msgSend_7uautw( - _class_NSNumber, - _sel_numberWithUnsignedChar_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedInt: - static NSNumber numberWithUnsignedInt(int value) { - final _ret = _objc_msgSend_degb40( - _class_NSNumber, - _sel_numberWithUnsignedInt_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedInteger: - static NSNumber numberWithUnsignedInteger(int value) { - objc.checkOsVersionInternal( - 'NSNumber.numberWithUnsignedInteger:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - _class_NSNumber, - _sel_numberWithUnsignedInteger_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedLong: - static NSNumber numberWithUnsignedLong(int value) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSNumber, - _sel_numberWithUnsignedLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedLongLong: - static NSNumber numberWithUnsignedLongLong(int value) { - final _ret = _objc_msgSend_1x2hskc( - _class_NSNumber, - _sel_numberWithUnsignedLongLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedShort: - static NSNumber numberWithUnsignedShort(int value) { - final _ret = _objc_msgSend_1njucl2( - _class_NSNumber, - _sel_numberWithUnsignedShort_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } -} - -/// NSNumberIsFloat -extension NSNumberIsFloat on NSNumber { - /// isFloat - bool get isFloat { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isFloat); - } -} - -/// NSObject -class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { - NSObject._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSObject', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSObject] that points to the same underlying object as [other]. - NSObject.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSObject] that wraps the given raw object pointer. - NSObject.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSObject]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSObject, - ); - } - - /// alloc - static NSObject alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_alloc); - return NSObject.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSObject allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSObject, - _sel_allocWithZone_, - zone, - ); - return NSObject.castFromPointer(_ret, retain: false, release: true); - } - - /// class - static objc.ObjCObjectBase class$() { - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_class); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// conformsToProtocol: - static bool conformsToProtocol(Protocol protocol) { - objc.checkOsVersionInternal( - 'NSObject.conformsToProtocol:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _class_NSObject, - _sel_conformsToProtocol_, - protocol.ref.pointer, - ); - } - - /// copyWithZone: - static objc.ObjCObjectBase copyWithZone(ffi.Pointer zone) { - objc.checkOsVersionInternal( - 'NSObject.copyWithZone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_1cwp428( - _class_NSObject, - _sel_copyWithZone_, - zone, - ); - return objc.ObjCObjectBase(_ret, retain: false, release: true); - } - - /// debugDescription - static NSString debugDescription() { - objc.checkOsVersionInternal( - 'NSObject.debugDescription', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_debugDescription); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// description - static NSString description() { - objc.checkOsVersionInternal( - 'NSObject.description', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// hash - static int hash() { - objc.checkOsVersionInternal( - 'NSObject.hash', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xw2lbc(_class_NSObject, _sel_hash); - } - - /// initialize - static void initialize() { - objc.checkOsVersionInternal( - 'NSObject.initialize', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1pl9qdv(_class_NSObject, _sel_initialize); - } - - /// instanceMethodForSelector: - static ffi.Pointer> - instanceMethodForSelector(ffi.Pointer aSelector) { - objc.checkOsVersionInternal( - 'NSObject.instanceMethodForSelector:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1pa9f4m( - _class_NSObject, - _sel_instanceMethodForSelector_, - aSelector, - ); - } - - /// instanceMethodSignatureForSelector: - static NSMethodSignature instanceMethodSignatureForSelector( - ffi.Pointer aSelector, - ) { - final _ret = _objc_msgSend_3ctkt6( - _class_NSObject, - _sel_instanceMethodSignatureForSelector_, - aSelector, - ); - return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); - } - - /// instancesRespondToSelector: - static bool instancesRespondToSelector( - ffi.Pointer aSelector, - ) { - objc.checkOsVersionInternal( - 'NSObject.instancesRespondToSelector:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1srf6wk( - _class_NSObject, - _sel_instancesRespondToSelector_, - aSelector, - ); - } - - /// isSubclassOfClass: - static bool isSubclassOfClass(objc.ObjCObjectBase aClass) { - objc.checkOsVersionInternal( - 'NSObject.isSubclassOfClass:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _class_NSObject, - _sel_isSubclassOfClass_, - aClass.ref.pointer, - ); - } - - /// load - static void load() { - objc.checkOsVersionInternal( - 'NSObject.load', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1pl9qdv(_class_NSObject, _sel_load); - } - - /// mutableCopyWithZone: - static objc.ObjCObjectBase mutableCopyWithZone(ffi.Pointer zone) { - objc.checkOsVersionInternal( - 'NSObject.mutableCopyWithZone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_1cwp428( - _class_NSObject, - _sel_mutableCopyWithZone_, - zone, - ); - return objc.ObjCObjectBase(_ret, retain: false, release: true); - } - - /// new - static NSObject new$() { - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_new); - return NSObject.castFromPointer(_ret, retain: false, release: true); - } - - /// resolveClassMethod: - static bool resolveClassMethod(ffi.Pointer sel) { - objc.checkOsVersionInternal( - 'NSObject.resolveClassMethod:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1srf6wk( - _class_NSObject, - _sel_resolveClassMethod_, - sel, - ); - } - - /// resolveInstanceMethod: - static bool resolveInstanceMethod(ffi.Pointer sel) { - objc.checkOsVersionInternal( - 'NSObject.resolveInstanceMethod:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1srf6wk( - _class_NSObject, - _sel_resolveInstanceMethod_, - sel, - ); - } - - /// superclass - static objc.ObjCObjectBase superclass() { - objc.checkOsVersionInternal( - 'NSObject.superclass', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_superclass); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// autorelease - NSObject autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSObject.castFromPointer(_ret, retain: true, release: true); - } - - /// class - objc.ObjCObjectBase class$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_class); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// conformsToProtocol: - bool conformsToProtocol$1(Protocol aProtocol) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_conformsToProtocol_, - aProtocol.ref.pointer, - ); - } - - /// copy - objc.ObjCObjectBase copy() { - objc.checkOsVersionInternal( - 'NSObject.copy', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_copy); - return objc.ObjCObjectBase(_ret, retain: false, release: true); - } - - /// dealloc - void dealloc() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); - } - - /// debugDescription - NSString get debugDescription$1 { - if (!objc.respondsToSelector(this.ref.pointer, _sel_debugDescription)) { - throw objc.UnimplementedOptionalMethodException( - 'NSObject', - 'debugDescription', - ); - } - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_debugDescription); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// description - NSString get description$1 { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// doesNotRecognizeSelector: - void doesNotRecognizeSelector(ffi.Pointer aSelector) { - objc.checkOsVersionInternal( - 'NSObject.doesNotRecognizeSelector:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d9e4oe( - this.ref.pointer, - _sel_doesNotRecognizeSelector_, - aSelector, - ); - } - - /// forwardInvocation: - void forwardInvocation(NSInvocation anInvocation) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_forwardInvocation_, - anInvocation.ref.pointer, - ); - } - - /// forwardingTargetForSelector: - objc.ObjCObjectBase forwardingTargetForSelector( - ffi.Pointer aSelector, - ) { - objc.checkOsVersionInternal( - 'NSObject.forwardingTargetForSelector:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_forwardingTargetForSelector_, - aSelector, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// hash - int get hash$1 { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_hash); - } - - /// init - NSObject init() { - objc.checkOsVersionInternal( - 'NSObject.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSObject.castFromPointer(_ret, retain: false, release: true); - } - - /// isEqual: - bool isEqual(objc.ObjCObjectBase object) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqual_, - object.ref.pointer, - ); - } - - /// isKindOfClass: - bool isKindOfClass(objc.ObjCObjectBase aClass) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isKindOfClass_, - aClass.ref.pointer, - ); - } - - /// isMemberOfClass: - bool isMemberOfClass(objc.ObjCObjectBase aClass) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isMemberOfClass_, - aClass.ref.pointer, - ); - } - - /// isProxy - bool get isProxy { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isProxy); - } - - /// methodForSelector: - ffi.Pointer> methodForSelector( - ffi.Pointer aSelector, - ) { - objc.checkOsVersionInternal( - 'NSObject.methodForSelector:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1pa9f4m( - this.ref.pointer, - _sel_methodForSelector_, - aSelector, - ); - } - - /// methodSignatureForSelector: - NSMethodSignature methodSignatureForSelector( - ffi.Pointer aSelector, - ) { - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_methodSignatureForSelector_, - aSelector, - ); - return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); - } - - /// mutableCopy - objc.ObjCObjectBase mutableCopy() { - objc.checkOsVersionInternal( - 'NSObject.mutableCopy', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_mutableCopy); - return objc.ObjCObjectBase(_ret, retain: false, release: true); - } - - /// performSelector: - objc.ObjCObjectBase performSelector( - ffi.Pointer aSelector, - ) { - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_performSelector_, - aSelector, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// performSelector:withObject: - objc.ObjCObjectBase performSelector$1( - ffi.Pointer aSelector, { - required objc.ObjCObjectBase withObject, - }) { - final _ret = _objc_msgSend_gx50so( - this.ref.pointer, - _sel_performSelector_withObject_, - aSelector, - withObject.ref.pointer, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// performSelector:withObject:withObject: - objc.ObjCObjectBase performSelector$2( - ffi.Pointer aSelector, { - required objc.ObjCObjectBase withObject, - required objc.ObjCObjectBase withObject$1, - }) { - final _ret = _objc_msgSend_cfx8ce( - this.ref.pointer, - _sel_performSelector_withObject_withObject_, - aSelector, - withObject.ref.pointer, - withObject$1.ref.pointer, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// release - void release() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_release); - } - - /// respondsToSelector: - bool respondsToSelector(ffi.Pointer aSelector) { - return _objc_msgSend_1srf6wk( - this.ref.pointer, - _sel_respondsToSelector_, - aSelector, - ); - } - - /// retain - NSObject retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSObject.castFromPointer(_ret, retain: true, release: true); - } - - /// retainCount - int retainCount() { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_retainCount); - } - - /// self - NSObject self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSObject.castFromPointer(_ret, retain: true, release: true); - } - - /// superclass - objc.ObjCObjectBase get superclass$1 { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_superclass); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// zone - ffi.Pointer zone() { - return _objc_msgSend_sz90oi(this.ref.pointer, _sel_zone); - } - - /// Returns a new instance of NSObject constructed with the default `new` method. - factory NSObject() => new$(); -} - -/// NSObject -interface class NSObjectProtocol extends objc.ObjCProtocolBase { - NSObjectProtocol._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSObjectProtocol] that points to the same underlying object as [other]. - NSObjectProtocol.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSObjectProtocol] that wraps the given raw object pointer. - NSObjectProtocol.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSObjectProtocol]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSObject, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSObject.cast()); - - /// Builds an object that implements the NSObject protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSObjectProtocol implement({ - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implement(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - return NSObjectProtocol.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSObject protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implement(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSObject protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSObjectProtocol implementAsListener({ - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implementAsListener(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - return NSObjectProtocol.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSObject protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implementAsListener(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSObject protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSObjectProtocol implementAsBlocking({ - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implementAsBlocking(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - return NSObjectProtocol.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSObject protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implementAsBlocking(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - } - - /// autorelease - static final autorelease = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_autorelease, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_autorelease, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// class - static final class$ = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_class, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_class, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// conformsToProtocol: - static final conformsToProtocol_ = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_conformsToProtocol_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_conformsToProtocol_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(Protocol) func) => - ObjCBlock_bool_ffiVoid_Protocol.fromFunction( - (ffi.Pointer _, Protocol arg1) => func(arg1), - ), - ); - - /// debugDescription - static final debugDescription = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_debugDescription, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_debugDescription, - isRequired: false, - isInstanceMethod: true, - ), - (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// description - static final description = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_description, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_description, - isRequired: true, - isInstanceMethod: true, - ), - (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// hash - static final hash = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_hash, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1ckyi24) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_hash, - isRequired: true, - isInstanceMethod: true, - ), - (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// isEqual: - static final isEqual_ = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isEqual_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isEqual_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.ObjCObjectBase) func) => - ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( - (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), - ), - ); - - /// isKindOfClass: - static final isKindOfClass_ = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isKindOfClass_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isKindOfClass_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.ObjCObjectBase) func) => - ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( - (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), - ), - ); - - /// isMemberOfClass: - static final isMemberOfClass_ = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isMemberOfClass_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isMemberOfClass_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.ObjCObjectBase) func) => - ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( - (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), - ), - ); - - /// isProxy - static final isProxy = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isProxy, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_e3qsqz) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isProxy, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// performSelector: - static final performSelector_ = - objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function(ffi.Pointer) - >( - _protocol_NSObject, - _sel_performSelector_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_50as9u) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_performSelector_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function(ffi.Pointer) func) => - ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1), - ), - ); - - /// performSelector:withObject: - static final performSelector_withObject_ = - objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - >( - _protocol_NSObject, - _sel_performSelector_withObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mllhpc) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_performSelector_withObject_, - isRequired: true, - isInstanceMethod: true, - ), - ( - objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - func, - ) => - ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2, - ) => func(arg1, arg2), - ), - ); - - /// performSelector:withObject:withObject: - static final performSelector_withObject_withObject_ = - objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - >( - _protocol_NSObject, - _sel_performSelector_withObject_withObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_c7gk2u) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_performSelector_withObject_withObject_, - isRequired: true, - isInstanceMethod: true, - ), - ( - objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - func, - ) => - ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2, - objc.ObjCObjectBase arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// release - static final release = objc.ObjCProtocolListenableMethod( - _protocol_NSObject, - _sel_release, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_ovsamd) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_release, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => - ObjCBlock_ffiVoid_ffiVoid.listener((ffi.Pointer _) => func()), - (void Function() func) => - ObjCBlock_ffiVoid_ffiVoid.blocking((ffi.Pointer _) => func()), - ); - - /// respondsToSelector: - static final respondsToSelector_ = - objc.ObjCProtocolMethod)>( - _protocol_NSObject, - _sel_respondsToSelector_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_w1e3k0) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_respondsToSelector_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(ffi.Pointer) func) => - ObjCBlock_bool_ffiVoid_objcObjCSelector.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1), - ), - ); - - /// retain - static final retain = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_retain, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_retain, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// retainCount - static final retainCount = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_retainCount, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1ckyi24) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_retainCount, - isRequired: true, - isInstanceMethod: true, - ), - (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// self - static final self$1 = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_self, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_self, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// superclass - static final superclass = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_superclass, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_superclass, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// zone - static final zone = objc.ObjCProtocolMethod Function()>( - _protocol_NSObject, - _sel_zone, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1a8cl66) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_zone, - isRequired: true, - isInstanceMethod: true, - ), - (ffi.Pointer Function() func) => - ObjCBlock_NSZone_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); -} - -/// NSOrderedCollectionChange -/// -/// iOS: introduced 13.0.0 -/// macOS: introduced 10.15.0 -class NSOrderedCollectionChange extends NSObject { - NSOrderedCollectionChange._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - } - - /// Constructs a [NSOrderedCollectionChange] that points to the same underlying object as [other]. - NSOrderedCollectionChange.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSOrderedCollectionChange] that wraps the given raw object pointer. - NSOrderedCollectionChange.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSOrderedCollectionChange]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSOrderedCollectionChange, - ); - } - - /// alloc - static NSOrderedCollectionChange alloc() { - final _ret = _objc_msgSend_151sglz( - _class_NSOrderedCollectionChange, - _sel_alloc, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSOrderedCollectionChange allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSOrderedCollectionChange, - _sel_allocWithZone_, - zone, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// changeWithObject:type:index: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - static NSOrderedCollectionChange changeWithObject( - objc.ObjCObjectBase? anObject, { - required NSCollectionChangeType type, - required int index, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.changeWithObject:type:index:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_vbymrb( - _class_NSOrderedCollectionChange, - _sel_changeWithObject_type_index_, - anObject?.ref.pointer ?? ffi.nullptr, - type.value, - index, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// changeWithObject:type:index:associatedIndex: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - static NSOrderedCollectionChange changeWithObject$1( - objc.ObjCObjectBase? anObject, { - required NSCollectionChangeType type, - required int index, - required int associatedIndex, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.changeWithObject:type:index:associatedIndex:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1egc1c( - _class_NSOrderedCollectionChange, - _sel_changeWithObject_type_index_associatedIndex_, - anObject?.ref.pointer ?? ffi.nullptr, - type.value, - index, - associatedIndex, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// new - static NSOrderedCollectionChange new$() { - final _ret = _objc_msgSend_151sglz( - _class_NSOrderedCollectionChange, - _sel_new, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - int get associatedIndex { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.associatedIndex', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_associatedIndex); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSCollectionChangeType get changeType { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.changeType', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_hc8exi(this.ref.pointer, _sel_changeType); - return NSCollectionChangeType.fromValue(_ret); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - int get index { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.index', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_index); - } - - /// init - NSOrderedCollectionChange init() { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObject:type:index: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionChange initWithObject( - objc.ObjCObjectBase? anObject, { - required NSCollectionChangeType type, - required int index$1, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.initWithObject:type:index:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_vbymrb( - this.ref.retainAndReturnPointer(), - _sel_initWithObject_type_index_, - anObject?.ref.pointer ?? ffi.nullptr, - type.value, - index$1, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObject:type:index:associatedIndex: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionChange initWithObject$1( - objc.ObjCObjectBase? anObject, { - required NSCollectionChangeType type, - required int index$1, - required int associatedIndex$1, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.initWithObject:type:index:associatedIndex:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1egc1c( - this.ref.retainAndReturnPointer(), - _sel_initWithObject_type_index_associatedIndex_, - anObject?.ref.pointer ?? ffi.nullptr, - type.value, - index$1, - associatedIndex$1, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - objc.ObjCObjectBase? get object { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.object', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_object); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSOrderedCollectionChange constructed with the default `new` method. - factory NSOrderedCollectionChange() => new$(); -} - -/// NSOrderedCollectionDifference -/// -/// iOS: introduced 13.0.0 -/// macOS: introduced 10.15.0 -class NSOrderedCollectionDifference extends NSObject - implements NSFastEnumeration { - NSOrderedCollectionDifference._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - } - - /// Constructs a [NSOrderedCollectionDifference] that points to the same underlying object as [other]. - NSOrderedCollectionDifference.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSOrderedCollectionDifference] that wraps the given raw object pointer. - NSOrderedCollectionDifference.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSOrderedCollectionDifference]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSOrderedCollectionDifference, - ); - } - - /// alloc - static NSOrderedCollectionDifference alloc() { - final _ret = _objc_msgSend_151sglz( - _class_NSOrderedCollectionDifference, - _sel_alloc, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSOrderedCollectionDifference allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSOrderedCollectionDifference, - _sel_allocWithZone_, - zone, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// new - static NSOrderedCollectionDifference new$() { - final _ret = _objc_msgSend_151sglz( - _class_NSOrderedCollectionDifference, - _sel_new, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// differenceByTransformingChangesWithBlock: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionDifference differenceByTransformingChangesWithBlock( - objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.differenceByTransformingChangesWithBlock:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_differenceByTransformingChangesWithBlock_, - block.ref.pointer, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - bool get hasChanges { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.hasChanges', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_hasChanges); - } - - /// init - NSOrderedCollectionDifference init() { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithChanges: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionDifference initWithChanges(NSArray changes) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.initWithChanges:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithChanges_, - changes.ref.pointer, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionDifference initWithInsertIndexes( - NSIndexSet inserts, { - NSArray? insertedObjects, - required NSIndexSet removeIndexes, - NSArray? removedObjects, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_s92gih( - this.ref.retainAndReturnPointer(), - _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_, - inserts.ref.pointer, - insertedObjects?.ref.pointer ?? ffi.nullptr, - removeIndexes.ref.pointer, - removedObjects?.ref.pointer ?? ffi.nullptr, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionDifference initWithInsertIndexes$1( - NSIndexSet inserts, { - NSArray? insertedObjects, - required NSIndexSet removeIndexes, - NSArray? removedObjects, - required NSArray additionalChanges, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_3cbdpb( - this.ref.retainAndReturnPointer(), - _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_, - inserts.ref.pointer, - insertedObjects?.ref.pointer ?? ffi.nullptr, - removeIndexes.ref.pointer, - removedObjects?.ref.pointer ?? ffi.nullptr, - additionalChanges.ref.pointer, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSArray get insertions { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.insertions', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_insertions); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// inverseDifference - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionDifference inverseDifference() { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.inverseDifference', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_inverseDifference, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSArray get removals { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.removals', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_removals); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSOrderedCollectionDifference constructed with the default `new` method. - factory NSOrderedCollectionDifference() => new$(); -} - -/// iOS: introduced 13.0.0 -/// macOS: introduced 10.15.0 -enum NSOrderedCollectionDifferenceCalculationOptions { - NSOrderedCollectionDifferenceCalculationOmitInsertedObjects(1), - NSOrderedCollectionDifferenceCalculationOmitRemovedObjects(2), - NSOrderedCollectionDifferenceCalculationInferMoves(4); - - final int value; - const NSOrderedCollectionDifferenceCalculationOptions(this.value); - - static NSOrderedCollectionDifferenceCalculationOptions fromValue( - int value, - ) => switch (value) { - 1 => NSOrderedCollectionDifferenceCalculationOmitInsertedObjects, - 2 => NSOrderedCollectionDifferenceCalculationOmitRemovedObjects, - 4 => NSOrderedCollectionDifferenceCalculationInferMoves, - _ => throw ArgumentError( - 'Unknown value for NSOrderedCollectionDifferenceCalculationOptions: $value', - ), - }; -} - -/// NSOrderedSet -class NSOrderedSet extends NSObject - implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - NSOrderedSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSOrderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } - - /// Constructs a [NSOrderedSet] that points to the same underlying object as [other]. - NSOrderedSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSOrderedSet] that wraps the given raw object pointer. - NSOrderedSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSOrderedSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSOrderedSet, - ); - } - - /// alloc - static NSOrderedSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_alloc); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSOrderedSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSOrderedSet, - _sel_allocWithZone_, - zone, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSOrderedSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_new); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// orderedSet - static NSOrderedSet orderedSet() { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithArray: - static NSOrderedSet orderedSetWithArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithArray_, - array.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithArray:range:copyItems: - static NSOrderedSet orderedSetWithArray$1( - NSArray array, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - _class_NSOrderedSet, - _sel_orderedSetWithArray_range_copyItems_, - array.ref.pointer, - range, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithObject: - static NSOrderedSet orderedSetWithObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithObject_, - object.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithObjects: - static NSOrderedSet orderedSetWithObjects(objc.ObjCObjectBase firstObj) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithObjects_, - firstObj.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithObjects:count: - static NSOrderedSet orderedSetWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_zmbtbd( - _class_NSOrderedSet, - _sel_orderedSetWithObjects_count_, - objects, - count, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet: - static NSOrderedSet orderedSetWithOrderedSet(NSOrderedSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_, - set$.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet:range:copyItems: - static NSOrderedSet orderedSetWithOrderedSet$1( - NSOrderedSet set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithSet: - static NSOrderedSet orderedSetWithSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithSet_, - set$.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithSet:copyItems: - static NSOrderedSet orderedSetWithSet$1( - NSSet set$, { - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - _class_NSOrderedSet, - _sel_orderedSetWithSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSOrderedSet, _sel_supportsSecureCoding); - } - - /// count - int get count { - objc.checkOsVersionInternal( - 'NSOrderedSet.count', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// indexOfObject: - int indexOfObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexOfObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_1vd1c5m( - this.ref.pointer, - _sel_indexOfObject_, - object.ref.pointer, - ); - } - - /// init - NSOrderedSet init() { - objc.checkOsVersionInternal( - 'NSOrderedSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray: - NSOrderedSet initWithArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - NSOrderedSet initWithArray$1(NSArray set$, {required bool copyItems}) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray:range:copyItems: - NSOrderedSet initWithArray$2( - NSArray set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSOrderedSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObject: - NSOrderedSet initWithObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObject_, - object.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects: - NSOrderedSet initWithObjects(objc.ObjCObjectBase firstObj) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:count: - NSOrderedSet initWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithOrderedSet: - NSOrderedSet initWithOrderedSet(NSOrderedSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_, - set$.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithOrderedSet:copyItems: - NSOrderedSet initWithOrderedSet$1( - NSOrderedSet set$, { - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithOrderedSet:range:copyItems: - NSOrderedSet initWithOrderedSet$2( - NSOrderedSet set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet: - NSOrderedSet initWithSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_, - set$.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - NSOrderedSet initWithSet$1(NSSet set$, {required bool copyItems}) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// objectAtIndex: - objc.ObjCObjectBase objectAtIndex(int idx) { - objc.checkOsVersionInternal( - 'NSOrderedSet.objectAtIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_objectAtIndex_, - idx, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSOrderedSet constructed with the default `new` method. - factory NSOrderedSet() => new$(); -} - -/// NSOutputStream -class NSOutputStream extends NSStream { - NSOutputStream._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSOutputStream] that points to the same underlying object as [other]. - NSOutputStream.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSOutputStream] that wraps the given raw object pointer. - NSOutputStream.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSOutputStream]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSOutputStream, - ); - } - - /// outputStreamToBuffer:capacity: - static NSOutputStream outputStreamToBuffer( - ffi.Pointer buffer, { - required int capacity, - }) { - final _ret = _objc_msgSend_158ju31( - _class_NSOutputStream, - _sel_outputStreamToBuffer_capacity_, - buffer, - capacity, - ); - return NSOutputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// outputStreamToFileAtPath:append: - static NSOutputStream outputStreamToFileAtPath( - NSString path, { - required bool append, - }) { - final _ret = _objc_msgSend_17amj0z( - _class_NSOutputStream, - _sel_outputStreamToFileAtPath_append_, - path.ref.pointer, - append, - ); - return NSOutputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// outputStreamToMemory - static NSOutputStream outputStreamToMemory() { - final _ret = _objc_msgSend_151sglz( - _class_NSOutputStream, - _sel_outputStreamToMemory, - ); - return NSOutputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// outputStreamWithURL:append: - static NSOutputStream? outputStreamWithURL( - NSURL url, { - required bool append, - }) { - objc.checkOsVersionInternal( - 'NSOutputStream.outputStreamWithURL:append:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - _class_NSOutputStream, - _sel_outputStreamWithURL_append_, - url.ref.pointer, - append, - ); - return _ret.address == 0 - ? null - : NSOutputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// hasSpaceAvailable - bool get hasSpaceAvailable { - return _objc_msgSend_91o635(this.ref.pointer, _sel_hasSpaceAvailable); - } - - /// initToBuffer:capacity: - NSOutputStream initToBuffer( - ffi.Pointer buffer, { - required int capacity, - }) { - final _ret = _objc_msgSend_158ju31( - this.ref.retainAndReturnPointer(), - _sel_initToBuffer_capacity_, - buffer, - capacity, - ); - return NSOutputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// initToFileAtPath:append: - NSOutputStream? initToFileAtPath(NSString path, {required bool append}) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initToFileAtPath_append_, - path.ref.pointer, - append, - ); - return _ret.address == 0 - ? null - : NSOutputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// initToMemory - NSOutputStream initToMemory() { - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_initToMemory, - ); - return NSOutputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithURL:append: - NSOutputStream? initWithURL(NSURL url, {required bool append}) { - objc.checkOsVersionInternal( - 'NSOutputStream.initWithURL:append:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_append_, - url.ref.pointer, - append, - ); - return _ret.address == 0 - ? null - : NSOutputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// write:maxLength: - int write(ffi.Pointer buffer, {required int maxLength}) { - return _objc_msgSend_11e9f5x( - this.ref.pointer, - _sel_write_maxLength_, - buffer, - maxLength, - ); - } -} - -/// NSPort -class NSPort extends NSObject implements NSCopying, NSCoding { - NSPort._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSPort] that points to the same underlying object as [other]. - NSPort.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSPort] that wraps the given raw object pointer. - NSPort.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSPort]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSPort, - ); - } - - /// alloc - static NSPort alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSPort, _sel_alloc); - return NSPort.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSPort allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSPort, - _sel_allocWithZone_, - zone, - ); - return NSPort.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSPort new$() { - final _ret = _objc_msgSend_151sglz(_class_NSPort, _sel_new); - return NSPort.castFromPointer(_ret, retain: false, release: true); - } - - /// port - static NSPort port() { - final _ret = _objc_msgSend_151sglz(_class_NSPort, _sel_port); - return NSPort.castFromPointer(_ret, retain: true, release: true); - } - - /// autorelease - NSPort autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSPort.castFromPointer(_ret, retain: true, release: true); - } - - /// delegate - NSPortDelegate? delegate() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_delegate); - return _ret.address == 0 - ? null - : NSPortDelegate.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSPort init() { - objc.checkOsVersionInternal( - 'NSPort.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSPort.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSPort? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSPort.castFromPointer(_ret, retain: false, release: true); - } - - /// invalidate - void invalidate() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_invalidate); - } - - /// isValid - bool get valid { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isValid); - } - - /// removeFromRunLoop:forMode: - void removeFromRunLoop(NSRunLoop runLoop, {required NSString forMode}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_removeFromRunLoop_forMode_, - runLoop.ref.pointer, - forMode.ref.pointer, - ); - } - - /// reservedSpaceLength - int get reservedSpaceLength { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_reservedSpaceLength); - } - - /// retain - NSPort retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSPort.castFromPointer(_ret, retain: true, release: true); - } - - /// scheduleInRunLoop:forMode: - void scheduleInRunLoop(NSRunLoop runLoop, {required NSString forMode}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_scheduleInRunLoop_forMode_, - runLoop.ref.pointer, - forMode.ref.pointer, - ); - } - - /// self - NSPort self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSPort.castFromPointer(_ret, retain: true, release: true); - } - - /// sendBeforeDate:components:from:reserved: - bool sendBeforeDate( - NSDate limitDate, { - NSMutableArray? components, - NSPort? from, - required int reserved, - }) { - return _objc_msgSend_1frfu5e( - this.ref.pointer, - _sel_sendBeforeDate_components_from_reserved_, - limitDate.ref.pointer, - components?.ref.pointer ?? ffi.nullptr, - from?.ref.pointer ?? ffi.nullptr, - reserved, - ); - } - - /// sendBeforeDate:msgid:components:from:reserved: - bool sendBeforeDate$1( - NSDate limitDate, { - required int msgid, - NSMutableArray? components, - NSPort? from, - required int reserved, - }) { - return _objc_msgSend_gupwtj( - this.ref.pointer, - _sel_sendBeforeDate_msgid_components_from_reserved_, - limitDate.ref.pointer, - msgid, - components?.ref.pointer ?? ffi.nullptr, - from?.ref.pointer ?? ffi.nullptr, - reserved, - ); - } - - /// setDelegate: - void setDelegate(NSPortDelegate? anObject) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setDelegate_, - anObject?.ref.pointer ?? ffi.nullptr, - ); - } - - /// Returns a new instance of NSPort constructed with the default `new` method. - factory NSPort() => new$(); -} - -/// NSPortDelegate -interface class NSPortDelegate extends objc.ObjCProtocolBase - implements NSObjectProtocol { - NSPortDelegate._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSPortDelegate] that points to the same underlying object as [other]. - NSPortDelegate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSPortDelegate] that wraps the given raw object pointer. - NSPortDelegate.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSPortDelegate]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSPortDelegate, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSPortDelegate.cast()); - - /// Builds an object that implements the NSPortDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSPortDelegate implement({ - void Function(NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSPortDelegate'); - NSPortDelegate.handlePortMessage_.implement(builder, handlePortMessage_); - builder.addProtocol($protocol); - return NSPortDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSPortDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - NSPortDelegate.handlePortMessage_.implement(builder, handlePortMessage_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSPortDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSPortDelegate implementAsListener({ - void Function(NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSPortDelegate'); - NSPortDelegate.handlePortMessage_.implementAsListener( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - return NSPortDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSPortDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - NSPortDelegate.handlePortMessage_.implementAsListener( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSPortDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSPortDelegate implementAsBlocking({ - void Function(NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSPortDelegate'); - NSPortDelegate.handlePortMessage_.implementAsBlocking( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - return NSPortDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSPortDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSPortMessage)? handlePortMessage_, - bool $keepIsolateAlive = true, - }) { - NSPortDelegate.handlePortMessage_.implementAsBlocking( - builder, - handlePortMessage_, - ); - builder.addProtocol($protocol); - } - - /// handlePortMessage: - static final handlePortMessage_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSPortDelegate, - _sel_handlePortMessage_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSPortDelegate, - _sel_handlePortMessage_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSPortMessage) func) => - ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.fromFunction( - (ffi.Pointer _, NSPortMessage arg1) => func(arg1), - ), - (void Function(NSPortMessage) func) => - ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.listener( - (ffi.Pointer _, NSPortMessage arg1) => func(arg1), - ), - (void Function(NSPortMessage) func) => - ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.blocking( - (ffi.Pointer _, NSPortMessage arg1) => func(arg1), - ), - ); -} - -/// NSPortMessage -class NSPortMessage extends NSObject { - NSPortMessage._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSPortMessage] that points to the same underlying object as [other]. - NSPortMessage.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSPortMessage] that wraps the given raw object pointer. - NSPortMessage.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSPortMessage]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSPortMessage, - ); - } - - /// alloc - static NSPortMessage alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSPortMessage, _sel_alloc); - return NSPortMessage.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSPortMessage allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSPortMessage, - _sel_allocWithZone_, - zone, - ); - return NSPortMessage.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSPortMessage new$() { - final _ret = _objc_msgSend_151sglz(_class_NSPortMessage, _sel_new); - return NSPortMessage.castFromPointer(_ret, retain: false, release: true); - } - - /// autorelease - NSPortMessage autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSPortMessage.castFromPointer(_ret, retain: true, release: true); - } - - /// components - NSArray? get components { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_components); - return _ret.address == 0 - ? null - : NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSPortMessage init() { - objc.checkOsVersionInternal( - 'NSPortMessage.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSPortMessage.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSendPort:receivePort:components: - NSPortMessage initWithSendPort( - NSPort? sendPort, { - NSPort? receivePort, - NSArray? components$1, - }) { - final _ret = _objc_msgSend_11spmsz( - this.ref.retainAndReturnPointer(), - _sel_initWithSendPort_receivePort_components_, - sendPort?.ref.pointer ?? ffi.nullptr, - receivePort?.ref.pointer ?? ffi.nullptr, - components$1?.ref.pointer ?? ffi.nullptr, - ); - return NSPortMessage.castFromPointer(_ret, retain: false, release: true); - } - - /// msgid - int get msgid { - return _objc_msgSend_usggvf(this.ref.pointer, _sel_msgid); - } - - /// receivePort - NSPort? get receivePort { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_receivePort); - return _ret.address == 0 - ? null - : NSPort.castFromPointer(_ret, retain: true, release: true); - } - - /// retain - NSPortMessage retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSPortMessage.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSPortMessage self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSPortMessage.castFromPointer(_ret, retain: true, release: true); - } - - /// sendBeforeDate: - bool sendBeforeDate(NSDate date) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_sendBeforeDate_, - date.ref.pointer, - ); - } - - /// sendPort - NSPort? get sendPort { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_sendPort); - return _ret.address == 0 - ? null - : NSPort.castFromPointer(_ret, retain: true, release: true); - } - - /// setMsgid: - set msgid(int value) { - _objc_msgSend_1xpk2hb(this.ref.pointer, _sel_setMsgid_, value); - } - - /// Returns a new instance of NSPortMessage constructed with the default `new` method. - factory NSPortMessage() => new$(); -} - -/// NSProgress -class NSProgress extends NSObject { - NSProgress._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSProgress] that points to the same underlying object as [other]. - NSProgress.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSProgress] that wraps the given raw object pointer. - NSProgress.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSProgress]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSProgress, - ); - } - - /// addSubscriberForFileURL:withPublishingHandler: - /// - /// iOS: unavailable - /// macOS: introduced 10.9.0 - static objc.ObjCObjectBase addSubscriberForFileURL( - NSURL url, { - required objc.ObjCBlock< - objc.ObjCBlock? Function(NSProgress) - > - withPublishingHandler, - }) { - objc.checkOsVersionInternal( - 'NSProgress.addSubscriberForFileURL:withPublishingHandler:', - iOS: (true, null), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_r0bo0s( - _class_NSProgress, - _sel_addSubscriberForFileURL_withPublishingHandler_, - url.ref.pointer, - withPublishingHandler.ref.pointer, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// alloc - static NSProgress alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSProgress, _sel_alloc); - return NSProgress.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSProgress allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSProgress, - _sel_allocWithZone_, - zone, - ); - return NSProgress.castFromPointer(_ret, retain: false, release: true); - } - - /// currentProgress - static NSProgress? currentProgress() { - objc.checkOsVersionInternal( - 'NSProgress.currentProgress', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_151sglz(_class_NSProgress, _sel_currentProgress); - return _ret.address == 0 - ? null - : NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// discreteProgressWithTotalUnitCount: - static NSProgress discreteProgressWithTotalUnitCount(int unitCount) { - objc.checkOsVersionInternal( - 'NSProgress.discreteProgressWithTotalUnitCount:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_1ya1kjn( - _class_NSProgress, - _sel_discreteProgressWithTotalUnitCount_, - unitCount, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSProgress new$() { - final _ret = _objc_msgSend_151sglz(_class_NSProgress, _sel_new); - return NSProgress.castFromPointer(_ret, retain: false, release: true); - } - - /// progressWithTotalUnitCount: - static NSProgress progressWithTotalUnitCount(int unitCount) { - objc.checkOsVersionInternal( - 'NSProgress.progressWithTotalUnitCount:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_1ya1kjn( - _class_NSProgress, - _sel_progressWithTotalUnitCount_, - unitCount, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// progressWithTotalUnitCount:parent:pendingUnitCount: - static NSProgress progressWithTotalUnitCount$1( - int unitCount, { - required NSProgress parent, - required int pendingUnitCount, - }) { - objc.checkOsVersionInternal( - 'NSProgress.progressWithTotalUnitCount:parent:pendingUnitCount:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_553v( - _class_NSProgress, - _sel_progressWithTotalUnitCount_parent_pendingUnitCount_, - unitCount, - parent.ref.pointer, - pendingUnitCount, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// removeSubscriber: - /// - /// iOS: unavailable - /// macOS: introduced 10.9.0 - static void removeSubscriber(objc.ObjCObjectBase subscriber) { - objc.checkOsVersionInternal( - 'NSProgress.removeSubscriber:', - iOS: (true, null), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_xtuoz7( - _class_NSProgress, - _sel_removeSubscriber_, - subscriber.ref.pointer, - ); - } - - /// addChild:withPendingUnitCount: - void addChild(NSProgress child, {required int withPendingUnitCount}) { - objc.checkOsVersionInternal( - 'NSProgress.addChild:withPendingUnitCount:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - _objc_msgSend_1m7prh1( - this.ref.pointer, - _sel_addChild_withPendingUnitCount_, - child.ref.pointer, - withPendingUnitCount, - ); - } - - /// becomeCurrentWithPendingUnitCount: - void becomeCurrentWithPendingUnitCount(int unitCount) { - objc.checkOsVersionInternal( - 'NSProgress.becomeCurrentWithPendingUnitCount:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_17gvxvj( - this.ref.pointer, - _sel_becomeCurrentWithPendingUnitCount_, - unitCount, - ); - } - - /// cancel - void cancel() { - objc.checkOsVersionInternal( - 'NSProgress.cancel', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_cancel); - } - - /// cancellationHandler - objc.ObjCBlock? get cancellationHandler { - objc.checkOsVersionInternal( - 'NSProgress.cancellationHandler', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_uwvaik( - this.ref.pointer, - _sel_cancellationHandler, - ); - return _ret.address == 0 - ? null - : ObjCBlock_ffiVoid.castFromPointer(_ret, retain: true, release: true); - } - - /// completedUnitCount - int get completedUnitCount { - objc.checkOsVersionInternal( - 'NSProgress.completedUnitCount', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_pysgoz(this.ref.pointer, _sel_completedUnitCount); - } - - /// estimatedTimeRemaining - NSNumber? get estimatedTimeRemaining { - objc.checkOsVersionInternal( - 'NSProgress.estimatedTimeRemaining', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_estimatedTimeRemaining, - ); - return _ret.address == 0 - ? null - : NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// fileCompletedCount - NSNumber? get fileCompletedCount { - objc.checkOsVersionInternal( - 'NSProgress.fileCompletedCount', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_fileCompletedCount, - ); - return _ret.address == 0 - ? null - : NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// fileOperationKind - NSString? get fileOperationKind { - objc.checkOsVersionInternal( - 'NSProgress.fileOperationKind', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_fileOperationKind, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// fileTotalCount - NSNumber? get fileTotalCount { - objc.checkOsVersionInternal( - 'NSProgress.fileTotalCount', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fileTotalCount); - return _ret.address == 0 - ? null - : NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURL - NSURL? get fileURL { - objc.checkOsVersionInternal( - 'NSProgress.fileURL', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fileURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fractionCompleted - double get fractionCompleted { - objc.checkOsVersionInternal( - 'NSProgress.fractionCompleted', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_fractionCompleted) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_fractionCompleted); - } - - /// init - NSProgress init() { - objc.checkOsVersionInternal( - 'NSProgress.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSProgress.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithParent:userInfo: - NSProgress initWithParent( - NSProgress? parentProgressOrNil, { - NSDictionary? userInfo, - }) { - objc.checkOsVersionInternal( - 'NSProgress.initWithParent:userInfo:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithParent_userInfo_, - parentProgressOrNil?.ref.pointer ?? ffi.nullptr, - userInfo?.ref.pointer ?? ffi.nullptr, - ); - return NSProgress.castFromPointer(_ret, retain: false, release: true); - } - - /// isCancellable - bool get cancellable { - objc.checkOsVersionInternal( - 'NSProgress.isCancellable', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_isCancellable); - } - - /// isCancelled - bool get cancelled { - objc.checkOsVersionInternal( - 'NSProgress.isCancelled', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_isCancelled); - } - - /// isFinished - bool get finished { - objc.checkOsVersionInternal( - 'NSProgress.isFinished', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_isFinished); - } - - /// isIndeterminate - bool get indeterminate { - objc.checkOsVersionInternal( - 'NSProgress.isIndeterminate', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_isIndeterminate); - } - - /// iOS: unavailable - /// macOS: introduced 10.9.0 - bool get old { - objc.checkOsVersionInternal( - 'NSProgress.isOld', - iOS: (true, null), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_isOld); - } - - /// isPausable - bool get pausable { - objc.checkOsVersionInternal( - 'NSProgress.isPausable', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_isPausable); - } - - /// isPaused - bool get paused { - objc.checkOsVersionInternal( - 'NSProgress.isPaused', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_isPaused); - } - - /// kind - NSString? get kind { - objc.checkOsVersionInternal( - 'NSProgress.kind', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_kind); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedAdditionalDescription - NSString get localizedAdditionalDescription { - objc.checkOsVersionInternal( - 'NSProgress.localizedAdditionalDescription', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedAdditionalDescription, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedDescription - NSString get localizedDescription { - objc.checkOsVersionInternal( - 'NSProgress.localizedDescription', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedDescription, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// pause - void pause() { - objc.checkOsVersionInternal( - 'NSProgress.pause', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_pause); - } - - /// pausingHandler - objc.ObjCBlock? get pausingHandler { - objc.checkOsVersionInternal( - 'NSProgress.pausingHandler', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_uwvaik(this.ref.pointer, _sel_pausingHandler); - return _ret.address == 0 - ? null - : ObjCBlock_ffiVoid.castFromPointer(_ret, retain: true, release: true); - } - - /// performAsCurrentWithPendingUnitCount:usingBlock: - void performAsCurrentWithPendingUnitCount( - int unitCount, { - required objc.ObjCBlock usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSProgress.performAsCurrentWithPendingUnitCount:usingBlock:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_1i0cxyc( - this.ref.pointer, - _sel_performAsCurrentWithPendingUnitCount_usingBlock_, - unitCount, - usingBlock.ref.pointer, - ); - } - - /// publish - /// - /// iOS: unavailable - /// macOS: introduced 10.9.0 - void publish() { - objc.checkOsVersionInternal( - 'NSProgress.publish', - iOS: (true, null), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_publish); - } - - /// resignCurrent - void resignCurrent() { - objc.checkOsVersionInternal( - 'NSProgress.resignCurrent', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_resignCurrent); - } - - /// resume - void resume() { - objc.checkOsVersionInternal( - 'NSProgress.resume', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_resume); - } - - /// resumingHandler - objc.ObjCBlock? get resumingHandler { - objc.checkOsVersionInternal( - 'NSProgress.resumingHandler', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_uwvaik(this.ref.pointer, _sel_resumingHandler); - return _ret.address == 0 - ? null - : ObjCBlock_ffiVoid.castFromPointer(_ret, retain: true, release: true); - } - - /// setCancellable: - set cancellable(bool value) { - objc.checkOsVersionInternal( - 'NSProgress.setCancellable:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1s56lr9(this.ref.pointer, _sel_setCancellable_, value); - } - - /// setCancellationHandler: - set cancellationHandler(objc.ObjCBlock? value) { - objc.checkOsVersionInternal( - 'NSProgress.setCancellationHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_setCancellationHandler_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setCompletedUnitCount: - set completedUnitCount(int value) { - objc.checkOsVersionInternal( - 'NSProgress.setCompletedUnitCount:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_17gvxvj(this.ref.pointer, _sel_setCompletedUnitCount_, value); - } - - /// setEstimatedTimeRemaining: - set estimatedTimeRemaining(NSNumber? value) { - objc.checkOsVersionInternal( - 'NSProgress.setEstimatedTimeRemaining:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setEstimatedTimeRemaining_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setFileCompletedCount: - set fileCompletedCount(NSNumber? value) { - objc.checkOsVersionInternal( - 'NSProgress.setFileCompletedCount:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setFileCompletedCount_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setFileOperationKind: - set fileOperationKind(NSString? value) { - objc.checkOsVersionInternal( - 'NSProgress.setFileOperationKind:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setFileOperationKind_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setFileTotalCount: - set fileTotalCount(NSNumber? value) { - objc.checkOsVersionInternal( - 'NSProgress.setFileTotalCount:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setFileTotalCount_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setFileURL: - set fileURL(NSURL? value) { - objc.checkOsVersionInternal( - 'NSProgress.setFileURL:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setFileURL_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setKind: - set kind(NSString? value) { - objc.checkOsVersionInternal( - 'NSProgress.setKind:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setKind_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setLocalizedAdditionalDescription: - set localizedAdditionalDescription(NSString value) { - objc.checkOsVersionInternal( - 'NSProgress.setLocalizedAdditionalDescription:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setLocalizedAdditionalDescription_, - value.ref.pointer, - ); - } - - /// setLocalizedDescription: - set localizedDescription(NSString value) { - objc.checkOsVersionInternal( - 'NSProgress.setLocalizedDescription:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setLocalizedDescription_, - value.ref.pointer, - ); - } - - /// setPausable: - set pausable(bool value) { - objc.checkOsVersionInternal( - 'NSProgress.setPausable:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1s56lr9(this.ref.pointer, _sel_setPausable_, value); - } - - /// setPausingHandler: - set pausingHandler(objc.ObjCBlock? value) { - objc.checkOsVersionInternal( - 'NSProgress.setPausingHandler:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_setPausingHandler_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setResumingHandler: - set resumingHandler(objc.ObjCBlock? value) { - objc.checkOsVersionInternal( - 'NSProgress.setResumingHandler:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_setResumingHandler_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setThroughput: - set throughput(NSNumber? value) { - objc.checkOsVersionInternal( - 'NSProgress.setThroughput:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setThroughput_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setTotalUnitCount: - set totalUnitCount(int value) { - objc.checkOsVersionInternal( - 'NSProgress.setTotalUnitCount:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_17gvxvj(this.ref.pointer, _sel_setTotalUnitCount_, value); - } - - /// setUserInfoObject:forKey: - void setUserInfoObject( - objc.ObjCObjectBase? objectOrNil, { - required NSString forKey, - }) { - objc.checkOsVersionInternal( - 'NSProgress.setUserInfoObject:forKey:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_setUserInfoObject_forKey_, - objectOrNil?.ref.pointer ?? ffi.nullptr, - forKey.ref.pointer, - ); - } - - /// throughput - NSNumber? get throughput { - objc.checkOsVersionInternal( - 'NSProgress.throughput', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_throughput); - return _ret.address == 0 - ? null - : NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// totalUnitCount - int get totalUnitCount { - objc.checkOsVersionInternal( - 'NSProgress.totalUnitCount', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_pysgoz(this.ref.pointer, _sel_totalUnitCount); - } - - /// unpublish - /// - /// iOS: unavailable - /// macOS: introduced 10.9.0 - void unpublish() { - objc.checkOsVersionInternal( - 'NSProgress.unpublish', - iOS: (true, null), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_unpublish); - } - - /// userInfo - NSDictionary get userInfo { - objc.checkOsVersionInternal( - 'NSProgress.userInfo', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSProgress constructed with the default `new` method. - factory NSProgress() => new$(); -} - -enum NSPropertyListFormat { - NSPropertyListOpenStepFormat(1), - NSPropertyListXMLFormat_v1_0(100), - NSPropertyListBinaryFormat_v1_0(200); - - final int value; - const NSPropertyListFormat(this.value); - - static NSPropertyListFormat fromValue(int value) => switch (value) { - 1 => NSPropertyListOpenStepFormat, - 100 => NSPropertyListXMLFormat_v1_0, - 200 => NSPropertyListBinaryFormat_v1_0, - _ => throw ArgumentError('Unknown value for NSPropertyListFormat: $value'), - }; -} - -enum NSQualityOfService { - NSQualityOfServiceUserInteractive(33), - NSQualityOfServiceUserInitiated(25), - NSQualityOfServiceUtility(17), - NSQualityOfServiceBackground(9), - NSQualityOfServiceDefault(-1); - - final int value; - const NSQualityOfService(this.value); - - static NSQualityOfService fromValue(int value) => switch (value) { - 33 => NSQualityOfServiceUserInteractive, - 25 => NSQualityOfServiceUserInitiated, - 17 => NSQualityOfServiceUtility, - 9 => NSQualityOfServiceBackground, - -1 => NSQualityOfServiceDefault, - _ => throw ArgumentError('Unknown value for NSQualityOfService: $value'), - }; -} - -final class NSRange extends ffi.Struct { - @ffi.UnsignedLong() - external int location; - - @ffi.UnsignedLong() - external int length; -} - -/// NSRunLoop -class NSRunLoop extends NSObject { - NSRunLoop._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSRunLoop] that points to the same underlying object as [other]. - NSRunLoop.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSRunLoop] that wraps the given raw object pointer. - NSRunLoop.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSRunLoop]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSRunLoop, - ); - } - - /// alloc - static NSRunLoop alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_alloc); - return NSRunLoop.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSRunLoop allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSRunLoop, - _sel_allocWithZone_, - zone, - ); - return NSRunLoop.castFromPointer(_ret, retain: false, release: true); - } - - /// currentRunLoop - static NSRunLoop getCurrentRunLoop() { - final _ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_currentRunLoop); - return NSRunLoop.castFromPointer(_ret, retain: true, release: true); - } - - /// mainRunLoop - static NSRunLoop getMainRunLoop() { - objc.checkOsVersionInternal( - 'NSRunLoop.mainRunLoop', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_mainRunLoop); - return NSRunLoop.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSRunLoop new$() { - final _ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_new); - return NSRunLoop.castFromPointer(_ret, retain: false, release: true); - } - - /// acceptInputForMode:beforeDate: - void acceptInputForMode(NSString mode, {required NSDate beforeDate}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_acceptInputForMode_beforeDate_, - mode.ref.pointer, - beforeDate.ref.pointer, - ); - } - - /// addPort:forMode: - void addPort(NSPort aPort, {required NSString forMode}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_addPort_forMode_, - aPort.ref.pointer, - forMode.ref.pointer, - ); - } - - /// addTimer:forMode: - void addTimer(NSTimer timer, {required NSString forMode}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_addTimer_forMode_, - timer.ref.pointer, - forMode.ref.pointer, - ); - } - - /// autorelease - NSRunLoop autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSRunLoop.castFromPointer(_ret, retain: true, release: true); - } - - /// currentMode - NSString? get currentMode { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_currentMode); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// getCFRunLoop - ffi.Pointer getCFRunLoop() { - return _objc_msgSend_1bbja28(this.ref.pointer, _sel_getCFRunLoop); - } - - /// init - NSRunLoop init() { - objc.checkOsVersionInternal( - 'NSRunLoop.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSRunLoop.castFromPointer(_ret, retain: false, release: true); - } - - /// limitDateForMode: - NSDate? limitDateForMode(NSString mode) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_limitDateForMode_, - mode.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// removePort:forMode: - void removePort(NSPort aPort, {required NSString forMode}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_removePort_forMode_, - aPort.ref.pointer, - forMode.ref.pointer, - ); - } - - /// retain - NSRunLoop retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSRunLoop.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSRunLoop self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSRunLoop.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSRunLoop constructed with the default `new` method. - factory NSRunLoop() => new$(); -} - -/// NSSecureCoding -interface class NSSecureCoding extends objc.ObjCProtocolBase - implements NSCoding { - NSSecureCoding._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSSecureCoding] that points to the same underlying object as [other]. - NSSecureCoding.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSSecureCoding] that wraps the given raw object pointer. - NSSecureCoding.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSSecureCoding]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSSecureCoding, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSSecureCoding.cast()); - - /// Builds an object that implements the NSSecureCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSecureCoding implement({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); - NSSecureCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSSecureCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSecureCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSSecureCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSSecureCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSecureCoding implementAsListener({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); - NSSecureCoding.encodeWithCoder_.implementAsListener( - builder, - encodeWithCoder_, - ); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSSecureCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSecureCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSSecureCoding.encodeWithCoder_.implementAsListener( - builder, - encodeWithCoder_, - ); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSSecureCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSecureCoding implementAsBlocking({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); - NSSecureCoding.encodeWithCoder_.implementAsBlocking( - builder, - encodeWithCoder_, - ); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSSecureCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSecureCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSSecureCoding.encodeWithCoder_.implementAsBlocking( - builder, - encodeWithCoder_, - ); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// encodeWithCoder: - static final encodeWithCoder_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSSecureCoding, - _sel_encodeWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSecureCoding, - _sel_encodeWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - ); - - /// initWithCoder: - static final initWithCoder_ = - objc.ObjCProtocolMethod( - _protocol_NSSecureCoding, - _sel_initWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_xr62hr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSecureCoding, - _sel_initWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (Dartinstancetype? Function(NSCoder) func) => - ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - ); -} - -/// NSSet -class NSSet extends NSObject - with collection.SetBase - implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - /// Creates a [NSSet] from [elements]. - static NSSet of(Iterable elements) => - NSMutableSet.of(elements); - - @override - int get length => count; - - @override - bool contains(Object? element) => - element is objc.ObjCObjectBase ? containsObject(element) : false; - - @override - objc.ObjCObjectBase? lookup(Object? element) => - element is objc.ObjCObjectBase ? member(element) : null; - - @override - Iterator get iterator => objectEnumerator(); - - @override - Set toSet() => {...this}; - - @override - bool add(objc.ObjCObjectBase value) => - throw UnsupportedError("Cannot modify NSSet"); - - @override - bool remove(Object? value) => throw UnsupportedError("Cannot modify NSSet"); - - @override - void clear() => throw UnsupportedError("Cannot modify NSSet"); - - NSSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSSet] that points to the same underlying object as [other]. - NSSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSSet] that wraps the given raw object pointer. - NSSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSSet, - ); - } - - /// alloc - static NSSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_alloc); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428(_class_NSSet, _sel_allocWithZone_, zone); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_new); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// set - static NSSet set$() { - final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_set); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithArray: - static NSSet setWithArray(NSArray array) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithArray_, - array.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObject: - static NSSet setWithObject(objc.ObjCObjectBase object) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithObject_, - object.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObjects: - static NSSet setWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithObjects_, - firstObj.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObjects:count: - static NSSet setWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - _class_NSSet, - _sel_setWithObjects_count_, - objects, - count, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithSet: - static NSSet setWithSet(NSSet set$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithSet_, - set$1.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSSet, _sel_supportsSecureCoding); - } - - /// count - int get count { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSSet init() { - objc.checkOsVersionInternal( - 'NSSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray: - NSSet initWithArray(NSArray array) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects: - NSSet initWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:count: - NSSet initWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet: - NSSet initWithSet(NSSet set$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_, - set$1.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - NSSet initWithSet$1(NSSet set$1, {required bool copyItems}) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - set$1.ref.pointer, - copyItems, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// member: - objc.ObjCObjectBase? member(objc.ObjCObjectBase object) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_member_, - object.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// objectEnumerator - NSEnumerator objectEnumerator() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSSet constructed with the default `new` method. - factory NSSet() => new$(); -} - -enum NSSortOptions { - NSSortConcurrent(1), - NSSortStable(16); - - final int value; - const NSSortOptions(this.value); - - static NSSortOptions fromValue(int value) => switch (value) { - 1 => NSSortConcurrent, - 16 => NSSortStable, - _ => throw ArgumentError('Unknown value for NSSortOptions: $value'), - }; -} - -/// NSStream -class NSStream extends NSObject { - NSStream._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSStream] that points to the same underlying object as [other]. - NSStream.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSStream] that wraps the given raw object pointer. - NSStream.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSStream]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSStream, - ); - } - - /// alloc - static NSStream alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSStream, _sel_alloc); - return NSStream.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSStream allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSStream, - _sel_allocWithZone_, - zone, - ); - return NSStream.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSStream new$() { - final _ret = _objc_msgSend_151sglz(_class_NSStream, _sel_new); - return NSStream.castFromPointer(_ret, retain: false, release: true); - } - - /// autorelease - NSStream autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSStream.castFromPointer(_ret, retain: true, release: true); - } - - /// close - void close() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_close); - } - - /// delegate - NSStreamDelegate? get delegate { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_delegate); - return _ret.address == 0 - ? null - : NSStreamDelegate.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSStream init() { - objc.checkOsVersionInternal( - 'NSStream.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSStream.castFromPointer(_ret, retain: false, release: true); - } - - /// open - void open() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_open); - } - - /// propertyForKey: - objc.ObjCObjectBase? propertyForKey(NSString key) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_propertyForKey_, - key.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// removeFromRunLoop:forMode: - void removeFromRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_removeFromRunLoop_forMode_, - aRunLoop.ref.pointer, - forMode.ref.pointer, - ); - } - - /// retain - NSStream retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSStream.castFromPointer(_ret, retain: true, release: true); - } - - /// scheduleInRunLoop:forMode: - void scheduleInRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_scheduleInRunLoop_forMode_, - aRunLoop.ref.pointer, - forMode.ref.pointer, - ); - } - - /// self - NSStream self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSStream.castFromPointer(_ret, retain: true, release: true); - } - - /// setDelegate: - set delegate(NSStreamDelegate? value) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setDelegate_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setProperty:forKey: - bool setProperty(objc.ObjCObjectBase? property, {required NSString forKey}) { - return _objc_msgSend_1lsax7n( - this.ref.pointer, - _sel_setProperty_forKey_, - property?.ref.pointer ?? ffi.nullptr, - forKey.ref.pointer, - ); - } - - /// streamError - NSError? get streamError { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_streamError); - return _ret.address == 0 - ? null - : NSError.castFromPointer(_ret, retain: true, release: true); - } - - /// streamStatus - NSStreamStatus get streamStatus { - final _ret = _objc_msgSend_1efxbd8(this.ref.pointer, _sel_streamStatus); - return NSStreamStatus.fromValue(_ret); - } - - /// Returns a new instance of NSStream constructed with the default `new` method. - factory NSStream() => new$(); -} - -/// NSStreamDelegate -interface class NSStreamDelegate extends objc.ObjCProtocolBase - implements NSObjectProtocol { - NSStreamDelegate._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSStreamDelegate] that points to the same underlying object as [other]. - NSStreamDelegate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSStreamDelegate] that wraps the given raw object pointer. - NSStreamDelegate.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSStreamDelegate]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSStreamDelegate, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSStreamDelegate.cast()); - - /// Builds an object that implements the NSStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSStreamDelegate implement({ - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); - NSStreamDelegate.stream_handleEvent_.implement( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - return NSStreamDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - NSStreamDelegate.stream_handleEvent_.implement( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSStreamDelegate implementAsListener({ - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); - NSStreamDelegate.stream_handleEvent_.implementAsListener( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - return NSStreamDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - NSStreamDelegate.stream_handleEvent_.implementAsListener( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSStreamDelegate implementAsBlocking({ - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); - NSStreamDelegate.stream_handleEvent_.implementAsBlocking( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - return NSStreamDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - NSStreamDelegate.stream_handleEvent_.implementAsBlocking( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - } - - /// stream:handleEvent: - static final stream_handleEvent_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSStreamDelegate, - _sel_stream_handleEvent_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_hoampi) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSStreamDelegate, - _sel_stream_handleEvent_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSStream, NSStreamEvent) func) => - ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.fromFunction( - (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => - func(arg1, arg2), - ), - (void Function(NSStream, NSStreamEvent) func) => - ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.listener( - (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => - func(arg1, arg2), - ), - (void Function(NSStream, NSStreamEvent) func) => - ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.blocking( - (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => - func(arg1, arg2), - ), - ); -} - -enum NSStreamEvent { - NSStreamEventNone(0), - NSStreamEventOpenCompleted(1), - NSStreamEventHasBytesAvailable(2), - NSStreamEventHasSpaceAvailable(4), - NSStreamEventErrorOccurred(8), - NSStreamEventEndEncountered(16); - - final int value; - const NSStreamEvent(this.value); - - static NSStreamEvent fromValue(int value) => switch (value) { - 0 => NSStreamEventNone, - 1 => NSStreamEventOpenCompleted, - 2 => NSStreamEventHasBytesAvailable, - 4 => NSStreamEventHasSpaceAvailable, - 8 => NSStreamEventErrorOccurred, - 16 => NSStreamEventEndEncountered, - _ => throw ArgumentError('Unknown value for NSStreamEvent: $value'), - }; -} - -enum NSStreamStatus { - NSStreamStatusNotOpen(0), - NSStreamStatusOpening(1), - NSStreamStatusOpen(2), - NSStreamStatusReading(3), - NSStreamStatusWriting(4), - NSStreamStatusAtEnd(5), - NSStreamStatusClosed(6), - NSStreamStatusError(7); - - final int value; - const NSStreamStatus(this.value); - - static NSStreamStatus fromValue(int value) => switch (value) { - 0 => NSStreamStatusNotOpen, - 1 => NSStreamStatusOpening, - 2 => NSStreamStatusOpen, - 3 => NSStreamStatusReading, - 4 => NSStreamStatusWriting, - 5 => NSStreamStatusAtEnd, - 6 => NSStreamStatusClosed, - 7 => NSStreamStatusError, - _ => throw ArgumentError('Unknown value for NSStreamStatus: $value'), - }; -} - -/// NSString -class NSString extends NSObject - implements NSCopying, NSMutableCopying, NSSecureCoding { - factory NSString(String str) { - final cstr = str.toNativeUtf16(); - final nsstr = stringWithCharacters(cstr.cast(), length: str.length); - pkg_ffi.calloc.free(cstr); - return nsstr; - } - - NSString._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSString] that points to the same underlying object as [other]. - NSString.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSString] that wraps the given raw object pointer. - NSString.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSString]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSString, - ); - } - - /// alloc - static NSString alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_alloc); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSString allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSString, - _sel_allocWithZone_, - zone, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// localizedStringWithFormat: - static NSString localizedStringWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSString, - _sel_localizedStringWithFormat_, - format.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: - static NSString? localizedStringWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSString new$() { - final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_new); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static NSString? objectWithItemProviderData( - NSData data, { - required NSString typeIdentifier, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSString.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// string - static NSString string() { - final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_string); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithCString:encoding: - static NSString? stringWithCString( - ffi.Pointer cString, { - required int encoding, - }) { - final _ret = _objc_msgSend_erqryg( - _class_NSString, - _sel_stringWithCString_encoding_, - cString, - encoding, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithCharacters:length: - static NSString stringWithCharacters( - ffi.Pointer characters, { - required int length, - }) { - final _ret = _objc_msgSend_9x4k8x( - _class_NSString, - _sel_stringWithCharacters_length_, - characters, - length, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfFile:encoding:error: - static NSString? stringWithContentsOfFile( - NSString path, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - _class_NSString, - _sel_stringWithContentsOfFile_encoding_error_, - path.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfFile:usedEncoding:error: - static NSString? stringWithContentsOfFile$1( - NSString path, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - _class_NSString, - _sel_stringWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfURL:encoding:error: - static NSString? stringWithContentsOfURL( - NSURL url, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - _class_NSString, - _sel_stringWithContentsOfURL_encoding_error_, - url.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfURL:usedEncoding:error: - static NSString? stringWithContentsOfURL$1( - NSURL url, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - _class_NSString, - _sel_stringWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithFormat: - static NSString stringWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSString, - _sel_stringWithFormat_, - format.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithString: - static NSString stringWithString(NSString string$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSString, - _sel_stringWithString_, - string$1.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithUTF8String: - static NSString? stringWithUTF8String( - ffi.Pointer nullTerminatedCString, - ) { - final _ret = _objc_msgSend_56zxyn( - _class_NSString, - _sel_stringWithUTF8String_, - nullTerminatedCString, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithValidatedFormat:validFormatSpecifiers:error: - static NSString? stringWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSString.stringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSString, _sel_supportsSecureCoding); - } - - /// autorelease - NSString autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// characterAtIndex: - int characterAtIndex(int index) { - return _objc_msgSend_1deg8x( - this.ref.pointer, - _sel_characterAtIndex_, - index, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSString init() { - objc.checkOsVersionInternal( - 'NSString.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:length:encoding: - NSString? initWithBytes( - ffi.Pointer bytes, { - required int length, - required int encoding, - }) { - final _ret = _objc_msgSend_9b3h4v( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_encoding_, - bytes, - length, - encoding, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:encoding:deallocator: - NSString? initWithBytesNoCopy( - ffi.Pointer bytes, { - required int length, - required int encoding, - objc.ObjCBlock, ffi.UnsignedLong)>? - deallocator, - }) { - final _ret = _objc_msgSend_1lbgrac( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_encoding_deallocator_, - bytes, - length, - encoding, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:encoding:freeWhenDone: - NSString? initWithBytesNoCopy$1( - ffi.Pointer bytes, { - required int length, - required int encoding, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_k4j8m3( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, - bytes, - length, - encoding, - freeWhenDone, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCString:encoding: - NSString? initWithCString( - ffi.Pointer nullTerminatedCString, { - required int encoding, - }) { - final _ret = _objc_msgSend_erqryg( - this.ref.retainAndReturnPointer(), - _sel_initWithCString_encoding_, - nullTerminatedCString, - encoding, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharacters:length: - NSString initWithCharacters( - ffi.Pointer characters, { - required int length, - }) { - final _ret = _objc_msgSend_9x4k8x( - this.ref.retainAndReturnPointer(), - _sel_initWithCharacters_length_, - characters, - length, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharactersNoCopy:length:deallocator: - NSString initWithCharactersNoCopy( - ffi.Pointer chars, { - required int length, - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >? - deallocator, - }) { - final _ret = _objc_msgSend_talwei( - this.ref.retainAndReturnPointer(), - _sel_initWithCharactersNoCopy_length_deallocator_, - chars, - length, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharactersNoCopy:length:freeWhenDone: - NSString initWithCharactersNoCopy$1( - ffi.Pointer characters, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_lh0jh5( - this.ref.retainAndReturnPointer(), - _sel_initWithCharactersNoCopy_length_freeWhenDone_, - characters, - length, - freeWhenDone, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSString? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:encoding:error: - NSString? initWithContentsOfFile( - NSString path, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_encoding_error_, - path.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:usedEncoding:error: - NSString? initWithContentsOfFile$1( - NSString path, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:encoding:error: - NSString? initWithContentsOfURL( - NSURL url, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_encoding_error_, - url.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:usedEncoding:error: - NSString? initWithContentsOfURL$1( - NSURL url, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithData:encoding: - NSString? initWithData(NSData data, {required int encoding}) { - final _ret = _objc_msgSend_1k4kd9s( - this.ref.retainAndReturnPointer(), - _sel_initWithData_encoding_, - data.ref.pointer, - encoding, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFormat: - NSString initWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithFormat_, - format.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFormat:locale: - NSString initWithFormat$1(NSString format, {objc.ObjCObjectBase? locale}) { - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithFormat_locale_, - format.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithString: - NSString initWithString(NSString aString) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithString_, - aString.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUTF8String: - NSString? initWithUTF8String(ffi.Pointer nullTerminatedCString) { - final _ret = _objc_msgSend_56zxyn( - this.ref.retainAndReturnPointer(), - _sel_initWithUTF8String_, - nullTerminatedCString, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithValidatedFormat:validFormatSpecifiers:error: - /// - /// iOS: introduced 16.0.0 - /// macOS: introduced 13.0.0 - NSString? initWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSString.initWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithValidatedFormat:validFormatSpecifiers:locale:error: - /// - /// iOS: introduced 16.0.0 - /// macOS: introduced 13.0.0 - NSString? initWithValidatedFormat$1( - NSString format, { - required NSString validFormatSpecifiers, - objc.ObjCObjectBase? locale, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - final _ret = _objc_msgSend_1k0ezzm( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// length - int get length { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); - } - - /// retain - NSString retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSString self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSString.castFromPointer(_ret, retain: true, release: true); - } -} - -enum NSStringCompareOptions { - NSCaseInsensitiveSearch(1), - NSLiteralSearch(2), - NSBackwardsSearch(4), - NSAnchoredSearch(8), - NSNumericSearch(64), - NSDiacriticInsensitiveSearch(128), - NSWidthInsensitiveSearch(256), - NSForcedOrderingSearch(512), - NSRegularExpressionSearch(1024); - - final int value; - const NSStringCompareOptions(this.value); - - static NSStringCompareOptions fromValue(int value) => switch (value) { - 1 => NSCaseInsensitiveSearch, - 2 => NSLiteralSearch, - 4 => NSBackwardsSearch, - 8 => NSAnchoredSearch, - 64 => NSNumericSearch, - 128 => NSDiacriticInsensitiveSearch, - 256 => NSWidthInsensitiveSearch, - 512 => NSForcedOrderingSearch, - 1024 => NSRegularExpressionSearch, - _ => throw ArgumentError( - 'Unknown value for NSStringCompareOptions: $value', - ), - }; -} - -enum NSStringEncodingConversionOptions { - NSStringEncodingConversionAllowLossy(1), - NSStringEncodingConversionExternalRepresentation(2); - - final int value; - const NSStringEncodingConversionOptions(this.value); - - static NSStringEncodingConversionOptions fromValue(int value) => - switch (value) { - 1 => NSStringEncodingConversionAllowLossy, - 2 => NSStringEncodingConversionExternalRepresentation, - _ => throw ArgumentError( - 'Unknown value for NSStringEncodingConversionOptions: $value', - ), - }; -} - -enum NSStringEnumerationOptions { - NSStringEnumerationByLines(0), - NSStringEnumerationByParagraphs(1), - NSStringEnumerationByComposedCharacterSequences(2), - NSStringEnumerationByWords(3), - NSStringEnumerationBySentences(4), - NSStringEnumerationByCaretPositions(5), - NSStringEnumerationByDeletionClusters(6), - NSStringEnumerationReverse(256), - NSStringEnumerationSubstringNotRequired(512), - NSStringEnumerationLocalized(1024); - - final int value; - const NSStringEnumerationOptions(this.value); - - static NSStringEnumerationOptions fromValue(int value) => switch (value) { - 0 => NSStringEnumerationByLines, - 1 => NSStringEnumerationByParagraphs, - 2 => NSStringEnumerationByComposedCharacterSequences, - 3 => NSStringEnumerationByWords, - 4 => NSStringEnumerationBySentences, - 5 => NSStringEnumerationByCaretPositions, - 6 => NSStringEnumerationByDeletionClusters, - 256 => NSStringEnumerationReverse, - 512 => NSStringEnumerationSubstringNotRequired, - 1024 => NSStringEnumerationLocalized, - _ => throw ArgumentError( - 'Unknown value for NSStringEnumerationOptions: $value', - ), - }; -} - -/// NSStringExtensionMethods -extension NSStringExtensionMethods on NSString { - /// availableStringEncodings - static ffi.Pointer getAvailableStringEncodings() { - return _objc_msgSend_1h2q612( - _class_NSString, - _sel_availableStringEncodings, - ); - } - - /// defaultCStringEncoding - static int getDefaultCStringEncoding() { - return _objc_msgSend_xw2lbc(_class_NSString, _sel_defaultCStringEncoding); - } - - /// localizedNameOfStringEncoding: - static NSString localizedNameOfStringEncoding(int encoding) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSString, - _sel_localizedNameOfStringEncoding_, - encoding, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// UTF8String - ffi.Pointer get UTF8String { - return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_UTF8String); - } - - /// boolValue - bool get boolValue { - objc.checkOsVersionInternal( - 'NSString.boolValue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_boolValue); - } - - /// cStringUsingEncoding: - ffi.Pointer cStringUsingEncoding(int encoding) { - return _objc_msgSend_1jtxufi( - this.ref.pointer, - _sel_cStringUsingEncoding_, - encoding, - ); - } - - /// canBeConvertedToEncoding: - bool canBeConvertedToEncoding(int encoding) { - return _objc_msgSend_6peh6o( - this.ref.pointer, - _sel_canBeConvertedToEncoding_, - encoding, - ); - } - - /// capitalizedString - NSString get capitalizedString { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_capitalizedString, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// capitalizedStringWithLocale: - NSString capitalizedStringWithLocale(NSLocale? locale) { - objc.checkOsVersionInternal( - 'NSString.capitalizedStringWithLocale:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_capitalizedStringWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// caseInsensitiveCompare: - NSComparisonResult caseInsensitiveCompare(NSString string) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_caseInsensitiveCompare_, - string.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// commonPrefixWithString:options: - NSString commonPrefixWithString( - NSString str, { - required NSStringCompareOptions options, - }) { - final _ret = _objc_msgSend_diypgk( - this.ref.pointer, - _sel_commonPrefixWithString_options_, - str.ref.pointer, - options.value, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// compare: - NSComparisonResult compare(NSString string) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_compare_, - string.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// compare:options: - NSComparisonResult compare$1( - NSString string, { - required NSStringCompareOptions options, - }) { - final _ret = _objc_msgSend_pg1fnv( - this.ref.pointer, - _sel_compare_options_, - string.ref.pointer, - options.value, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// compare:options:range: - NSComparisonResult compare$2( - NSString string, { - required NSStringCompareOptions options, - required NSRange range, - }) { - final _ret = _objc_msgSend_xrqic1( - this.ref.pointer, - _sel_compare_options_range_, - string.ref.pointer, - options.value, - range, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// compare:options:range:locale: - NSComparisonResult compare$3( - NSString string, { - required NSStringCompareOptions options, - required NSRange range, - objc.ObjCObjectBase? locale, - }) { - final _ret = _objc_msgSend_1895u4n( - this.ref.pointer, - _sel_compare_options_range_locale_, - string.ref.pointer, - options.value, - range, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// componentsSeparatedByCharactersInSet: - NSArray componentsSeparatedByCharactersInSet(NSCharacterSet separator) { - objc.checkOsVersionInternal( - 'NSString.componentsSeparatedByCharactersInSet:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_componentsSeparatedByCharactersInSet_, - separator.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// componentsSeparatedByString: - NSArray componentsSeparatedByString(NSString separator) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_componentsSeparatedByString_, - separator.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// containsString: - bool containsString(NSString str) { - objc.checkOsVersionInternal( - 'NSString.containsString:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_containsString_, - str.ref.pointer, - ); - } - - /// dataUsingEncoding: - NSData? dataUsingEncoding(int encoding) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_dataUsingEncoding_, - encoding, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataUsingEncoding:allowLossyConversion: - NSData? dataUsingEncoding$1( - int encoding, { - required bool allowLossyConversion, - }) { - final _ret = _objc_msgSend_hiwitm( - this.ref.pointer, - _sel_dataUsingEncoding_allowLossyConversion_, - encoding, - allowLossyConversion, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// decomposedStringWithCanonicalMapping - NSString get decomposedStringWithCanonicalMapping { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_decomposedStringWithCanonicalMapping, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// decomposedStringWithCompatibilityMapping - NSString get decomposedStringWithCompatibilityMapping { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_decomposedStringWithCompatibilityMapping, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// doubleValue - double get doubleValue { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_doubleValue) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_doubleValue); - } - - /// enumerateLinesUsingBlock: - void enumerateLinesUsingBlock( - objc.ObjCBlock)> block, - ) { - objc.checkOsVersionInternal( - 'NSString.enumerateLinesUsingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateLinesUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateSubstringsInRange:options:usingBlock: - void enumerateSubstringsInRange( - NSRange range, { - required NSStringEnumerationOptions options, - required objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSString.enumerateSubstringsInRange:options:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_14ew8zr( - this.ref.pointer, - _sel_enumerateSubstringsInRange_options_usingBlock_, - range, - options.value, - usingBlock.ref.pointer, - ); - } - - /// fastestEncoding - int get fastestEncoding { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_fastestEncoding); - } - - /// floatValue - double get floatValue { - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(this.ref.pointer, _sel_floatValue) - : _objc_msgSend_2cgrxl(this.ref.pointer, _sel_floatValue); - } - - /// getBytes:maxLength:usedLength:encoding:options:range:remainingRange: - bool getBytes( - ffi.Pointer buffer, { - required int maxLength, - required ffi.Pointer usedLength, - required int encoding, - required NSStringEncodingConversionOptions options, - required NSRange range, - required ffi.Pointer remainingRange, - }) { - return _objc_msgSend_i30zh3( - this.ref.pointer, - _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_, - buffer, - maxLength, - usedLength, - encoding, - options.value, - range, - remainingRange, - ); - } - - /// getCString:maxLength:encoding: - bool getCString( - ffi.Pointer buffer, { - required int maxLength, - required int encoding, - }) { - return _objc_msgSend_1lv8yz3( - this.ref.pointer, - _sel_getCString_maxLength_encoding_, - buffer, - maxLength, - encoding, - ); - } - - /// getCharacters:range: - void getCharacters( - ffi.Pointer buffer, { - required NSRange range, - }) { - _objc_msgSend_898fog( - this.ref.pointer, - _sel_getCharacters_range_, - buffer, - range, - ); - } - - /// getLineStart:end:contentsEnd:forRange: - void getLineStart( - ffi.Pointer startPtr, { - required ffi.Pointer end, - required ffi.Pointer contentsEnd, - required NSRange forRange, - }) { - _objc_msgSend_ourvf2( - this.ref.pointer, - _sel_getLineStart_end_contentsEnd_forRange_, - startPtr, - end, - contentsEnd, - forRange, - ); - } - - /// getParagraphStart:end:contentsEnd:forRange: - void getParagraphStart( - ffi.Pointer startPtr, { - required ffi.Pointer end, - required ffi.Pointer contentsEnd, - required NSRange forRange, - }) { - _objc_msgSend_ourvf2( - this.ref.pointer, - _sel_getParagraphStart_end_contentsEnd_forRange_, - startPtr, - end, - contentsEnd, - forRange, - ); - } - - /// hasPrefix: - bool hasPrefix(NSString str) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_hasPrefix_, - str.ref.pointer, - ); - } - - /// hasSuffix: - bool hasSuffix(NSString str) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_hasSuffix_, - str.ref.pointer, - ); - } - - /// hash - int get hash { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_hash); - } - - /// intValue - int get intValue { - return _objc_msgSend_13yqbb6(this.ref.pointer, _sel_intValue); - } - - /// integerValue - int get integerValue { - objc.checkOsVersionInternal( - 'NSString.integerValue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_integerValue); - } - - /// isEqualToString: - bool isEqualToString(NSString aString) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToString_, - aString.ref.pointer, - ); - } - - /// lengthOfBytesUsingEncoding: - int lengthOfBytesUsingEncoding(int enc) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_lengthOfBytesUsingEncoding_, - enc, - ); - } - - /// lineRangeForRange: - NSRange lineRangeForRange(NSRange range) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_uimyc7Stret( - _ptr, - this.ref.pointer, - _sel_lineRangeForRange_, - range, - ) - : _ptr.ref = _objc_msgSend_uimyc7( - this.ref.pointer, - _sel_lineRangeForRange_, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// localizedCapitalizedString - NSString get localizedCapitalizedString { - objc.checkOsVersionInternal( - 'NSString.localizedCapitalizedString', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedCapitalizedString, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedCaseInsensitiveCompare: - NSComparisonResult localizedCaseInsensitiveCompare(NSString string) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_localizedCaseInsensitiveCompare_, - string.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// localizedCaseInsensitiveContainsString: - bool localizedCaseInsensitiveContainsString(NSString str) { - objc.checkOsVersionInternal( - 'NSString.localizedCaseInsensitiveContainsString:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_localizedCaseInsensitiveContainsString_, - str.ref.pointer, - ); - } - - /// localizedCompare: - NSComparisonResult localizedCompare(NSString string) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_localizedCompare_, - string.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// localizedLowercaseString - NSString get localizedLowercaseString { - objc.checkOsVersionInternal( - 'NSString.localizedLowercaseString', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedLowercaseString, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedStandardCompare: - NSComparisonResult localizedStandardCompare(NSString string) { - objc.checkOsVersionInternal( - 'NSString.localizedStandardCompare:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_localizedStandardCompare_, - string.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// localizedStandardContainsString: - bool localizedStandardContainsString(NSString str) { - objc.checkOsVersionInternal( - 'NSString.localizedStandardContainsString:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_localizedStandardContainsString_, - str.ref.pointer, - ); - } - - /// localizedStandardRangeOfString: - NSRange localizedStandardRangeOfString(NSString str) { - objc.checkOsVersionInternal( - 'NSString.localizedStandardRangeOfString:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret( - _ptr, - this.ref.pointer, - _sel_localizedStandardRangeOfString_, - str.ref.pointer, - ) - : _ptr.ref = _objc_msgSend_182fzon( - this.ref.pointer, - _sel_localizedStandardRangeOfString_, - str.ref.pointer, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// localizedUppercaseString - NSString get localizedUppercaseString { - objc.checkOsVersionInternal( - 'NSString.localizedUppercaseString', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedUppercaseString, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// longLongValue - int get longLongValue { - objc.checkOsVersionInternal( - 'NSString.longLongValue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1k101e3(this.ref.pointer, _sel_longLongValue); - } - - /// lowercaseString - NSString get lowercaseString { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lowercaseString); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// lowercaseStringWithLocale: - NSString lowercaseStringWithLocale(NSLocale? locale) { - objc.checkOsVersionInternal( - 'NSString.lowercaseStringWithLocale:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_lowercaseStringWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// maximumLengthOfBytesUsingEncoding: - int maximumLengthOfBytesUsingEncoding(int enc) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_maximumLengthOfBytesUsingEncoding_, - enc, - ); - } - - /// paragraphRangeForRange: - NSRange paragraphRangeForRange(NSRange range) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_uimyc7Stret( - _ptr, - this.ref.pointer, - _sel_paragraphRangeForRange_, - range, - ) - : _ptr.ref = _objc_msgSend_uimyc7( - this.ref.pointer, - _sel_paragraphRangeForRange_, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// precomposedStringWithCanonicalMapping - NSString get precomposedStringWithCanonicalMapping { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_precomposedStringWithCanonicalMapping, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// precomposedStringWithCompatibilityMapping - NSString get precomposedStringWithCompatibilityMapping { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_precomposedStringWithCompatibilityMapping, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// rangeOfCharacterFromSet: - NSRange rangeOfCharacterFromSet(NSCharacterSet searchSet) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret( - _ptr, - this.ref.pointer, - _sel_rangeOfCharacterFromSet_, - searchSet.ref.pointer, - ) - : _ptr.ref = _objc_msgSend_182fzon( - this.ref.pointer, - _sel_rangeOfCharacterFromSet_, - searchSet.ref.pointer, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfCharacterFromSet:options: - NSRange rangeOfCharacterFromSet$1( - NSCharacterSet searchSet, { - required NSStringCompareOptions options, - }) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_102xxo4Stret( - _ptr, - this.ref.pointer, - _sel_rangeOfCharacterFromSet_options_, - searchSet.ref.pointer, - options.value, - ) - : _ptr.ref = _objc_msgSend_102xxo4( - this.ref.pointer, - _sel_rangeOfCharacterFromSet_options_, - searchSet.ref.pointer, - options.value, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfCharacterFromSet:options:range: - NSRange rangeOfCharacterFromSet$2( - NSCharacterSet searchSet, { - required NSStringCompareOptions options, - required NSRange range, - }) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1nmlvqcStret( - _ptr, - this.ref.pointer, - _sel_rangeOfCharacterFromSet_options_range_, - searchSet.ref.pointer, - options.value, - range, - ) - : _ptr.ref = _objc_msgSend_1nmlvqc( - this.ref.pointer, - _sel_rangeOfCharacterFromSet_options_range_, - searchSet.ref.pointer, - options.value, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfComposedCharacterSequenceAtIndex: - NSRange rangeOfComposedCharacterSequenceAtIndex(int index) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_d3i1uyStret( - _ptr, - this.ref.pointer, - _sel_rangeOfComposedCharacterSequenceAtIndex_, - index, - ) - : _ptr.ref = _objc_msgSend_d3i1uy( - this.ref.pointer, - _sel_rangeOfComposedCharacterSequenceAtIndex_, - index, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfComposedCharacterSequencesForRange: - NSRange rangeOfComposedCharacterSequencesForRange(NSRange range) { - objc.checkOsVersionInternal( - 'NSString.rangeOfComposedCharacterSequencesForRange:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_uimyc7Stret( - _ptr, - this.ref.pointer, - _sel_rangeOfComposedCharacterSequencesForRange_, - range, - ) - : _ptr.ref = _objc_msgSend_uimyc7( - this.ref.pointer, - _sel_rangeOfComposedCharacterSequencesForRange_, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfString: - NSRange rangeOfString(NSString searchString) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret( - _ptr, - this.ref.pointer, - _sel_rangeOfString_, - searchString.ref.pointer, - ) - : _ptr.ref = _objc_msgSend_182fzon( - this.ref.pointer, - _sel_rangeOfString_, - searchString.ref.pointer, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfString:options: - NSRange rangeOfString$1( - NSString searchString, { - required NSStringCompareOptions options, - }) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_102xxo4Stret( - _ptr, - this.ref.pointer, - _sel_rangeOfString_options_, - searchString.ref.pointer, - options.value, - ) - : _ptr.ref = _objc_msgSend_102xxo4( - this.ref.pointer, - _sel_rangeOfString_options_, - searchString.ref.pointer, - options.value, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfString:options:range: - NSRange rangeOfString$2( - NSString searchString, { - required NSStringCompareOptions options, - required NSRange range, - }) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1nmlvqcStret( - _ptr, - this.ref.pointer, - _sel_rangeOfString_options_range_, - searchString.ref.pointer, - options.value, - range, - ) - : _ptr.ref = _objc_msgSend_1nmlvqc( - this.ref.pointer, - _sel_rangeOfString_options_range_, - searchString.ref.pointer, - options.value, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfString:options:range:locale: - NSRange rangeOfString$3( - NSString searchString, { - required NSStringCompareOptions options, - required NSRange range, - NSLocale? locale, - }) { - objc.checkOsVersionInternal( - 'NSString.rangeOfString:options:range:locale:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_gg0462Stret( - _ptr, - this.ref.pointer, - _sel_rangeOfString_options_range_locale_, - searchString.ref.pointer, - options.value, - range, - locale?.ref.pointer ?? ffi.nullptr, - ) - : _ptr.ref = _objc_msgSend_gg0462( - this.ref.pointer, - _sel_rangeOfString_options_range_locale_, - searchString.ref.pointer, - options.value, - range, - locale?.ref.pointer ?? ffi.nullptr, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// smallestEncoding - int get smallestEncoding { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_smallestEncoding); - } - - /// stringByAppendingFormat: - NSString stringByAppendingFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_stringByAppendingFormat_, - format.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByAppendingString: - NSString stringByAppendingString(NSString aString) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_stringByAppendingString_, - aString.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByApplyingTransform:reverse: - NSString? stringByApplyingTransform( - NSString transform, { - required bool reverse, - }) { - objc.checkOsVersionInternal( - 'NSString.stringByApplyingTransform:reverse:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.pointer, - _sel_stringByApplyingTransform_reverse_, - transform.ref.pointer, - reverse, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByFoldingWithOptions:locale: - NSString stringByFoldingWithOptions( - NSStringCompareOptions options, { - NSLocale? locale, - }) { - objc.checkOsVersionInternal( - 'NSString.stringByFoldingWithOptions:locale:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_11cbyu0( - this.ref.pointer, - _sel_stringByFoldingWithOptions_locale_, - options.value, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByPaddingToLength:withString:startingAtIndex: - NSString stringByPaddingToLength( - int newLength, { - required NSString withString, - required int startingAtIndex, - }) { - final _ret = _objc_msgSend_1tfztp( - this.ref.pointer, - _sel_stringByPaddingToLength_withString_startingAtIndex_, - newLength, - withString.ref.pointer, - startingAtIndex, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByReplacingCharactersInRange:withString: - NSString stringByReplacingCharactersInRange( - NSRange range, { - required NSString withString, - }) { - objc.checkOsVersionInternal( - 'NSString.stringByReplacingCharactersInRange:withString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_bstjp9( - this.ref.pointer, - _sel_stringByReplacingCharactersInRange_withString_, - range, - withString.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByReplacingOccurrencesOfString:withString: - NSString stringByReplacingOccurrencesOfString( - NSString target, { - required NSString withString, - }) { - objc.checkOsVersionInternal( - 'NSString.stringByReplacingOccurrencesOfString:withString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.pointer, - _sel_stringByReplacingOccurrencesOfString_withString_, - target.ref.pointer, - withString.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByReplacingOccurrencesOfString:withString:options:range: - NSString stringByReplacingOccurrencesOfString$1( - NSString target, { - required NSString withString, - required NSStringCompareOptions options, - required NSRange range, - }) { - objc.checkOsVersionInternal( - 'NSString.stringByReplacingOccurrencesOfString:withString:options:range:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_2u4jm6( - this.ref.pointer, - _sel_stringByReplacingOccurrencesOfString_withString_options_range_, - target.ref.pointer, - withString.ref.pointer, - options.value, - range, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByTrimmingCharactersInSet: - NSString stringByTrimmingCharactersInSet(NSCharacterSet set$) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_stringByTrimmingCharactersInSet_, - set$.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// substringFromIndex: - NSString substringFromIndex(int from) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_substringFromIndex_, - from, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// substringToIndex: - NSString substringToIndex(int to) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_substringToIndex_, - to, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// substringWithRange: - NSString substringWithRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - this.ref.pointer, - _sel_substringWithRange_, - range, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// uppercaseString - NSString get uppercaseString { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_uppercaseString); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// uppercaseStringWithLocale: - NSString uppercaseStringWithLocale(NSLocale? locale) { - objc.checkOsVersionInternal( - 'NSString.uppercaseStringWithLocale:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_uppercaseStringWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// writeToFile:atomically:encoding:error: - bool writeToFile( - NSString path, { - required bool atomically, - required int encoding, - required ffi.Pointer> error, - }) { - return _objc_msgSend_dv3z6r( - this.ref.pointer, - _sel_writeToFile_atomically_encoding_error_, - path.ref.pointer, - atomically, - encoding, - error, - ); - } - - /// writeToURL:atomically:encoding:error: - bool writeToURL( - NSURL url, { - required bool atomically, - required int encoding, - required ffi.Pointer> error, - }) { - return _objc_msgSend_dv3z6r( - this.ref.pointer, - _sel_writeToURL_atomically_encoding_error_, - url.ref.pointer, - atomically, - encoding, - error, - ); - } -} - -/// NSTimer -class NSTimer extends NSObject { - NSTimer._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSTimer] that points to the same underlying object as [other]. - NSTimer.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSTimer] that wraps the given raw object pointer. - NSTimer.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSTimer]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSTimer, - ); - } - - /// alloc - static NSTimer alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSTimer, _sel_alloc); - return NSTimer.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSTimer allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSTimer, - _sel_allocWithZone_, - zone, - ); - return NSTimer.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSTimer new$() { - final _ret = _objc_msgSend_151sglz(_class_NSTimer, _sel_new); - return NSTimer.castFromPointer(_ret, retain: false, release: true); - } - - /// scheduledTimerWithTimeInterval:invocation:repeats: - static NSTimer scheduledTimerWithTimeInterval( - double ti, { - required NSInvocation invocation, - required bool repeats, - }) { - final _ret = _objc_msgSend_r49ehc( - _class_NSTimer, - _sel_scheduledTimerWithTimeInterval_invocation_repeats_, - ti, - invocation.ref.pointer, - repeats, - ); - return NSTimer.castFromPointer(_ret, retain: true, release: true); - } - - /// scheduledTimerWithTimeInterval:repeats:block: - static NSTimer scheduledTimerWithTimeInterval$1( - double interval, { - required bool repeats, - required objc.ObjCBlock block, - }) { - objc.checkOsVersionInternal( - 'NSTimer.scheduledTimerWithTimeInterval:repeats:block:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final _ret = _objc_msgSend_9a64f1( - _class_NSTimer, - _sel_scheduledTimerWithTimeInterval_repeats_block_, - interval, - repeats, - block.ref.pointer, - ); - return NSTimer.castFromPointer(_ret, retain: true, release: true); - } - - /// scheduledTimerWithTimeInterval:target:selector:userInfo:repeats: - static NSTimer scheduledTimerWithTimeInterval$2( - double ti, { - required objc.ObjCObjectBase target, - required ffi.Pointer selector, - objc.ObjCObjectBase? userInfo, - required bool repeats, - }) { - final _ret = _objc_msgSend_ot6jdx( - _class_NSTimer, - _sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_, - ti, - target.ref.pointer, - selector, - userInfo?.ref.pointer ?? ffi.nullptr, - repeats, - ); - return NSTimer.castFromPointer(_ret, retain: true, release: true); - } - - /// timerWithTimeInterval:invocation:repeats: - static NSTimer timerWithTimeInterval( - double ti, { - required NSInvocation invocation, - required bool repeats, - }) { - final _ret = _objc_msgSend_r49ehc( - _class_NSTimer, - _sel_timerWithTimeInterval_invocation_repeats_, - ti, - invocation.ref.pointer, - repeats, - ); - return NSTimer.castFromPointer(_ret, retain: true, release: true); - } - - /// timerWithTimeInterval:repeats:block: - static NSTimer timerWithTimeInterval$1( - double interval, { - required bool repeats, - required objc.ObjCBlock block, - }) { - objc.checkOsVersionInternal( - 'NSTimer.timerWithTimeInterval:repeats:block:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final _ret = _objc_msgSend_9a64f1( - _class_NSTimer, - _sel_timerWithTimeInterval_repeats_block_, - interval, - repeats, - block.ref.pointer, - ); - return NSTimer.castFromPointer(_ret, retain: true, release: true); - } - - /// timerWithTimeInterval:target:selector:userInfo:repeats: - static NSTimer timerWithTimeInterval$2( - double ti, { - required objc.ObjCObjectBase target, - required ffi.Pointer selector, - objc.ObjCObjectBase? userInfo, - required bool repeats, - }) { - final _ret = _objc_msgSend_ot6jdx( - _class_NSTimer, - _sel_timerWithTimeInterval_target_selector_userInfo_repeats_, - ti, - target.ref.pointer, - selector, - userInfo?.ref.pointer ?? ffi.nullptr, - repeats, - ); - return NSTimer.castFromPointer(_ret, retain: true, release: true); - } - - /// autorelease - NSTimer autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSTimer.castFromPointer(_ret, retain: true, release: true); - } - - /// fire - void fire() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_fire); - } - - /// fireDate - NSDate get fireDate { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fireDate); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSTimer init() { - objc.checkOsVersionInternal( - 'NSTimer.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSTimer.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFireDate:interval:repeats:block: - NSTimer initWithFireDate( - NSDate date, { - required double interval, - required bool repeats, - required objc.ObjCBlock block, - }) { - objc.checkOsVersionInternal( - 'NSTimer.initWithFireDate:interval:repeats:block:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final _ret = _objc_msgSend_1s0rfm3( - this.ref.retainAndReturnPointer(), - _sel_initWithFireDate_interval_repeats_block_, - date.ref.pointer, - interval, - repeats, - block.ref.pointer, - ); - return NSTimer.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFireDate:interval:target:selector:userInfo:repeats: - NSTimer initWithFireDate$1( - NSDate date, { - required double interval, - required objc.ObjCObjectBase target, - required ffi.Pointer selector, - objc.ObjCObjectBase? userInfo, - required bool repeats, - }) { - final _ret = _objc_msgSend_14wwtbv( - this.ref.retainAndReturnPointer(), - _sel_initWithFireDate_interval_target_selector_userInfo_repeats_, - date.ref.pointer, - interval, - target.ref.pointer, - selector, - userInfo?.ref.pointer ?? ffi.nullptr, - repeats, - ); - return NSTimer.castFromPointer(_ret, retain: false, release: true); - } - - /// invalidate - void invalidate() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_invalidate); - } - - /// isValid - bool get valid { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isValid); - } - - /// retain - NSTimer retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSTimer.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSTimer self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSTimer.castFromPointer(_ret, retain: true, release: true); - } - - /// setFireDate: - set fireDate(NSDate value) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setFireDate_, - value.ref.pointer, - ); - } - - /// setTolerance: - set tolerance(double value) { - objc.checkOsVersionInternal( - 'NSTimer.setTolerance:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_hwm8nu(this.ref.pointer, _sel_setTolerance_, value); - } - - /// timeInterval - double get timeInterval { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_timeInterval) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeInterval); - } - - /// tolerance - double get tolerance { - objc.checkOsVersionInternal( - 'NSTimer.tolerance', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_tolerance) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_tolerance); - } - - /// userInfo - objc.ObjCObjectBase? get userInfo { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSTimer constructed with the default `new` method. - factory NSTimer() => new$(); -} - -/// NSURL -class NSURL extends NSObject implements NSSecureCoding, NSCopying { - NSURL._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSURL] that points to the same underlying object as [other]. - NSURL.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSURL] that wraps the given raw object pointer. - NSURL.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURL]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSURL, - ); - } - - /// URLByResolvingAliasFileAtURL:options:error: - static NSURL? URLByResolvingAliasFileAtURL( - NSURL url, { - required NSURLBookmarkResolutionOptions options, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.URLByResolvingAliasFileAtURL:options:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final _ret = _objc_msgSend_1tiux5i( - _class_NSURL, - _sel_URLByResolvingAliasFileAtURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: - static NSURL? URLByResolvingBookmarkData( - NSData bookmarkData, { - required NSURLBookmarkResolutionOptions options, - NSURL? relativeToURL, - required ffi.Pointer bookmarkDataIsStale, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1ceswyu( - _class_NSURL, - _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, - bookmarkData.ref.pointer, - options.value, - relativeToURL?.ref.pointer ?? ffi.nullptr, - bookmarkDataIsStale, - error, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// URLWithDataRepresentation:relativeToURL: - static NSURL URLWithDataRepresentation(NSData data, {NSURL? relativeToURL}) { - objc.checkOsVersionInternal( - 'NSURL.URLWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_URLWithDataRepresentation_relativeToURL_, - data.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// URLWithString: - static NSURL? URLWithString(NSString URLString) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSURL, - _sel_URLWithString_, - URLString.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// URLWithString:encodingInvalidCharacters: - /// - /// iOS: introduced 17.0.0 - /// macOS: introduced 14.0.0 - static NSURL? URLWithString$1( - NSString URLString, { - required bool encodingInvalidCharacters, - }) { - objc.checkOsVersionInternal( - 'NSURL.URLWithString:encodingInvalidCharacters:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - _class_NSURL, - _sel_URLWithString_encodingInvalidCharacters_, - URLString.ref.pointer, - encodingInvalidCharacters, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// URLWithString:relativeToURL: - static NSURL? URLWithString$2(NSString URLString, {NSURL? relativeToURL}) { - final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_URLWithString_relativeToURL_, - URLString.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// absoluteURLWithDataRepresentation:relativeToURL: - static NSURL absoluteURLWithDataRepresentation( - NSData data, { - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.absoluteURLWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_absoluteURLWithDataRepresentation_relativeToURL_, - data.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// alloc - static NSURL alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSURL, _sel_alloc); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSURL allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428(_class_NSURL, _sel_allocWithZone_, zone); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// bookmarkDataWithContentsOfURL:error: - static NSData? bookmarkDataWithContentsOfURL( - NSURL bookmarkFileURL, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.bookmarkDataWithContentsOfURL:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1lhpu4m( - _class_NSURL, - _sel_bookmarkDataWithContentsOfURL_error_, - bookmarkFileURL.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURLWithFileSystemRepresentation:isDirectory:relativeToURL: - static NSURL fileURLWithFileSystemRepresentation( - ffi.Pointer path, { - required bool isDirectory, - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_1n40f6p( - _class_NSURL, - _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, - path, - isDirectory, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURLWithPath: - static NSURL fileURLWithPath(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSURL, - _sel_fileURLWithPath_, - path.ref.pointer, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURLWithPath:isDirectory: - static NSURL fileURLWithPath$1(NSString path, {required bool isDirectory}) { - objc.checkOsVersionInternal( - 'NSURL.fileURLWithPath:isDirectory:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - _class_NSURL, - _sel_fileURLWithPath_isDirectory_, - path.ref.pointer, - isDirectory, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURLWithPath:isDirectory:relativeToURL: - static NSURL fileURLWithPath$2( - NSString path, { - required bool isDirectory, - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.fileURLWithPath:isDirectory:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_1ged0jd( - _class_NSURL, - _sel_fileURLWithPath_isDirectory_relativeToURL_, - path.ref.pointer, - isDirectory, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURLWithPath:relativeToURL: - static NSURL fileURLWithPath$3(NSString path, {NSURL? relativeToURL}) { - objc.checkOsVersionInternal( - 'NSURL.fileURLWithPath:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_fileURLWithPath_relativeToURL_, - path.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSURL new$() { - final _ret = _objc_msgSend_151sglz(_class_NSURL, _sel_new); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static NSURL? objectWithItemProviderData( - NSData data, { - required NSString typeIdentifier, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSURL, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// resourceValuesForKeys:fromBookmarkData: - static NSDictionary? resourceValuesForKeys( - NSArray keys, { - required NSData fromBookmarkData, - }) { - objc.checkOsVersionInternal( - 'NSURL.resourceValuesForKeys:fromBookmarkData:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_resourceValuesForKeys_fromBookmarkData_, - keys.ref.pointer, - fromBookmarkData.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSURL, _sel_supportsSecureCoding); - } - - /// writeBookmarkData:toURL:options:error: - static bool writeBookmarkData( - NSData bookmarkData, { - required NSURL toURL, - required int options, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.writeBookmarkData:toURL:options:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_1vxoo9h( - _class_NSURL, - _sel_writeBookmarkData_toURL_options_error_, - bookmarkData.ref.pointer, - toURL.ref.pointer, - options, - error, - ); - } - - /// absoluteString - NSString? get absoluteString { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_absoluteString); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// absoluteURL - NSURL? get absoluteURL { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_absoluteURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// baseURL - NSURL? get baseURL { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_baseURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error: - NSData? bookmarkDataWithOptions( - NSURLBookmarkCreationOptions options, { - NSArray? includingResourceValuesForKeys, - NSURL? relativeToURL, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1wt9a7r( - this.ref.pointer, - _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_, - options.value, - includingResourceValuesForKeys?.ref.pointer ?? ffi.nullptr, - relativeToURL?.ref.pointer ?? ffi.nullptr, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataRepresentation - NSData get dataRepresentation { - objc.checkOsVersionInternal( - 'NSURL.dataRepresentation', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_dataRepresentation, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// filePathURL - NSURL? get filePathURL { - objc.checkOsVersionInternal( - 'NSURL.filePathURL', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_filePathURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileReferenceURL - NSURL? fileReferenceURL() { - objc.checkOsVersionInternal( - 'NSURL.fileReferenceURL', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fileReferenceURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileSystemRepresentation - ffi.Pointer get fileSystemRepresentation { - objc.checkOsVersionInternal( - 'NSURL.fileSystemRepresentation', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_1fuqfwb( - this.ref.pointer, - _sel_fileSystemRepresentation, - ); - } - - /// fragment - NSString? get fragment { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fragment); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// getFileSystemRepresentation:maxLength: - bool getFileSystemRepresentation( - ffi.Pointer buffer, { - required int maxLength, - }) { - objc.checkOsVersionInternal( - 'NSURL.getFileSystemRepresentation:maxLength:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_8cymbm( - this.ref.pointer, - _sel_getFileSystemRepresentation_maxLength_, - buffer, - maxLength, - ); - } - - /// getResourceValue:forKey:error: - bool getResourceValue( - ffi.Pointer> value, { - required NSString forKey, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.getResourceValue:forKey:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_1j9bhml( - this.ref.pointer, - _sel_getResourceValue_forKey_error_, - value, - forKey.ref.pointer, - error, - ); - } - - /// hasDirectoryPath - bool get hasDirectoryPath { - objc.checkOsVersionInternal( - 'NSURL.hasDirectoryPath', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_hasDirectoryPath); - } - - /// host - NSString? get host { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_host); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSURL init() { - objc.checkOsVersionInternal( - 'NSURL.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initAbsoluteURLWithDataRepresentation:relativeToURL: - NSURL initAbsoluteURLWithDataRepresentation( - NSData data, { - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.initAbsoluteURLWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_, - data.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: - NSURL? initByResolvingBookmarkData( - NSData bookmarkData, { - required NSURLBookmarkResolutionOptions options, - NSURL? relativeToURL, - required ffi.Pointer bookmarkDataIsStale, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1ceswyu( - this.ref.retainAndReturnPointer(), - _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, - bookmarkData.ref.pointer, - options.value, - relativeToURL?.ref.pointer ?? ffi.nullptr, - bookmarkDataIsStale, - error, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL: - NSURL initFileURLWithFileSystemRepresentation( - ffi.Pointer path, { - required bool isDirectory, - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_1n40f6p( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, - path, - isDirectory, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initFileURLWithPath: - NSURL initFileURLWithPath(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_, - path.ref.pointer, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initFileURLWithPath:isDirectory: - NSURL initFileURLWithPath$1(NSString path, {required bool isDirectory}) { - objc.checkOsVersionInternal( - 'NSURL.initFileURLWithPath:isDirectory:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_isDirectory_, - path.ref.pointer, - isDirectory, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initFileURLWithPath:isDirectory:relativeToURL: - NSURL initFileURLWithPath$2( - NSString path, { - required bool isDirectory, - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.initFileURLWithPath:isDirectory:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_1ged0jd( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_isDirectory_relativeToURL_, - path.ref.pointer, - isDirectory, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initFileURLWithPath:relativeToURL: - NSURL initFileURLWithPath$3(NSString path, {NSURL? relativeToURL}) { - objc.checkOsVersionInternal( - 'NSURL.initFileURLWithPath:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_relativeToURL_, - path.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSURL? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithDataRepresentation:relativeToURL: - NSURL initWithDataRepresentation(NSData data, {NSURL? relativeToURL}) { - objc.checkOsVersionInternal( - 'NSURL.initWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithDataRepresentation_relativeToURL_, - data.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithString: - NSURL? initWithString(NSString URLString) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithString_, - URLString.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithString:encodingInvalidCharacters: - /// - /// iOS: introduced 17.0.0 - /// macOS: introduced 14.0.0 - NSURL? initWithString$1( - NSString URLString, { - required bool encodingInvalidCharacters, - }) { - objc.checkOsVersionInternal( - 'NSURL.initWithString:encodingInvalidCharacters:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithString_encodingInvalidCharacters_, - URLString.ref.pointer, - encodingInvalidCharacters, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithString:relativeToURL: - NSURL? initWithString$2(NSString URLString, {NSURL? relativeToURL}) { - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithString_relativeToURL_, - URLString.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// isFileReferenceURL - bool isFileReferenceURL() { - objc.checkOsVersionInternal( - 'NSURL.isFileReferenceURL', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_isFileReferenceURL); - } - - /// isFileURL - bool get fileURL { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isFileURL); - } - - /// iOS: introduced 2.0.0, deprecated 13.0.0 - /// macOS: introduced 10.2.0, deprecated 10.15.0 - NSString? get parameterString { - objc.checkOsVersionInternal( - 'NSURL.parameterString', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_parameterString); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// password - NSString? get password { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_password); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// path - NSString? get path { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_path); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// port - NSNumber? get port { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_port); - return _ret.address == 0 - ? null - : NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// query - NSString? get query { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_query); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// relativePath - NSString? get relativePath { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_relativePath); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// relativeString - NSString get relativeString { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_relativeString); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// removeAllCachedResourceValues - void removeAllCachedResourceValues() { - objc.checkOsVersionInternal( - 'NSURL.removeAllCachedResourceValues', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllCachedResourceValues); - } - - /// removeCachedResourceValueForKey: - void removeCachedResourceValueForKey(NSString key) { - objc.checkOsVersionInternal( - 'NSURL.removeCachedResourceValueForKey:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeCachedResourceValueForKey_, - key.ref.pointer, - ); - } - - /// resourceSpecifier - NSString? get resourceSpecifier { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_resourceSpecifier, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// resourceValuesForKeys:error: - NSDictionary? resourceValuesForKeys$1( - NSArray keys, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.resourceValuesForKeys:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1lhpu4m( - this.ref.pointer, - _sel_resourceValuesForKeys_error_, - keys.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// scheme - NSString? get scheme { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_scheme); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// setResourceValue:forKey:error: - bool setResourceValue( - objc.ObjCObjectBase? value, { - required NSString forKey, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.setResourceValue:forKey:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_6z4k82( - this.ref.pointer, - _sel_setResourceValue_forKey_error_, - value?.ref.pointer ?? ffi.nullptr, - forKey.ref.pointer, - error, - ); - } - - /// setResourceValues:error: - bool setResourceValues( - NSDictionary keyedValues, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.setResourceValues:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_l9p60w( - this.ref.pointer, - _sel_setResourceValues_error_, - keyedValues.ref.pointer, - error, - ); - } - - /// setTemporaryResourceValue:forKey: - void setTemporaryResourceValue( - objc.ObjCObjectBase? value, { - required NSString forKey, - }) { - objc.checkOsVersionInternal( - 'NSURL.setTemporaryResourceValue:forKey:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_setTemporaryResourceValue_forKey_, - value?.ref.pointer ?? ffi.nullptr, - forKey.ref.pointer, - ); - } - - /// standardizedURL - NSURL? get standardizedURL { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_standardizedURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// startAccessingSecurityScopedResource - bool startAccessingSecurityScopedResource() { - objc.checkOsVersionInternal( - 'NSURL.startAccessingSecurityScopedResource', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635( - this.ref.pointer, - _sel_startAccessingSecurityScopedResource, - ); - } - - /// stopAccessingSecurityScopedResource - void stopAccessingSecurityScopedResource() { - objc.checkOsVersionInternal( - 'NSURL.stopAccessingSecurityScopedResource', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl9qdv( - this.ref.pointer, - _sel_stopAccessingSecurityScopedResource, - ); - } - - /// user - NSString? get user { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_user); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSURL constructed with the default `new` method. - factory NSURL() => new$(); -} - -enum NSURLBookmarkCreationOptions { - NSURLBookmarkCreationPreferFileIDResolution(256), - NSURLBookmarkCreationMinimalBookmark(512), - NSURLBookmarkCreationSuitableForBookmarkFile(1024), - NSURLBookmarkCreationWithSecurityScope(2048), - NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess(4096), - NSURLBookmarkCreationWithoutImplicitSecurityScope(536870912); - - final int value; - const NSURLBookmarkCreationOptions(this.value); - - static NSURLBookmarkCreationOptions fromValue(int value) => switch (value) { - 256 => NSURLBookmarkCreationPreferFileIDResolution, - 512 => NSURLBookmarkCreationMinimalBookmark, - 1024 => NSURLBookmarkCreationSuitableForBookmarkFile, - 2048 => NSURLBookmarkCreationWithSecurityScope, - 4096 => NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess, - 536870912 => NSURLBookmarkCreationWithoutImplicitSecurityScope, - _ => throw ArgumentError( - 'Unknown value for NSURLBookmarkCreationOptions: $value', - ), - }; -} - -enum NSURLBookmarkResolutionOptions { - NSURLBookmarkResolutionWithoutUI(256), - NSURLBookmarkResolutionWithoutMounting(512), - NSURLBookmarkResolutionWithSecurityScope(1024), - NSURLBookmarkResolutionWithoutImplicitStartAccessing(32768); - - final int value; - const NSURLBookmarkResolutionOptions(this.value); - - static NSURLBookmarkResolutionOptions fromValue(int value) => switch (value) { - 256 => NSURLBookmarkResolutionWithoutUI, - 512 => NSURLBookmarkResolutionWithoutMounting, - 1024 => NSURLBookmarkResolutionWithSecurityScope, - 32768 => NSURLBookmarkResolutionWithoutImplicitStartAccessing, - _ => throw ArgumentError( - 'Unknown value for NSURLBookmarkResolutionOptions: $value', - ), - }; -} - -/// NSURLHandle -class NSURLHandle extends NSObject { - NSURLHandle._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSURLHandle] that points to the same underlying object as [other]. - NSURLHandle.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSURLHandle] that wraps the given raw object pointer. - NSURLHandle.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLHandle]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSURLHandle, - ); - } - - /// alloc - static NSURLHandle alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSURLHandle, _sel_alloc); - return NSURLHandle.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSURLHandle allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSURLHandle, - _sel_allocWithZone_, - zone, - ); - return NSURLHandle.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSURLHandle new$() { - final _ret = _objc_msgSend_151sglz(_class_NSURLHandle, _sel_new); - return NSURLHandle.castFromPointer(_ret, retain: false, release: true); - } - - /// autorelease - NSURLHandle autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSURLHandle.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSURLHandle init() { - objc.checkOsVersionInternal( - 'NSURLHandle.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSURLHandle.castFromPointer(_ret, retain: false, release: true); - } - - /// retain - NSURLHandle retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSURLHandle.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSURLHandle self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSURLHandle.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSURLHandle constructed with the default `new` method. - factory NSURLHandle() => new$(); -} - -enum NSURLHandleStatus { - NSURLHandleNotLoaded(0), - NSURLHandleLoadSucceeded(1), - NSURLHandleLoadInProgress(2), - NSURLHandleLoadFailed(3); - - final int value; - const NSURLHandleStatus(this.value); - - static NSURLHandleStatus fromValue(int value) => switch (value) { - 0 => NSURLHandleNotLoaded, - 1 => NSURLHandleLoadSucceeded, - 2 => NSURLHandleLoadInProgress, - 3 => NSURLHandleLoadFailed, - _ => throw ArgumentError('Unknown value for NSURLHandleStatus: $value'), - }; -} - -/// NSValue -class NSValue extends NSObject implements NSCopying, NSSecureCoding { - NSValue._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSValue] that points to the same underlying object as [other]. - NSValue.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSValue] that wraps the given raw object pointer. - NSValue.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSValue]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSValue, - ); - } - - /// alloc - static NSValue alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSValue, _sel_alloc); - return NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSValue allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSValue, - _sel_allocWithZone_, - zone, - ); - return NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSValue new$() { - final _ret = _objc_msgSend_151sglz(_class_NSValue, _sel_new); - return NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSValue, _sel_supportsSecureCoding); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// getValue:size: - void getValue(ffi.Pointer value, {required int size}) { - objc.checkOsVersionInternal( - 'NSValue.getValue:size:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_zuf90e(this.ref.pointer, _sel_getValue_size_, value, size); - } - - /// init - NSValue init() { - objc.checkOsVersionInternal( - 'NSValue.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:objCType: - NSValue initWithBytes( - ffi.Pointer value, { - required ffi.Pointer objCType, - }) { - final _ret = _objc_msgSend_e9mncn( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_objCType_, - value, - objCType, - ); - return NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSValue? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// objCType - ffi.Pointer get objCType { - return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_objCType); - } - - /// Returns a new instance of NSValue constructed with the default `new` method. - factory NSValue() => new$(); -} - -final class NSZone extends ffi.Opaque {} - -ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline) - .cast(); -ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSArray_ffiVoid_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSArray_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_NSArray_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - NSArray Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSArray_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSArray_ffiVoid_CallExtension - on objc.ObjCBlock)> { - NSArray call(ffi.Pointer arg0) => NSArray.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); -} - -int _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline, - 0, - ) - .cast(); -int -_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as int Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable = - ffi.Pointer.fromFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline, - 0, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - NSComparisonResult Function(objc.ObjCObjectBase, objc.ObjCObjectBase) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - objc.ObjCObjectBase(arg1, retain: true, release: true), - ).value, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_CallExtension - on - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - NSComparisonResult call(objc.ObjCObjectBase arg0, objc.ObjCObjectBase arg1) => - NSComparisonResult.fromValue( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer), - ); -} - -int -_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline, - 0, - ) - .cast(); -int -_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as int Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer -_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable = - ffi.Pointer.fromFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline, - 0, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock, NSString)>`. -abstract final class ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSString)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSString)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock, NSString)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSString)>( - objc.newPointerBlock( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSString)> - fromFunction( - NSItemProviderRepresentationVisibility Function( - ffi.Pointer, - NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSString)>( - objc.newClosureBlock( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - NSString.castFromPointer(arg1, retain: true, release: true), - ).value, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, NSString)>`. -extension ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_CallExtension - on objc.ObjCBlock, NSString)> { - NSItemProviderRepresentationVisibility call( - ffi.Pointer arg0, - NSString arg1, - ) => NSItemProviderRepresentationVisibility.fromValue( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer), - ); -} - -ffi.Pointer -_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer -_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrTrampoline, - ) - .cast(); -ffi.Pointer -_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); -ffi.Pointer -_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureTrampoline, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => - objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - >( - objc.newPointerBlock( - _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - > - fromFunction( - NSOrderedCollectionChange Function(NSOrderedCollectionChange) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - >( - objc.newClosureBlock( - _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureCallable, - (ffi.Pointer arg0) => fn( - NSOrderedCollectionChange.castFromPointer( - arg0, - retain: true, - release: true, - ), - ).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_CallExtension - on - objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - > { - NSOrderedCollectionChange call(NSOrderedCollectionChange arg0) => - NSOrderedCollectionChange.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer -_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ))(arg0); -ffi.Pointer -_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock? Function(NSProgress)>`. -abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.ObjCBlock? Function(NSProgress) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock? Function(NSProgress)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock< - objc.ObjCBlock? Function(NSProgress) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - > - ptr, - ) => - objc.ObjCBlock? Function(NSProgress)>( - objc.newPointerBlock( - _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.ObjCBlock? Function(NSProgress) - > - fromFunction( - objc.ObjCBlock? Function(NSProgress) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock? Function(NSProgress)>( - objc.newClosureBlock( - _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureCallable, - (ffi.Pointer arg0) => - fn( - NSProgress.castFromPointer(arg0, retain: true, release: true), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock? Function(NSProgress)>`. -extension ObjCBlock_NSProgressUnpublishingHandler_NSProgress_CallExtension - on - objc.ObjCBlock< - objc.ObjCBlock? Function(NSProgress) - > { - objc.ObjCBlock? call(NSProgress arg0) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer) - .address == - 0 - ? null - : ObjCBlock_ffiVoid.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ))(arg0); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSProgress_ffiVoidNSDataNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSProgress? Function(objc.ObjCBlock) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - NSProgress? Function(objc.ObjCBlock) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSProgress? Function(objc.ObjCBlock) - > - fromFunction( - NSProgress? Function(objc.ObjCBlock) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureCallable, - (ffi.Pointer arg0) => - fn( - ObjCBlock_ffiVoid_NSData_NSError.castFromPointer( - arg0, - retain: true, - release: true, - ), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSProgress_ffiVoidNSDataNSError_CallExtension - on - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > { - NSProgress? call(objc.ObjCBlock arg0) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer) - .address == - 0 - ? null - : NSProgress.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ))(arg0); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > - fromFunction( - NSProgress? Function( - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureCallable, - (ffi.Pointer arg0) => - fn( - ObjCBlock_ffiVoid_NSURL_bool_NSError.castFromPointer( - arg0, - retain: true, - release: true, - ), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_CallExtension - on - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > { - NSProgress? call( - objc.ObjCBlock arg0, - ) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer) - .address == - 0 - ? null - : NSProgress.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock, NSString, objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - > - fromFunction( - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - fn( - arg0, - NSString.castFromPointer(arg1, retain: true, release: true), - ObjCBlock_ffiVoid_NSData_NSError.castFromPointer( - arg2, - retain: true, - release: true, - ), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, NSString, objc.ObjCBlock)>`. -extension ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_CallExtension - on - objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - > { - NSProgress? call( - ffi.Pointer arg0, - NSString arg1, - objc.ObjCBlock arg2, - ) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer) - .address == - 0 - ? null - : NSProgress.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ))(arg0); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock?, NSError?)>)>`. -abstract final class ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - > - fromFunction( - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureCallable, - (ffi.Pointer arg0) => - fn( - ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError.castFromPointer( - arg0, - retain: true, - release: true, - ), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock?, NSError?)>)>`. -extension ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_CallExtension - on - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - > { - NSProgress? call( - objc.ObjCBlock?, NSError?)> - arg0, - ) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer) - .address == - 0 - ? null - : NSProgress.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer _ObjCBlock_NSString_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer _ObjCBlock_NSString_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSString_ffiVoid_fnPtrTrampoline) - .cast(); -ffi.Pointer _ObjCBlock_NSString_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_NSString_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSString_ffiVoid_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSString_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_NSString_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - NSString Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSString_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSString_ffiVoid_CallExtension - on objc.ObjCBlock)> { - NSString call(ffi.Pointer arg0) => NSString.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); -} - -int _ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); -ffi.Pointer _ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline, 0) - .cast(); -int _ObjCBlock_NSUInteger_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_NSUInteger_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSUInteger_ffiVoid_closureTrampoline, 0) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSUInteger_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - int Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSUInteger_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSUInteger_ffiVoid_CallExtension - on objc.ObjCBlock)> { - int call(ffi.Pointer arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); -} - -int -_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - ffi.UnsignedLong arg3, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >()(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - >( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline, - 0, - ) - .cast(); -int -_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, -) => - (objc.getBlockClosure(block) - as int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ))(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable = - ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - >( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline, - 0, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - ffi.UnsignedLong arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - fromFunction( - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, - ) => fn(arg0, arg1, arg2, arg3), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. -extension ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_CallExtension - on - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > { - int call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - ffi.UnsignedLong arg3, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >()(ref.pointer, arg0, arg1, arg2, arg3); -} - -ffi.Pointer _ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction Function(ffi.Pointer)>()(arg0); -ffi.Pointer _ObjCBlock_NSZone_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline) - .cast(); -ffi.Pointer _ObjCBlock_NSZone_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_NSZone_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSZone_ffiVoid_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_NSZone_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function(ffi.Pointer)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_NSZone_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunction( - ffi.Pointer Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_NSZone_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_NSZone_ffiVoid_CallExtension - on objc.ObjCBlock Function(ffi.Pointer)> { - ffi.Pointer call(ffi.Pointer arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); -} - -bool _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_KeyType_ObjectType_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_bool_KeyType_ObjectType_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_KeyType_ObjectType_bool_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_KeyType_ObjectType_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - bool Function( - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_bool_KeyType_ObjectType_bool_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - objc.ObjCObjectBase(arg1, retain: true, release: true), - arg2, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_bool_KeyType_ObjectType_bool_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call( - objc.ObjCObjectBase arg0, - objc.ObjCObjectBase arg1, - ffi.Pointer arg2, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2); -} - -bool _ObjCBlock_bool_NSUInteger_bool_fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) - > - >() - .asFunction)>()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_NSUInteger_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_bool_NSUInteger_bool_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_NSUInteger_bool_closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, -) => (objc.getBlockClosure(block) as bool Function(int, ffi.Pointer))( - arg0, - arg1, -); -ffi.Pointer _ObjCBlock_bool_NSUInteger_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_bool_NSUInteger_bool_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_bool_NSUInteger_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_bool_NSUInteger_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - fromFunction( - bool Function(int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_bool_NSUInteger_bool_closureCallable, - (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_bool_NSUInteger_bool_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > { - bool call(int arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); -} - -bool _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, int, ffi.Pointer) - >()(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ObjectType_NSUInteger_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_bool_ObjectType_NSUInteger_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ObjectType_NSUInteger_bool_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ObjectType_NSUInteger_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - fromFunction( - bool Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_bool_ObjectType_NSUInteger_bool_closureCallable, - ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - arg1, - arg2, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. -extension ObjCBlock_bool_ObjectType_NSUInteger_bool_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > { - bool call(objc.ObjCObjectBase arg0, int arg1, ffi.Pointer arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1, arg2); -} - -bool _ObjCBlock_bool_ObjectType_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ObjectType_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ObjectType_bool_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ObjectType_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as bool Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_bool_ObjectType_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ObjectType_bool_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ObjectType_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_bool_ObjectType_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - bool Function(objc.ObjCObjectBase, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_bool_ObjectType_bool_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: true, release: true), arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ObjectType_bool_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > { - bool call(objc.ObjCObjectBase arg0, ffi.Pointer arg1) => ref - .pointer - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1); -} - -bool _ObjCBlock_bool_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast arg0)>>() - .asFunction)>()(arg0); -ffi.Pointer _ObjCBlock_bool_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) as bool Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_bool_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_bool_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - bool Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_bool_ffiVoid_CallExtension - on objc.ObjCBlock)> { - bool call(ffi.Pointer arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); -} - -bool _ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as bool Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_bool_ffiVoid_Protocol_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, Protocol)>`. -abstract final class ObjCBlock_bool_ffiVoid_Protocol { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, Protocol)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, Protocol)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock, Protocol)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, Protocol)>( - objc.newPointerBlock( - _ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, Protocol)> - fromFunction( - bool Function(ffi.Pointer, Protocol) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, Protocol)>( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_Protocol_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, Protocol.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, Protocol)>`. -extension ObjCBlock_bool_ffiVoid_Protocol_CallExtension - on objc.ObjCBlock, Protocol)> { - bool call(ffi.Pointer arg0, Protocol arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer); -} - -bool _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as bool Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ffiVoid_objcObjCObject { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - bool Function(ffi.Pointer, objc.ObjCObjectBase) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, objc.ObjCObjectBase(arg1, retain: true, release: true)), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ffiVoid_objcObjCObject_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > { - bool call(ffi.Pointer arg0, objc.ObjCObjectBase arg1) => ref - .pointer - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer); -} - -bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ffiVoid_objcObjCSelector { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - bool Function(ffi.Pointer, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ffiVoid_objcObjCSelector_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call(ffi.Pointer arg0, ffi.Pointer arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); -} - -void _ObjCBlock_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, -) => block.ref.target - .cast>() - .asFunction()(); -ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer) - >(_ObjCBlock_ffiVoid_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_closureTrampoline( - ffi.Pointer block, -) => (objc.getBlockClosure(block) as void Function())(); -ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer) - >(_ObjCBlock_ffiVoid_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_listenerTrampoline( - ffi.Pointer block, -) { - (objc.getBlockClosure(block) as void Function())(); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable)> -_ObjCBlock_ffiVoid_listenerCallable = - ffi.NativeCallable< - ffi.Void Function(ffi.Pointer) - >.listener(_ObjCBlock_ffiVoid_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, -) { - try { - (objc.getBlockClosure(block) as void Function())(); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Pointer) -> -_ObjCBlock_ffiVoid_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Pointer) -> -_ObjCBlock_ffiVoid_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_closureCallable, - () => fn(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function() fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1pl9qdv(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function() fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1pl9qdv( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_CallExtension - on objc.ObjCBlock { - void call() => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block) - > - >() - .asFunction)>()( - ref.pointer, - ); -} - -void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_KeyType_ObjectType_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - void Function( - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - objc.ObjCObjectBase(arg1, retain: true, release: true), - arg2, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - listener( - void Function( - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerCallable.nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - arg2, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1o83rbn(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - blocking( - void Function( - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingCallable.nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - arg2, - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - arg2, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1o83rbn( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_KeyType_ObjectType_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - void call( - objc.ObjCObjectBase arg0, - objc.ObjCObjectBase arg1, - ffi.Pointer arg2, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2); -} - -void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSData_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSData_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSData_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSData?, NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSData.castFromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSData?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSData.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSData?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSData.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSData.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSData_NSError_CallExtension - on objc.ObjCBlock { - void call(NSData? arg0, NSError? arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1?.ref.pointer ?? ffi.nullptr, - ); -} - -void -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline, - ) - .cast(); -void -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline, - ) - .cast(); -void -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>`. -abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary, - ) - > - fromFunction( - void Function( - objc.ObjCBlock?, NSError)>, - objc.ObjCObjectBase, - NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( - arg0, - retain: true, - release: true, - ), - objc.ObjCObjectBase(arg1, retain: true, release: true), - NSDictionary.castFromPointer(arg2, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary, - ) - > - listener( - void Function( - objc.ObjCBlock?, NSError)>, - objc.ObjCObjectBase, - NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( - arg0, - retain: false, - release: true, - ), - objc.ObjCObjectBase(arg1, retain: false, release: true), - NSDictionary.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1b3bb6a(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary, - ) - > - blocking( - void Function( - objc.ObjCBlock?, NSError)>, - objc.ObjCObjectBase, - NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( - arg0, - retain: false, - release: true, - ), - objc.ObjCObjectBase(arg1, retain: false, release: true), - NSDictionary.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( - arg0, - retain: false, - release: true, - ), - objc.ObjCObjectBase(arg1, retain: false, release: true), - NSDictionary.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>`. -extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - > { - void call( - objc.ObjCBlock?, NSError)> - arg0, - objc.ObjCObjectBase arg1, - NSDictionary arg2, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); -} - -void _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline( - ffi.Pointer block, - NSRange arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(NSRange arg0, ffi.Pointer arg1) - > - >() - .asFunction)>()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline( - ffi.Pointer block, - NSRange arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function(NSRange, ffi.Pointer))(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSRange_bool_listenerTrampoline( - ffi.Pointer block, - NSRange arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function(NSRange, ffi.Pointer))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSRange_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSRange_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - NSRange arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(NSRange, ffi.Pointer))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSRange_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSRange_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(NSRange arg0, ffi.Pointer arg1) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSRange_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - void Function(NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSRange_bool_closureCallable, - (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - listener( - void Function(NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSRange_bool_listenerCallable.nativeFunction.cast(), - (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_zkjmn1(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> - blocking( - void Function(NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSRange_bool_blockingCallable.nativeFunction.cast(), - (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSRange_bool_blockingListenerCallable.nativeFunction - .cast(), - (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_zkjmn1( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSRange_bool_CallExtension - on objc.ObjCBlock)> { - void call(NSRange arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSRange arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); -} - -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - fromFunction( - void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureCallable, - ( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => fn( - arg0.address == 0 - ? null - : NSString.castFromPointer(arg0, retain: true, release: true), - arg1, - arg2, - arg3, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - listener( - void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => fn( - arg0.address == 0 - ? null - : NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2, - arg3, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_lmc3p5(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - blocking( - void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => fn( - arg0.address == 0 - ? null - : NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2, - arg3, - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => fn( - arg0.address == 0 - ? null - : NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2, - arg3, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_lmc3p5( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > { - void call( - NSString? arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1, arg2, arg3); -} - -void _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSString_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSString_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSString_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSString_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - void Function(NSString, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_bool_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(NSString.castFromPointer(arg0, retain: true, release: true), arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - listener( - void Function(NSString, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_bool_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_t8l8el(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> - blocking( - void Function(NSString, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_bool_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_bool_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_t8l8el( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSString_bool_CallExtension - on objc.ObjCBlock)> { - void call(NSString arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1); -} - -void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); -ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSTimer_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSTimer_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { - (objc.getBlockClosure(block) as void Function(ffi.Pointer))( - arg0, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSTimer_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSTimer_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSTimer_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, -) { - try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSTimer_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSTimer_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSTimer_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSTimer_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSTimer { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_NSTimer_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSTimer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSTimer_closureCallable, - (ffi.Pointer arg0) => - fn(NSTimer.castFromPointer(arg0, retain: true, release: true)), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSTimer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSTimer_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(NSTimer.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_xtuoz7(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSTimer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSTimer_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(NSTimer.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSTimer_blockingListenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(NSTimer.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_xtuoz7( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSTimer_CallExtension - on objc.ObjCBlock { - void call(NSTimer arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer); -} - -void _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) - > - >() - .asFunction)>()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, -) => (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( - arg0, - arg1, -); -ffi.Pointer _ObjCBlock_ffiVoid_NSUInteger_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSUInteger_bool_listenerTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSUInteger_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSUInteger_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSUInteger_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSUInteger_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSUInteger_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - fromFunction( - void Function(int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSUInteger_bool_closureCallable, - (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - listener( - void Function(int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSUInteger_bool_listenerCallable.nativeFunction.cast(), - (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_q5jeyk(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - blocking( - void Function(int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSUInteger_bool_blockingCallable.nativeFunction.cast(), - (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSUInteger_bool_blockingListenerCallable.nativeFunction - .cast(), - (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_q5jeyk( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSUInteger_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > { - void call(int arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); -} - -void _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSURL_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSURL_NSError_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURL_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSURL?, NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURL?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSError_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURL?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSError_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSError_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURL_NSError_CallExtension - on objc.ObjCBlock { - void call(NSURL? arg0, NSError? arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1?.ref.pointer ?? ffi.nullptr, - ); -} - -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - bool, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - bool, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - bool, - ffi.Pointer, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - bool, - ffi.Pointer, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURL_bool_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(NSURL?, bool, NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureCallable, - ( - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, - ) => fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: true, release: true), - arg1, - arg2.address == 0 - ? null - : NSError.castFromPointer(arg2, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURL?, bool, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerCallable.nativeFunction - .cast(), - ( - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, - ) => fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2.address == 0 - ? null - : NSError.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_rnu2c5(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURL?, bool, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingCallable.nativeFunction - .cast(), - ( - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, - ) => fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2.address == 0 - ? null - : NSError.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, - ) => fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2.address == 0 - ? null - : NSError.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_rnu2c5( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURL_bool_NSError_CallExtension - on objc.ObjCBlock { - void call(NSURL? arg0, bool arg1, NSError? arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1, - arg2?.ref.pointer ?? ffi.nullptr, - ); -} - -void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, int, ffi.Pointer) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - fromFunction( - void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureCallable, - ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - arg1, - arg2, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - listener( - void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - arg1, - arg2, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1p9ui4q(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - blocking( - void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - arg1, - arg2, - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - arg1, - arg2, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > { - void call(objc.ObjCObjectBase arg0, int arg1, ffi.Pointer arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1, arg2); -} - -void _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ObjectType_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ObjectType_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_ffiVoid_ObjectType_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ObjectType_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ObjectType_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ObjectType_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ObjectType_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_bool_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: true, release: true), arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - listener( - void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_bool_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_t8l8el(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - blocking( - void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_bool_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_bool_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_t8l8el( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ObjectType_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > { - void call(objc.ObjCObjectBase arg0, ffi.Pointer arg1) => ref - .pointer - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1); -} - -void _ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast arg0)>>() - .asFunction)>()(arg0); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { - (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Pointer) -> -_ObjCBlock_ffiVoid_ffiVoid_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, -) { - try { - (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_ovsamd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_ovsamd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_CallExtension - on objc.ObjCBlock)> { - void call(ffi.Pointer arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, NSCoder)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSCoder)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSCoder)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock, NSCoder)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSCoder)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSCoder)> - fromFunction( - void Function(ffi.Pointer, NSCoder) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSCoder)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSCoder.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSCoder)> - listener( - void Function(ffi.Pointer, NSCoder) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_18v1jvf(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock, NSCoder)>( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSCoder)> - blocking( - void Function(ffi.Pointer, NSCoder) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock, NSCoder)>( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock, NSCoder)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSCoder_CallExtension - on objc.ObjCBlock, NSCoder)> { - void call(ffi.Pointer arg0, NSCoder arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer); -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, NSPortMessage)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSPortMessage { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSPortMessage)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSPortMessage)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock, NSPortMessage)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSPortMessage)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSPortMessage)> - fromFunction( - void Function(ffi.Pointer, NSPortMessage) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSPortMessage)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - NSPortMessage.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSPortMessage)> - listener( - void Function(ffi.Pointer, NSPortMessage) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - NSPortMessage.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_18v1jvf(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSPortMessage) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSPortMessage)> - blocking( - void Function(ffi.Pointer, NSPortMessage) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - NSPortMessage.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - NSPortMessage.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSPortMessage) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, NSPortMessage)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_CallExtension - on objc.ObjCBlock, NSPortMessage)> { - void call(ffi.Pointer arg0, NSPortMessage arg1) => ref - .pointer - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer); -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, NSRange, ffi.Pointer) - >()(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, NSRange, ffi.Pointer))( - arg0, - arg1, - arg2, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, NSRange, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - fromFunction( - void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureCallable, - ( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => fn(arg0, arg1, arg2), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - listener( - void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1q8ia8l(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - blocking( - void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, NSRange, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - > { - void call( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer, int) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, NSStream, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - NSStream.castFromPointer(arg1, retain: true, release: true), - NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - NSStream.castFromPointer(arg1, retain: false, release: true), - NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_hoampi(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - NSStream.castFromPointer(arg1, retain: false, release: true), - NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - NSStream.castFromPointer(arg1, retain: false, release: true), - NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_hoampi( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, NSStream, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > { - void call(ffi.Pointer arg0, NSStream arg1, NSStreamEvent arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.value); -} - -void -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrTrampoline, - ) - .cast(); -void -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureTrampoline, - ) - .cast(); -void -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, NSString, ffi.Pointer, NSDictionary, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - > - fromFunction( - void Function( - ffi.Pointer, - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => fn( - arg0, - NSString.castFromPointer(arg1, retain: true, release: true), - objc.ObjCObjectBase(arg2, retain: true, release: true), - NSDictionary.castFromPointer(arg3, retain: true, release: true), - arg4, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - > - listener( - void Function( - ffi.Pointer, - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => fn( - arg0, - NSString.castFromPointer(arg1, retain: false, release: true), - objc.ObjCObjectBase(arg2, retain: false, release: true), - NSDictionary.castFromPointer(arg3, retain: false, release: true), - arg4, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1sr3ozv(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - > - blocking( - void Function( - ffi.Pointer, - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => fn( - arg0, - NSString.castFromPointer(arg1, retain: false, release: true), - objc.ObjCObjectBase(arg2, retain: false, release: true), - NSDictionary.castFromPointer(arg3, retain: false, release: true), - arg4, - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => fn( - arg0, - NSString.castFromPointer(arg1, retain: false, release: true), - objc.ObjCObjectBase(arg2, retain: false, release: true), - NSDictionary.castFromPointer(arg3, retain: false, release: true), - arg4, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, NSString, ffi.Pointer, NSDictionary, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSString, - ffi.Pointer, - NSDictionary, - ffi.Pointer, - ) - > { - void call( - ffi.Pointer arg0, - NSString arg1, - objc.ObjCObjectBase arg2, - NSDictionary arg3, - ffi.Pointer arg4, - ) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - arg1.ref.pointer, - arg2.ref.pointer, - arg3.ref.pointer, - arg4, - ); -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.UnsignedLong arg1) - > - >() - .asFunction, int)>()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) => (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( - arg0, - arg1, -); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) { - (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - int arg1, -) { - try { - (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.UnsignedLong arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureCallable, - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_zuf90e(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_zuf90e( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSUInteger_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > { - void call(ffi.Pointer arg0, int arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, arg1); -} - -void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock?, NSError?)>`. -abstract final class ObjCBlock_ffiVoid_idNSItemProviderReading_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - fromFunction( - void Function(NSItemProviderReading?, NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => fn( - arg0.address == 0 - ? null - : NSItemProviderReading.castFromPointer( - arg0, - retain: true, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - listener( - void Function(NSItemProviderReading?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderReading.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - blocking( - void Function(NSItemProviderReading?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderReading.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderReading.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock?, NSError?)>`. -extension ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > { - void call(NSItemProviderReading? arg0, NSError? arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1?.ref.pointer ?? ffi.nullptr, - ); -} - -void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock?, NSError?)>`. -abstract final class ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - fromFunction( - void Function(NSItemProviderWriting?, NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => fn( - arg0.address == 0 - ? null - : NSItemProviderWriting.castFromPointer( - arg0, - retain: true, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - listener( - void Function(NSItemProviderWriting?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderWriting.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - blocking( - void Function(NSItemProviderWriting?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderWriting.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderWriting.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock?, NSError?)>`. -extension ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > { - void call(NSItemProviderWriting? arg0, NSError? arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1?.ref.pointer ?? ffi.nullptr, - ); -} - -void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock?, NSError)>`. -abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock?, NSError)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock?, NSError)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > - fromFunction( - void Function(NSSecureCoding?, NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock?, NSError)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer( - arg0, - retain: true, - release: true, - ), - NSError.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > - listener( - void Function(NSSecureCoding?, NSError) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer( - arg0, - retain: false, - release: true, - ), - NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > - blocking( - void Function(NSSecureCoding?, NSError) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer( - arg0, - retain: false, - release: true, - ), - NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer( - arg0, - retain: false, - release: true, - ), - NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock?, NSError)>`. -extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > { - void call(NSSecureCoding? arg0, NSError arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1.ref.pointer); -} - -void _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ) - > - >() - .asFunction, int)>()( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, int))(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_unichar_NSUInteger_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_unichar_NSUInteger_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, int))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_unichar_NSUInteger_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener(_ObjCBlock_ffiVoid_unichar_NSUInteger_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - int arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, int))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener(_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_unichar_NSUInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_unichar_NSUInteger_closureCallable, - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_unichar_NSUInteger_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_vhbh5h(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_vhbh5h( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_unichar_NSUInteger_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > { - void call(ffi.Pointer arg0, int arg1) => ref - .pointer - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, arg1); -} - -instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline) - .cast(); -instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as instancetype Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>`. -abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - >( - objc.newPointerBlock( - _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - > - fromFunction( - Dartinstancetype? Function(ffi.Pointer, NSCoder) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - >( - objc.newClosureBlock( - _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0, - NSCoder.castFromPointer(arg1, retain: true, release: true), - )?.ref.retainAndReturnPointer() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>`. -extension ObjCBlock_instancetype_ffiVoid_NSCoder_CallExtension - on - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - > { - Dartinstancetype? call(ffi.Pointer arg0, NSCoder arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer) - .address == - 0 - ? null - : objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer), - retain: false, - release: true, - ); -} - -instancetype -_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, -) => block.ref.target - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline) - .cast(); -instancetype -_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, -) => - (objc.getBlockClosure(block) - as instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ))(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>`. -abstract final class ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - >( - objc.newPointerBlock( - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - > - fromFunction( - Dartinstancetype? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - >( - objc.newClosureBlock( - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, - ) => - fn( - arg0, - NSData.castFromPointer(arg1, retain: true, release: true), - NSString.castFromPointer(arg2, retain: true, release: true), - arg3, - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>`. -extension ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_CallExtension - on - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - > { - Dartinstancetype? call( - ffi.Pointer arg0, - NSData arg1, - NSString arg2, - ffi.Pointer> arg3, - ) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3) - .address == - 0 - ? null - : objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock? Function(NSError, NSString)>`. -abstract final class ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer? Function(NSError, NSString) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock? Function(NSError, NSString)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer? Function(NSError, NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock? Function(NSError, NSString)>( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer? Function(NSError, NSString) - > - fromFunction( - objc.ObjCObjectBase? Function(NSError, NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock? Function(NSError, NSString)>( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - fn( - NSError.castFromPointer(arg0, retain: true, release: true), - NSString.castFromPointer(arg1, retain: true, release: true), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock? Function(NSError, NSString)>`. -extension ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_CallExtension - on - objc.ObjCBlock< - ffi.Pointer? Function(NSError, NSString) - > { - objc.ObjCObjectBase? call(NSError arg0, NSString arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer) - .address == - 0 - ? null - : objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - objc.ObjCObjectBase Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid_NSZone { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObjectBase Function(ffi.Pointer, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, arg1).ref.retainAndReturnPointer(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_NSZone_CallExtension - on - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - objc.ObjCObjectBase call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1), - retain: false, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObjectBase Function( - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, arg1).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - objc.ObjCObjectBase call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline, - ) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObjectBase Function( - ffi.Pointer, - ffi.Pointer, - objc.ObjCObjectBase, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - arg0, - arg1, - objc.ObjCObjectBase(arg2, retain: true, release: true), - ).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - objc.ObjCObjectBase call( - ffi.Pointer arg0, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2, - ) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline, - ) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObjectBase Function( - ffi.Pointer, - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => fn( - arg0, - arg1, - objc.ObjCObjectBase(arg2, retain: true, release: true), - objc.ObjCObjectBase(arg3, retain: true, release: true), - ).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - objc.ObjCObjectBase call( - ffi.Pointer arg0, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2, - objc.ObjCObjectBase arg3, - ) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2.ref.pointer, arg3.ref.pointer), - retain: true, - release: true, - ); -} - -/// Protocol for observing changes to values of objects. -interface class Observer extends objc.ObjCProtocolBase - implements NSObjectProtocol { - Observer._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [Observer] that points to the same underlying object as [other]. - Observer.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [Observer] that wraps the given raw object pointer. - Observer.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [Observer]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_Observer, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_Observer.cast()); - - /// Builds an object that implements the Observer protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static Observer implement({ - required void Function( - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); - Observer.observeValueForKeyPath_ofObject_change_context_.implement( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); - return Observer.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the Observer protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function( - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, - }) { - Observer.observeValueForKeyPath_ofObject_change_context_.implement( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the Observer protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static Observer implementAsListener({ - required void Function( - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); - Observer.observeValueForKeyPath_ofObject_change_context_ - .implementAsListener( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); - return Observer.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the Observer protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function( - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, - }) { - Observer.observeValueForKeyPath_ofObject_change_context_ - .implementAsListener( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the Observer protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static Observer implementAsBlocking({ - required void Function( - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); - Observer.observeValueForKeyPath_ofObject_change_context_ - .implementAsBlocking( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); - return Observer.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the Observer protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function( - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, - }) { - Observer.observeValueForKeyPath_ofObject_change_context_ - .implementAsBlocking( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); - } - - /// observeValueForKeyPath:ofObject:change:context: - static final observeValueForKeyPath_ofObject_change_context_ = - objc.ObjCProtocolListenableMethod< - void Function( - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - >( - _protocol_Observer, - _sel_observeValueForKeyPath_ofObject_change_context_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1sr3ozv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_Observer, - _sel_observeValueForKeyPath_ofObject_change_context_, - isRequired: true, - isInstanceMethod: true, - ), - ( - void Function( - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.fromFunction( - ( - ffi.Pointer _, - NSString arg1, - objc.ObjCObjectBase arg2, - NSDictionary arg3, - ffi.Pointer arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.listener( - ( - ffi.Pointer _, - NSString arg1, - objc.ObjCObjectBase arg2, - NSDictionary arg3, - ffi.Pointer arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - NSString, - objc.ObjCObjectBase, - NSDictionary, - ffi.Pointer, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.blocking( - ( - ffi.Pointer _, - NSString arg1, - objc.ObjCObjectBase arg2, - NSDictionary arg3, - ffi.Pointer arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); -} - -final class OpaqueAEDataStorageType extends ffi.Opaque {} - -/// Protocol -class Protocol extends objc.ObjCObjectBase { - Protocol._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [Protocol] that points to the same underlying object as [other]. - Protocol.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [Protocol] that wraps the given raw object pointer. - Protocol.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [Protocol]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_Protocol, - ); - } -} - -late final _class_DOBJCDartInputStreamAdapter = objc.getClass( - "DOBJCDartInputStreamAdapter", -); -late final _class_DOBJCDartProtocol = objc.getClass("DOBJCDartProtocol"); -late final _class_DOBJCDartProtocolBuilder = objc.getClass( - "DOBJCDartProtocolBuilder", -); -late final _class_DOBJCObservation = objc.getClass("DOBJCObservation"); -late final _class_NSArray = objc.getClass("NSArray"); -late final _class_NSCharacterSet = objc.getClass("NSCharacterSet"); -late final _class_NSCoder = objc.getClass("NSCoder"); -late final _class_NSData = objc.getClass("NSData"); -late final _class_NSDate = objc.getClass("NSDate"); -late final _class_NSDictionary = objc.getClass("NSDictionary"); -late final _class_NSEnumerator = objc.getClass("NSEnumerator"); -late final _class_NSError = objc.getClass("NSError"); -late final _class_NSIndexSet = objc.getClass("NSIndexSet"); -late final _class_NSInputStream = objc.getClass("NSInputStream"); -late final _class_NSInvocation = objc.getClass("NSInvocation"); -late final _class_NSItemProvider = objc.getClass("NSItemProvider"); -late final _class_NSLocale = objc.getClass("NSLocale"); -late final _class_NSMethodSignature = objc.getClass("NSMethodSignature"); -late final _class_NSMutableArray = objc.getClass("NSMutableArray"); -late final _class_NSMutableData = objc.getClass("NSMutableData"); -late final _class_NSMutableDictionary = objc.getClass("NSMutableDictionary"); -late final _class_NSMutableIndexSet = objc.getClass("NSMutableIndexSet"); -late final _class_NSMutableOrderedSet = objc.getClass("NSMutableOrderedSet"); -late final _class_NSMutableSet = objc.getClass("NSMutableSet"); -late final _class_NSMutableString = objc.getClass("NSMutableString"); -late final _class_NSNotification = objc.getClass("NSNotification"); -late final _class_NSNumber = objc.getClass("NSNumber"); -late final _class_NSObject = objc.getClass("NSObject"); -late final _class_NSOrderedCollectionChange = objc.getClass( - "NSOrderedCollectionChange", -); -late final _class_NSOrderedCollectionDifference = objc.getClass( - "NSOrderedCollectionDifference", -); -late final _class_NSOrderedSet = objc.getClass("NSOrderedSet"); -late final _class_NSOutputStream = objc.getClass("NSOutputStream"); -late final _class_NSPort = objc.getClass("NSPort"); -late final _class_NSPortMessage = objc.getClass("NSPortMessage"); -late final _class_NSProgress = objc.getClass("NSProgress"); -late final _class_NSRunLoop = objc.getClass("NSRunLoop"); -late final _class_NSSet = objc.getClass("NSSet"); -late final _class_NSStream = objc.getClass("NSStream"); -late final _class_NSString = objc.getClass("NSString"); -late final _class_NSTimer = objc.getClass("NSTimer"); -late final _class_NSURL = objc.getClass("NSURL"); -late final _class_NSURLHandle = objc.getClass("NSURLHandle"); -late final _class_NSValue = objc.getClass("NSValue"); -late final _class_Protocol = objc.getClass("Protocol"); -final _objc_msgSend_102xxo4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_102xxo4Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_10mlopr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_11cbyu0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_11e9f5x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_11spmsz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_122v0cv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_12py2ux = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_134vhyh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_13mclwd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Char, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_13x5boi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_13yqbb6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_14ew8zr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_14hpxwa = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_14hvw5k = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_14wwtbv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_151sglz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_158ju31 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_15bolr3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_15qeuct = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_161ne8y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool, - ) - >(); -final _objc_msgSend_1698hqz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_16f0drb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_16fy0up = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_177cajs = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_17amj0z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_17gvxvj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_182fzon = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_182fzonStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1895u4n = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18qun1e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_19lrthf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1alewu7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1b5ysjl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_1bbja28 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1bvics1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ceswyu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1co9mn4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedShort, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1d8s65w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_1d8s65wStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_1d9e4oe = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1deg8x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedShort Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1dydpdi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_1e3pm0z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_1efxbd8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1egc1c = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.UnsignedLong, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >(); -final _objc_msgSend_1ffoev1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1flkydz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1frfu5e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1fuqfwb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ged0jd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1gypgok = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1h2q612 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1i0cxyc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1i2r70j = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1i9r4xy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1i9v144 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1iyq28l = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1j9bhml = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1jiinfj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1jtxufi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1jwityx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1k0ezzm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1k101e3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.LongLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1k1o1s7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_1k4kd9s = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1k745tv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1ko4qka = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedChar Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1lbgrac = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1lsax7n = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lv8yz3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_1m7prh1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1n40f6p = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1njucl2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedShort, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1nmlvqc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_1nmlvqcStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_1nomli1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1oteutl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_1ovaulg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ozwf6k = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1p4gbjy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLongLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1pa9f4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pl40xc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1q30cs4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1qv0eq4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1r6ymhb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1s0rfm3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - double, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1s2gdyk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1s56lr9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1sotr3r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1srf6wk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1t6aok9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1tfztp = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1tiux5i = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1tv4uax = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vd1c5m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vnlaqg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1vxoo9h = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1wdb8ji = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1wt9a7r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1x2hskc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLongLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1x5ew3h = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1xi08ar = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1xpk2hb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint32, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1ya1kjn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1ym6zyw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2u4jm6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_3cbdpb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_3ctkt6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_3l8zum = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_3nbx5e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_3pyzne = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_553v = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ffi.Int64, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_56zxyn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_68x6r1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Short, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_6ex6p5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_6jmuyz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_6peh6o = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_6z4k82 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_7g3u2y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_7kpg7m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_7uautw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedChar, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_8321cp = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_898fog = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_89xgla = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_8cymbm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_91o635 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_9a64f1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_9b3h4v = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_9x4k8x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_a3wp08 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_arew0j = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_bfp043 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_bstjp9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_c0vg4w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_cfx8ce = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_cnxxyq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_d3i1uy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_d3i1uyStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_dbvvll = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_degb40 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_diypgk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_djsa9o = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_dv3z6r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_e3qsqz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_e9mncn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_eh32gn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_erqryg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_et8cuh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_f167m6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_gcjqkl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_gerswc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint8, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_gg0462 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_gg0462Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_gupwtj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_gx50so = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_hc8exi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_hiwitm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - bool, - ) - >(); -final _objc_msgSend_hk6irj = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_hwm8nu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_i30zh3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - int, - int, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_jjgvjt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_jsclrq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_k1x6mt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_k4j8m3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - bool, - ) - >(); -final _objc_msgSend_kshx9d = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_l9p60w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_lh0jh5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool, - ) - >(); -final _objc_msgSend_mabicu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_n2svg2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_nc6uds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_nnxkei = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_o16d3k = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSRange, - ) - >(); -final _objc_msgSend_o762yo = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_oa8mke = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_ot6jdx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_otx1t4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_ourvf2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_ovsamd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_p4nurx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_pfv6jd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_pg1fnv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_pysgoz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int64 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_qm9f5w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_qugqlf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_r0bo0s = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_r49ehc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_rc4ypv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_s92gih = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_sz90oi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_t7arir = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_talwei = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ud8gg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedShort Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_uimyc7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_uimyc7Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_unr2j3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_usggvf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Uint32 Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_uwvaik = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_vbymrb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_w9bq5x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - bool, - ) - >(); -final _objc_msgSend_xmlz1t = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Char Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_xpqfd7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_xrqic1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_xw2lbc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_yx8yc6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_zmbtbd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_zuf90e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_zug4wi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -late final _protocol_NSCoding = objc.getProtocol("NSCoding"); -late final _protocol_NSCopying = objc.getProtocol("NSCopying"); -late final _protocol_NSFastEnumeration = objc.getProtocol("NSFastEnumeration"); -late final _protocol_NSItemProviderReading = objc.getProtocol( - "NSItemProviderReading", -); -late final _protocol_NSItemProviderWriting = objc.getProtocol( - "NSItemProviderWriting", -); -late final _protocol_NSMutableCopying = objc.getProtocol("NSMutableCopying"); -late final _protocol_NSObject = objc.getProtocol("NSObject"); -late final _protocol_NSPortDelegate = objc.getProtocol("NSPortDelegate"); -late final _protocol_NSSecureCoding = objc.getProtocol("NSSecureCoding"); -late final _protocol_NSStreamDelegate = objc.getProtocol("NSStreamDelegate"); -late final _protocol_Observer = objc.getProtocol("Observer"); -late final _sel_URLByResolvingAliasFileAtURL_options_error_ = objc.registerName( - "URLByResolvingAliasFileAtURL:options:error:", -); -late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = - objc.registerName( - "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", - ); -late final _sel_URLWithDataRepresentation_relativeToURL_ = objc.registerName( - "URLWithDataRepresentation:relativeToURL:", -); -late final _sel_URLWithString_ = objc.registerName("URLWithString:"); -late final _sel_URLWithString_encodingInvalidCharacters_ = objc.registerName( - "URLWithString:encodingInvalidCharacters:", -); -late final _sel_URLWithString_relativeToURL_ = objc.registerName( - "URLWithString:relativeToURL:", -); -late final _sel_UTF8String = objc.registerName("UTF8String"); -late final _sel_absoluteString = objc.registerName("absoluteString"); -late final _sel_absoluteURL = objc.registerName("absoluteURL"); -late final _sel_absoluteURLWithDataRepresentation_relativeToURL_ = objc - .registerName("absoluteURLWithDataRepresentation:relativeToURL:"); -late final _sel_acceptInputForMode_beforeDate_ = objc.registerName( - "acceptInputForMode:beforeDate:", -); -late final _sel_addChild_withPendingUnitCount_ = objc.registerName( - "addChild:withPendingUnitCount:", -); -late final _sel_addData_ = objc.registerName("addData:"); -late final _sel_addEntriesFromDictionary_ = objc.registerName( - "addEntriesFromDictionary:", -); -late final _sel_addIndex_ = objc.registerName("addIndex:"); -late final _sel_addIndexesInRange_ = objc.registerName("addIndexesInRange:"); -late final _sel_addIndexes_ = objc.registerName("addIndexes:"); -late final _sel_addObject_ = objc.registerName("addObject:"); -late final _sel_addObjectsFromArray_ = objc.registerName( - "addObjectsFromArray:", -); -late final _sel_addObjects_count_ = objc.registerName("addObjects:count:"); -late final _sel_addPort_forMode_ = objc.registerName("addPort:forMode:"); -late final _sel_addProtocol_ = objc.registerName("addProtocol:"); -late final _sel_addSubscriberForFileURL_withPublishingHandler_ = objc - .registerName("addSubscriberForFileURL:withPublishingHandler:"); -late final _sel_addTimer_forMode_ = objc.registerName("addTimer:forMode:"); -late final _sel_allKeys = objc.registerName("allKeys"); -late final _sel_allKeysForObject_ = objc.registerName("allKeysForObject:"); -late final _sel_allObjects = objc.registerName("allObjects"); -late final _sel_allValues = objc.registerName("allValues"); -late final _sel_alloc = objc.registerName("alloc"); -late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); -late final _sel_alphanumericCharacterSet = objc.registerName( - "alphanumericCharacterSet", -); -late final _sel_anyObject = objc.registerName("anyObject"); -late final _sel_appendBytes_length_ = objc.registerName("appendBytes:length:"); -late final _sel_appendData_ = objc.registerName("appendData:"); -late final _sel_argumentsRetained = objc.registerName("argumentsRetained"); -late final _sel_array = objc.registerName("array"); -late final _sel_arrayByAddingObject_ = objc.registerName( - "arrayByAddingObject:", -); -late final _sel_arrayByAddingObjectsFromArray_ = objc.registerName( - "arrayByAddingObjectsFromArray:", -); -late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); -late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); -late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); -late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); -late final _sel_arrayWithObjects_count_ = objc.registerName( - "arrayWithObjects:count:", -); -late final _sel_associatedIndex = objc.registerName("associatedIndex"); -late final _sel_autorelease = objc.registerName("autorelease"); -late final _sel_availableStringEncodings = objc.registerName( - "availableStringEncodings", -); -late final _sel_baseURL = objc.registerName("baseURL"); -late final _sel_becomeCurrentWithPendingUnitCount_ = objc.registerName( - "becomeCurrentWithPendingUnitCount:", -); -late final _sel_bitmapRepresentation = objc.registerName( - "bitmapRepresentation", -); -late final _sel_bookmarkDataWithContentsOfURL_error_ = objc.registerName( - "bookmarkDataWithContentsOfURL:error:", -); -late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_ = - objc.registerName( - "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:", - ); -late final _sel_boolValue = objc.registerName("boolValue"); -late final _sel_buildInstance_ = objc.registerName("buildInstance:"); -late final _sel_bytes = objc.registerName("bytes"); -late final _sel_cStringUsingEncoding_ = objc.registerName( - "cStringUsingEncoding:", -); -late final _sel_canBeConvertedToEncoding_ = objc.registerName( - "canBeConvertedToEncoding:", -); -late final _sel_canLoadObjectOfClass_ = objc.registerName( - "canLoadObjectOfClass:", -); -late final _sel_cancel = objc.registerName("cancel"); -late final _sel_cancellationHandler = objc.registerName("cancellationHandler"); -late final _sel_capitalizedLetterCharacterSet = objc.registerName( - "capitalizedLetterCharacterSet", -); -late final _sel_capitalizedString = objc.registerName("capitalizedString"); -late final _sel_capitalizedStringWithLocale_ = objc.registerName( - "capitalizedStringWithLocale:", -); -late final _sel_caseInsensitiveCompare_ = objc.registerName( - "caseInsensitiveCompare:", -); -late final _sel_changeType = objc.registerName("changeType"); -late final _sel_changeWithObject_type_index_ = objc.registerName( - "changeWithObject:type:index:", -); -late final _sel_changeWithObject_type_index_associatedIndex_ = objc - .registerName("changeWithObject:type:index:associatedIndex:"); -late final _sel_charValue = objc.registerName("charValue"); -late final _sel_characterAtIndex_ = objc.registerName("characterAtIndex:"); -late final _sel_characterIsMember_ = objc.registerName("characterIsMember:"); -late final _sel_characterSetWithBitmapRepresentation_ = objc.registerName( - "characterSetWithBitmapRepresentation:", -); -late final _sel_characterSetWithCharactersInString_ = objc.registerName( - "characterSetWithCharactersInString:", -); -late final _sel_characterSetWithContentsOfFile_ = objc.registerName( - "characterSetWithContentsOfFile:", -); -late final _sel_characterSetWithRange_ = objc.registerName( - "characterSetWithRange:", -); -late final _sel_class = objc.registerName("class"); -late final _sel_close = objc.registerName("close"); -late final _sel_code = objc.registerName("code"); -late final _sel_commonPrefixWithString_options_ = objc.registerName( - "commonPrefixWithString:options:", -); -late final _sel_compare_ = objc.registerName("compare:"); -late final _sel_compare_options_ = objc.registerName("compare:options:"); -late final _sel_compare_options_range_ = objc.registerName( - "compare:options:range:", -); -late final _sel_compare_options_range_locale_ = objc.registerName( - "compare:options:range:locale:", -); -late final _sel_completedUnitCount = objc.registerName("completedUnitCount"); -late final _sel_components = objc.registerName("components"); -late final _sel_componentsJoinedByString_ = objc.registerName( - "componentsJoinedByString:", -); -late final _sel_componentsSeparatedByCharactersInSet_ = objc.registerName( - "componentsSeparatedByCharactersInSet:", -); -late final _sel_componentsSeparatedByString_ = objc.registerName( - "componentsSeparatedByString:", -); -late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( - "compressedDataUsingAlgorithm:error:", -); -late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); -late final _sel_containsIndex_ = objc.registerName("containsIndex:"); -late final _sel_containsIndexesInRange_ = objc.registerName( - "containsIndexesInRange:", -); -late final _sel_containsIndexes_ = objc.registerName("containsIndexes:"); -late final _sel_containsObject_ = objc.registerName("containsObject:"); -late final _sel_containsString_ = objc.registerName("containsString:"); -late final _sel_controlCharacterSet = objc.registerName("controlCharacterSet"); -late final _sel_copy = objc.registerName("copy"); -late final _sel_copyWithZone_ = objc.registerName("copyWithZone:"); -late final _sel_count = objc.registerName("count"); -late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( - "countByEnumeratingWithState:objects:count:", -); -late final _sel_countOfIndexesInRange_ = objc.registerName( - "countOfIndexesInRange:", -); -late final _sel_currentMode = objc.registerName("currentMode"); -late final _sel_currentProgress = objc.registerName("currentProgress"); -late final _sel_currentRunLoop = objc.registerName("currentRunLoop"); -late final _sel_data = objc.registerName("data"); -late final _sel_dataRepresentation = objc.registerName("dataRepresentation"); -late final _sel_dataUsingEncoding_ = objc.registerName("dataUsingEncoding:"); -late final _sel_dataUsingEncoding_allowLossyConversion_ = objc.registerName( - "dataUsingEncoding:allowLossyConversion:", -); -late final _sel_dataWithBytesNoCopy_length_ = objc.registerName( - "dataWithBytesNoCopy:length:", -); -late final _sel_dataWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( - "dataWithBytesNoCopy:length:freeWhenDone:", -); -late final _sel_dataWithBytes_length_ = objc.registerName( - "dataWithBytes:length:", -); -late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); -late final _sel_dataWithContentsOfFile_ = objc.registerName( - "dataWithContentsOfFile:", -); -late final _sel_dataWithContentsOfFile_options_error_ = objc.registerName( - "dataWithContentsOfFile:options:error:", -); -late final _sel_dataWithContentsOfURL_ = objc.registerName( - "dataWithContentsOfURL:", -); -late final _sel_dataWithContentsOfURL_options_error_ = objc.registerName( - "dataWithContentsOfURL:options:error:", -); -late final _sel_dataWithData_ = objc.registerName("dataWithData:"); -late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); -late final _sel_date = objc.registerName("date"); -late final _sel_dateByAddingTimeInterval_ = objc.registerName( - "dateByAddingTimeInterval:", -); -late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( - "dateWithTimeIntervalSince1970:", -); -late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( - "dateWithTimeIntervalSinceNow:", -); -late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( - "dateWithTimeIntervalSinceReferenceDate:", -); -late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( - "dateWithTimeInterval:sinceDate:", -); -late final _sel_dealloc = objc.registerName("dealloc"); -late final _sel_debugDescription = objc.registerName("debugDescription"); -late final _sel_debugObserver = objc.registerName("debugObserver"); -late final _sel_decimalDigitCharacterSet = objc.registerName( - "decimalDigitCharacterSet", -); -late final _sel_decodeDataObject = objc.registerName("decodeDataObject"); -late final _sel_decodeValueOfObjCType_at_size_ = objc.registerName( - "decodeValueOfObjCType:at:size:", -); -late final _sel_decomposableCharacterSet = objc.registerName( - "decomposableCharacterSet", -); -late final _sel_decomposedStringWithCanonicalMapping = objc.registerName( - "decomposedStringWithCanonicalMapping", -); -late final _sel_decomposedStringWithCompatibilityMapping = objc.registerName( - "decomposedStringWithCompatibilityMapping", -); -late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( - "decompressedDataUsingAlgorithm:error:", -); -late final _sel_defaultCStringEncoding = objc.registerName( - "defaultCStringEncoding", -); -late final _sel_delegate = objc.registerName("delegate"); -late final _sel_description = objc.registerName("description"); -late final _sel_descriptionInStringsFileFormat = objc.registerName( - "descriptionInStringsFileFormat", -); -late final _sel_descriptionWithLocale_ = objc.registerName( - "descriptionWithLocale:", -); -late final _sel_descriptionWithLocale_indent_ = objc.registerName( - "descriptionWithLocale:indent:", -); -late final _sel_dictionary = objc.registerName("dictionary"); -late final _sel_dictionaryWithCapacity_ = objc.registerName( - "dictionaryWithCapacity:", -); -late final _sel_dictionaryWithDictionary_ = objc.registerName( - "dictionaryWithDictionary:", -); -late final _sel_dictionaryWithObject_forKey_ = objc.registerName( - "dictionaryWithObject:forKey:", -); -late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( - "dictionaryWithObjectsAndKeys:", -); -late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( - "dictionaryWithObjects:forKeys:", -); -late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( - "dictionaryWithObjects:forKeys:count:", -); -late final _sel_differenceByTransformingChangesWithBlock_ = objc.registerName( - "differenceByTransformingChangesWithBlock:", -); -late final _sel_discreteProgressWithTotalUnitCount_ = objc.registerName( - "discreteProgressWithTotalUnitCount:", -); -late final _sel_displayNameForKey_value_ = objc.registerName( - "displayNameForKey:value:", -); -late final _sel_doesNotRecognizeSelector_ = objc.registerName( - "doesNotRecognizeSelector:", -); -late final _sel_domain = objc.registerName("domain"); -late final _sel_doubleValue = objc.registerName("doubleValue"); -late final _sel_earlierDate_ = objc.registerName("earlierDate:"); -late final _sel_encodeDataObject_ = objc.registerName("encodeDataObject:"); -late final _sel_encodeValueOfObjCType_at_ = objc.registerName( - "encodeValueOfObjCType:at:", -); -late final _sel_encodeWithCoder_ = objc.registerName("encodeWithCoder:"); -late final _sel_enumerateByteRangesUsingBlock_ = objc.registerName( - "enumerateByteRangesUsingBlock:", -); -late final _sel_enumerateIndexesInRange_options_usingBlock_ = objc.registerName( - "enumerateIndexesInRange:options:usingBlock:", -); -late final _sel_enumerateIndexesUsingBlock_ = objc.registerName( - "enumerateIndexesUsingBlock:", -); -late final _sel_enumerateIndexesWithOptions_usingBlock_ = objc.registerName( - "enumerateIndexesWithOptions:usingBlock:", -); -late final _sel_enumerateKeysAndObjectsUsingBlock_ = objc.registerName( - "enumerateKeysAndObjectsUsingBlock:", -); -late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_ = objc - .registerName("enumerateKeysAndObjectsWithOptions:usingBlock:"); -late final _sel_enumerateLinesUsingBlock_ = objc.registerName( - "enumerateLinesUsingBlock:", -); -late final _sel_enumerateObjectsAtIndexes_options_usingBlock_ = objc - .registerName("enumerateObjectsAtIndexes:options:usingBlock:"); -late final _sel_enumerateObjectsUsingBlock_ = objc.registerName( - "enumerateObjectsUsingBlock:", -); -late final _sel_enumerateObjectsWithOptions_usingBlock_ = objc.registerName( - "enumerateObjectsWithOptions:usingBlock:", -); -late final _sel_enumerateRangesInRange_options_usingBlock_ = objc.registerName( - "enumerateRangesInRange:options:usingBlock:", -); -late final _sel_enumerateRangesUsingBlock_ = objc.registerName( - "enumerateRangesUsingBlock:", -); -late final _sel_enumerateRangesWithOptions_usingBlock_ = objc.registerName( - "enumerateRangesWithOptions:usingBlock:", -); -late final _sel_enumerateSubstringsInRange_options_usingBlock_ = objc - .registerName("enumerateSubstringsInRange:options:usingBlock:"); -late final _sel_errorWithDomain_code_userInfo_ = objc.registerName( - "errorWithDomain:code:userInfo:", -); -late final _sel_estimatedTimeRemaining = objc.registerName( - "estimatedTimeRemaining", -); -late final _sel_exchangeObjectAtIndex_withObjectAtIndex_ = objc.registerName( - "exchangeObjectAtIndex:withObjectAtIndex:", -); -late final _sel_fastestEncoding = objc.registerName("fastestEncoding"); -late final _sel_fileCompletedCount = objc.registerName("fileCompletedCount"); -late final _sel_fileOperationKind = objc.registerName("fileOperationKind"); -late final _sel_filePathURL = objc.registerName("filePathURL"); -late final _sel_fileReferenceURL = objc.registerName("fileReferenceURL"); -late final _sel_fileSystemRepresentation = objc.registerName( - "fileSystemRepresentation", -); -late final _sel_fileTotalCount = objc.registerName("fileTotalCount"); -late final _sel_fileURL = objc.registerName("fileURL"); -late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = - objc.registerName( - "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", - ); -late final _sel_fileURLWithPath_ = objc.registerName("fileURLWithPath:"); -late final _sel_fileURLWithPath_isDirectory_ = objc.registerName( - "fileURLWithPath:isDirectory:", -); -late final _sel_fileURLWithPath_isDirectory_relativeToURL_ = objc.registerName( - "fileURLWithPath:isDirectory:relativeToURL:", -); -late final _sel_fileURLWithPath_relativeToURL_ = objc.registerName( - "fileURLWithPath:relativeToURL:", -); -late final _sel_fire = objc.registerName("fire"); -late final _sel_fireDate = objc.registerName("fireDate"); -late final _sel_firstIndex = objc.registerName("firstIndex"); -late final _sel_firstObject = objc.registerName("firstObject"); -late final _sel_firstObjectCommonWithArray_ = objc.registerName( - "firstObjectCommonWithArray:", -); -late final _sel_floatValue = objc.registerName("floatValue"); -late final _sel_forwardInvocation_ = objc.registerName("forwardInvocation:"); -late final _sel_forwardingTargetForSelector_ = objc.registerName( - "forwardingTargetForSelector:", -); -late final _sel_fractionCompleted = objc.registerName("fractionCompleted"); -late final _sel_fragment = objc.registerName("fragment"); -late final _sel_frameLength = objc.registerName("frameLength"); -late final _sel_getArgumentTypeAtIndex_ = objc.registerName( - "getArgumentTypeAtIndex:", -); -late final _sel_getArgument_atIndex_ = objc.registerName( - "getArgument:atIndex:", -); -late final _sel_getBuffer_length_ = objc.registerName("getBuffer:length:"); -late final _sel_getBytes_length_ = objc.registerName("getBytes:length:"); -late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_ = - objc.registerName( - "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:", - ); -late final _sel_getBytes_range_ = objc.registerName("getBytes:range:"); -late final _sel_getCFRunLoop = objc.registerName("getCFRunLoop"); -late final _sel_getCString_maxLength_encoding_ = objc.registerName( - "getCString:maxLength:encoding:", -); -late final _sel_getCharacters_range_ = objc.registerName( - "getCharacters:range:", -); -late final _sel_getDOBJCDartProtocolMethodForSelector_ = objc.registerName( - "getDOBJCDartProtocolMethodForSelector:", -); -late final _sel_getFileSystemRepresentation_maxLength_ = objc.registerName( - "getFileSystemRepresentation:maxLength:", -); -late final _sel_getIndexes_maxCount_inIndexRange_ = objc.registerName( - "getIndexes:maxCount:inIndexRange:", -); -late final _sel_getLineStart_end_contentsEnd_forRange_ = objc.registerName( - "getLineStart:end:contentsEnd:forRange:", -); -late final _sel_getObjects_andKeys_count_ = objc.registerName( - "getObjects:andKeys:count:", -); -late final _sel_getObjects_range_ = objc.registerName("getObjects:range:"); -late final _sel_getParagraphStart_end_contentsEnd_forRange_ = objc.registerName( - "getParagraphStart:end:contentsEnd:forRange:", -); -late final _sel_getResourceValue_forKey_error_ = objc.registerName( - "getResourceValue:forKey:error:", -); -late final _sel_getReturnValue_ = objc.registerName("getReturnValue:"); -late final _sel_getValue_size_ = objc.registerName("getValue:size:"); -late final _sel_handlePortMessage_ = objc.registerName("handlePortMessage:"); -late final _sel_hasBytesAvailable = objc.registerName("hasBytesAvailable"); -late final _sel_hasChanges = objc.registerName("hasChanges"); -late final _sel_hasDirectoryPath = objc.registerName("hasDirectoryPath"); -late final _sel_hasItemConformingToTypeIdentifier_ = objc.registerName( - "hasItemConformingToTypeIdentifier:", -); -late final _sel_hasMemberInPlane_ = objc.registerName("hasMemberInPlane:"); -late final _sel_hasPrefix_ = objc.registerName("hasPrefix:"); -late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_ = objc - .registerName("hasRepresentationConformingToTypeIdentifier:fileOptions:"); -late final _sel_hasSpaceAvailable = objc.registerName("hasSpaceAvailable"); -late final _sel_hasSuffix_ = objc.registerName("hasSuffix:"); -late final _sel_hash = objc.registerName("hash"); -late final _sel_helpAnchor = objc.registerName("helpAnchor"); -late final _sel_host = objc.registerName("host"); -late final _sel_illegalCharacterSet = objc.registerName("illegalCharacterSet"); -late final _sel_implementMethod_withBlock_withTrampoline_withSignature_ = objc - .registerName("implementMethod:withBlock:withTrampoline:withSignature:"); -late final _sel_increaseLengthBy_ = objc.registerName("increaseLengthBy:"); -late final _sel_index = objc.registerName("index"); -late final _sel_indexGreaterThanIndex_ = objc.registerName( - "indexGreaterThanIndex:", -); -late final _sel_indexGreaterThanOrEqualToIndex_ = objc.registerName( - "indexGreaterThanOrEqualToIndex:", -); -late final _sel_indexInRange_options_passingTest_ = objc.registerName( - "indexInRange:options:passingTest:", -); -late final _sel_indexLessThanIndex_ = objc.registerName("indexLessThanIndex:"); -late final _sel_indexLessThanOrEqualToIndex_ = objc.registerName( - "indexLessThanOrEqualToIndex:", -); -late final _sel_indexOfObjectAtIndexes_options_passingTest_ = objc.registerName( - "indexOfObjectAtIndexes:options:passingTest:", -); -late final _sel_indexOfObjectIdenticalTo_ = objc.registerName( - "indexOfObjectIdenticalTo:", -); -late final _sel_indexOfObjectIdenticalTo_inRange_ = objc.registerName( - "indexOfObjectIdenticalTo:inRange:", -); -late final _sel_indexOfObjectPassingTest_ = objc.registerName( - "indexOfObjectPassingTest:", -); -late final _sel_indexOfObjectWithOptions_passingTest_ = objc.registerName( - "indexOfObjectWithOptions:passingTest:", -); -late final _sel_indexOfObject_ = objc.registerName("indexOfObject:"); -late final _sel_indexOfObject_inRange_ = objc.registerName( - "indexOfObject:inRange:", -); -late final _sel_indexOfObject_inSortedRange_options_usingComparator_ = objc - .registerName("indexOfObject:inSortedRange:options:usingComparator:"); -late final _sel_indexPassingTest_ = objc.registerName("indexPassingTest:"); -late final _sel_indexSet = objc.registerName("indexSet"); -late final _sel_indexSetWithIndex_ = objc.registerName("indexSetWithIndex:"); -late final _sel_indexSetWithIndexesInRange_ = objc.registerName( - "indexSetWithIndexesInRange:", -); -late final _sel_indexWithOptions_passingTest_ = objc.registerName( - "indexWithOptions:passingTest:", -); -late final _sel_indexesInRange_options_passingTest_ = objc.registerName( - "indexesInRange:options:passingTest:", -); -late final _sel_indexesOfObjectsAtIndexes_options_passingTest_ = objc - .registerName("indexesOfObjectsAtIndexes:options:passingTest:"); -late final _sel_indexesOfObjectsPassingTest_ = objc.registerName( - "indexesOfObjectsPassingTest:", -); -late final _sel_indexesOfObjectsWithOptions_passingTest_ = objc.registerName( - "indexesOfObjectsWithOptions:passingTest:", -); -late final _sel_indexesPassingTest_ = objc.registerName("indexesPassingTest:"); -late final _sel_indexesWithOptions_passingTest_ = objc.registerName( - "indexesWithOptions:passingTest:", -); -late final _sel_init = objc.registerName("init"); -late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_ = objc - .registerName("initAbsoluteURLWithDataRepresentation:relativeToURL:"); -late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = - objc.registerName( - "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", - ); -late final _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_ = - objc.registerName( - "initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort:", - ); -late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = - objc.registerName( - "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", - ); -late final _sel_initFileURLWithPath_ = objc.registerName( - "initFileURLWithPath:", -); -late final _sel_initFileURLWithPath_isDirectory_ = objc.registerName( - "initFileURLWithPath:isDirectory:", -); -late final _sel_initFileURLWithPath_isDirectory_relativeToURL_ = objc - .registerName("initFileURLWithPath:isDirectory:relativeToURL:"); -late final _sel_initFileURLWithPath_relativeToURL_ = objc.registerName( - "initFileURLWithPath:relativeToURL:", -); -late final _sel_initForKeyPath_ofObject_withObserver_options_context_ = objc - .registerName("initForKeyPath:ofObject:withObserver:options:context:"); -late final _sel_initToBuffer_capacity_ = objc.registerName( - "initToBuffer:capacity:", -); -late final _sel_initToFileAtPath_append_ = objc.registerName( - "initToFileAtPath:append:", -); -late final _sel_initToMemory = objc.registerName("initToMemory"); -late final _sel_initWithArray_ = objc.registerName("initWithArray:"); -late final _sel_initWithArray_copyItems_ = objc.registerName( - "initWithArray:copyItems:", -); -late final _sel_initWithArray_range_copyItems_ = objc.registerName( - "initWithArray:range:copyItems:", -); -late final _sel_initWithBase64EncodedData_options_ = objc.registerName( - "initWithBase64EncodedData:options:", -); -late final _sel_initWithBase64EncodedString_options_ = objc.registerName( - "initWithBase64EncodedString:options:", -); -late final _sel_initWithBool_ = objc.registerName("initWithBool:"); -late final _sel_initWithBytesNoCopy_length_ = objc.registerName( - "initWithBytesNoCopy:length:", -); -late final _sel_initWithBytesNoCopy_length_deallocator_ = objc.registerName( - "initWithBytesNoCopy:length:deallocator:", -); -late final _sel_initWithBytesNoCopy_length_encoding_deallocator_ = objc - .registerName("initWithBytesNoCopy:length:encoding:deallocator:"); -late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_ = objc - .registerName("initWithBytesNoCopy:length:encoding:freeWhenDone:"); -late final _sel_initWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( - "initWithBytesNoCopy:length:freeWhenDone:", -); -late final _sel_initWithBytes_length_ = objc.registerName( - "initWithBytes:length:", -); -late final _sel_initWithBytes_length_encoding_ = objc.registerName( - "initWithBytes:length:encoding:", -); -late final _sel_initWithBytes_objCType_ = objc.registerName( - "initWithBytes:objCType:", -); -late final _sel_initWithCString_encoding_ = objc.registerName( - "initWithCString:encoding:", -); -late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); -late final _sel_initWithChanges_ = objc.registerName("initWithChanges:"); -late final _sel_initWithChar_ = objc.registerName("initWithChar:"); -late final _sel_initWithCharactersNoCopy_length_deallocator_ = objc - .registerName("initWithCharactersNoCopy:length:deallocator:"); -late final _sel_initWithCharactersNoCopy_length_freeWhenDone_ = objc - .registerName("initWithCharactersNoCopy:length:freeWhenDone:"); -late final _sel_initWithCharacters_length_ = objc.registerName( - "initWithCharacters:length:", -); -late final _sel_initWithClassName_ = objc.registerName("initWithClassName:"); -late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); -late final _sel_initWithContentsOfFile_ = objc.registerName( - "initWithContentsOfFile:", -); -late final _sel_initWithContentsOfFile_encoding_error_ = objc.registerName( - "initWithContentsOfFile:encoding:error:", -); -late final _sel_initWithContentsOfFile_options_error_ = objc.registerName( - "initWithContentsOfFile:options:error:", -); -late final _sel_initWithContentsOfFile_usedEncoding_error_ = objc.registerName( - "initWithContentsOfFile:usedEncoding:error:", -); -late final _sel_initWithContentsOfURL_ = objc.registerName( - "initWithContentsOfURL:", -); -late final _sel_initWithContentsOfURL_encoding_error_ = objc.registerName( - "initWithContentsOfURL:encoding:error:", -); -late final _sel_initWithContentsOfURL_options_error_ = objc.registerName( - "initWithContentsOfURL:options:error:", -); -late final _sel_initWithContentsOfURL_usedEncoding_error_ = objc.registerName( - "initWithContentsOfURL:usedEncoding:error:", -); -late final _sel_initWithDataRepresentation_relativeToURL_ = objc.registerName( - "initWithDataRepresentation:relativeToURL:", -); -late final _sel_initWithData_ = objc.registerName("initWithData:"); -late final _sel_initWithData_encoding_ = objc.registerName( - "initWithData:encoding:", -); -late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); -late final _sel_initWithDictionary_copyItems_ = objc.registerName( - "initWithDictionary:copyItems:", -); -late final _sel_initWithDomain_code_userInfo_ = objc.registerName( - "initWithDomain:code:userInfo:", -); -late final _sel_initWithDouble_ = objc.registerName("initWithDouble:"); -late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); -late final _sel_initWithFireDate_interval_repeats_block_ = objc.registerName( - "initWithFireDate:interval:repeats:block:", -); -late final _sel_initWithFireDate_interval_target_selector_userInfo_repeats_ = - objc.registerName( - "initWithFireDate:interval:target:selector:userInfo:repeats:", - ); -late final _sel_initWithFloat_ = objc.registerName("initWithFloat:"); -late final _sel_initWithFormat_ = objc.registerName("initWithFormat:"); -late final _sel_initWithFormat_locale_ = objc.registerName( - "initWithFormat:locale:", -); -late final _sel_initWithIndexSet_ = objc.registerName("initWithIndexSet:"); -late final _sel_initWithIndex_ = objc.registerName("initWithIndex:"); -late final _sel_initWithIndexesInRange_ = objc.registerName( - "initWithIndexesInRange:", -); -late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_ = - objc.registerName( - "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:", - ); -late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_ = - objc.registerName( - "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:", - ); -late final _sel_initWithInt_ = objc.registerName("initWithInt:"); -late final _sel_initWithInteger_ = objc.registerName("initWithInteger:"); -late final _sel_initWithItem_typeIdentifier_ = objc.registerName( - "initWithItem:typeIdentifier:", -); -late final _sel_initWithLength_ = objc.registerName("initWithLength:"); -late final _sel_initWithLocaleIdentifier_ = objc.registerName( - "initWithLocaleIdentifier:", -); -late final _sel_initWithLongLong_ = objc.registerName("initWithLongLong:"); -late final _sel_initWithLong_ = objc.registerName("initWithLong:"); -late final _sel_initWithName_object_userInfo_ = objc.registerName( - "initWithName:object:userInfo:", -); -late final _sel_initWithObject_ = objc.registerName("initWithObject:"); -late final _sel_initWithObject_type_index_ = objc.registerName( - "initWithObject:type:index:", -); -late final _sel_initWithObject_type_index_associatedIndex_ = objc.registerName( - "initWithObject:type:index:associatedIndex:", -); -late final _sel_initWithObjectsAndKeys_ = objc.registerName( - "initWithObjectsAndKeys:", -); -late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); -late final _sel_initWithObjects_count_ = objc.registerName( - "initWithObjects:count:", -); -late final _sel_initWithObjects_forKeys_ = objc.registerName( - "initWithObjects:forKeys:", -); -late final _sel_initWithObjects_forKeys_count_ = objc.registerName( - "initWithObjects:forKeys:count:", -); -late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); -late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( - "initWithOrderedSet:copyItems:", -); -late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( - "initWithOrderedSet:range:copyItems:", -); -late final _sel_initWithParent_userInfo_ = objc.registerName( - "initWithParent:userInfo:", -); -late final _sel_initWithSendPort_receivePort_components_ = objc.registerName( - "initWithSendPort:receivePort:components:", -); -late final _sel_initWithSet_ = objc.registerName("initWithSet:"); -late final _sel_initWithSet_copyItems_ = objc.registerName( - "initWithSet:copyItems:", -); -late final _sel_initWithShort_ = objc.registerName("initWithShort:"); -late final _sel_initWithString_ = objc.registerName("initWithString:"); -late final _sel_initWithString_encodingInvalidCharacters_ = objc.registerName( - "initWithString:encodingInvalidCharacters:", -); -late final _sel_initWithString_relativeToURL_ = objc.registerName( - "initWithString:relativeToURL:", -); -late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( - "initWithTimeIntervalSince1970:", -); -late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( - "initWithTimeIntervalSinceNow:", -); -late final _sel_initWithTimeIntervalSinceReferenceDate_ = objc.registerName( - "initWithTimeIntervalSinceReferenceDate:", -); -late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( - "initWithTimeInterval:sinceDate:", -); -late final _sel_initWithURL_ = objc.registerName("initWithURL:"); -late final _sel_initWithURL_append_ = objc.registerName("initWithURL:append:"); -late final _sel_initWithUTF8String_ = objc.registerName("initWithUTF8String:"); -late final _sel_initWithUnsignedChar_ = objc.registerName( - "initWithUnsignedChar:", -); -late final _sel_initWithUnsignedInt_ = objc.registerName( - "initWithUnsignedInt:", -); -late final _sel_initWithUnsignedInteger_ = objc.registerName( - "initWithUnsignedInteger:", -); -late final _sel_initWithUnsignedLongLong_ = objc.registerName( - "initWithUnsignedLongLong:", -); -late final _sel_initWithUnsignedLong_ = objc.registerName( - "initWithUnsignedLong:", -); -late final _sel_initWithUnsignedShort_ = objc.registerName( - "initWithUnsignedShort:", -); -late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_ = objc - .registerName("initWithValidatedFormat:validFormatSpecifiers:error:"); -late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_ = - objc.registerName( - "initWithValidatedFormat:validFormatSpecifiers:locale:error:", - ); -late final _sel_initialize = objc.registerName("initialize"); -late final _sel_inputStreamWithData_ = objc.registerName( - "inputStreamWithData:", -); -late final _sel_inputStreamWithFileAtPath_ = objc.registerName( - "inputStreamWithFileAtPath:", -); -late final _sel_inputStreamWithPort_ = objc.registerName( - "inputStreamWithPort:", -); -late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); -late final _sel_insertObject_atIndex_ = objc.registerName( - "insertObject:atIndex:", -); -late final _sel_insertObjects_atIndexes_ = objc.registerName( - "insertObjects:atIndexes:", -); -late final _sel_insertions = objc.registerName("insertions"); -late final _sel_instanceMethodForSelector_ = objc.registerName( - "instanceMethodForSelector:", -); -late final _sel_instanceMethodSignatureForSelector_ = objc.registerName( - "instanceMethodSignatureForSelector:", -); -late final _sel_instancesRespondToSelector_ = objc.registerName( - "instancesRespondToSelector:", -); -late final _sel_intValue = objc.registerName("intValue"); -late final _sel_integerValue = objc.registerName("integerValue"); -late final _sel_intersectOrderedSet_ = objc.registerName( - "intersectOrderedSet:", -); -late final _sel_intersectSet_ = objc.registerName("intersectSet:"); -late final _sel_intersectsIndexesInRange_ = objc.registerName( - "intersectsIndexesInRange:", -); -late final _sel_intersectsOrderedSet_ = objc.registerName( - "intersectsOrderedSet:", -); -late final _sel_intersectsSet_ = objc.registerName("intersectsSet:"); -late final _sel_invalidate = objc.registerName("invalidate"); -late final _sel_inverseDifference = objc.registerName("inverseDifference"); -late final _sel_invertedSet = objc.registerName("invertedSet"); -late final _sel_invocationWithMethodSignature_ = objc.registerName( - "invocationWithMethodSignature:", -); -late final _sel_invoke = objc.registerName("invoke"); -late final _sel_invokeUsingIMP_ = objc.registerName("invokeUsingIMP:"); -late final _sel_invokeWithTarget_ = objc.registerName("invokeWithTarget:"); -late final _sel_isCancellable = objc.registerName("isCancellable"); -late final _sel_isCancelled = objc.registerName("isCancelled"); -late final _sel_isEqualToArray_ = objc.registerName("isEqualToArray:"); -late final _sel_isEqualToData_ = objc.registerName("isEqualToData:"); -late final _sel_isEqualToDate_ = objc.registerName("isEqualToDate:"); -late final _sel_isEqualToDictionary_ = objc.registerName( - "isEqualToDictionary:", -); -late final _sel_isEqualToIndexSet_ = objc.registerName("isEqualToIndexSet:"); -late final _sel_isEqualToNumber_ = objc.registerName("isEqualToNumber:"); -late final _sel_isEqualToOrderedSet_ = objc.registerName( - "isEqualToOrderedSet:", -); -late final _sel_isEqualToSet_ = objc.registerName("isEqualToSet:"); -late final _sel_isEqualToString_ = objc.registerName("isEqualToString:"); -late final _sel_isEqual_ = objc.registerName("isEqual:"); -late final _sel_isFileReferenceURL = objc.registerName("isFileReferenceURL"); -late final _sel_isFileURL = objc.registerName("isFileURL"); -late final _sel_isFinished = objc.registerName("isFinished"); -late final _sel_isFloat = objc.registerName("isFloat"); -late final _sel_isIndeterminate = objc.registerName("isIndeterminate"); -late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_isMemberOfClass_ = objc.registerName("isMemberOfClass:"); -late final _sel_isOld = objc.registerName("isOld"); -late final _sel_isOneway = objc.registerName("isOneway"); -late final _sel_isPausable = objc.registerName("isPausable"); -late final _sel_isPaused = objc.registerName("isPaused"); -late final _sel_isProxy = objc.registerName("isProxy"); -late final _sel_isSubclassOfClass_ = objc.registerName("isSubclassOfClass:"); -late final _sel_isSubsetOfOrderedSet_ = objc.registerName( - "isSubsetOfOrderedSet:", -); -late final _sel_isSubsetOfSet_ = objc.registerName("isSubsetOfSet:"); -late final _sel_isSupersetOfSet_ = objc.registerName("isSupersetOfSet:"); -late final _sel_isValid = objc.registerName("isValid"); -late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = - objc.registerName( - "itemProviderVisibilityForRepresentationWithTypeIdentifier:", - ); -late final _sel_keyEnumerator = objc.registerName("keyEnumerator"); -late final _sel_keysOfEntriesPassingTest_ = objc.registerName( - "keysOfEntriesPassingTest:", -); -late final _sel_keysOfEntriesWithOptions_passingTest_ = objc.registerName( - "keysOfEntriesWithOptions:passingTest:", -); -late final _sel_keysSortedByValueUsingComparator_ = objc.registerName( - "keysSortedByValueUsingComparator:", -); -late final _sel_keysSortedByValueUsingSelector_ = objc.registerName( - "keysSortedByValueUsingSelector:", -); -late final _sel_keysSortedByValueWithOptions_usingComparator_ = objc - .registerName("keysSortedByValueWithOptions:usingComparator:"); -late final _sel_kind = objc.registerName("kind"); -late final _sel_lastIndex = objc.registerName("lastIndex"); -late final _sel_lastObject = objc.registerName("lastObject"); -late final _sel_laterDate_ = objc.registerName("laterDate:"); -late final _sel_length = objc.registerName("length"); -late final _sel_lengthOfBytesUsingEncoding_ = objc.registerName( - "lengthOfBytesUsingEncoding:", -); -late final _sel_letterCharacterSet = objc.registerName("letterCharacterSet"); -late final _sel_limitDateForMode_ = objc.registerName("limitDateForMode:"); -late final _sel_lineRangeForRange_ = objc.registerName("lineRangeForRange:"); -late final _sel_load = objc.registerName("load"); -late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_ = - objc.registerName( - "loadDataRepresentationForTypeIdentifier:completionHandler:", - ); -late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = - objc.registerName( - "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", - ); -late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_ = - objc.registerName( - "loadFileRepresentationForTypeIdentifier:completionHandler:", - ); -late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_ = - objc.registerName( - "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:", - ); -late final _sel_loadItemForTypeIdentifier_options_completionHandler_ = objc - .registerName("loadItemForTypeIdentifier:options:completionHandler:"); -late final _sel_loadObjectOfClass_completionHandler_ = objc.registerName( - "loadObjectOfClass:completionHandler:", -); -late final _sel_localeWithLocaleIdentifier_ = objc.registerName( - "localeWithLocaleIdentifier:", -); -late final _sel_localizedAdditionalDescription = objc.registerName( - "localizedAdditionalDescription", -); -late final _sel_localizedCapitalizedString = objc.registerName( - "localizedCapitalizedString", -); -late final _sel_localizedCaseInsensitiveCompare_ = objc.registerName( - "localizedCaseInsensitiveCompare:", -); -late final _sel_localizedCaseInsensitiveContainsString_ = objc.registerName( - "localizedCaseInsensitiveContainsString:", -); -late final _sel_localizedCompare_ = objc.registerName("localizedCompare:"); -late final _sel_localizedDescription = objc.registerName( - "localizedDescription", -); -late final _sel_localizedFailureReason = objc.registerName( - "localizedFailureReason", -); -late final _sel_localizedLowercaseString = objc.registerName( - "localizedLowercaseString", -); -late final _sel_localizedNameOfStringEncoding_ = objc.registerName( - "localizedNameOfStringEncoding:", -); -late final _sel_localizedRecoveryOptions = objc.registerName( - "localizedRecoveryOptions", -); -late final _sel_localizedRecoverySuggestion = objc.registerName( - "localizedRecoverySuggestion", -); -late final _sel_localizedStandardCompare_ = objc.registerName( - "localizedStandardCompare:", -); -late final _sel_localizedStandardContainsString_ = objc.registerName( - "localizedStandardContainsString:", -); -late final _sel_localizedStandardRangeOfString_ = objc.registerName( - "localizedStandardRangeOfString:", -); -late final _sel_localizedStringWithFormat_ = objc.registerName( - "localizedStringWithFormat:", -); -late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_ = - objc.registerName( - "localizedStringWithValidatedFormat:validFormatSpecifiers:error:", - ); -late final _sel_localizedUppercaseString = objc.registerName( - "localizedUppercaseString", -); -late final _sel_longCharacterIsMember_ = objc.registerName( - "longCharacterIsMember:", -); -late final _sel_longLongValue = objc.registerName("longLongValue"); -late final _sel_longValue = objc.registerName("longValue"); -late final _sel_lowercaseLetterCharacterSet = objc.registerName( - "lowercaseLetterCharacterSet", -); -late final _sel_lowercaseString = objc.registerName("lowercaseString"); -late final _sel_lowercaseStringWithLocale_ = objc.registerName( - "lowercaseStringWithLocale:", -); -late final _sel_mainRunLoop = objc.registerName("mainRunLoop"); -late final _sel_makeObjectsPerformSelector_ = objc.registerName( - "makeObjectsPerformSelector:", -); -late final _sel_makeObjectsPerformSelector_withObject_ = objc.registerName( - "makeObjectsPerformSelector:withObject:", -); -late final _sel_maximumLengthOfBytesUsingEncoding_ = objc.registerName( - "maximumLengthOfBytesUsingEncoding:", -); -late final _sel_member_ = objc.registerName("member:"); -late final _sel_methodForSelector_ = objc.registerName("methodForSelector:"); -late final _sel_methodReturnLength = objc.registerName("methodReturnLength"); -late final _sel_methodReturnType = objc.registerName("methodReturnType"); -late final _sel_methodSignature = objc.registerName("methodSignature"); -late final _sel_methodSignatureForSelector_ = objc.registerName( - "methodSignatureForSelector:", -); -late final _sel_minusOrderedSet_ = objc.registerName("minusOrderedSet:"); -late final _sel_minusSet_ = objc.registerName("minusSet:"); -late final _sel_moveObjectsAtIndexes_toIndex_ = objc.registerName( - "moveObjectsAtIndexes:toIndex:", -); -late final _sel_msgid = objc.registerName("msgid"); -late final _sel_mutableBytes = objc.registerName("mutableBytes"); -late final _sel_mutableCopy = objc.registerName("mutableCopy"); -late final _sel_mutableCopyWithZone_ = objc.registerName( - "mutableCopyWithZone:", -); -late final _sel_name = objc.registerName("name"); -late final _sel_new = objc.registerName("new"); -late final _sel_newlineCharacterSet = objc.registerName("newlineCharacterSet"); -late final _sel_nextObject = objc.registerName("nextObject"); -late final _sel_nonBaseCharacterSet = objc.registerName("nonBaseCharacterSet"); -late final _sel_notificationWithName_object_ = objc.registerName( - "notificationWithName:object:", -); -late final _sel_notificationWithName_object_userInfo_ = objc.registerName( - "notificationWithName:object:userInfo:", -); -late final _sel_numberOfArguments = objc.registerName("numberOfArguments"); -late final _sel_numberWithBool_ = objc.registerName("numberWithBool:"); -late final _sel_numberWithChar_ = objc.registerName("numberWithChar:"); -late final _sel_numberWithDouble_ = objc.registerName("numberWithDouble:"); -late final _sel_numberWithFloat_ = objc.registerName("numberWithFloat:"); -late final _sel_numberWithInt_ = objc.registerName("numberWithInt:"); -late final _sel_numberWithInteger_ = objc.registerName("numberWithInteger:"); -late final _sel_numberWithLongLong_ = objc.registerName("numberWithLongLong:"); -late final _sel_numberWithLong_ = objc.registerName("numberWithLong:"); -late final _sel_numberWithShort_ = objc.registerName("numberWithShort:"); -late final _sel_numberWithUnsignedChar_ = objc.registerName( - "numberWithUnsignedChar:", -); -late final _sel_numberWithUnsignedInt_ = objc.registerName( - "numberWithUnsignedInt:", -); -late final _sel_numberWithUnsignedInteger_ = objc.registerName( - "numberWithUnsignedInteger:", -); -late final _sel_numberWithUnsignedLongLong_ = objc.registerName( - "numberWithUnsignedLongLong:", -); -late final _sel_numberWithUnsignedLong_ = objc.registerName( - "numberWithUnsignedLong:", -); -late final _sel_numberWithUnsignedShort_ = objc.registerName( - "numberWithUnsignedShort:", -); -late final _sel_objCType = objc.registerName("objCType"); -late final _sel_object = objc.registerName("object"); -late final _sel_objectAtIndex_ = objc.registerName("objectAtIndex:"); -late final _sel_objectAtIndexedSubscript_ = objc.registerName( - "objectAtIndexedSubscript:", -); -late final _sel_objectEnumerator = objc.registerName("objectEnumerator"); -late final _sel_objectForKey_ = objc.registerName("objectForKey:"); -late final _sel_objectForKeyedSubscript_ = objc.registerName( - "objectForKeyedSubscript:", -); -late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc - .registerName("objectWithItemProviderData:typeIdentifier:error:"); -late final _sel_objectsAtIndexes_ = objc.registerName("objectsAtIndexes:"); -late final _sel_objectsForKeys_notFoundMarker_ = objc.registerName( - "objectsForKeys:notFoundMarker:", -); -late final _sel_objectsPassingTest_ = objc.registerName("objectsPassingTest:"); -late final _sel_objectsWithOptions_passingTest_ = objc.registerName( - "objectsWithOptions:passingTest:", -); -late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc - .registerName("observeValueForKeyPath:ofObject:change:context:"); -late final _sel_open = objc.registerName("open"); -late final _sel_orderedSet = objc.registerName("orderedSet"); -late final _sel_orderedSetWithArray_ = objc.registerName( - "orderedSetWithArray:", -); -late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( - "orderedSetWithArray:range:copyItems:", -); -late final _sel_orderedSetWithCapacity_ = objc.registerName( - "orderedSetWithCapacity:", -); -late final _sel_orderedSetWithObject_ = objc.registerName( - "orderedSetWithObject:", -); -late final _sel_orderedSetWithObjects_ = objc.registerName( - "orderedSetWithObjects:", -); -late final _sel_orderedSetWithObjects_count_ = objc.registerName( - "orderedSetWithObjects:count:", -); -late final _sel_orderedSetWithOrderedSet_ = objc.registerName( - "orderedSetWithOrderedSet:", -); -late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( - "orderedSetWithOrderedSet:range:copyItems:", -); -late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); -late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( - "orderedSetWithSet:copyItems:", -); -late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( - "outputStreamToBuffer:capacity:", -); -late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( - "outputStreamToFileAtPath:append:", -); -late final _sel_outputStreamToMemory = objc.registerName( - "outputStreamToMemory", -); -late final _sel_outputStreamWithURL_append_ = objc.registerName( - "outputStreamWithURL:append:", -); -late final _sel_paragraphRangeForRange_ = objc.registerName( - "paragraphRangeForRange:", -); -late final _sel_parameterString = objc.registerName("parameterString"); -late final _sel_password = objc.registerName("password"); -late final _sel_path = objc.registerName("path"); -late final _sel_pause = objc.registerName("pause"); -late final _sel_pausingHandler = objc.registerName("pausingHandler"); -late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_ = objc - .registerName("performAsCurrentWithPendingUnitCount:usingBlock:"); -late final _sel_performSelector_ = objc.registerName("performSelector:"); -late final _sel_performSelector_withObject_ = objc.registerName( - "performSelector:withObject:", -); -late final _sel_performSelector_withObject_withObject_ = objc.registerName( - "performSelector:withObject:withObject:", -); -late final _sel_port = objc.registerName("port"); -late final _sel_precomposedStringWithCanonicalMapping = objc.registerName( - "precomposedStringWithCanonicalMapping", -); -late final _sel_precomposedStringWithCompatibilityMapping = objc.registerName( - "precomposedStringWithCompatibilityMapping", -); -late final _sel_progressWithTotalUnitCount_ = objc.registerName( - "progressWithTotalUnitCount:", -); -late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_ = objc - .registerName("progressWithTotalUnitCount:parent:pendingUnitCount:"); -late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); -late final _sel_publish = objc.registerName("publish"); -late final _sel_punctuationCharacterSet = objc.registerName( - "punctuationCharacterSet", -); -late final _sel_query = objc.registerName("query"); -late final _sel_rangeOfCharacterFromSet_ = objc.registerName( - "rangeOfCharacterFromSet:", -); -late final _sel_rangeOfCharacterFromSet_options_ = objc.registerName( - "rangeOfCharacterFromSet:options:", -); -late final _sel_rangeOfCharacterFromSet_options_range_ = objc.registerName( - "rangeOfCharacterFromSet:options:range:", -); -late final _sel_rangeOfComposedCharacterSequenceAtIndex_ = objc.registerName( - "rangeOfComposedCharacterSequenceAtIndex:", -); -late final _sel_rangeOfComposedCharacterSequencesForRange_ = objc.registerName( - "rangeOfComposedCharacterSequencesForRange:", -); -late final _sel_rangeOfData_options_range_ = objc.registerName( - "rangeOfData:options:range:", -); -late final _sel_rangeOfString_ = objc.registerName("rangeOfString:"); -late final _sel_rangeOfString_options_ = objc.registerName( - "rangeOfString:options:", -); -late final _sel_rangeOfString_options_range_ = objc.registerName( - "rangeOfString:options:range:", -); -late final _sel_rangeOfString_options_range_locale_ = objc.registerName( - "rangeOfString:options:range:locale:", -); -late final _sel_read_maxLength_ = objc.registerName("read:maxLength:"); -late final _sel_receivePort = objc.registerName("receivePort"); -late final _sel_recoveryAttempter = objc.registerName("recoveryAttempter"); -late final _sel_registerClass = objc.registerName("registerClass"); -late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_ = - objc.registerName( - "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:", + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + objc.NSString.castFromPointer(arg1, retain: false, release: true), + objc.ObjCObjectBase(arg2, retain: false, release: true), + objc.NSDictionary.castFromPointer(arg3, retain: false, release: true), + arg4, + ), + keepIsolateAlive, ); -late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_ = - objc.registerName( - "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:", + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1sr3ozv(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + > + blocking( + void Function( + ffi.Pointer, + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + objc.NSString.castFromPointer(arg1, retain: false, release: true), + objc.ObjCObjectBase(arg2, retain: false, release: true), + objc.NSDictionary.castFromPointer(arg3, retain: false, release: true), + arg4, + ), + keepIsolateAlive, ); -late final _sel_registerItemForTypeIdentifier_loadHandler_ = objc.registerName( - "registerItemForTypeIdentifier:loadHandler:", -); -late final _sel_registerObjectOfClass_visibility_loadHandler_ = objc - .registerName("registerObjectOfClass:visibility:loadHandler:"); -late final _sel_registerObject_visibility_ = objc.registerName( - "registerObject:visibility:", -); -late final _sel_registeredTypeIdentifiers = objc.registerName( - "registeredTypeIdentifiers", -); -late final _sel_registeredTypeIdentifiersWithFileOptions_ = objc.registerName( - "registeredTypeIdentifiersWithFileOptions:", -); -late final _sel_relativePath = objc.registerName("relativePath"); -late final _sel_relativeString = objc.registerName("relativeString"); -late final _sel_release = objc.registerName("release"); -late final _sel_removals = objc.registerName("removals"); -late final _sel_remove = objc.registerName("remove"); -late final _sel_removeAllCachedResourceValues = objc.registerName( - "removeAllCachedResourceValues", -); -late final _sel_removeAllIndexes = objc.registerName("removeAllIndexes"); -late final _sel_removeAllObjects = objc.registerName("removeAllObjects"); -late final _sel_removeCachedResourceValueForKey_ = objc.registerName( - "removeCachedResourceValueForKey:", -); -late final _sel_removeFromRunLoop_forMode_ = objc.registerName( - "removeFromRunLoop:forMode:", -); -late final _sel_removeIndex_ = objc.registerName("removeIndex:"); -late final _sel_removeIndexesInRange_ = objc.registerName( - "removeIndexesInRange:", -); -late final _sel_removeIndexes_ = objc.registerName("removeIndexes:"); -late final _sel_removeLastObject = objc.registerName("removeLastObject"); -late final _sel_removeObjectAtIndex_ = objc.registerName( - "removeObjectAtIndex:", -); -late final _sel_removeObjectForKey_ = objc.registerName("removeObjectForKey:"); -late final _sel_removeObjectIdenticalTo_ = objc.registerName( - "removeObjectIdenticalTo:", -); -late final _sel_removeObjectIdenticalTo_inRange_ = objc.registerName( - "removeObjectIdenticalTo:inRange:", -); -late final _sel_removeObject_ = objc.registerName("removeObject:"); -late final _sel_removeObject_inRange_ = objc.registerName( - "removeObject:inRange:", -); -late final _sel_removeObjectsAtIndexes_ = objc.registerName( - "removeObjectsAtIndexes:", -); -late final _sel_removeObjectsForKeys_ = objc.registerName( - "removeObjectsForKeys:", -); -late final _sel_removeObjectsInArray_ = objc.registerName( - "removeObjectsInArray:", -); -late final _sel_removeObjectsInRange_ = objc.registerName( - "removeObjectsInRange:", -); -late final _sel_removePort_forMode_ = objc.registerName("removePort:forMode:"); -late final _sel_removeSubscriber_ = objc.registerName("removeSubscriber:"); -late final _sel_replaceBytesInRange_withBytes_ = objc.registerName( - "replaceBytesInRange:withBytes:", -); -late final _sel_replaceBytesInRange_withBytes_length_ = objc.registerName( - "replaceBytesInRange:withBytes:length:", -); -late final _sel_replaceCharactersInRange_withString_ = objc.registerName( - "replaceCharactersInRange:withString:", -); -late final _sel_replaceObjectAtIndex_withObject_ = objc.registerName( - "replaceObjectAtIndex:withObject:", -); -late final _sel_replaceObjectsAtIndexes_withObjects_ = objc.registerName( - "replaceObjectsAtIndexes:withObjects:", -); -late final _sel_replaceObjectsInRange_withObjectsFromArray_ = objc.registerName( - "replaceObjectsInRange:withObjectsFromArray:", -); -late final _sel_replaceObjectsInRange_withObjectsFromArray_range_ = objc - .registerName("replaceObjectsInRange:withObjectsFromArray:range:"); -late final _sel_replaceObjectsInRange_withObjects_count_ = objc.registerName( - "replaceObjectsInRange:withObjects:count:", -); -late final _sel_reservedSpaceLength = objc.registerName("reservedSpaceLength"); -late final _sel_resetBytesInRange_ = objc.registerName("resetBytesInRange:"); -late final _sel_resignCurrent = objc.registerName("resignCurrent"); -late final _sel_resolveClassMethod_ = objc.registerName("resolveClassMethod:"); -late final _sel_resolveInstanceMethod_ = objc.registerName( - "resolveInstanceMethod:", -); -late final _sel_resourceSpecifier = objc.registerName("resourceSpecifier"); -late final _sel_resourceValuesForKeys_error_ = objc.registerName( - "resourceValuesForKeys:error:", -); -late final _sel_resourceValuesForKeys_fromBookmarkData_ = objc.registerName( - "resourceValuesForKeys:fromBookmarkData:", -); -late final _sel_respondsToSelector_ = objc.registerName("respondsToSelector:"); -late final _sel_resume = objc.registerName("resume"); -late final _sel_resumingHandler = objc.registerName("resumingHandler"); -late final _sel_retain = objc.registerName("retain"); -late final _sel_retainArguments = objc.registerName("retainArguments"); -late final _sel_retainCount = objc.registerName("retainCount"); -late final _sel_reverseObjectEnumerator = objc.registerName( - "reverseObjectEnumerator", -); -late final _sel_reversedOrderedSet = objc.registerName("reversedOrderedSet"); -late final _sel_scheduleInRunLoop_forMode_ = objc.registerName( - "scheduleInRunLoop:forMode:", -); -late final _sel_scheduledTimerWithTimeInterval_invocation_repeats_ = objc - .registerName("scheduledTimerWithTimeInterval:invocation:repeats:"); -late final _sel_scheduledTimerWithTimeInterval_repeats_block_ = objc - .registerName("scheduledTimerWithTimeInterval:repeats:block:"); -late final _sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_ = - objc.registerName( - "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:", + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + objc.NSString.castFromPointer(arg1, retain: false, release: true), + objc.ObjCObjectBase(arg2, retain: false, release: true), + objc.NSDictionary.castFromPointer(arg3, retain: false, release: true), + arg4, + ), + keepIsolateAlive, ); -late final _sel_scheme = objc.registerName("scheme"); -late final _sel_selector = objc.registerName("selector"); -late final _sel_self = objc.registerName("self"); -late final _sel_sendBeforeDate_ = objc.registerName("sendBeforeDate:"); -late final _sel_sendBeforeDate_components_from_reserved_ = objc.registerName( - "sendBeforeDate:components:from:reserved:", -); -late final _sel_sendBeforeDate_msgid_components_from_reserved_ = objc - .registerName("sendBeforeDate:msgid:components:from:reserved:"); -late final _sel_sendPort = objc.registerName("sendPort"); -late final _sel_set = objc.registerName("set"); -late final _sel_setArgument_atIndex_ = objc.registerName( - "setArgument:atIndex:", -); -late final _sel_setArray_ = objc.registerName("setArray:"); -late final _sel_setByAddingObject_ = objc.registerName("setByAddingObject:"); -late final _sel_setByAddingObjectsFromArray_ = objc.registerName( - "setByAddingObjectsFromArray:", -); -late final _sel_setByAddingObjectsFromSet_ = objc.registerName( - "setByAddingObjectsFromSet:", -); -late final _sel_setCancellable_ = objc.registerName("setCancellable:"); -late final _sel_setCancellationHandler_ = objc.registerName( - "setCancellationHandler:", -); -late final _sel_setCompletedUnitCount_ = objc.registerName( - "setCompletedUnitCount:", -); -late final _sel_setData_ = objc.registerName("setData:"); -late final _sel_setDelegate_ = objc.registerName("setDelegate:"); -late final _sel_setDictionary_ = objc.registerName("setDictionary:"); -late final _sel_setDone = objc.registerName("setDone"); -late final _sel_setError_ = objc.registerName("setError:"); -late final _sel_setEstimatedTimeRemaining_ = objc.registerName( - "setEstimatedTimeRemaining:", -); -late final _sel_setFileCompletedCount_ = objc.registerName( - "setFileCompletedCount:", -); -late final _sel_setFileOperationKind_ = objc.registerName( - "setFileOperationKind:", -); -late final _sel_setFileTotalCount_ = objc.registerName("setFileTotalCount:"); -late final _sel_setFileURL_ = objc.registerName("setFileURL:"); -late final _sel_setFireDate_ = objc.registerName("setFireDate:"); -late final _sel_setKind_ = objc.registerName("setKind:"); -late final _sel_setLength_ = objc.registerName("setLength:"); -late final _sel_setLocalizedAdditionalDescription_ = objc.registerName( - "setLocalizedAdditionalDescription:", -); -late final _sel_setLocalizedDescription_ = objc.registerName( - "setLocalizedDescription:", -); -late final _sel_setMsgid_ = objc.registerName("setMsgid:"); -late final _sel_setObject_atIndex_ = objc.registerName("setObject:atIndex:"); -late final _sel_setObject_atIndexedSubscript_ = objc.registerName( - "setObject:atIndexedSubscript:", -); -late final _sel_setObject_forKey_ = objc.registerName("setObject:forKey:"); -late final _sel_setObject_forKeyedSubscript_ = objc.registerName( - "setObject:forKeyedSubscript:", -); -late final _sel_setPausable_ = objc.registerName("setPausable:"); -late final _sel_setPausingHandler_ = objc.registerName("setPausingHandler:"); -late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); -late final _sel_setResourceValue_forKey_error_ = objc.registerName( - "setResourceValue:forKey:error:", -); -late final _sel_setResourceValues_error_ = objc.registerName( - "setResourceValues:error:", -); -late final _sel_setResumingHandler_ = objc.registerName("setResumingHandler:"); -late final _sel_setReturnValue_ = objc.registerName("setReturnValue:"); -late final _sel_setSelector_ = objc.registerName("setSelector:"); -late final _sel_setSet_ = objc.registerName("setSet:"); -late final _sel_setSuggestedName_ = objc.registerName("setSuggestedName:"); -late final _sel_setTarget_ = objc.registerName("setTarget:"); -late final _sel_setTemporaryResourceValue_forKey_ = objc.registerName( - "setTemporaryResourceValue:forKey:", -); -late final _sel_setThroughput_ = objc.registerName("setThroughput:"); -late final _sel_setTolerance_ = objc.registerName("setTolerance:"); -late final _sel_setTotalUnitCount_ = objc.registerName("setTotalUnitCount:"); -late final _sel_setUserInfoObject_forKey_ = objc.registerName( - "setUserInfoObject:forKey:", -); -late final _sel_setUserInfoValueProviderForDomain_provider_ = objc.registerName( - "setUserInfoValueProviderForDomain:provider:", -); -late final _sel_setWithArray_ = objc.registerName("setWithArray:"); -late final _sel_setWithCapacity_ = objc.registerName("setWithCapacity:"); -late final _sel_setWithObject_ = objc.registerName("setWithObject:"); -late final _sel_setWithObjects_ = objc.registerName("setWithObjects:"); -late final _sel_setWithObjects_count_ = objc.registerName( - "setWithObjects:count:", -); -late final _sel_setWithSet_ = objc.registerName("setWithSet:"); -late final _sel_shiftIndexesStartingAtIndex_by_ = objc.registerName( - "shiftIndexesStartingAtIndex:by:", -); -late final _sel_shortValue = objc.registerName("shortValue"); -late final _sel_signatureWithObjCTypes_ = objc.registerName( - "signatureWithObjCTypes:", -); -late final _sel_smallestEncoding = objc.registerName("smallestEncoding"); -late final _sel_sortRange_options_usingComparator_ = objc.registerName( - "sortRange:options:usingComparator:", -); -late final _sel_sortUsingComparator_ = objc.registerName( - "sortUsingComparator:", -); -late final _sel_sortUsingFunction_context_ = objc.registerName( - "sortUsingFunction:context:", -); -late final _sel_sortUsingSelector_ = objc.registerName("sortUsingSelector:"); -late final _sel_sortWithOptions_usingComparator_ = objc.registerName( - "sortWithOptions:usingComparator:", -); -late final _sel_sortedArrayHint = objc.registerName("sortedArrayHint"); -late final _sel_sortedArrayUsingComparator_ = objc.registerName( - "sortedArrayUsingComparator:", -); -late final _sel_sortedArrayUsingFunction_context_ = objc.registerName( - "sortedArrayUsingFunction:context:", -); -late final _sel_sortedArrayUsingFunction_context_hint_ = objc.registerName( - "sortedArrayUsingFunction:context:hint:", -); -late final _sel_sortedArrayUsingSelector_ = objc.registerName( - "sortedArrayUsingSelector:", -); -late final _sel_sortedArrayWithOptions_usingComparator_ = objc.registerName( - "sortedArrayWithOptions:usingComparator:", -); -late final _sel_standardizedURL = objc.registerName("standardizedURL"); -late final _sel_startAccessingSecurityScopedResource = objc.registerName( - "startAccessingSecurityScopedResource", -); -late final _sel_stopAccessingSecurityScopedResource = objc.registerName( - "stopAccessingSecurityScopedResource", -); -late final _sel_streamError = objc.registerName("streamError"); -late final _sel_streamStatus = objc.registerName("streamStatus"); -late final _sel_stream_handleEvent_ = objc.registerName("stream:handleEvent:"); -late final _sel_string = objc.registerName("string"); -late final _sel_stringByAppendingFormat_ = objc.registerName( - "stringByAppendingFormat:", -); -late final _sel_stringByAppendingString_ = objc.registerName( - "stringByAppendingString:", -); -late final _sel_stringByApplyingTransform_reverse_ = objc.registerName( - "stringByApplyingTransform:reverse:", -); -late final _sel_stringByFoldingWithOptions_locale_ = objc.registerName( - "stringByFoldingWithOptions:locale:", -); -late final _sel_stringByPaddingToLength_withString_startingAtIndex_ = objc - .registerName("stringByPaddingToLength:withString:startingAtIndex:"); -late final _sel_stringByReplacingCharactersInRange_withString_ = objc - .registerName("stringByReplacingCharactersInRange:withString:"); -late final _sel_stringByReplacingOccurrencesOfString_withString_ = objc - .registerName("stringByReplacingOccurrencesOfString:withString:"); -late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_ = - objc.registerName( - "stringByReplacingOccurrencesOfString:withString:options:range:", + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( + raw, + rawListener, + objc.objCContext, ); -late final _sel_stringByTrimmingCharactersInSet_ = objc.registerName( - "stringByTrimmingCharactersInSet:", -); -late final _sel_stringValue = objc.registerName("stringValue"); -late final _sel_stringWithCString_encoding_ = objc.registerName( - "stringWithCString:encoding:", -); -late final _sel_stringWithCharacters_length_ = objc.registerName( - "stringWithCharacters:length:", -); -late final _sel_stringWithContentsOfFile_encoding_error_ = objc.registerName( - "stringWithContentsOfFile:encoding:error:", -); -late final _sel_stringWithContentsOfFile_usedEncoding_error_ = objc - .registerName("stringWithContentsOfFile:usedEncoding:error:"); -late final _sel_stringWithContentsOfURL_encoding_error_ = objc.registerName( - "stringWithContentsOfURL:encoding:error:", -); -late final _sel_stringWithContentsOfURL_usedEncoding_error_ = objc.registerName( - "stringWithContentsOfURL:usedEncoding:error:", -); -late final _sel_stringWithFormat_ = objc.registerName("stringWithFormat:"); -late final _sel_stringWithString_ = objc.registerName("stringWithString:"); -late final _sel_stringWithUTF8String_ = objc.registerName( - "stringWithUTF8String:", -); -late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_ = objc - .registerName("stringWithValidatedFormat:validFormatSpecifiers:error:"); -late final _sel_subarrayWithRange_ = objc.registerName("subarrayWithRange:"); -late final _sel_subdataWithRange_ = objc.registerName("subdataWithRange:"); -late final _sel_substringFromIndex_ = objc.registerName("substringFromIndex:"); -late final _sel_substringToIndex_ = objc.registerName("substringToIndex:"); -late final _sel_substringWithRange_ = objc.registerName("substringWithRange:"); -late final _sel_suggestedName = objc.registerName("suggestedName"); -late final _sel_superclass = objc.registerName("superclass"); -late final _sel_supportsSecureCoding = objc.registerName( - "supportsSecureCoding", -); -late final _sel_symbolCharacterSet = objc.registerName("symbolCharacterSet"); -late final _sel_target = objc.registerName("target"); -late final _sel_throughput = objc.registerName("throughput"); -late final _sel_timeInterval = objc.registerName("timeInterval"); -late final _sel_timeIntervalSince1970 = objc.registerName( - "timeIntervalSince1970", -); -late final _sel_timeIntervalSinceDate_ = objc.registerName( - "timeIntervalSinceDate:", -); -late final _sel_timeIntervalSinceNow = objc.registerName( - "timeIntervalSinceNow", -); -late final _sel_timeIntervalSinceReferenceDate = objc.registerName( - "timeIntervalSinceReferenceDate", -); -late final _sel_timerWithTimeInterval_invocation_repeats_ = objc.registerName( - "timerWithTimeInterval:invocation:repeats:", -); -late final _sel_timerWithTimeInterval_repeats_block_ = objc.registerName( - "timerWithTimeInterval:repeats:block:", -); -late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_ = objc - .registerName("timerWithTimeInterval:target:selector:userInfo:repeats:"); -late final _sel_tolerance = objc.registerName("tolerance"); -late final _sel_totalUnitCount = objc.registerName("totalUnitCount"); -late final _sel_underlyingErrors = objc.registerName("underlyingErrors"); -late final _sel_unionOrderedSet_ = objc.registerName("unionOrderedSet:"); -late final _sel_unionSet_ = objc.registerName("unionSet:"); -late final _sel_unpublish = objc.registerName("unpublish"); -late final _sel_unsignedCharValue = objc.registerName("unsignedCharValue"); -late final _sel_unsignedIntValue = objc.registerName("unsignedIntValue"); -late final _sel_unsignedIntegerValue = objc.registerName( - "unsignedIntegerValue", -); -late final _sel_unsignedLongLongValue = objc.registerName( - "unsignedLongLongValue", -); -late final _sel_unsignedLongValue = objc.registerName("unsignedLongValue"); -late final _sel_unsignedShortValue = objc.registerName("unsignedShortValue"); -late final _sel_uppercaseLetterCharacterSet = objc.registerName( - "uppercaseLetterCharacterSet", -); -late final _sel_uppercaseString = objc.registerName("uppercaseString"); -late final _sel_uppercaseStringWithLocale_ = objc.registerName( - "uppercaseStringWithLocale:", -); -late final _sel_user = objc.registerName("user"); -late final _sel_userInfo = objc.registerName("userInfo"); -late final _sel_userInfoValueProviderForDomain_ = objc.registerName( - "userInfoValueProviderForDomain:", -); -late final _sel_versionForClassName_ = objc.registerName( - "versionForClassName:", -); -late final _sel_whitespaceAndNewlineCharacterSet = objc.registerName( - "whitespaceAndNewlineCharacterSet", -); -late final _sel_whitespaceCharacterSet = objc.registerName( - "whitespaceCharacterSet", -); -late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( - "writableTypeIdentifiersForItemProvider", -); -late final _sel_writeBookmarkData_toURL_options_error_ = objc.registerName( - "writeBookmarkData:toURL:options:error:", -); -late final _sel_writeToFile_atomically_ = objc.registerName( - "writeToFile:atomically:", -); -late final _sel_writeToFile_atomically_encoding_error_ = objc.registerName( - "writeToFile:atomically:encoding:error:", -); -late final _sel_writeToFile_options_error_ = objc.registerName( - "writeToFile:options:error:", -); -late final _sel_writeToURL_atomically_ = objc.registerName( - "writeToURL:atomically:", -); -late final _sel_writeToURL_atomically_encoding_error_ = objc.registerName( - "writeToURL:atomically:encoding:error:", -); -late final _sel_writeToURL_error_ = objc.registerName("writeToURL:error:"); -late final _sel_writeToURL_options_error_ = objc.registerName( - "writeToURL:options:error:", -); -late final _sel_write_maxLength_ = objc.registerName("write:maxLength:"); -late final _sel_zone = objc.registerName("zone"); -typedef instancetype = ffi.Pointer; -typedef Dartinstancetype = objc.ObjCObjectBase; + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, objc.NSString, ffi.Pointer, objc.NSDictionary, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSString, + ffi.Pointer, + objc.NSDictionary, + ffi.Pointer, + ) + > { + void call( + ffi.Pointer arg0, + objc.NSString arg1, + objc.ObjCObjectBase arg2, + objc.NSDictionary arg3, + ffi.Pointer arg4, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + arg4, + ); +} -class _NSArrayIterator implements Iterator { - final Iterable _iterable; - final int _length; - int _index; - objc.ObjCObjectBase? _current; +/// Protocol for observing changes to values of objects. +interface class Observer extends objc.ObjCProtocolBase + implements objc.NSObjectProtocol { + Observer._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); - _NSArrayIterator(Iterable iterable) - : _iterable = iterable, - _length = iterable.length, - _index = 0; + /// Constructs a [Observer] that points to the same underlying object as [other]. + Observer.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); - @override - objc.ObjCObjectBase get current => _current!; + /// Constructs a [Observer] that wraps the given raw object pointer. + Observer.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); - @override - @pragma('vm:prefer-inline') - bool moveNext() { - final length = _iterable.length; - if (_length != length) { - throw ConcurrentModificationError(_iterable); - } - if (_index >= length) { - _current = null; - return false; - } - _current = _iterable.elementAt(_index); - _index++; - return true; + /// Returns whether [obj] is an instance of [Observer]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_Observer, + ); } -} -class _NSDictionaryKeyIterable with Iterable { - NSDictionary _dictionary; - - _NSDictionaryKeyIterable(this._dictionary); + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_Observer.cast()); - @override - int get length => _dictionary.length; + /// Builds an object that implements the Observer protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static Observer implement({ + required void Function( + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); + Observer.observeValueForKeyPath_ofObject_change_context_.implement( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + return Observer.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } - @override - Iterator get iterator => - _NSDictionaryKeyIterator(_dictionary.keyEnumerator()); + /// Adds the implementation of the Observer protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function( + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + Observer.observeValueForKeyPath_ofObject_change_context_.implement( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + } - @override - bool contains(Object? key) => _dictionary.containsKey(key); -} + /// Builds an object that implements the Observer protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static Observer implementAsListener({ + required void Function( + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); + Observer.observeValueForKeyPath_ofObject_change_context_ + .implementAsListener( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + return Observer.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } -class _NSDictionaryValueIterable with Iterable { - NSDictionary _dictionary; + /// Adds the implementation of the Observer protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function( + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + Observer.observeValueForKeyPath_ofObject_change_context_ + .implementAsListener( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + } - _NSDictionaryValueIterable(this._dictionary); + /// Builds an object that implements the Observer protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static Observer implementAsBlocking({ + required void Function( + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); + Observer.observeValueForKeyPath_ofObject_change_context_ + .implementAsBlocking( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + return Observer.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } - @override - int get length => _dictionary.length; + /// Adds the implementation of the Observer protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function( + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + Observer.observeValueForKeyPath_ofObject_change_context_ + .implementAsBlocking( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + } - @override - Iterator get iterator => _dictionary.objectEnumerator(); + /// observeValueForKeyPath:ofObject:change:context: + static final observeValueForKeyPath_ofObject_change_context_ = + objc.ObjCProtocolListenableMethod< + void Function( + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + >( + _protocol_Observer, + _sel_observeValueForKeyPath_ofObject_change_context_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1sr3ozv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_Observer, + _sel_observeValueForKeyPath_ofObject_change_context_, + isRequired: true, + isInstanceMethod: true, + ), + ( + void Function( + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.fromFunction( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.ObjCObjectBase arg2, + objc.NSDictionary arg3, + ffi.Pointer arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.listener( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.ObjCObjectBase arg2, + objc.NSDictionary arg3, + ffi.Pointer arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + objc.NSString, + objc.ObjCObjectBase, + objc.NSDictionary, + ffi.Pointer, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.blocking( + ( + ffi.Pointer _, + objc.NSString arg1, + objc.ObjCObjectBase arg2, + objc.NSDictionary arg3, + ffi.Pointer arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); } -class _NSDictionaryKeyIterator implements Iterator { - final Iterator _iterator; - _NSDictionaryKeyIterator(this._iterator); - - @override - NSCopying get current => NSCopying.castFrom(_iterator.current); - - @override - @pragma('vm:prefer-inline') - bool moveNext() => _iterator.moveNext(); -} +late final _class_NSNumber = objc.getClass("NSNumber"); +final _objc_msgSend_91o635 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_e3qsqz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _protocol_Observer = objc.getProtocol("Observer"); +late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); +late final _sel_isFloat = objc.registerName("isFloat"); +late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc + .registerName("observeValueForKeyPath:ofObject:change:context:"); diff --git a/pkgs/objective_c/lib/src/objective_c_native_base.dart b/pkgs/objective_c/lib/src/objective_c_native_base.dart deleted file mode 100644 index e8a6f1590..000000000 --- a/pkgs/objective_c/lib/src/objective_c_native_base.dart +++ /dev/null @@ -1,6 +0,0 @@ -// TODO: Put public facing types in this file. - -/// Checks if you are awesome. Spoiler: you are. -class Awesome { - bool get isAwesome => true; -} diff --git a/pkgs/objective_c/lib/src/observer.dart b/pkgs/objective_c/lib/src/observer.dart index 83230e99e..d28fdca00 100644 --- a/pkgs/objective_c/lib/src/observer.dart +++ b/pkgs/objective_c/lib/src/observer.dart @@ -4,6 +4,7 @@ import 'dart:ffi'; +import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension Observed on NSObject { diff --git a/pkgs/objective_c/lib/src/protocol_builder.dart b/pkgs/objective_c/lib/src/protocol_builder.dart index 5980eb41d..23d2a4a28 100644 --- a/pkgs/objective_c/lib/src/protocol_builder.dart +++ b/pkgs/objective_c/lib/src/protocol_builder.dart @@ -11,6 +11,7 @@ import 'package:ffi/ffi.dart'; import 'c_bindings_generated.dart' as c; import 'internal.dart' show FailedToLoadProtocolMethodException, GetProtocolName, ObjCBlockBase; +import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart' as objc; import 'runtime_bindings_generated.dart' as r; import 'selector.dart'; @@ -52,7 +53,7 @@ class ObjCProtocolBuilder { /// /// This can be called multiple times to construct multiple object instances /// that all implement the same protocol methods using the same functions. - objc.NSObject build({bool keepIsolateAlive = true}) { + NSObject build({bool keepIsolateAlive = true}) { if (!_built) { _builder.registerClass(); _built = true; @@ -72,7 +73,7 @@ class ObjCProtocolBuilder { /// This essentially declares that the implementation implements the protocol. /// There is no automatic check that ensures that the implementation actually /// implements all the methods of the protocol. - void addProtocol(objc.Protocol protocol) => _builder.addProtocol(protocol); + void addProtocol(Protocol protocol) => _builder.addProtocol(protocol); static final _rand = Random(); static objc.DartProtocolBuilder _createBuilder(String debugName) { diff --git a/pkgs/objective_c/src/foundation_bindings_generated.m b/pkgs/objective_c/src/foundation_bindings_generated.m new file mode 100644 index 000000000..1317af43d --- /dev/null +++ b/pkgs/objective_c/src/foundation_bindings_generated.m @@ -0,0 +1,524 @@ +#include +#import +#import +#import "foundation.h" + +#if !__has_feature(objc_arc) +#error "This file must be compiled with ARC enabled" +#endif + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundeclared-selector" + +typedef struct { + int64_t version; + void* (*newWaiter)(void); + void (*awaitWaiter)(void*); + void* (*currentIsolate)(void); + void (*enterIsolate)(void*); + void (*exitIsolate)(void); + int64_t (*getMainPortId)(void); + bool (*getCurrentThreadOwnsIsolate)(int64_t); +} DOBJC_Context; + +id objc_retainBlock(id); + +#define BLOCKING_BLOCK_IMPL(ctx, BLOCK_SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ + assert(ctx->version >= 1); \ + void* targetIsolate = ctx->currentIsolate(); \ + int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ + return BLOCK_SIG { \ + void* currentIsolate = ctx->currentIsolate(); \ + bool mayEnterIsolate = \ + currentIsolate == NULL && \ + ctx->getCurrentThreadOwnsIsolate != NULL && \ + ctx->getCurrentThreadOwnsIsolate(targetPort); \ + if (currentIsolate == targetIsolate || mayEnterIsolate) { \ + if (mayEnterIsolate) { \ + ctx->enterIsolate(targetIsolate); \ + } \ + INVOKE_DIRECT; \ + if (mayEnterIsolate) { \ + ctx->exitIsolate(); \ + } \ + } else { \ + void* waiter = ctx->newWaiter(); \ + INVOKE_LISTENER; \ + ctx->awaitWaiter(waiter); \ + } \ + }; + + +Protocol* _ObjectiveCBindings_NSCoding(void) { return @protocol(NSCoding); } + +Protocol* _ObjectiveCBindings_NSCopying(void) { return @protocol(NSCopying); } + +Protocol* _ObjectiveCBindings_NSFastEnumeration(void) { return @protocol(NSFastEnumeration); } + +Protocol* _ObjectiveCBindings_NSItemProviderReading(void) { return @protocol(NSItemProviderReading); } + +Protocol* _ObjectiveCBindings_NSItemProviderWriting(void) { return @protocol(NSItemProviderWriting); } + +Protocol* _ObjectiveCBindings_NSMutableCopying(void) { return @protocol(NSMutableCopying); } + +Protocol* _ObjectiveCBindings_NSObject(void) { return @protocol(NSObject); } + +Protocol* _ObjectiveCBindings_NSSecureCoding(void) { return @protocol(NSSecureCoding); } + +Protocol* _ObjectiveCBindings_NSStreamDelegate(void) { return @protocol(NSStreamDelegate); } + +typedef id (^ProtocolTrampoline)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_1mbt9g9(id target, void * sel) { + return ((ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef NSItemProviderRepresentationVisibility (^ProtocolTrampoline_1)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +NSItemProviderRepresentationVisibility _ObjectiveCBindings_protocolTrampoline_1ldqghh(id target, void * sel, id arg1) { + return ((ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef id (^ProtocolTrampoline_2)(void * sel, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_1q0i84(id target, void * sel, id arg1, id arg2) { + return ((ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +typedef unsigned long (^ProtocolTrampoline_3)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +unsigned long _ObjectiveCBindings_protocolTrampoline_1ckyi24(id target, void * sel) { + return ((ProtocolTrampoline_3)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef unsigned long (^ProtocolTrampoline_4)(void * sel, NSFastEnumerationState * arg1, id * arg2, unsigned long arg3); +__attribute__((visibility("default"))) __attribute__((used)) +unsigned long _ObjectiveCBindings_protocolTrampoline_17ap02x(id target, void * sel, NSFastEnumerationState * arg1, id * arg2, unsigned long arg3) { + return ((ProtocolTrampoline_4)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +typedef struct _NSZone * (^ProtocolTrampoline_5)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +struct _NSZone * _ObjectiveCBindings_protocolTrampoline_1a8cl66(id target, void * sel) { + return ((ProtocolTrampoline_5)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef BOOL (^ProtocolTrampoline_6)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _ObjectiveCBindings_protocolTrampoline_e3qsqz(id target, void * sel) { + return ((ProtocolTrampoline_6)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef BOOL (^ProtocolTrampoline_7)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _ObjectiveCBindings_protocolTrampoline_3su7tt(id target, void * sel, id arg1) { + return ((ProtocolTrampoline_7)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef BOOL (^ProtocolTrampoline_8)(void * sel, struct objc_selector * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _ObjectiveCBindings_protocolTrampoline_w1e3k0(id target, void * sel, struct objc_selector * arg1) { + return ((ProtocolTrampoline_8)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef void (^ListenerTrampoline)(id arg0, id arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline _ObjectiveCBindings_wrapListenerBlock_1o83rbn(ListenerTrampoline block) NS_RETURNS_RETAINED { + return ^void(id arg0, id arg1, BOOL * arg2) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); + }; +} + +typedef void (^BlockingTrampoline)(void * waiter, id arg0, id arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline _ObjectiveCBindings_wrapBlockingBlock_1o83rbn( + BlockingTrampoline block, BlockingTrampoline listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1, BOOL * arg2), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); + }); +} + +typedef void (^ListenerTrampoline_1)(id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_1 _ObjectiveCBindings_wrapListenerBlock_pfv6jd(ListenerTrampoline_1 block) NS_RETURNS_RETAINED { + return ^void(id arg0, id arg1) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); + }; +} + +typedef void (^BlockingTrampoline_1)(void * waiter, id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_1 _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + BlockingTrampoline_1 block, BlockingTrampoline_1 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); + }); +} + +typedef void (^ListenerTrampoline_2)(id arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_2 _ObjectiveCBindings_wrapListenerBlock_1b3bb6a(ListenerTrampoline_2 block) NS_RETURNS_RETAINED { + return ^void(id arg0, id arg1, id arg2) { + objc_retainBlock(block); + block(objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); + }; +} + +typedef void (^BlockingTrampoline_2)(void * waiter, id arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_2 _ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( + BlockingTrampoline_2 block, BlockingTrampoline_2 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1, id arg2), { + objc_retainBlock(block); + block(nil, objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); + }); +} + +typedef void (^ListenerTrampoline_3)(struct _NSRange arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_3 _ObjectiveCBindings_wrapListenerBlock_zkjmn1(ListenerTrampoline_3 block) NS_RETURNS_RETAINED { + return ^void(struct _NSRange arg0, BOOL * arg1) { + objc_retainBlock(block); + block(arg0, arg1); + }; +} + +typedef void (^BlockingTrampoline_3)(void * waiter, struct _NSRange arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_3 _ObjectiveCBindings_wrapBlockingBlock_zkjmn1( + BlockingTrampoline_3 block, BlockingTrampoline_3 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(struct _NSRange arg0, BOOL * arg1), { + objc_retainBlock(block); + block(nil, arg0, arg1); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1); + }); +} + +typedef void (^ListenerTrampoline_4)(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_4 _ObjectiveCBindings_wrapListenerBlock_lmc3p5(ListenerTrampoline_4 block) NS_RETURNS_RETAINED { + return ^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); + }; +} + +typedef void (^BlockingTrampoline_4)(void * waiter, id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_4 _ObjectiveCBindings_wrapBlockingBlock_lmc3p5( + BlockingTrampoline_4 block, BlockingTrampoline_4 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); + }); +} + +typedef void (^ListenerTrampoline_5)(id arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_5 _ObjectiveCBindings_wrapListenerBlock_t8l8el(ListenerTrampoline_5 block) NS_RETURNS_RETAINED { + return ^void(id arg0, BOOL * arg1) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), arg1); + }; +} + +typedef void (^BlockingTrampoline_5)(void * waiter, id arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_5 _ObjectiveCBindings_wrapBlockingBlock_t8l8el( + BlockingTrampoline_5 block, BlockingTrampoline_5 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, BOOL * arg1), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1); + }); +} + +typedef void (^ListenerTrampoline_6)(unsigned long arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_6 _ObjectiveCBindings_wrapListenerBlock_q5jeyk(ListenerTrampoline_6 block) NS_RETURNS_RETAINED { + return ^void(unsigned long arg0, BOOL * arg1) { + objc_retainBlock(block); + block(arg0, arg1); + }; +} + +typedef void (^BlockingTrampoline_6)(void * waiter, unsigned long arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_6 _ObjectiveCBindings_wrapBlockingBlock_q5jeyk( + BlockingTrampoline_6 block, BlockingTrampoline_6 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(unsigned long arg0, BOOL * arg1), { + objc_retainBlock(block); + block(nil, arg0, arg1); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1); + }); +} + +typedef void (^ListenerTrampoline_7)(id arg0, BOOL arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_7 _ObjectiveCBindings_wrapListenerBlock_rnu2c5(ListenerTrampoline_7 block) NS_RETURNS_RETAINED { + return ^void(id arg0, BOOL arg1, id arg2) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); + }; +} + +typedef void (^BlockingTrampoline_7)(void * waiter, id arg0, BOOL arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_7 _ObjectiveCBindings_wrapBlockingBlock_rnu2c5( + BlockingTrampoline_7 block, BlockingTrampoline_7 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, BOOL arg1, id arg2), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); + }); +} + +typedef void (^ListenerTrampoline_8)(id arg0, unsigned long arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_8 _ObjectiveCBindings_wrapListenerBlock_1p9ui4q(ListenerTrampoline_8 block) NS_RETURNS_RETAINED { + return ^void(id arg0, unsigned long arg1, BOOL * arg2) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); + }; +} + +typedef void (^BlockingTrampoline_8)(void * waiter, id arg0, unsigned long arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_8 _ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( + BlockingTrampoline_8 block, BlockingTrampoline_8 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, unsigned long arg1, BOOL * arg2), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); + }); +} + +typedef void (^ListenerTrampoline_9)(void * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_9 _ObjectiveCBindings_wrapListenerBlock_ovsamd(ListenerTrampoline_9 block) NS_RETURNS_RETAINED { + return ^void(void * arg0) { + objc_retainBlock(block); + block(arg0); + }; +} + +typedef void (^BlockingTrampoline_9)(void * waiter, void * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_9 _ObjectiveCBindings_wrapBlockingBlock_ovsamd( + BlockingTrampoline_9 block, BlockingTrampoline_9 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0), { + objc_retainBlock(block); + block(nil, arg0); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0); + }); +} + +typedef void (^ProtocolTrampoline_9)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +void _ObjectiveCBindings_protocolTrampoline_ovsamd(id target, void * sel) { + return ((ProtocolTrampoline_9)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef void (^ListenerTrampoline_10)(void * arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_10 _ObjectiveCBindings_wrapListenerBlock_18v1jvf(ListenerTrampoline_10 block) NS_RETURNS_RETAINED { + return ^void(void * arg0, id arg1) { + objc_retainBlock(block); + block(arg0, (__bridge id)(__bridge_retained void*)(arg1)); + }; +} + +typedef void (^BlockingTrampoline_10)(void * waiter, void * arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_10 _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( + BlockingTrampoline_10 block, BlockingTrampoline_10 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1), { + objc_retainBlock(block); + block(nil, arg0, (__bridge id)(__bridge_retained void*)(arg1)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, (__bridge id)(__bridge_retained void*)(arg1)); + }); +} + +typedef void (^ProtocolTrampoline_10)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +void _ObjectiveCBindings_protocolTrampoline_18v1jvf(id target, void * sel, id arg1) { + return ((ProtocolTrampoline_10)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef void (^ListenerTrampoline_11)(void * arg0, struct _NSRange arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_11 _ObjectiveCBindings_wrapListenerBlock_1q8ia8l(ListenerTrampoline_11 block) NS_RETURNS_RETAINED { + return ^void(void * arg0, struct _NSRange arg1, BOOL * arg2) { + objc_retainBlock(block); + block(arg0, arg1, arg2); + }; +} + +typedef void (^BlockingTrampoline_11)(void * waiter, void * arg0, struct _NSRange arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_11 _ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( + BlockingTrampoline_11 block, BlockingTrampoline_11 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, struct _NSRange arg1, BOOL * arg2), { + objc_retainBlock(block); + block(nil, arg0, arg1, arg2); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1, arg2); + }); +} + +typedef void (^ListenerTrampoline_12)(void * arg0, id arg1, NSStreamEvent arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_12 _ObjectiveCBindings_wrapListenerBlock_hoampi(ListenerTrampoline_12 block) NS_RETURNS_RETAINED { + return ^void(void * arg0, id arg1, NSStreamEvent arg2) { + objc_retainBlock(block); + block(arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); + }; +} + +typedef void (^BlockingTrampoline_12)(void * waiter, void * arg0, id arg1, NSStreamEvent arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_12 _ObjectiveCBindings_wrapBlockingBlock_hoampi( + BlockingTrampoline_12 block, BlockingTrampoline_12 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1, NSStreamEvent arg2), { + objc_retainBlock(block); + block(nil, arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); + }); +} + +typedef void (^ProtocolTrampoline_11)(void * sel, id arg1, NSStreamEvent arg2); +__attribute__((visibility("default"))) __attribute__((used)) +void _ObjectiveCBindings_protocolTrampoline_hoampi(id target, void * sel, id arg1, NSStreamEvent arg2) { + return ((ProtocolTrampoline_11)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +typedef void (^ListenerTrampoline_13)(void * arg0, unsigned long arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_13 _ObjectiveCBindings_wrapListenerBlock_zuf90e(ListenerTrampoline_13 block) NS_RETURNS_RETAINED { + return ^void(void * arg0, unsigned long arg1) { + objc_retainBlock(block); + block(arg0, arg1); + }; +} + +typedef void (^BlockingTrampoline_13)(void * waiter, void * arg0, unsigned long arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_13 _ObjectiveCBindings_wrapBlockingBlock_zuf90e( + BlockingTrampoline_13 block, BlockingTrampoline_13 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, unsigned long arg1), { + objc_retainBlock(block); + block(nil, arg0, arg1); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1); + }); +} + +typedef void (^ListenerTrampoline_14)(unsigned short * arg0, unsigned long arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_14 _ObjectiveCBindings_wrapListenerBlock_vhbh5h(ListenerTrampoline_14 block) NS_RETURNS_RETAINED { + return ^void(unsigned short * arg0, unsigned long arg1) { + objc_retainBlock(block); + block(arg0, arg1); + }; +} + +typedef void (^BlockingTrampoline_14)(void * waiter, unsigned short * arg0, unsigned long arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_14 _ObjectiveCBindings_wrapBlockingBlock_vhbh5h( + BlockingTrampoline_14 block, BlockingTrampoline_14 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(unsigned short * arg0, unsigned long arg1), { + objc_retainBlock(block); + block(nil, arg0, arg1); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1); + }); +} + +typedef id (^ProtocolTrampoline_12)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_xr62hr(id target, void * sel, id arg1) { + return ((ProtocolTrampoline_12)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef id (^ProtocolTrampoline_13)(void * sel, id arg1, id arg2, id * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_10z9f5k(id target, void * sel, id arg1, id arg2, id * arg3) { + return ((ProtocolTrampoline_13)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +typedef id (^ProtocolTrampoline_14)(void * sel, struct _NSZone * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_18nsem0(id target, void * sel, struct _NSZone * arg1) { + return ((ProtocolTrampoline_14)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef id (^ProtocolTrampoline_15)(void * sel, struct objc_selector * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_50as9u(id target, void * sel, struct objc_selector * arg1) { + return ((ProtocolTrampoline_15)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef id (^ProtocolTrampoline_16)(void * sel, struct objc_selector * arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_1mllhpc(id target, void * sel, struct objc_selector * arg1, id arg2) { + return ((ProtocolTrampoline_16)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +typedef id (^ProtocolTrampoline_17)(void * sel, struct objc_selector * arg1, id arg2, id arg3); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_c7gk2u(id target, void * sel, struct objc_selector * arg1, id arg2, id arg3) { + return ((ProtocolTrampoline_17)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} +#undef BLOCKING_BLOCK_IMPL + +#pragma clang diagnostic pop diff --git a/pkgs/objective_c/src/objective_c_bindings_generated.m b/pkgs/objective_c/src/objective_c_bindings_generated.m index f6c25a1b7..d93ebfd32 100644 --- a/pkgs/objective_c/src/objective_c_bindings_generated.m +++ b/pkgs/objective_c/src/objective_c_bindings_generated.m @@ -1,7 +1,6 @@ #include #import #import -#import "foundation.h" #import "input_stream_adapter.h" #import "ns_number.h" #import "observer.h" @@ -53,456 +52,19 @@ }; -Protocol* _ObjectiveCBindings_NSCoding(void) { return @protocol(NSCoding); } - -Protocol* _ObjectiveCBindings_NSCopying(void) { return @protocol(NSCopying); } - -Protocol* _ObjectiveCBindings_NSFastEnumeration(void) { return @protocol(NSFastEnumeration); } - -Protocol* _ObjectiveCBindings_NSItemProviderReading(void) { return @protocol(NSItemProviderReading); } - -Protocol* _ObjectiveCBindings_NSItemProviderWriting(void) { return @protocol(NSItemProviderWriting); } - -Protocol* _ObjectiveCBindings_NSMutableCopying(void) { return @protocol(NSMutableCopying); } - -Protocol* _ObjectiveCBindings_NSObject(void) { return @protocol(NSObject); } - -Protocol* _ObjectiveCBindings_NSPortDelegate(void) { return @protocol(NSPortDelegate); } - -Protocol* _ObjectiveCBindings_NSSecureCoding(void) { return @protocol(NSSecureCoding); } - -Protocol* _ObjectiveCBindings_NSStreamDelegate(void) { return @protocol(NSStreamDelegate); } - -typedef id (^ProtocolTrampoline)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_1mbt9g9(id target, void * sel) { - return ((ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef NSItemProviderRepresentationVisibility (^ProtocolTrampoline_1)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -NSItemProviderRepresentationVisibility _ObjectiveCBindings_protocolTrampoline_1ldqghh(id target, void * sel, id arg1) { - return ((ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef id (^ProtocolTrampoline_2)(void * sel, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_1q0i84(id target, void * sel, id arg1, id arg2) { - return ((ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -typedef unsigned long (^ProtocolTrampoline_3)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -unsigned long _ObjectiveCBindings_protocolTrampoline_1ckyi24(id target, void * sel) { - return ((ProtocolTrampoline_3)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef unsigned long (^ProtocolTrampoline_4)(void * sel, NSFastEnumerationState * arg1, id * arg2, unsigned long arg3); -__attribute__((visibility("default"))) __attribute__((used)) -unsigned long _ObjectiveCBindings_protocolTrampoline_17ap02x(id target, void * sel, NSFastEnumerationState * arg1, id * arg2, unsigned long arg3) { - return ((ProtocolTrampoline_4)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -typedef struct _NSZone * (^ProtocolTrampoline_5)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -struct _NSZone * _ObjectiveCBindings_protocolTrampoline_1a8cl66(id target, void * sel) { - return ((ProtocolTrampoline_5)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef BOOL (^ProtocolTrampoline_6)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _ObjectiveCBindings_protocolTrampoline_e3qsqz(id target, void * sel) { - return ((ProtocolTrampoline_6)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef BOOL (^ProtocolTrampoline_7)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _ObjectiveCBindings_protocolTrampoline_3su7tt(id target, void * sel, id arg1) { - return ((ProtocolTrampoline_7)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef BOOL (^ProtocolTrampoline_8)(void * sel, struct objc_selector * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _ObjectiveCBindings_protocolTrampoline_w1e3k0(id target, void * sel, struct objc_selector * arg1) { - return ((ProtocolTrampoline_8)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef void (^ListenerTrampoline)(); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline _ObjectiveCBindings_wrapListenerBlock_1pl9qdv(ListenerTrampoline block) NS_RETURNS_RETAINED { - return ^void() { - objc_retainBlock(block); - block(); - }; -} - -typedef void (^BlockingTrampoline)(void * waiter); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline _ObjectiveCBindings_wrapBlockingBlock_1pl9qdv( - BlockingTrampoline block, BlockingTrampoline listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(), { - objc_retainBlock(block); - block(nil); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter); - }); -} - -typedef void (^ListenerTrampoline_1)(id arg0, id arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_1 _ObjectiveCBindings_wrapListenerBlock_1o83rbn(ListenerTrampoline_1 block) NS_RETURNS_RETAINED { - return ^void(id arg0, id arg1, BOOL * arg2) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); - }; -} - -typedef void (^BlockingTrampoline_1)(void * waiter, id arg0, id arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_1 _ObjectiveCBindings_wrapBlockingBlock_1o83rbn( - BlockingTrampoline_1 block, BlockingTrampoline_1 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1, BOOL * arg2), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); - }); -} - -typedef void (^ListenerTrampoline_2)(id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_2 _ObjectiveCBindings_wrapListenerBlock_pfv6jd(ListenerTrampoline_2 block) NS_RETURNS_RETAINED { - return ^void(id arg0, id arg1) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); - }; -} - -typedef void (^BlockingTrampoline_2)(void * waiter, id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_2 _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - BlockingTrampoline_2 block, BlockingTrampoline_2 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); - }); -} - -typedef void (^ListenerTrampoline_3)(id arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_3 _ObjectiveCBindings_wrapListenerBlock_1b3bb6a(ListenerTrampoline_3 block) NS_RETURNS_RETAINED { - return ^void(id arg0, id arg1, id arg2) { - objc_retainBlock(block); - block(objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); - }; -} - -typedef void (^BlockingTrampoline_3)(void * waiter, id arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_3 _ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( - BlockingTrampoline_3 block, BlockingTrampoline_3 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1, id arg2), { - objc_retainBlock(block); - block(nil, objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); - }); -} - -typedef void (^ListenerTrampoline_4)(struct _NSRange arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_4 _ObjectiveCBindings_wrapListenerBlock_zkjmn1(ListenerTrampoline_4 block) NS_RETURNS_RETAINED { - return ^void(struct _NSRange arg0, BOOL * arg1) { - objc_retainBlock(block); - block(arg0, arg1); - }; -} - -typedef void (^BlockingTrampoline_4)(void * waiter, struct _NSRange arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_4 _ObjectiveCBindings_wrapBlockingBlock_zkjmn1( - BlockingTrampoline_4 block, BlockingTrampoline_4 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(struct _NSRange arg0, BOOL * arg1), { - objc_retainBlock(block); - block(nil, arg0, arg1); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, arg1); - }); -} - -typedef void (^ListenerTrampoline_5)(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_5 _ObjectiveCBindings_wrapListenerBlock_lmc3p5(ListenerTrampoline_5 block) NS_RETURNS_RETAINED { - return ^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); - }; -} - -typedef void (^BlockingTrampoline_5)(void * waiter, id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); +typedef void (^ListenerTrampoline)(void * arg0, id arg1, id arg2, id arg3, void * arg4); __attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_5 _ObjectiveCBindings_wrapBlockingBlock_lmc3p5( - BlockingTrampoline_5 block, BlockingTrampoline_5 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); - }); -} - -typedef void (^ListenerTrampoline_6)(id arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_6 _ObjectiveCBindings_wrapListenerBlock_t8l8el(ListenerTrampoline_6 block) NS_RETURNS_RETAINED { - return ^void(id arg0, BOOL * arg1) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), arg1); - }; -} - -typedef void (^BlockingTrampoline_6)(void * waiter, id arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_6 _ObjectiveCBindings_wrapBlockingBlock_t8l8el( - BlockingTrampoline_6 block, BlockingTrampoline_6 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, BOOL * arg1), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1); - }); -} - -typedef void (^ListenerTrampoline_7)(id arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_7 _ObjectiveCBindings_wrapListenerBlock_xtuoz7(ListenerTrampoline_7 block) NS_RETURNS_RETAINED { - return ^void(id arg0) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0)); - }; -} - -typedef void (^BlockingTrampoline_7)(void * waiter, id arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_7 _ObjectiveCBindings_wrapBlockingBlock_xtuoz7( - BlockingTrampoline_7 block, BlockingTrampoline_7 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0)); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0)); - }); -} - -typedef void (^ListenerTrampoline_8)(unsigned long arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_8 _ObjectiveCBindings_wrapListenerBlock_q5jeyk(ListenerTrampoline_8 block) NS_RETURNS_RETAINED { - return ^void(unsigned long arg0, BOOL * arg1) { - objc_retainBlock(block); - block(arg0, arg1); - }; -} - -typedef void (^BlockingTrampoline_8)(void * waiter, unsigned long arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_8 _ObjectiveCBindings_wrapBlockingBlock_q5jeyk( - BlockingTrampoline_8 block, BlockingTrampoline_8 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(unsigned long arg0, BOOL * arg1), { - objc_retainBlock(block); - block(nil, arg0, arg1); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, arg1); - }); -} - -typedef void (^ListenerTrampoline_9)(id arg0, BOOL arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_9 _ObjectiveCBindings_wrapListenerBlock_rnu2c5(ListenerTrampoline_9 block) NS_RETURNS_RETAINED { - return ^void(id arg0, BOOL arg1, id arg2) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); - }; -} - -typedef void (^BlockingTrampoline_9)(void * waiter, id arg0, BOOL arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_9 _ObjectiveCBindings_wrapBlockingBlock_rnu2c5( - BlockingTrampoline_9 block, BlockingTrampoline_9 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, BOOL arg1, id arg2), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); - }); -} - -typedef void (^ListenerTrampoline_10)(id arg0, unsigned long arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_10 _ObjectiveCBindings_wrapListenerBlock_1p9ui4q(ListenerTrampoline_10 block) NS_RETURNS_RETAINED { - return ^void(id arg0, unsigned long arg1, BOOL * arg2) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); - }; -} - -typedef void (^BlockingTrampoline_10)(void * waiter, id arg0, unsigned long arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_10 _ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( - BlockingTrampoline_10 block, BlockingTrampoline_10 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, unsigned long arg1, BOOL * arg2), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); - }); -} - -typedef void (^ListenerTrampoline_11)(void * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_11 _ObjectiveCBindings_wrapListenerBlock_ovsamd(ListenerTrampoline_11 block) NS_RETURNS_RETAINED { - return ^void(void * arg0) { - objc_retainBlock(block); - block(arg0); - }; -} - -typedef void (^BlockingTrampoline_11)(void * waiter, void * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_11 _ObjectiveCBindings_wrapBlockingBlock_ovsamd( - BlockingTrampoline_11 block, BlockingTrampoline_11 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0), { - objc_retainBlock(block); - block(nil, arg0); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0); - }); -} - -typedef void (^ProtocolTrampoline_9)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -void _ObjectiveCBindings_protocolTrampoline_ovsamd(id target, void * sel) { - return ((ProtocolTrampoline_9)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef void (^ListenerTrampoline_12)(void * arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_12 _ObjectiveCBindings_wrapListenerBlock_18v1jvf(ListenerTrampoline_12 block) NS_RETURNS_RETAINED { - return ^void(void * arg0, id arg1) { - objc_retainBlock(block); - block(arg0, (__bridge id)(__bridge_retained void*)(arg1)); - }; -} - -typedef void (^BlockingTrampoline_12)(void * waiter, void * arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_12 _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( - BlockingTrampoline_12 block, BlockingTrampoline_12 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1), { - objc_retainBlock(block); - block(nil, arg0, (__bridge id)(__bridge_retained void*)(arg1)); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, (__bridge id)(__bridge_retained void*)(arg1)); - }); -} - -typedef void (^ProtocolTrampoline_10)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -void _ObjectiveCBindings_protocolTrampoline_18v1jvf(id target, void * sel, id arg1) { - return ((ProtocolTrampoline_10)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef void (^ListenerTrampoline_13)(void * arg0, struct _NSRange arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_13 _ObjectiveCBindings_wrapListenerBlock_1q8ia8l(ListenerTrampoline_13 block) NS_RETURNS_RETAINED { - return ^void(void * arg0, struct _NSRange arg1, BOOL * arg2) { - objc_retainBlock(block); - block(arg0, arg1, arg2); - }; -} - -typedef void (^BlockingTrampoline_13)(void * waiter, void * arg0, struct _NSRange arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_13 _ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( - BlockingTrampoline_13 block, BlockingTrampoline_13 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, struct _NSRange arg1, BOOL * arg2), { - objc_retainBlock(block); - block(nil, arg0, arg1, arg2); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, arg1, arg2); - }); -} - -typedef void (^ListenerTrampoline_14)(void * arg0, id arg1, NSStreamEvent arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_14 _ObjectiveCBindings_wrapListenerBlock_hoampi(ListenerTrampoline_14 block) NS_RETURNS_RETAINED { - return ^void(void * arg0, id arg1, NSStreamEvent arg2) { - objc_retainBlock(block); - block(arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); - }; -} - -typedef void (^BlockingTrampoline_14)(void * waiter, void * arg0, id arg1, NSStreamEvent arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_14 _ObjectiveCBindings_wrapBlockingBlock_hoampi( - BlockingTrampoline_14 block, BlockingTrampoline_14 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1, NSStreamEvent arg2), { - objc_retainBlock(block); - block(nil, arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); - }); -} - -typedef void (^ProtocolTrampoline_11)(void * sel, id arg1, NSStreamEvent arg2); -__attribute__((visibility("default"))) __attribute__((used)) -void _ObjectiveCBindings_protocolTrampoline_hoampi(id target, void * sel, id arg1, NSStreamEvent arg2) { - return ((ProtocolTrampoline_11)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -typedef void (^ListenerTrampoline_15)(void * arg0, id arg1, id arg2, id arg3, void * arg4); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_15 _ObjectiveCBindings_wrapListenerBlock_1sr3ozv(ListenerTrampoline_15 block) NS_RETURNS_RETAINED { +ListenerTrampoline _ObjectiveCBindings_wrapListenerBlock_1sr3ozv(ListenerTrampoline block) NS_RETURNS_RETAINED { return ^void(void * arg0, id arg1, id arg2, id arg3, void * arg4) { objc_retainBlock(block); block(arg0, (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2), (__bridge id)(__bridge_retained void*)(arg3), arg4); }; } -typedef void (^BlockingTrampoline_15)(void * waiter, void * arg0, id arg1, id arg2, id arg3, void * arg4); +typedef void (^BlockingTrampoline)(void * waiter, void * arg0, id arg1, id arg2, id arg3, void * arg4); __attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_15 _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( - BlockingTrampoline_15 block, BlockingTrampoline_15 listenerBlock, +ListenerTrampoline _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( + BlockingTrampoline block, BlockingTrampoline listenerBlock, DOBJC_Context* ctx) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1, id arg2, id arg3, void * arg4), { objc_retainBlock(block); @@ -513,92 +75,10 @@ ListenerTrampoline_15 _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( }); } -typedef void (^ProtocolTrampoline_12)(void * sel, id arg1, id arg2, id arg3, void * arg4); +typedef void (^ProtocolTrampoline)(void * sel, id arg1, id arg2, id arg3, void * arg4); __attribute__((visibility("default"))) __attribute__((used)) void _ObjectiveCBindings_protocolTrampoline_1sr3ozv(id target, void * sel, id arg1, id arg2, id arg3, void * arg4) { - return ((ProtocolTrampoline_12)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); -} - -typedef void (^ListenerTrampoline_16)(void * arg0, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_16 _ObjectiveCBindings_wrapListenerBlock_zuf90e(ListenerTrampoline_16 block) NS_RETURNS_RETAINED { - return ^void(void * arg0, unsigned long arg1) { - objc_retainBlock(block); - block(arg0, arg1); - }; -} - -typedef void (^BlockingTrampoline_16)(void * waiter, void * arg0, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_16 _ObjectiveCBindings_wrapBlockingBlock_zuf90e( - BlockingTrampoline_16 block, BlockingTrampoline_16 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, unsigned long arg1), { - objc_retainBlock(block); - block(nil, arg0, arg1); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, arg1); - }); -} - -typedef void (^ListenerTrampoline_17)(unsigned short * arg0, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_17 _ObjectiveCBindings_wrapListenerBlock_vhbh5h(ListenerTrampoline_17 block) NS_RETURNS_RETAINED { - return ^void(unsigned short * arg0, unsigned long arg1) { - objc_retainBlock(block); - block(arg0, arg1); - }; -} - -typedef void (^BlockingTrampoline_17)(void * waiter, unsigned short * arg0, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_17 _ObjectiveCBindings_wrapBlockingBlock_vhbh5h( - BlockingTrampoline_17 block, BlockingTrampoline_17 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(unsigned short * arg0, unsigned long arg1), { - objc_retainBlock(block); - block(nil, arg0, arg1); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, arg1); - }); -} - -typedef id (^ProtocolTrampoline_13)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_xr62hr(id target, void * sel, id arg1) { - return ((ProtocolTrampoline_13)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef id (^ProtocolTrampoline_14)(void * sel, id arg1, id arg2, id * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_10z9f5k(id target, void * sel, id arg1, id arg2, id * arg3) { - return ((ProtocolTrampoline_14)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -typedef id (^ProtocolTrampoline_15)(void * sel, struct _NSZone * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_18nsem0(id target, void * sel, struct _NSZone * arg1) { - return ((ProtocolTrampoline_15)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef id (^ProtocolTrampoline_16)(void * sel, struct objc_selector * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_50as9u(id target, void * sel, struct objc_selector * arg1) { - return ((ProtocolTrampoline_16)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef id (^ProtocolTrampoline_17)(void * sel, struct objc_selector * arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_1mllhpc(id target, void * sel, struct objc_selector * arg1, id arg2) { - return ((ProtocolTrampoline_17)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -typedef id (^ProtocolTrampoline_18)(void * sel, struct objc_selector * arg1, id arg2, id arg3); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_c7gk2u(id target, void * sel, struct objc_selector * arg1, id arg2, id arg3) { - return ((ProtocolTrampoline_18)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); + return ((ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); } Protocol* _ObjectiveCBindings_Observer(void) { return @protocol(Observer); } diff --git a/pkgs/objective_c/test/interface_lists_test.dart b/pkgs/objective_c/test/interface_lists_test.dart index 6ba8cb3e0..11f7a2dcc 100644 --- a/pkgs/objective_c/test/interface_lists_test.dart +++ b/pkgs/objective_c/test/interface_lists_test.dart @@ -46,7 +46,7 @@ void main() { final allClassNames = findBindings(RegExp(r'^class ([^_]\w*) ')); expectSetsEqual( 'generated classes', - objCBuiltInInterfaces.values.toSet(), + objCBuiltInInterfaces, allClassNames, ); }); diff --git a/pkgs/objective_c/tool/generate_code.dart b/pkgs/objective_c/tool/generate_code.dart index 5afa8bbf6..f39366db3 100644 --- a/pkgs/objective_c/tool/generate_code.dart +++ b/pkgs/objective_c/tool/generate_code.dart @@ -14,18 +14,20 @@ import 'package:ffigen/src/executables/ffigen.dart' as ffigen; import 'package:yaml/yaml.dart'; const runtimeConfig = 'ffigen_runtime.yaml'; +const foundationConfig = 'ffigen_foundation.yaml'; const cConfig = 'ffigen_c.yaml'; const objcConfig = 'ffigen_objc.yaml'; const runtimeBindings = 'lib/src/runtime_bindings_generated.dart'; +const foundationBindings = 'lib/src/foundation_bindings_generated.dart'; const cBindings = 'lib/src/c_bindings_generated.dart'; const objcBindings = 'lib/src/objective_c_bindings_generated.dart'; -const objcExports = 'lib/src/objective_c_bindings_exported.dart'; +const foundationExports = 'lib/src/foundation_bindings_exported.dart'; const extraMethodsFile = 'tool/data/extra_methods.dart.in'; const builtInTypes = '../ffigen/lib/src/code_generator/objc_built_in_types.dart'; const interfaceListTest = 'test/interface_lists_test.dart'; -const privateClasses = {'DartInputStreamAdapter', 'DOBJCObservation'}; +const ffigenFlags = ['--no-format', '-v', 'severe', '--config']; void dartCmd(List args) { final exec = Platform.resolvedExecutable; @@ -182,7 +184,7 @@ ${elements.join('\n')} File(out).writeAsStringSync(s.toString()); - return exports.difference(privateClasses).toList()..sort(); + return exports.toList()..sort(); } void writeExports(List exports, String out) { @@ -193,7 +195,7 @@ void writeExports(List exports, String out) { // Generated by package:objective_c's tool/generate_code.dart. -export 'objective_c_bindings_generated.dart' +export 'foundation_bindings_generated.dart' show ${exports.join(',\n ')}; '''); @@ -201,30 +203,34 @@ export 'objective_c_bindings_generated.dart' Future run({required bool format}) async { print('Generating runtime bindings...'); - await ffigen.main(['--no-format', '-v', 'severe', '--config', runtimeConfig]); + await ffigen.main([...ffigenFlags, runtimeConfig]); print('Generating C bindings...'); - await ffigen.main(['--no-format', '-v', 'severe', '--config', cConfig]); + await ffigen.main([...ffigenFlags, cConfig]); print('Generating ObjC bindings...'); - await ffigen.main(['--no-format', '-v', 'severe', '--config', objcConfig]); - mergeExtraMethods(objcBindings, parseExtraMethods(extraMethodsFile)); + await ffigen.main([...ffigenFlags, objcConfig]); + + print('Generating foundation bindings...'); + await ffigen.main([...ffigenFlags, foundationConfig]); + mergeExtraMethods(foundationBindings, parseExtraMethods(extraMethodsFile)); print('Generating objc_built_in_types.dart...'); - final exports = writeBuiltInTypes(objcConfig, builtInTypes); + final exports = writeBuiltInTypes(foundationConfig, builtInTypes); - print('Generating objective_c_bindings_exported.dart...'); - writeExports(exports, objcExports); + print('Generating foundation_bindings_exported.dart...'); + writeExports(exports, foundationExports); if (format) { print('Formatting bindings...'); dartCmd([ 'format', runtimeBindings, + foundationBindings, cBindings, objcBindings, builtInTypes, - objcExports, + foundationExports, ]); } diff --git a/pkgs/swiftgen/example/temp/AVFAudioWrapper.h b/pkgs/swiftgen/example/temp/AVFAudioWrapper.h new file mode 100644 index 000000000..6c12e248b --- /dev/null +++ b/pkgs/swiftgen/example/temp/AVFAudioWrapper.h @@ -0,0 +1,1261 @@ +// Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1) +#ifndef AVFAUDIOWRAPPER_SWIFT_H +#define AVFAUDIOWRAPPER_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +# include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +# ifndef __ptrauth_swift_value_witness_function_pointer +# define __ptrauth_swift_value_witness_function_pointer(x) +# endif +# ifndef __ptrauth_swift_class_method_pointer +# define __ptrauth_swift_class_method_pointer(x) +# endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif +#if !defined(SWIFT_RUNTIME_NAME) +# if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# else +# define SWIFT_RUNTIME_NAME(X) +# endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +# if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# else +# define SWIFT_COMPILE_NAME(X) +# endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +# if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# else +# define SWIFT_METHOD_FAMILY(X) +# endif +#endif +#if !defined(SWIFT_NOESCAPE) +# if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +# else +# define SWIFT_NOESCAPE +# endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +# if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# else +# define SWIFT_RELEASES_ARGUMENT +# endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +# if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# else +# define SWIFT_WARN_UNUSED_RESULT +# endif +#endif +#if !defined(SWIFT_NORETURN) +# if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +# else +# define SWIFT_NORETURN +# endif +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if !defined(SWIFT_DEPRECATED_OBJC) +# if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +# else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# endif +#endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if !defined(SWIFT_INDIRECT_RESULT) +# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +# define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +# define SWIFT_NOEXCEPT noexcept +#else +# define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +# if __has_attribute(always_inline) +# if __has_attribute(nodebug) +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) +# else +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +# endif +# else +# define SWIFT_C_INLINE_THUNK inline +# endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +# define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="AVFAudioWrapper",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +SWIFT_CLASS("_TtC15AVFAudioWrapper22AVAUPresetEventWrapper") +@interface AVAUPresetEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper34AVAudio3DAngularOrientationWrapper") +@interface AVAudio3DAngularOrientationWrapper : NSObject +@property (nonatomic) float pitch; +@property (nonatomic) float roll; +@property (nonatomic) float yaw; +- (nonnull instancetype)initWithYaw:(float)yaw pitch:(float)pitch roll:(float)roll OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper21AVAudio3DPointWrapper") +@interface AVAudio3DPointWrapper : NSObject +@property (nonatomic) float x; +@property (nonatomic) float y; +@property (nonatomic) float z; +- (nonnull instancetype)initWithX:(float)x y:(float)y z:(float)z OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper33AVAudio3DVectorOrientationWrapper") +@interface AVAudio3DVectorOrientationWrapper : NSObject +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@class NSString; + +SWIFT_CLASS("_TtC15AVFAudioWrapper25AVAudioApplicationWrapper") +@interface AVAudioApplicationWrapper : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull muteStateKey;) ++ (NSString * _Nonnull)muteStateKey SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AVAudioApplicationWrapper * _Nonnull shared;) ++ (AVAudioApplicationWrapper * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +@property (nonatomic, readonly) BOOL isInputMuted; +- (BOOL)setInputMuted:(BOOL)muted error:(NSError * _Nullable * _Nullable)error; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class AVAudioFormatWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper20AVAudioBufferWrapper") +@interface AVAudioBufferWrapper : NSObject +@property (nonatomic, readonly, strong) AVAudioFormatWrapper * _Nonnull format; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper27AVAudioChannelLayoutWrapper") +@interface AVAudioChannelLayoutWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper30AVAudioCompressedBufferWrapper") +@interface AVAudioCompressedBufferWrapper : NSObject +@property (nonatomic, readonly) NSInteger maximumPacketSize; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class AVAudioNodeWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper29AVAudioConnectionPointWrapper") +@interface AVAudioConnectionPointWrapper : NSObject +@property (nonatomic, readonly, strong) AVAudioNodeWrapper * _Nullable node; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper32AVAudioConverterPrimeInfoWrapper") +@interface AVAudioConverterPrimeInfoWrapper : NSObject +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@class AVAudioPCMBufferWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper23AVAudioConverterWrapper") +@interface AVAudioConverterWrapper : NSObject +@property (nonatomic) NSInteger bitRate; +@property (nonatomic, copy) NSString * _Nullable bitRateStrategy; +@property (nonatomic) BOOL dither; +@property (nonatomic) BOOL downmix; +@property (nonatomic, readonly, strong) AVAudioFormatWrapper * _Nonnull inputFormat; +@property (nonatomic, readonly) NSInteger maximumOutputPacketSize; +@property (nonatomic, readonly, strong) AVAudioFormatWrapper * _Nonnull outputFormat; +@property (nonatomic, strong) AVAudioConverterPrimeInfoWrapper * _Nonnull primeInfo; +@property (nonatomic, copy) NSString * _Nullable sampleRateConverterAlgorithm; +@property (nonatomic) NSInteger sampleRateConverterQuality; +- (nullable instancetype)initFrom:(AVAudioFormatWrapper * _Nonnull)fromFormat to:(AVAudioFormatWrapper * _Nonnull)toFormat OBJC_DESIGNATED_INITIALIZER; +- (BOOL)convertTo:(AVAudioPCMBufferWrapper * _Nonnull)outputBuffer from:(AVAudioPCMBufferWrapper * _Nonnull)inputBuffer error:(NSError * _Nullable * _Nullable)error; +- (void)reset; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class AVAudioInputNodeWrapper; +@class AVAudioMixerNodeWrapper; +@class AVAudioOutputNodeWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper20AVAudioEngineWrapper") +@interface AVAudioEngineWrapper : NSObject +@property (nonatomic) BOOL isAutoShutdownEnabled; +@property (nonatomic, readonly, strong) AVAudioInputNodeWrapper * _Nonnull inputNode; +@property (nonatomic, readonly) BOOL isInManualRenderingMode; +@property (nonatomic, readonly, strong) AVAudioMixerNodeWrapper * _Nonnull mainMixerNode; +@property (nonatomic, readonly, strong) AVAudioFormatWrapper * _Nonnull manualRenderingFormat; +@property (nonatomic, readonly, strong) AVAudioOutputNodeWrapper * _Nonnull outputNode; +@property (nonatomic, readonly) BOOL isRunning; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)attach:(AVAudioNodeWrapper * _Nonnull)node; +- (void)connect:(AVAudioNodeWrapper * _Nonnull)node1 to:(AVAudioNodeWrapper * _Nonnull)node2 format:(AVAudioFormatWrapper * _Nullable)format; +- (void)detach:(AVAudioNodeWrapper * _Nonnull)node; +- (void)disableManualRenderingMode; +- (void)disconnectMIDI:(AVAudioNodeWrapper * _Nonnull)sourceNode from:(AVAudioNodeWrapper * _Nonnull)destinationNode; +- (void)disconnectMIDIInput:(AVAudioNodeWrapper * _Nonnull)node; +- (void)disconnectMIDIOutput:(AVAudioNodeWrapper * _Nonnull)node; +- (void)disconnectNodeInput:(AVAudioNodeWrapper * _Nonnull)node; +- (void)disconnectNodeOutput:(AVAudioNodeWrapper * _Nonnull)node; +- (void)pause; +- (void)prepare; +- (void)reset; +- (BOOL)startAndReturnError:(NSError * _Nullable * _Nullable)error; +- (void)stop; +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper54AVAudioEnvironmentDistanceAttenuationParametersWrapper") +@interface AVAudioEnvironmentDistanceAttenuationParametersWrapper : NSObject +@property (nonatomic) float maximumDistance; +@property (nonatomic) float referenceDistance; +@property (nonatomic) float rolloffFactor; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class AVAudioEnvironmentReverbParametersWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper29AVAudioEnvironmentNodeWrapper") +@interface AVAudioEnvironmentNodeWrapper : NSObject +@property (nonatomic, readonly, strong) AVAudioEnvironmentDistanceAttenuationParametersWrapper * _Nonnull distanceAttenuationParameters; +@property (nonatomic, strong) AVAudio3DAngularOrientationWrapper * _Nonnull listenerAngularOrientation; +@property (nonatomic, strong) AVAudio3DPointWrapper * _Nonnull listenerPosition; +@property (nonatomic, strong) AVAudio3DVectorOrientationWrapper * _Nonnull listenerVectorOrientation; +@property (nonatomic) float outputVolume; +@property (nonatomic, readonly, strong) AVAudioEnvironmentReverbParametersWrapper * _Nonnull reverbParameters; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@class AVAudioUnitEQFilterParametersWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper41AVAudioEnvironmentReverbParametersWrapper") +@interface AVAudioEnvironmentReverbParametersWrapper : NSObject +@property (nonatomic) BOOL enable; +@property (nonatomic, readonly, strong) AVAudioUnitEQFilterParametersWrapper * _Nonnull filterParameters; +@property (nonatomic) float level; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class NSURL; + +SWIFT_CLASS("_TtC15AVFAudioWrapper18AVAudioFileWrapper") +@interface AVAudioFileWrapper : NSObject +@property (nonatomic, readonly, strong) AVAudioFormatWrapper * _Nonnull fileFormat; +@property (nonatomic, readonly, strong) AVAudioFormatWrapper * _Nonnull processingFormat; +@property (nonatomic, readonly, copy) NSURL * _Nonnull url; +- (nullable instancetype)initForReading:(NSURL * _Nonnull)fileURL error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER; +- (BOOL)readInto:(AVAudioPCMBufferWrapper * _Nonnull)buffer error:(NSError * _Nullable * _Nullable)error; +- (BOOL)writeFrom:(AVAudioPCMBufferWrapper * _Nonnull)buffer error:(NSError * _Nullable * _Nullable)error; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper20AVAudioFormatWrapper") +@interface AVAudioFormatWrapper : NSObject +@property (nonatomic, readonly, strong) AVAudioChannelLayoutWrapper * _Nullable channelLayout; +@property (nonatomic, readonly) BOOL isInterleaved; +@property (nonatomic, readonly) double sampleRate; +@property (nonatomic, readonly) BOOL isStandard; +- (nonnull instancetype)initWithStandardFormatWithSampleRate:(double)sampleRate channelLayout:(AVAudioChannelLayoutWrapper * _Nonnull)layout OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper20AVAudioIONodeWrapper") +@interface AVAudioIONodeWrapper : NSObject +@property (nonatomic, readonly) NSTimeInterval presentationLatency; +@property (nonatomic, readonly) BOOL isVoiceProcessingEnabled; +- (BOOL)setVoiceProcessingEnabled:(BOOL)enabled error:(NSError * _Nullable * _Nullable)error; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class AVAudioVoiceProcessingOtherAudioDuckingConfigurationWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper23AVAudioInputNodeWrapper") +@interface AVAudioInputNodeWrapper : NSObject +@property (nonatomic) BOOL isVoiceProcessingAGCEnabled; +@property (nonatomic) BOOL isVoiceProcessingBypassed; +@property (nonatomic) BOOL isVoiceProcessingInputMuted; +@property (nonatomic, strong) AVAudioVoiceProcessingOtherAudioDuckingConfigurationWrapper * _Nonnull voiceProcessingOtherAudioDuckingConfiguration; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper23AVAudioMixerNodeWrapper") +@interface AVAudioMixerNodeWrapper : NSObject +@property (nonatomic) float outputVolume; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper31AVAudioMixingDestinationWrapper") +@interface AVAudioMixingDestinationWrapper : NSObject +@property (nonatomic, readonly, strong) AVAudioConnectionPointWrapper * _Nonnull connectionPoint; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class AVAudioTimeWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper18AVAudioNodeWrapper") +@interface AVAudioNodeWrapper : NSObject +@property (nonatomic, readonly, strong) AVAudioEngineWrapper * _Nullable engine; +@property (nonatomic, readonly, strong) AVAudioTimeWrapper * _Nullable lastRenderTime; +@property (nonatomic, readonly) NSTimeInterval latency; +@property (nonatomic, readonly) NSInteger numberOfInputs; +@property (nonatomic, readonly) NSInteger numberOfOutputs; +@property (nonatomic, readonly) NSTimeInterval outputPresentationLatency; +- (void)reset; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper24AVAudioOutputNodeWrapper") +@interface AVAudioOutputNodeWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper23AVAudioPCMBufferWrapper") +@interface AVAudioPCMBufferWrapper : NSObject +@property (nonatomic, readonly) NSInteger stride; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper37AVAudioPlayerNodeBufferOptionsWrapper") +@interface AVAudioPlayerNodeBufferOptionsWrapper : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AVAudioPlayerNodeBufferOptionsWrapper * _Nonnull interrupts;) ++ (AVAudioPlayerNodeBufferOptionsWrapper * _Nonnull)interrupts SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AVAudioPlayerNodeBufferOptionsWrapper * _Nonnull interruptsAtLoop;) ++ (AVAudioPlayerNodeBufferOptionsWrapper * _Nonnull)interruptsAtLoop SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AVAudioPlayerNodeBufferOptionsWrapper * _Nonnull loops;) ++ (AVAudioPlayerNodeBufferOptionsWrapper * _Nonnull)loops SWIFT_WARN_UNUSED_RESULT; +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper24AVAudioPlayerNodeWrapper") +@interface AVAudioPlayerNodeWrapper : NSObject +@property (nonatomic, readonly) BOOL isPlaying; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (AVAudioTimeWrapper * _Nullable)nodeTimeForPlayerTime:(AVAudioTimeWrapper * _Nonnull)playerTime SWIFT_WARN_UNUSED_RESULT; +- (void)pause; +- (void)play; +- (void)playAt:(AVAudioTimeWrapper * _Nullable)when; +- (AVAudioTimeWrapper * _Nullable)playerTimeForNodeTime:(AVAudioTimeWrapper * _Nonnull)nodeTime SWIFT_WARN_UNUSED_RESULT; +- (void)scheduleBuffer:(AVAudioPCMBufferWrapper * _Nonnull)buffer completionHandler:(void (^ _Nonnull)(void))completionHandler; +- (void)scheduleFile:(AVAudioFileWrapper * _Nonnull)file at:(AVAudioTimeWrapper * _Nullable)when completionHandler:(void (^ _Nonnull)(void))completionHandler; +- (void)stop; +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper20AVAudioPlayerWrapper") +@interface AVAudioPlayerWrapper : NSObject +@property (nonatomic, copy) NSString * _Nullable currentDevice; +@property (nonatomic) NSTimeInterval currentTime; +@property (nonatomic, readonly) NSTimeInterval deviceCurrentTime; +@property (nonatomic, readonly) NSTimeInterval duration; +@property (nonatomic) BOOL enableRate; +@property (nonatomic, readonly, strong) AVAudioFormatWrapper * _Nonnull format; +@property (nonatomic) BOOL isMeteringEnabled; +@property (nonatomic, readonly) NSInteger numberOfChannels; +@property (nonatomic) NSInteger numberOfLoops; +@property (nonatomic) float pan; +@property (nonatomic, readonly) BOOL isPlaying; +@property (nonatomic) float rate; +@property (nonatomic, readonly, copy) NSURL * _Nullable url; +@property (nonatomic) float volume; +- (nullable instancetype)initWithContentsOf:(NSURL * _Nonnull)url error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithContentsOf:(NSURL * _Nonnull)url fileTypeHint:(NSString * _Nullable)utiString error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER; +- (float)averagePowerForChannel:(NSInteger)channelNumber SWIFT_WARN_UNUSED_RESULT; +- (void)pause; +- (float)peakPowerForChannel:(NSInteger)channelNumber SWIFT_WARN_UNUSED_RESULT; +- (BOOL)play SWIFT_WARN_UNUSED_RESULT; +- (BOOL)playAtTime:(NSTimeInterval)time SWIFT_WARN_UNUSED_RESULT; +- (BOOL)prepareToPlay SWIFT_WARN_UNUSED_RESULT; +- (void)setVolume:(float)volume fadeDuration:(NSTimeInterval)duration; +- (void)stop; +- (void)updateMeters; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper22AVAudioRecorderWrapper") +@interface AVAudioRecorderWrapper : NSObject +@property (nonatomic, readonly) NSTimeInterval currentTime; +@property (nonatomic, readonly) NSTimeInterval deviceCurrentTime; +@property (nonatomic, readonly, strong) AVAudioFormatWrapper * _Nonnull format; +@property (nonatomic) BOOL isMeteringEnabled; +@property (nonatomic, readonly) BOOL isRecording; +@property (nonatomic, readonly, copy) NSURL * _Nonnull url; +- (nullable instancetype)initWithUrl:(NSURL * _Nonnull)url format:(AVAudioFormatWrapper * _Nonnull)format error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER; +- (float)averagePowerForChannel:(NSInteger)channelNumber SWIFT_WARN_UNUSED_RESULT; +- (BOOL)deleteRecording SWIFT_WARN_UNUSED_RESULT; +- (void)pause; +- (float)peakPowerForChannel:(NSInteger)channelNumber SWIFT_WARN_UNUSED_RESULT; +- (BOOL)prepareToRecord SWIFT_WARN_UNUSED_RESULT; +- (BOOL)record SWIFT_WARN_UNUSED_RESULT; +- (BOOL)recordAtTime:(NSTimeInterval)time SWIFT_WARN_UNUSED_RESULT; +- (BOOL)recordAtTime:(NSTimeInterval)time forDuration:(NSTimeInterval)duration SWIFT_WARN_UNUSED_RESULT; +- (BOOL)recordForDuration:(NSTimeInterval)duration SWIFT_WARN_UNUSED_RESULT; +- (void)stop; +- (void)updateMeters; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper28AVAudioRoutingArbiterWrapper") +@interface AVAudioRoutingArbiterWrapper : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AVAudioRoutingArbiterWrapper * _Nonnull shared;) ++ (AVAudioRoutingArbiterWrapper * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (void)leave; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class AVMusicTrackWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper23AVAudioSequencerWrapper") +@interface AVAudioSequencerWrapper : NSObject +@property (nonatomic) NSTimeInterval currentPositionInBeats; +@property (nonatomic) NSTimeInterval currentPositionInSeconds; +@property (nonatomic, readonly) BOOL isPlaying; +@property (nonatomic) float rate; +@property (nonatomic, readonly, strong) AVMusicTrackWrapper * _Nonnull tempoTrack; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)initWithAudioEngine:(AVAudioEngineWrapper * _Nonnull)engine OBJC_DESIGNATED_INITIALIZER; +- (AVMusicTrackWrapper * _Nonnull)createAndAppendTrack SWIFT_WARN_UNUSED_RESULT; +- (void)prepareToPlay; +- (BOOL)removeTrack:(AVMusicTrackWrapper * _Nonnull)track SWIFT_WARN_UNUSED_RESULT; +- (void)reverseEvents; +- (BOOL)startAndReturnError:(NSError * _Nullable * _Nullable)error; +- (void)stop; +- (BOOL)writeTo:(NSURL * _Nonnull)fileURL smpteResolution:(NSInteger)resolution replaceExisting:(BOOL)replace error:(NSError * _Nullable * _Nullable)error; +@end + + +SWIFT_CLASS("_TtCC15AVFAudioWrapper23AVAudioSequencerWrapper24InfoDictionaryKeyWrapper") +@interface InfoDictionaryKeyWrapper : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull album;) ++ (InfoDictionaryKeyWrapper * _Nonnull)album SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull approximateDurationInSeconds;) ++ (InfoDictionaryKeyWrapper * _Nonnull)approximateDurationInSeconds SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull artist;) ++ (InfoDictionaryKeyWrapper * _Nonnull)artist SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull channelLayout;) ++ (InfoDictionaryKeyWrapper * _Nonnull)channelLayout SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull comments;) ++ (InfoDictionaryKeyWrapper * _Nonnull)comments SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull composer;) ++ (InfoDictionaryKeyWrapper * _Nonnull)composer SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull copyright;) ++ (InfoDictionaryKeyWrapper * _Nonnull)copyright SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull encodingApplication;) ++ (InfoDictionaryKeyWrapper * _Nonnull)encodingApplication SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull genre;) ++ (InfoDictionaryKeyWrapper * _Nonnull)genre SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull ISRC;) ++ (InfoDictionaryKeyWrapper * _Nonnull)ISRC SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull keySignature;) ++ (InfoDictionaryKeyWrapper * _Nonnull)keySignature SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull lyricist;) ++ (InfoDictionaryKeyWrapper * _Nonnull)lyricist SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull nominalBitRate;) ++ (InfoDictionaryKeyWrapper * _Nonnull)nominalBitRate SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull recordedDate;) ++ (InfoDictionaryKeyWrapper * _Nonnull)recordedDate SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull sourceBitDepth;) ++ (InfoDictionaryKeyWrapper * _Nonnull)sourceBitDepth SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull sourceEncoder;) ++ (InfoDictionaryKeyWrapper * _Nonnull)sourceEncoder SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull subTitle;) ++ (InfoDictionaryKeyWrapper * _Nonnull)subTitle SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull tempo;) ++ (InfoDictionaryKeyWrapper * _Nonnull)tempo SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull timeSignature;) ++ (InfoDictionaryKeyWrapper * _Nonnull)timeSignature SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull title;) ++ (InfoDictionaryKeyWrapper * _Nonnull)title SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull trackNumber;) ++ (InfoDictionaryKeyWrapper * _Nonnull)trackNumber SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) InfoDictionaryKeyWrapper * _Nonnull year;) ++ (InfoDictionaryKeyWrapper * _Nonnull)year SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)initWithRawValue:(NSString * _Nonnull)rawValue OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper38AVAudioSessionActivationOptionsWrapper") +@interface AVAudioSessionActivationOptionsWrapper : NSObject +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper22AVAudioSinkNodeWrapper") +@interface AVAudioSinkNodeWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper24AVAudioSourceNodeWrapper") +@interface AVAudioSourceNodeWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper18AVAudioTimeWrapper") +@interface AVAudioTimeWrapper : NSObject +@property (nonatomic, readonly) BOOL isHostTimeValid; +@property (nonatomic, readonly) double sampleRate; +@property (nonatomic, readonly) BOOL isSampleTimeValid; +- (AVAudioTimeWrapper * _Nullable)extrapolateTimeFromAnchor:(AVAudioTimeWrapper * _Nonnull)anchorTime SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper34AVAudioUnitComponentManagerWrapper") +@interface AVAudioUnitComponentManagerWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper27AVAudioUnitComponentWrapper") +@interface AVAudioUnitComponentWrapper : NSObject +@property (nonatomic, readonly, copy) NSURL * _Nullable componentURL; +@property (nonatomic, readonly) BOOL hasCustomView; +@property (nonatomic, readonly) BOOL hasMIDIInput; +@property (nonatomic, readonly) BOOL hasMIDIOutput; +@property (nonatomic, readonly, copy) NSURL * _Nullable iconURL; +@property (nonatomic, readonly, copy) NSString * _Nonnull localizedTypeName; +@property (nonatomic, readonly, copy) NSString * _Nonnull manufacturerName; +@property (nonatomic, readonly, copy) NSString * _Nonnull name; +@property (nonatomic, readonly) BOOL passesAUVal; +@property (nonatomic, readonly) BOOL isSandboxSafe; +@property (nonatomic, readonly, copy) NSString * _Nonnull typeName; +@property (nonatomic, readonly) NSInteger version; +@property (nonatomic, readonly, copy) NSString * _Nonnull versionString; +- (BOOL)supportsNumberInputChannels:(NSInteger)numInputChannels outputChannels:(NSInteger)numOutputChannels SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper23AVAudioUnitDelayWrapper") +@interface AVAudioUnitDelayWrapper : NSObject +@property (nonatomic) NSTimeInterval delayTime; +@property (nonatomic) float feedback; +@property (nonatomic) float lowPassCutoff; +@property (nonatomic) float wetDryMix; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper28AVAudioUnitDistortionWrapper") +@interface AVAudioUnitDistortionWrapper : NSObject +@property (nonatomic) float preGain; +@property (nonatomic) float wetDryMix; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper36AVAudioUnitEQFilterParametersWrapper") +@interface AVAudioUnitEQFilterParametersWrapper : NSObject +@property (nonatomic) float bandwidth; +@property (nonatomic) BOOL bypass; +@property (nonatomic) float frequency; +@property (nonatomic) float gain; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper20AVAudioUnitEQWrapper") +@interface AVAudioUnitEQWrapper : NSObject +@property (nonatomic) float globalGain; +- (nonnull instancetype)initWithNumberOfBands:(NSInteger)numberOfBands OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper24AVAudioUnitEffectWrapper") +@interface AVAudioUnitEffectWrapper : NSObject +@property (nonatomic) BOOL bypass; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper27AVAudioUnitGeneratorWrapper") +@interface AVAudioUnitGeneratorWrapper : NSObject +@property (nonatomic) BOOL bypass; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper32AVAudioUnitMIDIInstrumentWrapper") +@interface AVAudioUnitMIDIInstrumentWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper24AVAudioUnitReverbWrapper") +@interface AVAudioUnitReverbWrapper : NSObject +@property (nonatomic) float wetDryMix; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper25AVAudioUnitSamplerWrapper") +@interface AVAudioUnitSamplerWrapper : NSObject +@property (nonatomic) float globalTuning; +@property (nonatomic) float masterGain; +@property (nonatomic) float overallGain; +@property (nonatomic) float stereoPan; +- (BOOL)loadInstrumentAt:(NSURL * _Nonnull)instrumentURL error:(NSError * _Nullable * _Nullable)error; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper28AVAudioUnitTimeEffectWrapper") +@interface AVAudioUnitTimeEffectWrapper : NSObject +@property (nonatomic) BOOL bypass; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper27AVAudioUnitTimePitchWrapper") +@interface AVAudioUnitTimePitchWrapper : NSObject +@property (nonatomic) float overlap; +@property (nonatomic) float pitch; +@property (nonatomic) float rate; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper27AVAudioUnitVarispeedWrapper") +@interface AVAudioUnitVarispeedWrapper : NSObject +@property (nonatomic) float rate; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper18AVAudioUnitWrapper") +@interface AVAudioUnitWrapper : NSObject +@property (nonatomic, readonly, copy) NSString * _Nonnull manufacturerName; +@property (nonatomic, readonly, copy) NSString * _Nonnull name; +@property (nonatomic, readonly) NSInteger version; +- (BOOL)loadPresetAt:(NSURL * _Nonnull)url error:(NSError * _Nullable * _Nullable)error; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper59AVAudioVoiceProcessingOtherAudioDuckingConfigurationWrapper") +@interface AVAudioVoiceProcessingOtherAudioDuckingConfigurationWrapper : NSObject +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper28AVExtendedNoteOnEventWrapper") +@interface AVExtendedNoteOnEventWrapper : NSObject +@property (nonatomic) float midiNote; +@property (nonatomic) float velocity; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper27AVExtendedTempoEventWrapper") +@interface AVExtendedTempoEventWrapper : NSObject +@property (nonatomic) double tempo; +- (nonnull instancetype)initWithTempo:(double)tempo OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper25AVMIDIChannelEventWrapper") +@interface AVMIDIChannelEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper33AVMIDIChannelPressureEventWrapper") +@interface AVMIDIChannelPressureEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper31AVMIDIControlChangeEventWrapper") +@interface AVMIDIControlChangeEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper22AVMIDIMetaEventWrapper") +@interface AVMIDIMetaEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper22AVMIDINoteEventWrapper") +@interface AVMIDINoteEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper27AVMIDIPitchBendEventWrapper") +@interface AVMIDIPitchBendEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper19AVMIDIPlayerWrapper") +@interface AVMIDIPlayerWrapper : NSObject +@property (nonatomic) NSTimeInterval currentPosition; +@property (nonatomic, readonly) NSTimeInterval duration; +@property (nonatomic, readonly) BOOL isPlaying; +@property (nonatomic) float rate; +- (nullable instancetype)initWithContentsOf:(NSURL * _Nonnull)inURL soundBankURL:(NSURL * _Nullable)bankURL error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER; +- (void)prepareToPlay; +- (void)stop; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper30AVMIDIPolyPressureEventWrapper") +@interface AVMIDIPolyPressureEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper31AVMIDIProgramChangeEventWrapper") +@interface AVMIDIProgramChangeEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper23AVMIDISysexEventWrapper") +@interface AVMIDISysexEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper19AVMusicEventWrapper") +@interface AVMusicEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper33AVMusicSequenceLoadOptionsWrapper") +@interface AVMusicSequenceLoadOptionsWrapper : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AVMusicSequenceLoadOptionsWrapper * _Nonnull smf_ChannelsToTracks;) ++ (AVMusicSequenceLoadOptionsWrapper * _Nonnull)smf_ChannelsToTracks SWIFT_WARN_UNUSED_RESULT; +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper19AVMusicTrackWrapper") +@interface AVMusicTrackWrapper : NSObject +@property (nonatomic, strong) AVAudioUnitWrapper * _Nullable destinationAudioUnit; +@property (nonatomic) NSTimeInterval lengthInSeconds; +@property (nonatomic) BOOL isLoopingEnabled; +@property (nonatomic) BOOL isMuted; +@property (nonatomic) NSInteger numberOfLoops; +@property (nonatomic) BOOL isSoloed; +@property (nonatomic, readonly) NSInteger timeResolution; +@property (nonatomic) BOOL usesAutomatedParameters; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper23AVMusicUserEventWrapper") +@interface AVMusicUserEventWrapper : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper23AVParameterEventWrapper") +@interface AVParameterEventWrapper : NSObject +@property (nonatomic) float value; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper30AVSpeechSynthesisMarkerWrapper") +@interface AVSpeechSynthesisMarkerWrapper : NSObject +@property (nonatomic, copy) NSString * _Nonnull bookmarkName; +@property (nonatomic) NSInteger byteSampleOffset; +@property (nonatomic, copy) NSString * _Nonnull phoneme; +- (nonnull instancetype)initWithBookmarkName:(NSString * _Nonnull)mark atByteSampleOffset:(NSInteger)byteSampleOffset OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)initWithPhonemeString:(NSString * _Nonnull)phoneme atByteSampleOffset:(NSInteger)byteSampleOffset OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class AVSpeechSynthesisProviderRequestWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper41AVSpeechSynthesisProviderAudioUnitWrapper") +@interface AVSpeechSynthesisProviderAudioUnitWrapper : NSObject +- (void)cancelSpeechRequest; +- (void)synthesizeSpeechRequest:(AVSpeechSynthesisProviderRequestWrapper * _Nonnull)speechRequest; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class AVSpeechSynthesisProviderVoiceWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper39AVSpeechSynthesisProviderRequestWrapper") +@interface AVSpeechSynthesisProviderRequestWrapper : NSObject +@property (nonatomic, readonly, copy) NSString * _Nonnull ssmlRepresentation; +@property (nonatomic, readonly, strong) AVSpeechSynthesisProviderVoiceWrapper * _Nonnull voice; +- (nonnull instancetype)initWithSsmlRepresentation:(NSString * _Nonnull)text voice:(AVSpeechSynthesisProviderVoiceWrapper * _Nonnull)voice OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper37AVSpeechSynthesisProviderVoiceWrapper") +@interface AVSpeechSynthesisProviderVoiceWrapper : NSObject +@property (nonatomic) NSInteger age; +@property (nonatomic, readonly, copy) NSString * _Nonnull identifier; +@property (nonatomic, readonly, copy) NSString * _Nonnull name; +@property (nonatomic, copy) NSString * _Nonnull version; ++ (void)updateSpeechVoices; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class TraitsWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper29AVSpeechSynthesisVoiceWrapper") +@interface AVSpeechSynthesisVoiceWrapper : NSObject +@property (nonatomic, readonly, copy) NSString * _Nonnull identifier; +@property (nonatomic, readonly, copy) NSString * _Nonnull language; +@property (nonatomic, readonly, copy) NSString * _Nonnull name; +@property (nonatomic, readonly, strong) TraitsWrapper * _Nonnull voiceTraits; +- (nullable instancetype)initWithIdentifier:(NSString * _Nonnull)identifier OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithLanguage:(NSString * _Nullable)languageCode OBJC_DESIGNATED_INITIALIZER; ++ (NSString * _Nonnull)currentLanguageCode SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtCC15AVFAudioWrapper29AVSpeechSynthesisVoiceWrapper13TraitsWrapper") +@interface TraitsWrapper : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) TraitsWrapper * _Nonnull isNoveltyVoice;) ++ (TraitsWrapper * _Nonnull)isNoveltyVoice SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) TraitsWrapper * _Nonnull isPersonalVoice;) ++ (TraitsWrapper * _Nonnull)isPersonalVoice SWIFT_WARN_UNUSED_RESULT; +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@class AVSpeechUtteranceWrapper; + +SWIFT_CLASS("_TtC15AVFAudioWrapper26AVSpeechSynthesizerWrapper") +@interface AVSpeechSynthesizerWrapper : NSObject +@property (nonatomic, readonly) BOOL isPaused; +@property (nonatomic, readonly) BOOL isSpeaking; +- (BOOL)continueSpeaking SWIFT_WARN_UNUSED_RESULT; +- (void)speak:(AVSpeechUtteranceWrapper * _Nonnull)utterance; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper24AVSpeechUtteranceWrapper") +@interface AVSpeechUtteranceWrapper : NSObject +@property (nonatomic) float pitchMultiplier; +@property (nonatomic) NSTimeInterval postUtteranceDelay; +@property (nonatomic) NSTimeInterval preUtteranceDelay; +@property (nonatomic) BOOL prefersAssistiveTechnologySettings; +@property (nonatomic) float rate; +@property (nonatomic, readonly, copy) NSString * _Nonnull speechString; +@property (nonatomic, strong) AVSpeechSynthesisVoiceWrapper * _Nullable voice; +@property (nonatomic) float volume; +- (nullable instancetype)initWithSsmlRepresentation:(NSString * _Nonnull)string OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)initWithString:(NSString * _Nonnull)string OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +SWIFT_CLASS("_TtC15AVFAudioWrapper14GlobalsWrapper") +@interface GlobalsWrapper : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioBitRateStrategy_ConstantWrapper;) ++ (NSString * _Nonnull)AVAudioBitRateStrategy_ConstantWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioBitRateStrategy_LongTermAverageWrapper;) ++ (NSString * _Nonnull)AVAudioBitRateStrategy_LongTermAverageWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioBitRateStrategy_VariableWrapper;) ++ (NSString * _Nonnull)AVAudioBitRateStrategy_VariableWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioBitRateStrategy_VariableConstrainedWrapper;) ++ (NSString * _Nonnull)AVAudioBitRateStrategy_VariableConstrainedWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioFileTypeKeyWrapper;) ++ (NSString * _Nonnull)AVAudioFileTypeKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioSessionInterruptionWasSuspendedKeyWrapper;) ++ (NSString * _Nonnull)AVAudioSessionInterruptionWasSuspendedKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitManufacturerNameAppleWrapper;) ++ (NSString * _Nonnull)AVAudioUnitManufacturerNameAppleWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitTypeEffectWrapper;) ++ (NSString * _Nonnull)AVAudioUnitTypeEffectWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitTypeFormatConverterWrapper;) ++ (NSString * _Nonnull)AVAudioUnitTypeFormatConverterWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitTypeGeneratorWrapper;) ++ (NSString * _Nonnull)AVAudioUnitTypeGeneratorWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitTypeMIDIProcessorWrapper;) ++ (NSString * _Nonnull)AVAudioUnitTypeMIDIProcessorWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitTypeMixerWrapper;) ++ (NSString * _Nonnull)AVAudioUnitTypeMixerWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitTypeMusicDeviceWrapper;) ++ (NSString * _Nonnull)AVAudioUnitTypeMusicDeviceWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitTypeMusicEffectWrapper;) ++ (NSString * _Nonnull)AVAudioUnitTypeMusicEffectWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitTypeOfflineEffectWrapper;) ++ (NSString * _Nonnull)AVAudioUnitTypeOfflineEffectWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitTypeOutputWrapper;) ++ (NSString * _Nonnull)AVAudioUnitTypeOutputWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVAudioUnitTypePannerWrapper;) ++ (NSString * _Nonnull)AVAudioUnitTypePannerWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVChannelLayoutKeyWrapper;) ++ (NSString * _Nonnull)AVChannelLayoutKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVEncoderAudioQualityForVBRKeyWrapper;) ++ (NSString * _Nonnull)AVEncoderAudioQualityForVBRKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVEncoderAudioQualityKeyWrapper;) ++ (NSString * _Nonnull)AVEncoderAudioQualityKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVEncoderBitDepthHintKeyWrapper;) ++ (NSString * _Nonnull)AVEncoderBitDepthHintKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVEncoderBitRateKeyWrapper;) ++ (NSString * _Nonnull)AVEncoderBitRateKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVEncoderBitRatePerChannelKeyWrapper;) ++ (NSString * _Nonnull)AVEncoderBitRatePerChannelKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVEncoderBitRateStrategyKeyWrapper;) ++ (NSString * _Nonnull)AVEncoderBitRateStrategyKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVFormatIDKeyWrapper;) ++ (NSString * _Nonnull)AVFormatIDKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVLinearPCMBitDepthKeyWrapper;) ++ (NSString * _Nonnull)AVLinearPCMBitDepthKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVLinearPCMIsBigEndianKeyWrapper;) ++ (NSString * _Nonnull)AVLinearPCMIsBigEndianKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVLinearPCMIsFloatKeyWrapper;) ++ (NSString * _Nonnull)AVLinearPCMIsFloatKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVLinearPCMIsNonInterleavedWrapper;) ++ (NSString * _Nonnull)AVLinearPCMIsNonInterleavedWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVNumberOfChannelsKeyWrapper;) ++ (NSString * _Nonnull)AVNumberOfChannelsKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVSampleRateConverterAlgorithmKeyWrapper;) ++ (NSString * _Nonnull)AVSampleRateConverterAlgorithmKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVSampleRateConverterAlgorithm_MasteringWrapper;) ++ (NSString * _Nonnull)AVSampleRateConverterAlgorithm_MasteringWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVSampleRateConverterAlgorithm_MinimumPhaseWrapper;) ++ (NSString * _Nonnull)AVSampleRateConverterAlgorithm_MinimumPhaseWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVSampleRateConverterAlgorithm_NormalWrapper;) ++ (NSString * _Nonnull)AVSampleRateConverterAlgorithm_NormalWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVSampleRateConverterAudioQualityKeyWrapper;) ++ (NSString * _Nonnull)AVSampleRateConverterAudioQualityKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVSampleRateKeyWrapper;) ++ (NSString * _Nonnull)AVSampleRateKeyWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVSpeechSynthesisIPANotationAttributeWrapper;) ++ (NSString * _Nonnull)AVSpeechSynthesisIPANotationAttributeWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AVSpeechSynthesisVoiceIdentifierAlexWrapper;) ++ (NSString * _Nonnull)AVSpeechSynthesisVoiceIdentifierAlexWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) float AVSpeechUtteranceDefaultSpeechRateWrapper;) ++ (float)AVSpeechUtteranceDefaultSpeechRateWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) float AVSpeechUtteranceMaximumSpeechRateWrapper;) ++ (float)AVSpeechUtteranceMaximumSpeechRateWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) float AVSpeechUtteranceMinimumSpeechRateWrapper;) ++ (float)AVSpeechUtteranceMinimumSpeechRateWrapper SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) double AVMusicTimeStampEndOfTrackWrapper;) ++ (double)AVMusicTimeStampEndOfTrackWrapper SWIFT_WARN_UNUSED_RESULT; ++ (AVAudio3DAngularOrientationWrapper * _Nonnull)AVAudioMake3DAngularOrientationWrapper:(float)yaw :(float)pitch :(float)roll SWIFT_WARN_UNUSED_RESULT; ++ (AVAudio3DPointWrapper * _Nonnull)AVAudioMake3DPointWrapper:(float)x :(float)y :(float)z SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif diff --git a/pkgs/swiftgen/test/integration/temp/classes.h b/pkgs/swiftgen/test/integration/temp/classes.h new file mode 100644 index 000000000..0276179bd --- /dev/null +++ b/pkgs/swiftgen/test/integration/temp/classes.h @@ -0,0 +1,326 @@ +// Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1) +#ifndef CLASSES_SWIFT_H +#define CLASSES_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +# include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +# ifndef __ptrauth_swift_value_witness_function_pointer +# define __ptrauth_swift_value_witness_function_pointer(x) +# endif +# ifndef __ptrauth_swift_class_method_pointer +# define __ptrauth_swift_class_method_pointer(x) +# endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif +#if !defined(SWIFT_RUNTIME_NAME) +# if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# else +# define SWIFT_RUNTIME_NAME(X) +# endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +# if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# else +# define SWIFT_COMPILE_NAME(X) +# endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +# if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# else +# define SWIFT_METHOD_FAMILY(X) +# endif +#endif +#if !defined(SWIFT_NOESCAPE) +# if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +# else +# define SWIFT_NOESCAPE +# endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +# if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# else +# define SWIFT_RELEASES_ARGUMENT +# endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +# if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# else +# define SWIFT_WARN_UNUSED_RESULT +# endif +#endif +#if !defined(SWIFT_NORETURN) +# if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +# else +# define SWIFT_NORETURN +# endif +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if !defined(SWIFT_DEPRECATED_OBJC) +# if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +# else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# endif +#endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if !defined(SWIFT_INDIRECT_RESULT) +# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +# define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +# define SWIFT_NOEXCEPT noexcept +#else +# define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +# if __has_attribute(always_inline) +# if __has_attribute(nodebug) +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) +# else +# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +# endif +# else +# define SWIFT_C_INLINE_THUNK inline +# endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +# define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="classes",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) +@class TestOtherClass; + +SWIFT_CLASS("_TtC7classes9TestClass") +@interface TestClass : NSObject +- (TestOtherClass * _Nonnull)myMethod SWIFT_WARN_UNUSED_RESULT; ++ (TestClass * _Nonnull)create SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +SWIFT_CLASS("_TtC7classes14TestOtherClass") +@interface TestOtherClass : NSObject +- (NSInteger)times10WithX:(NSInteger)x SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif diff --git a/pkgs/swiftgen/test/integration/temp/classes_output.dart b/pkgs/swiftgen/test/integration/temp/classes_output.dart new file mode 100644 index 000000000..ab70b9acc --- /dev/null +++ b/pkgs/swiftgen/test/integration/temp/classes_output.dart @@ -0,0 +1,434 @@ +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// ignore_for_file: always_specify_types +// ignore_for_file: camel_case_types +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: unnecessary_non_null_assertion +// ignore_for_file: unused_element +// ignore_for_file: unused_field +// coverage:ignore-file + +// AUTO GENERATED FILE, DO NOT EDIT. +// +// Generated by `package:ffigen`. +// ignore_for_file: type=lint +import 'dart:ffi' as ffi; +import 'package:objective_c/objective_c.dart' as objc; + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _classes_protocolTrampoline_1mbt9g9( + ffi.Pointer target, + ffi.Pointer arg0, +); + +late final _class_TestClass = objc.getClass("classes.TestClass"); +late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _class_TestOtherClass = objc.getClass("classes.TestOtherClass"); +late final _sel_times10WithX_ = objc.registerName("times10WithX:"); +final _objc_msgSend_12hwf9n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = objc.ObjCObjectBase; +late final _sel_init = objc.registerName("init"); +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_new = objc.registerName("new"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_self = objc.registerName("self"); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); +} + +late final _sel_retain = objc.registerName("retain"); +late final _sel_autorelease = objc.registerName("autorelease"); + +/// TestOtherClass +class TestOtherClass extends objc.NSObject { + TestOtherClass._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [TestOtherClass] that points to the same underlying object as [other]. + TestOtherClass.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [TestOtherClass] that wraps the given raw object pointer. + TestOtherClass.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [TestOtherClass]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_TestOtherClass, + ); + } + + /// times10WithX: + int times10WithX(int x) { + return _objc_msgSend_12hwf9n(this.ref.pointer, _sel_times10WithX_, x); + } + + /// init + TestOtherClass init() { + objc.checkOsVersionInternal( + 'TestOtherClass.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return TestOtherClass.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static TestOtherClass new$() { + final _ret = _objc_msgSend_151sglz(_class_TestOtherClass, _sel_new); + return TestOtherClass.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static TestOtherClass allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_TestOtherClass, + _sel_allocWithZone_, + zone, + ); + return TestOtherClass.castFromPointer(_ret, retain: false, release: true); + } + + /// alloc + static TestOtherClass alloc() { + final _ret = _objc_msgSend_151sglz(_class_TestOtherClass, _sel_alloc); + return TestOtherClass.castFromPointer(_ret, retain: false, release: true); + } + + /// self + TestOtherClass self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return TestOtherClass.castFromPointer(_ret, retain: true, release: true); + } + + /// retain + TestOtherClass retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return TestOtherClass.castFromPointer(_ret, retain: true, release: true); + } + + /// autorelease + TestOtherClass autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return TestOtherClass.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of TestOtherClass constructed with the default `new` method. + factory TestOtherClass() => new$(); +} + +late final _sel_myMethod = objc.registerName("myMethod"); +late final _sel_create = objc.registerName("create"); + +/// TestClass +class TestClass extends objc.NSObject { + TestClass._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [TestClass] that points to the same underlying object as [other]. + TestClass.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [TestClass] that wraps the given raw object pointer. + TestClass.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [TestClass]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_TestClass, + ); + } + + /// myMethod + TestOtherClass myMethod() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_myMethod); + return TestOtherClass.castFromPointer(_ret, retain: true, release: true); + } + + /// create + static TestClass create() { + final _ret = _objc_msgSend_151sglz(_class_TestClass, _sel_create); + return TestClass.castFromPointer(_ret, retain: true, release: true); + } + + /// init + TestClass init() { + objc.checkOsVersionInternal( + 'TestClass.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return TestClass.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static TestClass new$() { + final _ret = _objc_msgSend_151sglz(_class_TestClass, _sel_new); + return TestClass.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static TestClass allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_TestClass, + _sel_allocWithZone_, + zone, + ); + return TestClass.castFromPointer(_ret, retain: false, release: true); + } + + /// alloc + static TestClass alloc() { + final _ret = _objc_msgSend_151sglz(_class_TestClass, _sel_alloc); + return TestClass.castFromPointer(_ret, retain: false, release: true); + } + + /// self + TestClass self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return TestClass.castFromPointer(_ret, retain: true, release: true); + } + + /// retain + TestClass retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return TestClass.castFromPointer(_ret, retain: true, release: true); + } + + /// autorelease + TestClass autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return TestClass.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of TestClass constructed with the default `new` method. + factory TestClass() => new$(); +} diff --git a/pkgs/swiftgen/test/integration/temp/classes_output.m b/pkgs/swiftgen/test/integration/temp/classes_output.m new file mode 100644 index 000000000..7417ad582 --- /dev/null +++ b/pkgs/swiftgen/test/integration/temp/classes_output.m @@ -0,0 +1,59 @@ +#include +#import +#import +#import "classes.h" + +#if !__has_feature(objc_arc) +#error "This file must be compiled with ARC enabled" +#endif + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundeclared-selector" + +typedef struct { + int64_t version; + void* (*newWaiter)(void); + void (*awaitWaiter)(void*); + void* (*currentIsolate)(void); + void (*enterIsolate)(void*); + void (*exitIsolate)(void); + int64_t (*getMainPortId)(void); + bool (*getCurrentThreadOwnsIsolate)(int64_t); +} DOBJC_Context; + +id objc_retainBlock(id); + +#define BLOCKING_BLOCK_IMPL(ctx, BLOCK_SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ + assert(ctx->version >= 1); \ + void* targetIsolate = ctx->currentIsolate(); \ + int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ + return BLOCK_SIG { \ + void* currentIsolate = ctx->currentIsolate(); \ + bool mayEnterIsolate = \ + currentIsolate == NULL && \ + ctx->getCurrentThreadOwnsIsolate != NULL && \ + ctx->getCurrentThreadOwnsIsolate(targetPort); \ + if (currentIsolate == targetIsolate || mayEnterIsolate) { \ + if (mayEnterIsolate) { \ + ctx->enterIsolate(targetIsolate); \ + } \ + INVOKE_DIRECT; \ + if (mayEnterIsolate) { \ + ctx->exitIsolate(); \ + } \ + } else { \ + void* waiter = ctx->newWaiter(); \ + INVOKE_LISTENER; \ + ctx->awaitWaiter(waiter); \ + } \ + }; + + +typedef id (^ProtocolTrampoline)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +id _classes_protocolTrampoline_1mbt9g9(id target, void * sel) { + return ((ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} +#undef BLOCKING_BLOCK_IMPL + +#pragma clang diagnostic pop From c16de8cd2ba78b8cebead1da58ff732b203865f0 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 2 Jul 2025 14:35:22 +1000 Subject: [PATCH 21/29] Fix generation bug --- .../objc_built_in_functions.dart | 4 +- .../src/code_generator/objc_interface.dart | 10 +- .../src/objective_c_bindings_generated.dart | 1463 ++++++++++++++++- .../src/objective_c_bindings_generated.m | 49 +- 4 files changed, 1483 insertions(+), 43 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart index 58d37a18d..453ad88fb 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart @@ -53,8 +53,8 @@ class ObjCBuiltInFunctions { // TODO(https://github.com/dart-lang/native/issues/1173): Ideally this check // would be based on more than just the name. - String? getBuiltInInterfaceName(String name) => - generateForPackageObjectiveC && objCBuiltInInterfaces.contains(name) ? null : name; + bool isBuiltInInterface(String name) => + !generateForPackageObjectiveC && objCBuiltInInterfaces.contains(name); String? getBuiltInCompoundName(String name) => generateForPackageObjectiveC ? null : objCBuiltInCompounds[name]; bool isBuiltInEnum(String name) => diff --git a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart index f2210e6a6..9f055c051 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart @@ -38,12 +38,7 @@ class ObjCInterface extends BindingType with ObjCMethods { required this.builtInFunctions, required this.apiAvailability, }) : lookupName = lookupName ?? originalName, - super( - name: - builtInFunctions.getBuiltInInterfaceName(originalName) ?? - name ?? - originalName, - ) { + super(name: name ?? originalName) { classObject = ObjCInternalGlobal( '_class_$originalName', (Writer w) => '${ObjCBuiltInFunctions.getClass.gen(w)}("$lookupName")', @@ -63,8 +58,7 @@ class ObjCInterface extends BindingType with ObjCMethods { } @override - bool get isObjCImport => - builtInFunctions.getBuiltInInterfaceName(originalName) != null; + bool get isObjCImport => builtInFunctions.isBuiltInInterface(originalName); @override void sort() => sortMethods(); diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart index 594046758..966acc5ef 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart @@ -20,6 +20,18 @@ import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_1mbt9g9( + ffi.Pointer target, + ffi.Pointer arg0, +); + @ffi.Native< ffi.Void Function( ffi.Pointer, @@ -39,38 +51,992 @@ external void _ObjectiveCBindings_protocolTrampoline_1sr3ozv( ffi.Pointer arg4, ); -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +>() +external void _ObjectiveCBindings_protocolTrampoline_hoampi( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_hoampi( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1sr3ozv( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_hoampi( + ffi.Pointer block, +); + +typedef CFStringRef = ffi.Pointer; + +/// Represents a single KVO observation. Each observation creates a new +/// DOBJCObservation, even for the same observer, observed object, and keyPath. +class DOBJCObservation extends objc.NSObject { + DOBJCObservation._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [DOBJCObservation] that points to the same underlying object as [other]. + DOBJCObservation.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [DOBJCObservation] that wraps the given raw object pointer. + DOBJCObservation.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [DOBJCObservation]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DOBJCObservation, + ); + } + + /// alloc + static DOBJCObservation alloc() { + final _ret = _objc_msgSend_151sglz(_class_DOBJCObservation, _sel_alloc); + return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static DOBJCObservation allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_DOBJCObservation, + _sel_allocWithZone_, + zone, + ); + return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static DOBJCObservation new$() { + final _ret = _objc_msgSend_151sglz(_class_DOBJCObservation, _sel_new); + return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); + } + + /// autorelease + DOBJCObservation autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); + } + + /// dealloc + void dealloc() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); + } + + /// debugObserver + ffi.Pointer debugObserver() { + return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_debugObserver); + } + + /// init + DOBJCObservation init() { + objc.checkOsVersionInternal( + 'DOBJCObservation.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); + } + + /// initForKeyPath:ofObject:withObserver:options:context: + DOBJCObservation initForKeyPath( + objc.NSString keyPath, { + required objc.ObjCObjectBase ofObject, + required Observer withObserver, + required objc.NSKeyValueObservingOptions options, + required ffi.Pointer context, + }) { + final _ret = _objc_msgSend_1jiinfj( + this.ref.retainAndReturnPointer(), + _sel_initForKeyPath_ofObject_withObserver_options_context_, + keyPath.ref.pointer, + ofObject.ref.pointer, + withObserver.ref.pointer, + options.value, + context, + ); + return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); + } + + /// remove + void remove() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_remove); + } + + /// retain + DOBJCObservation retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); + } + + /// self + DOBJCObservation self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of DOBJCObservation constructed with the default `new` method. + factory DOBJCObservation() => new$(); +} + +/// Helper class to adapt a Dart stream into a `NSInputStream`. +class DartInputStreamAdapter extends objc.NSInputStream + implements objc.NSStreamDelegate { + DartInputStreamAdapter._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [DartInputStreamAdapter] that points to the same underlying object as [other]. + DartInputStreamAdapter.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [DartInputStreamAdapter] that wraps the given raw object pointer. + DartInputStreamAdapter.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [DartInputStreamAdapter]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DOBJCDartInputStreamAdapter, + ); + } + + /// Creates the adapter. + /// @param sendPort A port to that is will receive two types of messages: + /// -1 => The `NSInputStream` has been closed and the port can be closed. + /// _ => The number of types being required in a `read:maxLength` call. + static DartInputStreamAdapter inputStreamWithPort(int sendPort) { + final _ret = _objc_msgSend_1ya1kjn( + _class_DOBJCDartInputStreamAdapter, + _sel_inputStreamWithPort_, + sendPort, + ); + return DartInputStreamAdapter.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// addData: + int addData(objc.NSData data) { + return _objc_msgSend_1vd1c5m( + this.ref.pointer, + _sel_addData_, + data.ref.pointer, + ); + } + + /// initWithData: + DartInputStreamAdapter initWithData(objc.NSData data) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data.ref.pointer, + ); + return DartInputStreamAdapter.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithURL: + DartInputStreamAdapter? initWithURL(objc.NSURL url) { + objc.checkOsVersionInternal( + 'DOBJCDartInputStreamAdapter.initWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// setDone + void setDone() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_setDone); + } + + /// setError: + void setError(objc.NSError error) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setError_, error.ref.pointer); + } + + /// stream:handleEvent: + void stream( + objc.NSStream aStream, { + required objc.NSStreamEvent handleEvent, + }) { + if (!objc.respondsToSelector(this.ref.pointer, _sel_stream_handleEvent_)) { + throw objc.UnimplementedOptionalMethodException( + 'DOBJCDartInputStreamAdapter', + 'stream:handleEvent:', + ); + } + _objc_msgSend_3l8zum( + this.ref.pointer, + _sel_stream_handleEvent_, + aStream.ref.pointer, + handleEvent.value, + ); + } +} + +/// Base class of all classes DOBJCDartProtocolBuilder creates. +class DartProtocol extends objc.NSObject { + DartProtocol._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [DartProtocol] that points to the same underlying object as [other]. + DartProtocol.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [DartProtocol] that wraps the given raw object pointer. + DartProtocol.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [DartProtocol]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DOBJCDartProtocol, + ); + } + + /// alloc + static DartProtocol alloc() { + final _ret = _objc_msgSend_151sglz(_class_DOBJCDartProtocol, _sel_alloc); + return DartProtocol.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static DartProtocol allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_DOBJCDartProtocol, + _sel_allocWithZone_, + zone, + ); + return DartProtocol.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static DartProtocol new$() { + final _ret = _objc_msgSend_151sglz(_class_DOBJCDartProtocol, _sel_new); + return DartProtocol.castFromPointer(_ret, retain: false, release: true); + } + + /// autorelease + DartProtocol autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return DartProtocol.castFromPointer(_ret, retain: true, release: true); + } + + /// dealloc + void dealloc() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); + } + + /// getDOBJCDartProtocolMethodForSelector: + objc.ObjCObjectBase getDOBJCDartProtocolMethodForSelector( + ffi.Pointer sel, + ) { + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_getDOBJCDartProtocolMethodForSelector_, + sel, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// init + DartProtocol init() { + objc.checkOsVersionInternal( + 'DOBJCDartProtocol.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return DartProtocol.castFromPointer(_ret, retain: false, release: true); + } + + /// initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort: + DartProtocol initDOBJCDartProtocolFromDartProtocolBuilder( + DartProtocolBuilder builder, { + required int withDisposePort, + }) { + final _ret = _objc_msgSend_dbvvll( + this.ref.retainAndReturnPointer(), + _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_, + builder.ref.pointer, + withDisposePort, + ); + return DartProtocol.castFromPointer(_ret, retain: false, release: true); + } + + /// retain + DartProtocol retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return DartProtocol.castFromPointer(_ret, retain: true, release: true); + } + + /// self + DartProtocol self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return DartProtocol.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of DartProtocol constructed with the default `new` method. + factory DartProtocol() => new$(); +} + +/// Used by the Dart ObjCProtocolBuilder to construct ObjC classes at runtime to +/// implement protocols. +class DartProtocolBuilder extends objc.NSObject { + DartProtocolBuilder._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [DartProtocolBuilder] that points to the same underlying object as [other]. + DartProtocolBuilder.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [DartProtocolBuilder] that wraps the given raw object pointer. + DartProtocolBuilder.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [DartProtocolBuilder]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DOBJCDartProtocolBuilder, + ); + } + + /// alloc + static DartProtocolBuilder alloc() { + final _ret = _objc_msgSend_151sglz( + _class_DOBJCDartProtocolBuilder, + _sel_alloc, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static DartProtocolBuilder allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_DOBJCDartProtocolBuilder, + _sel_allocWithZone_, + zone, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// new + static DartProtocolBuilder new$() { + final _ret = _objc_msgSend_151sglz( + _class_DOBJCDartProtocolBuilder, + _sel_new, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// addProtocol: + void addProtocol(objc.Protocol protocol) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addProtocol_, + protocol.ref.pointer, + ); + } + + /// autorelease + DartProtocolBuilder autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// buildInstance: + DartProtocol buildInstance(int port) { + final _ret = _objc_msgSend_1ya1kjn( + this.ref.pointer, + _sel_buildInstance_, + port, + ); + return DartProtocol.castFromPointer(_ret, retain: true, release: true); + } + + /// implementMethod:withBlock:withTrampoline:withSignature: + void implementMethod( + ffi.Pointer sel, { + required ffi.Pointer withBlock, + required ffi.Pointer withTrampoline, + required ffi.Pointer withSignature, + }) { + _objc_msgSend_1s2gdyk( + this.ref.pointer, + _sel_implementMethod_withBlock_withTrampoline_withSignature_, + sel, + withBlock, + withTrampoline, + withSignature, + ); + } + + /// init + DartProtocolBuilder init() { + objc.checkOsVersionInternal( + 'DOBJCDartProtocolBuilder.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithClassName: + DartProtocolBuilder initWithClassName(ffi.Pointer name) { + final _ret = _objc_msgSend_56zxyn( + this.ref.retainAndReturnPointer(), + _sel_initWithClassName_, + name, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// registerClass + void registerClass() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_registerClass); + } + + /// retain + DartProtocolBuilder retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// self + DartProtocolBuilder self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// Returns a new instance of DartProtocolBuilder constructed with the default `new` method. + factory DartProtocolBuilder() => new$(); +} + +/// NSNumberIsFloat +extension NSNumberIsFloat on objc.NSNumber { + /// isFloat + bool get isFloat { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isFloat); + } +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, objc.NSStream, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSStream, + ffi.UnsignedLong, + ) + >(pointer, retain: retain, release: release); -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1sr3ozv( - ffi.Pointer block, -); + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSStream, + ffi.UnsignedLong, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); -typedef CFStringRef = ffi.Pointer; + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, objc.NSStream, objc.NSStreamEvent) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSStream, + ffi.UnsignedLong, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + objc.NSStream.castFromPointer(arg1, retain: true, release: true), + objc.NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); -/// NSNumberIsFloat -extension NSNumberIsFloat on objc.NSNumber { - /// isFloat - bool get isFloat { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isFloat); + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, objc.NSStream, objc.NSStreamEvent) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + objc.NSStream.castFromPointer(arg1, retain: false, release: true), + objc.NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_hoampi(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, objc.NSStream, objc.NSStreamEvent) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + objc.NSStream.castFromPointer(arg1, retain: false, release: true), + objc.NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + objc.NSStream.castFromPointer(arg1, retain: false, release: true), + objc.NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_hoampi( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); } } +/// Call operator for `objc.ObjCBlock, objc.NSStream, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + objc.NSStream, + ffi.UnsignedLong, + ) + > { + void call( + ffi.Pointer arg0, + objc.NSStream arg1, + objc.NSStreamEvent arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.value); +} + void _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrTrampoline( ffi.Pointer block, @@ -603,6 +1569,139 @@ extension ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid ); } +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); +} + /// Protocol for observing changes to values of objects. interface class Observer extends objc.ObjCProtocolBase implements objc.NSObjectProtocol { @@ -876,7 +1975,246 @@ interface class Observer extends objc.ObjCProtocolBase ); } +late final _class_DOBJCDartInputStreamAdapter = objc.getClass( + "DOBJCDartInputStreamAdapter", +); +late final _class_DOBJCDartProtocol = objc.getClass("DOBJCDartProtocol"); +late final _class_DOBJCDartProtocolBuilder = objc.getClass( + "DOBJCDartProtocolBuilder", +); +late final _class_DOBJCObservation = objc.getClass("DOBJCObservation"); late final _class_NSNumber = objc.getClass("NSNumber"); +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1jiinfj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1s2gdyk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1sotr3r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vd1c5m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ya1kjn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_3ctkt6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3l8zum = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_56zxyn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_6ex6p5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_91o635 = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -892,6 +2230,25 @@ final _objc_msgSend_91o635 = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_dbvvll = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); final _objc_msgSend_e3qsqz = objc.msgSendPointer .cast< ffi.NativeFunction< @@ -909,8 +2266,62 @@ final _objc_msgSend_e3qsqz = objc.msgSendPointer ffi.Pointer, ) >(); +final _objc_msgSend_xtuoz7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _protocol_Observer = objc.getProtocol("Observer"); +late final _sel_addData_ = objc.registerName("addData:"); +late final _sel_addProtocol_ = objc.registerName("addProtocol:"); +late final _sel_alloc = objc.registerName("alloc"); +late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +late final _sel_autorelease = objc.registerName("autorelease"); +late final _sel_buildInstance_ = objc.registerName("buildInstance:"); late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); +late final _sel_dealloc = objc.registerName("dealloc"); +late final _sel_debugObserver = objc.registerName("debugObserver"); +late final _sel_getDOBJCDartProtocolMethodForSelector_ = objc.registerName( + "getDOBJCDartProtocolMethodForSelector:", +); +late final _sel_implementMethod_withBlock_withTrampoline_withSignature_ = objc + .registerName("implementMethod:withBlock:withTrampoline:withSignature:"); +late final _sel_init = objc.registerName("init"); +late final _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_ = + objc.registerName( + "initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort:", + ); +late final _sel_initForKeyPath_ofObject_withObserver_options_context_ = objc + .registerName("initForKeyPath:ofObject:withObserver:options:context:"); +late final _sel_initWithClassName_ = objc.registerName("initWithClassName:"); +late final _sel_initWithData_ = objc.registerName("initWithData:"); +late final _sel_initWithURL_ = objc.registerName("initWithURL:"); +late final _sel_inputStreamWithPort_ = objc.registerName( + "inputStreamWithPort:", +); late final _sel_isFloat = objc.registerName("isFloat"); +late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_new = objc.registerName("new"); late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc .registerName("observeValueForKeyPath:ofObject:change:context:"); +late final _sel_registerClass = objc.registerName("registerClass"); +late final _sel_remove = objc.registerName("remove"); +late final _sel_retain = objc.registerName("retain"); +late final _sel_self = objc.registerName("self"); +late final _sel_setDone = objc.registerName("setDone"); +late final _sel_setError_ = objc.registerName("setError:"); +late final _sel_stream_handleEvent_ = objc.registerName("stream:handleEvent:"); +typedef instancetype = ffi.Pointer; +typedef Dartinstancetype = objc.ObjCObjectBase; diff --git a/pkgs/objective_c/src/objective_c_bindings_generated.m b/pkgs/objective_c/src/objective_c_bindings_generated.m index d93ebfd32..45a8bbd57 100644 --- a/pkgs/objective_c/src/objective_c_bindings_generated.m +++ b/pkgs/objective_c/src/objective_c_bindings_generated.m @@ -52,19 +52,48 @@ }; -typedef void (^ListenerTrampoline)(void * arg0, id arg1, id arg2, id arg3, void * arg4); +typedef void (^ListenerTrampoline)(void * arg0, id arg1, NSStreamEvent arg2); __attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline _ObjectiveCBindings_wrapListenerBlock_1sr3ozv(ListenerTrampoline block) NS_RETURNS_RETAINED { +ListenerTrampoline _ObjectiveCBindings_wrapListenerBlock_hoampi(ListenerTrampoline block) NS_RETURNS_RETAINED { + return ^void(void * arg0, id arg1, NSStreamEvent arg2) { + objc_retainBlock(block); + block(arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); + }; +} + +typedef void (^BlockingTrampoline)(void * waiter, void * arg0, id arg1, NSStreamEvent arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline _ObjectiveCBindings_wrapBlockingBlock_hoampi( + BlockingTrampoline block, BlockingTrampoline listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1, NSStreamEvent arg2), { + objc_retainBlock(block); + block(nil, arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); + }); +} + +typedef void (^ProtocolTrampoline)(void * sel, id arg1, NSStreamEvent arg2); +__attribute__((visibility("default"))) __attribute__((used)) +void _ObjectiveCBindings_protocolTrampoline_hoampi(id target, void * sel, id arg1, NSStreamEvent arg2) { + return ((ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +typedef void (^ListenerTrampoline_1)(void * arg0, id arg1, id arg2, id arg3, void * arg4); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_1 _ObjectiveCBindings_wrapListenerBlock_1sr3ozv(ListenerTrampoline_1 block) NS_RETURNS_RETAINED { return ^void(void * arg0, id arg1, id arg2, id arg3, void * arg4) { objc_retainBlock(block); block(arg0, (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2), (__bridge id)(__bridge_retained void*)(arg3), arg4); }; } -typedef void (^BlockingTrampoline)(void * waiter, void * arg0, id arg1, id arg2, id arg3, void * arg4); +typedef void (^BlockingTrampoline_1)(void * waiter, void * arg0, id arg1, id arg2, id arg3, void * arg4); __attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( - BlockingTrampoline block, BlockingTrampoline listenerBlock, +ListenerTrampoline_1 _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( + BlockingTrampoline_1 block, BlockingTrampoline_1 listenerBlock, DOBJC_Context* ctx) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1, id arg2, id arg3, void * arg4), { objc_retainBlock(block); @@ -75,10 +104,16 @@ ListenerTrampoline _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( }); } -typedef void (^ProtocolTrampoline)(void * sel, id arg1, id arg2, id arg3, void * arg4); +typedef void (^ProtocolTrampoline_1)(void * sel, id arg1, id arg2, id arg3, void * arg4); __attribute__((visibility("default"))) __attribute__((used)) void _ObjectiveCBindings_protocolTrampoline_1sr3ozv(id target, void * sel, id arg1, id arg2, id arg3, void * arg4) { - return ((ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); + return ((ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); +} + +typedef id (^ProtocolTrampoline_2)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_1mbt9g9(id target, void * sel) { + return ((ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); } Protocol* _ObjectiveCBindings_Observer(void) { return @protocol(Observer); } From 73a900971a280c62388569bbb40df53c4a53cfc5 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 2 Jul 2025 15:00:16 +1000 Subject: [PATCH 22/29] Revert code split --- .../objc_built_in_functions.dart | 4 +- .../code_generator/objc_built_in_types.dart | 86 +- .../src/code_generator/objc_interface.dart | 10 +- pkgs/objective_c/ffigen_foundation.yaml | 173 - pkgs/objective_c/ffigen_objc.yaml | 133 +- pkgs/objective_c/lib/objective_c.dart | 2 +- pkgs/objective_c/lib/src/cf_string.dart | 2 +- pkgs/objective_c/lib/src/converter.dart | 1 - .../src/foundation_bindings_generated.dart | 35043 ------------- pkgs/objective_c/lib/src/ns_data.dart | 1 - pkgs/objective_c/lib/src/ns_date.dart | 1 - pkgs/objective_c/lib/src/ns_input_stream.dart | 1 - pkgs/objective_c/lib/src/ns_mutable_data.dart | 1 - pkgs/objective_c/lib/src/ns_number.dart | 1 - pkgs/objective_c/lib/src/ns_string.dart | 1 - ...art => objective_c_bindings_exported.dart} | 8 +- .../src/objective_c_bindings_generated.dart | 41589 +++++++++++++++- pkgs/objective_c/lib/src/observer.dart | 1 - .../objective_c/lib/src/protocol_builder.dart | 5 +- .../src/foundation_bindings_generated.m | 524 - .../src/objective_c_bindings_generated.m | 519 +- .../test/interface_lists_test.dart | 2 +- pkgs/objective_c/tool/generate_code.dart | 20 +- 23 files changed, 40576 insertions(+), 37552 deletions(-) delete mode 100644 pkgs/objective_c/ffigen_foundation.yaml delete mode 100644 pkgs/objective_c/lib/src/foundation_bindings_generated.dart rename pkgs/objective_c/lib/src/{foundation_bindings_exported.dart => objective_c_bindings_exported.dart} (94%) delete mode 100644 pkgs/objective_c/src/foundation_bindings_generated.m diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart index 453ad88fb..9df82aff0 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart @@ -53,8 +53,8 @@ class ObjCBuiltInFunctions { // TODO(https://github.com/dart-lang/native/issues/1173): Ideally this check // would be based on more than just the name. - bool isBuiltInInterface(String name) => - !generateForPackageObjectiveC && objCBuiltInInterfaces.contains(name); + String? getBuiltInInterfaceName(String name) => + generateForPackageObjectiveC ? null : objCBuiltInInterfaces[name]; String? getBuiltInCompoundName(String name) => generateForPackageObjectiveC ? null : objCBuiltInCompounds[name]; bool isBuiltInEnum(String name) => diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart index 5f3f562de..a150eb96e 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart @@ -5,46 +5,50 @@ // Generated by package:objective_c's tool/generate_code.dart. const objCBuiltInInterfaces = { - 'NSArray', - 'NSCharacterSet', - 'NSCoder', - 'NSData', - 'NSDate', - 'NSDictionary', - 'NSEnumerator', - 'NSError', - 'NSIndexSet', - 'NSInputStream', - 'NSInvocation', - 'NSItemProvider', - 'NSLocale', - 'NSMethodSignature', - 'NSMutableArray', - 'NSMutableData', - 'NSMutableDictionary', - 'NSMutableIndexSet', - 'NSMutableOrderedSet', - 'NSMutableSet', - 'NSMutableString', - 'NSNotification', - 'NSNumber', - 'NSObject', - 'NSOutputStream', - 'NSOrderedCollectionChange', - 'NSOrderedCollectionDifference', - 'NSOrderedSet', - 'NSPort', - 'NSPortMessage', - 'NSProgress', - 'NSRunLoop', - 'NSSet', - 'NSStream', - 'NSString', - 'NSTimer', - 'NSURL', - 'NSURLHandle', - 'NSValue', - 'Protocol', + 'DOBJCDartInputStreamAdapter': 'DartInputStreamAdapter', + 'DOBJCObservation': 'DOBJCObservation', + 'DOBJCDartProtocolBuilder': 'DartProtocolBuilder', + 'DOBJCDartProtocol': 'DartProtocol', + 'NSArray': 'NSArray', + 'NSCharacterSet': 'NSCharacterSet', + 'NSCoder': 'NSCoder', + 'NSData': 'NSData', + 'NSDate': 'NSDate', + 'NSDictionary': 'NSDictionary', + 'NSEnumerator': 'NSEnumerator', + 'NSError': 'NSError', + 'NSIndexSet': 'NSIndexSet', + 'NSInputStream': 'NSInputStream', + 'NSInvocation': 'NSInvocation', + 'NSItemProvider': 'NSItemProvider', + 'NSLocale': 'NSLocale', + 'NSMethodSignature': 'NSMethodSignature', + 'NSMutableArray': 'NSMutableArray', + 'NSMutableData': 'NSMutableData', + 'NSMutableDictionary': 'NSMutableDictionary', + 'NSMutableIndexSet': 'NSMutableIndexSet', + 'NSMutableOrderedSet': 'NSMutableOrderedSet', + 'NSMutableSet': 'NSMutableSet', + 'NSMutableString': 'NSMutableString', + 'NSNotification': 'NSNotification', + 'NSNumber': 'NSNumber', + 'NSObject': 'NSObject', + 'NSOutputStream': 'NSOutputStream', + 'NSOrderedCollectionChange': 'NSOrderedCollectionChange', + 'NSOrderedCollectionDifference': 'NSOrderedCollectionDifference', + 'NSOrderedSet': 'NSOrderedSet', + 'NSPort': 'NSPort', + 'NSPortMessage': 'NSPortMessage', + 'NSProgress': 'NSProgress', + 'NSRunLoop': 'NSRunLoop', + 'NSSet': 'NSSet', + 'NSStream': 'NSStream', + 'NSString': 'NSString', + 'NSTimer': 'NSTimer', + 'NSURL': 'NSURL', + 'NSURLHandle': 'NSURLHandle', + 'NSValue': 'NSValue', + 'Protocol': 'Protocol', }; const objCBuiltInCompounds = { @@ -106,6 +110,7 @@ const objCBuiltInProtocols = { 'NSPortDelegate': 'NSPortDelegate', 'NSSecureCoding': 'NSSecureCoding', 'NSStreamDelegate': 'NSStreamDelegate', + 'Observer': 'Observer', }; const objCBuiltInCategories = { @@ -123,6 +128,7 @@ const objCBuiltInCategories = { 'NSExtendedOrderedSet', 'NSExtendedSet', 'NSNumberCreation', + 'NSNumberIsFloat', 'NSStringExtensionMethods', }; diff --git a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart index 9f055c051..f2210e6a6 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart @@ -38,7 +38,12 @@ class ObjCInterface extends BindingType with ObjCMethods { required this.builtInFunctions, required this.apiAvailability, }) : lookupName = lookupName ?? originalName, - super(name: name ?? originalName) { + super( + name: + builtInFunctions.getBuiltInInterfaceName(originalName) ?? + name ?? + originalName, + ) { classObject = ObjCInternalGlobal( '_class_$originalName', (Writer w) => '${ObjCBuiltInFunctions.getClass.gen(w)}("$lookupName")', @@ -58,7 +63,8 @@ class ObjCInterface extends BindingType with ObjCMethods { } @override - bool get isObjCImport => builtInFunctions.isBuiltInInterface(originalName); + bool get isObjCImport => + builtInFunctions.getBuiltInInterfaceName(originalName) != null; @override void sort() => sortMethods(); diff --git a/pkgs/objective_c/ffigen_foundation.yaml b/pkgs/objective_c/ffigen_foundation.yaml deleted file mode 100644 index 655548463..000000000 --- a/pkgs/objective_c/ffigen_foundation.yaml +++ /dev/null @@ -1,173 +0,0 @@ -# Generate bindings for the ObjC foundation APIs. -# Regenerate bindings with `dart run tool/generate_code.dart`. -name: ObjectiveCBindings -language: objc -output: - bindings: 'lib/src/foundation_bindings_generated.dart' - objc-bindings: 'src/foundation_bindings_generated.m' -headers: - entry-points: - - 'src/foundation.h' -ffi-native: -exclude-all-by-default: true -include-transitive-objc-categories: false -generate-for-package-objective-c: true -sort: true -library-imports: - collection: 'dart:collection' -external-versions: - # See https://docs.flutter.dev/reference/supported-platforms. - ios: - min: 12.0.0 - macos: - min: 10.14.0 -objc-interfaces: - include: - - NSArray - - NSCharacterSet - - NSCoder - - NSData - - NSDate - - NSDictionary - - NSEnumerator - - NSError - - NSIndexSet - - NSInputStream - - NSInvocation - - NSItemProvider - - NSLocale - - NSMethodSignature - - NSMutableArray - - NSMutableData - - NSMutableDictionary - - NSMutableIndexSet - - NSMutableOrderedSet - - NSMutableSet - - NSMutableString - - NSNotification - - NSNumber - - NSObject - - NSOutputStream - - NSOrderedCollectionChange - - NSOrderedCollectionDifference - - NSOrderedSet - - NSPort - - NSPortMessage - - NSProgress - - NSRunLoop - - NSSet - - NSStream - - NSString - - NSTimer - - NSURL - - NSURLHandle - - NSValue - - Protocol -objc-protocols: - include: - - NSCoding - - NSCopying - - NSFastEnumeration - - NSItemProviderReading - - NSItemProviderWriting - - NSMutableCopying - - NSObject - - NSPortDelegate - - NSSecureCoding - - NSStreamDelegate - rename: - 'NSObject': 'NSObjectProtocol' -objc-categories: - include: - - NSDataCreation - - NSExtendedArray - - NSExtendedData - - NSExtendedDate - - NSExtendedDictionary - - NSExtendedEnumerator - - NSExtendedMutableArray - - NSExtendedMutableData - - NSExtendedMutableDictionary - - NSExtendedMutableOrderedSet - - NSExtendedMutableSet - - NSExtendedOrderedSet - - NSExtendedSet - - NSNumberCreation - - NSStringExtensionMethods -structs: - include: - - AEDesc - - __CFRunLoop - - __CFString - - CGPoint - - CGRect - - CGSize - - NSEdgeInsets - - NSFastEnumerationState - - _NSRange - - _NSZone - - OpaqueAEDataStorageType - rename: - __CFRunLoop: CFRunLoop - __CFString: CFString - _NSRange: NSRange - _NSZone: NSZone -enums: - include: - - NSAppleEventSendOptions - - NSBinarySearchingOptions - - NSCollectionChangeType - - NSComparisonResult - - NSDataBase64DecodingOptions - - NSDataBase64EncodingOptions - - NSDataCompressionAlgorithm - - NSDataReadingOptions - - NSDataSearchOptions - - NSDataWritingOptions - - NSDecodingFailurePolicy - - NSEnumerationOptions - - NSItemProviderFileOptions - - NSItemProviderRepresentationVisibility - - NSKeyValueChange - - NSKeyValueObservingOptions - - NSKeyValueSetMutationKind - - NSLinguisticTaggerOptions - - NSLocaleLanguageDirection - - NSOrderedCollectionDifferenceCalculationOptions - - NSPropertyListFormat - - NSQualityOfService - - NSSortOptions - - NSStreamEvent - - NSStreamStatus - - NSStringCompareOptions - - NSStringEncodingConversionOptions - - NSStringEnumerationOptions - - NSURLBookmarkCreationOptions - - NSURLBookmarkResolutionOptions - - NSURLHandleStatus -globals: - include: - - NSKeyValueChangeIndexesKey - - NSKeyValueChangeKindKey - - NSKeyValueChangeNewKey - - NSKeyValueChangeNotificationIsPriorKey - - NSKeyValueChangeOldKey - - NSLocalizedDescriptionKey -typedefs: - include: - - 'CFStringRef' -preamble: | - // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file - // for details. All rights reserved. Use of this source code is governed by a - // BSD-style license that can be found in the LICENSE file. - - // Bindings for `src/foundation.h`. - // Regenerate bindings with `dart run tool/generate_code.dart`. - - // ignore_for_file: always_specify_types - // ignore_for_file: camel_case_types - // ignore_for_file: non_constant_identifier_names - // ignore_for_file: unnecessary_non_null_assertion - // ignore_for_file: unused_element - // ignore_for_file: unused_field - // coverage:ignore-file diff --git a/pkgs/objective_c/ffigen_objc.yaml b/pkgs/objective_c/ffigen_objc.yaml index d7edf0aef..64b15a418 100644 --- a/pkgs/objective_c/ffigen_objc.yaml +++ b/pkgs/objective_c/ffigen_objc.yaml @@ -7,6 +7,7 @@ output: objc-bindings: 'src/objective_c_bindings_generated.m' headers: entry-points: + - 'src/foundation.h' - 'src/input_stream_adapter.h' - 'src/ns_number.h' - 'src/observer.h' @@ -15,7 +16,10 @@ ffi-native: asset-id: 'package:objective_c/objective_c.dylib' exclude-all-by-default: true include-transitive-objc-categories: false +generate-for-package-objective-c: true sort: true +library-imports: + collection: 'dart:collection' external-versions: # See https://docs.flutter.dev/reference/supported-platforms. ios: @@ -23,21 +27,148 @@ external-versions: macos: min: 10.14.0 objc-interfaces: + # Keep in sync with ffigen's ObjCBuiltInFunctions.builtInInterfaces. include: - DOBJCDartInputStreamAdapter - DOBJCObservation - DOBJCDartProtocolBuilder - DOBJCDartProtocol + - NSArray + - NSCharacterSet + - NSCoder + - NSData + - NSDate + - NSDictionary + - NSEnumerator + - NSError + - NSIndexSet + - NSInputStream + - NSInvocation + - NSItemProvider + - NSLocale + - NSMethodSignature + - NSMutableArray + - NSMutableData + - NSMutableDictionary + - NSMutableIndexSet + - NSMutableOrderedSet + - NSMutableSet + - NSMutableString + - NSNotification + - NSNumber + - NSObject + - NSOutputStream + - NSOrderedCollectionChange + - NSOrderedCollectionDifference + - NSOrderedSet + - NSPort + - NSPortMessage + - NSProgress + - NSRunLoop + - NSSet + - NSStream + - NSString + - NSTimer + - NSURL + - NSURLHandle + - NSValue + - Protocol rename: 'DOBJCDartInputStreamAdapter': 'DartInputStreamAdapter' 'DOBJCDartProtocolBuilder': 'DartProtocolBuilder' 'DOBJCDartProtocol': 'DartProtocol' objc-protocols: include: + - NSCoding + - NSCopying + - NSFastEnumeration + - NSItemProviderReading + - NSItemProviderWriting + - NSMutableCopying + - NSObject + - NSPortDelegate + - NSSecureCoding + - NSStreamDelegate - Observer + rename: + 'NSObject': 'NSObjectProtocol' objc-categories: include: + - NSDataCreation + - NSExtendedArray + - NSExtendedData + - NSExtendedDate + - NSExtendedDictionary + - NSExtendedEnumerator + - NSExtendedMutableArray + - NSExtendedMutableData + - NSExtendedMutableDictionary + - NSExtendedMutableOrderedSet + - NSExtendedMutableSet + - NSExtendedOrderedSet + - NSExtendedSet + - NSNumberCreation - NSNumberIsFloat + - NSStringExtensionMethods +structs: + include: + - AEDesc + - __CFRunLoop + - __CFString + - CGPoint + - CGRect + - CGSize + - NSEdgeInsets + - NSFastEnumerationState + - _NSRange + - _NSZone + - OpaqueAEDataStorageType + rename: + __CFRunLoop: CFRunLoop + __CFString: CFString + _NSRange: NSRange + _NSZone: NSZone +enums: + include: + - NSAppleEventSendOptions + - NSBinarySearchingOptions + - NSCollectionChangeType + - NSComparisonResult + - NSDataBase64DecodingOptions + - NSDataBase64EncodingOptions + - NSDataCompressionAlgorithm + - NSDataReadingOptions + - NSDataSearchOptions + - NSDataWritingOptions + - NSDecodingFailurePolicy + - NSEnumerationOptions + - NSItemProviderFileOptions + - NSItemProviderRepresentationVisibility + - NSKeyValueChange + - NSKeyValueObservingOptions + - NSKeyValueSetMutationKind + - NSLinguisticTaggerOptions + - NSLocaleLanguageDirection + - NSOrderedCollectionDifferenceCalculationOptions + - NSPropertyListFormat + - NSQualityOfService + - NSSortOptions + - NSStreamEvent + - NSStreamStatus + - NSStringCompareOptions + - NSStringEncodingConversionOptions + - NSStringEnumerationOptions + - NSURLBookmarkCreationOptions + - NSURLBookmarkResolutionOptions + - NSURLHandleStatus +globals: + include: + - NSKeyValueChangeIndexesKey + - NSKeyValueChangeKindKey + - NSKeyValueChangeNewKey + - NSKeyValueChangeNotificationIsPriorKey + - NSKeyValueChangeOldKey + - NSLocalizedDescriptionKey typedefs: include: - 'CFStringRef' @@ -46,7 +177,7 @@ preamble: | // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. - // Bindings for package:objective_c's custom ObjC interfaces. + // Bindings for package:objective_c's ObjC code and the Foundation framework. // Regenerate bindings with `dart run tool/generate_code.dart`. // ignore_for_file: always_specify_types diff --git a/pkgs/objective_c/lib/objective_c.dart b/pkgs/objective_c/lib/objective_c.dart index 813f76c4e..9bedfc5df 100644 --- a/pkgs/objective_c/lib/objective_c.dart +++ b/pkgs/objective_c/lib/objective_c.dart @@ -13,7 +13,7 @@ export 'src/c_bindings_generated.dart' signalWaiter; export 'src/cf_string.dart'; export 'src/converter.dart'; -export 'src/foundation_bindings_exported.dart'; +export 'src/objective_c_bindings_exported.dart'; export 'src/internal.dart' hide blockHasRegisteredClosure, isValidBlock, isValidClass, isValidObject; export 'src/ns_data.dart'; diff --git a/pkgs/objective_c/lib/src/cf_string.dart b/pkgs/objective_c/lib/src/cf_string.dart index ea0c94289..df9bbd8b2 100644 --- a/pkgs/objective_c/lib/src/cf_string.dart +++ b/pkgs/objective_c/lib/src/cf_string.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. import 'ns_string.dart'; -import 'foundation_bindings_generated.dart'; +import 'objective_c_bindings_generated.dart'; extension CFStringRefConversions on CFStringRef { NSString toNSString() => diff --git a/pkgs/objective_c/lib/src/converter.dart b/pkgs/objective_c/lib/src/converter.dart index 9126f7034..8ea22625d 100644 --- a/pkgs/objective_c/lib/src/converter.dart +++ b/pkgs/objective_c/lib/src/converter.dart @@ -2,7 +2,6 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -import 'foundation_bindings_generated.dart'; import 'internal.dart'; import 'ns_date.dart'; import 'ns_number.dart'; diff --git a/pkgs/objective_c/lib/src/foundation_bindings_generated.dart b/pkgs/objective_c/lib/src/foundation_bindings_generated.dart deleted file mode 100644 index 5e70fab4b..000000000 --- a/pkgs/objective_c/lib/src/foundation_bindings_generated.dart +++ /dev/null @@ -1,35043 +0,0 @@ -// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -// Bindings for `src/foundation.h`. -// Regenerate bindings with `dart run tool/generate_code.dart`. - -// ignore_for_file: always_specify_types -// ignore_for_file: camel_case_types -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: unnecessary_non_null_assertion -// ignore_for_file: unused_element -// ignore_for_file: unused_field -// coverage:ignore-file - -// AUTO GENERATED FILE, DO NOT EDIT. -// -// Generated by `package:ffigen`. -// ignore_for_file: type=lint -import 'dart:collection' as collection; -import 'dart:ffi' as ffi; -import '../objective_c.dart' as objc; -import 'package:ffi/ffi.dart' as pkg_ffi; - -@ffi.Native>(symbol: 'NSKeyValueChangeIndexesKey') -external ffi.Pointer _NSKeyValueChangeIndexesKey; - -NSString get NSKeyValueChangeIndexesKey => NSString.castFromPointer( - _NSKeyValueChangeIndexesKey, - retain: true, - release: true, -); - -set NSKeyValueChangeIndexesKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeIndexesKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeIndexesKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSKeyValueChangeKindKey') -external ffi.Pointer _NSKeyValueChangeKindKey; - -NSString get NSKeyValueChangeKindKey => NSString.castFromPointer( - _NSKeyValueChangeKindKey, - retain: true, - release: true, -); - -set NSKeyValueChangeKindKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeKindKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeKindKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSKeyValueChangeNewKey') -external ffi.Pointer _NSKeyValueChangeNewKey; - -NSString get NSKeyValueChangeNewKey => NSString.castFromPointer( - _NSKeyValueChangeNewKey, - retain: true, - release: true, -); - -set NSKeyValueChangeNewKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeNewKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeNewKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSKeyValueChangeNotificationIsPriorKey', -) -external ffi.Pointer _NSKeyValueChangeNotificationIsPriorKey; - -NSString get NSKeyValueChangeNotificationIsPriorKey => NSString.castFromPointer( - _NSKeyValueChangeNotificationIsPriorKey, - retain: true, - release: true, -); - -set NSKeyValueChangeNotificationIsPriorKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeNotificationIsPriorKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeNotificationIsPriorKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSKeyValueChangeOldKey') -external ffi.Pointer _NSKeyValueChangeOldKey; - -NSString get NSKeyValueChangeOldKey => NSString.castFromPointer( - _NSKeyValueChangeOldKey, - retain: true, - release: true, -); - -set NSKeyValueChangeOldKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeOldKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeOldKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSLocalizedDescriptionKey') -external ffi.Pointer _NSLocalizedDescriptionKey; - -NSString get NSLocalizedDescriptionKey => NSString.castFromPointer( - _NSLocalizedDescriptionKey, - retain: true, - release: true, -); - -set NSLocalizedDescriptionKey(NSString value) { - NSString.castFromPointer( - _NSLocalizedDescriptionKey, - retain: false, - release: true, - ).ref.release(); - _NSLocalizedDescriptionKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) ->() -external instancetype _ObjectiveCBindings_protocolTrampoline_10z9f5k( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, -); - -@ffi.Native< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) ->() -external int _ObjectiveCBindings_protocolTrampoline_17ap02x( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_18nsem0( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external void _ObjectiveCBindings_protocolTrampoline_18v1jvf( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer _ObjectiveCBindings_protocolTrampoline_1a8cl66( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) ->() -external int _ObjectiveCBindings_protocolTrampoline_1ckyi24( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external int _ObjectiveCBindings_protocolTrampoline_1ldqghh( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_1mbt9g9( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_1mllhpc( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_1q0i84( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _ObjectiveCBindings_protocolTrampoline_3su7tt( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_50as9u( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external ffi.Pointer -_ObjectiveCBindings_protocolTrampoline_c7gk2u( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -); - -@ffi.Native< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) ->() -external bool _ObjectiveCBindings_protocolTrampoline_e3qsqz( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) ->() -external void _ObjectiveCBindings_protocolTrampoline_hoampi( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -); - -@ffi.Native< - ffi.Void Function(ffi.Pointer, ffi.Pointer) ->() -external void _ObjectiveCBindings_protocolTrampoline_ovsamd( - ffi.Pointer target, - ffi.Pointer arg0, -); - -@ffi.Native< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external bool _ObjectiveCBindings_protocolTrampoline_w1e3k0( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->() -external instancetype _ObjectiveCBindings_protocolTrampoline_xr62hr( - ffi.Pointer target, - ffi.Pointer arg0, - ffi.Pointer arg1, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_18v1jvf( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1o83rbn( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_hoampi( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_lmc3p5( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_ovsamd( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_q5jeyk( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_rnu2c5( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_t8l8el( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_vhbh5h( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_zkjmn1( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_zuf90e( - ffi.Pointer block, - ffi.Pointer listnerBlock, - ffi.Pointer context, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_18v1jvf( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1b3bb6a( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1o83rbn( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1p9ui4q( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1q8ia8l( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_hoampi( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_lmc3p5( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_ovsamd( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_pfv6jd( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_q5jeyk( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_rnu2c5( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_t8l8el( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_vhbh5h( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_zkjmn1( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_zuf90e( - ffi.Pointer block, -); - -final class CFString extends ffi.Opaque {} - -typedef CFStringRef = ffi.Pointer; - -/// NSArray -class NSArray extends NSObject - with Iterable - implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - /// Creates a [NSArray] of the given length with [fill] at each position. - /// - /// The [length] must be a non-negative integer. - static NSArray filled(int length, objc.ObjCObjectBase fill) => - NSMutableArray.filled(length, fill); - - /// Creates a [NSArray] from [elements]. - static NSArray of(Iterable elements) => - NSMutableArray.of(elements); - - @override - int get length => count; - - @override - objc.ObjCObjectBase elementAt(int index) => objectAtIndex(index); - - @override - Iterator get iterator => _NSArrayIterator(this); - - objc.ObjCObjectBase operator [](int index) => objectAtIndex(index); - - NSArray._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSArray] that points to the same underlying object as [other]. - NSArray.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSArray] that wraps the given raw object pointer. - NSArray.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSArray]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSArray, - ); - } - - /// alloc - static NSArray alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_alloc); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSArray allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSArray, - _sel_allocWithZone_, - zone, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// array - static NSArray array() { - final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_array); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithArray: - static NSArray arrayWithArray(NSArray array$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithArray_, - array$1.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObject: - static NSArray arrayWithObject(objc.ObjCObjectBase anObject) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithObject_, - anObject.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObjects: - static NSArray arrayWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSArray, - _sel_arrayWithObjects_, - firstObj.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObjects:count: - static NSArray arrayWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - _class_NSArray, - _sel_arrayWithObjects_count_, - objects, - count, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSArray new$() { - final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_new); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSArray, _sel_supportsSecureCoding); - } - - /// count - int get count { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSArray init() { - objc.checkOsVersionInternal( - 'NSArray.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray: - NSArray initWithArray(NSArray array$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array$1.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - NSArray initWithArray$1(NSArray array$1, {required bool copyItems}) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - array$1.ref.pointer, - copyItems, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSArray? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects: - NSArray initWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:count: - NSArray initWithObjects$1( - ffi.Pointer> objects, { - required int count$1, - }) { - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count$1, - ); - return NSArray.castFromPointer(_ret, retain: false, release: true); - } - - /// objectAtIndex: - objc.ObjCObjectBase objectAtIndex(int index) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_objectAtIndex_, - index, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSArray constructed with the default `new` method. - factory NSArray() => new$(); -} - -enum NSBinarySearchingOptions { - NSBinarySearchingFirstEqual(256), - NSBinarySearchingLastEqual(512), - NSBinarySearchingInsertionIndex(1024); - - final int value; - const NSBinarySearchingOptions(this.value); - - static NSBinarySearchingOptions fromValue(int value) => switch (value) { - 256 => NSBinarySearchingFirstEqual, - 512 => NSBinarySearchingLastEqual, - 1024 => NSBinarySearchingInsertionIndex, - _ => throw ArgumentError( - 'Unknown value for NSBinarySearchingOptions: $value', - ), - }; -} - -/// NSCharacterSet -class NSCharacterSet extends NSObject - implements NSCopying, NSMutableCopying, NSSecureCoding { - NSCharacterSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSCharacterSet] that points to the same underlying object as [other]. - NSCharacterSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSCharacterSet] that wraps the given raw object pointer. - NSCharacterSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSCharacterSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSCharacterSet, - ); - } - - /// alloc - static NSCharacterSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_alloc); - return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSCharacterSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSCharacterSet, - _sel_allocWithZone_, - zone, - ); - return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); - } - - /// alphanumericCharacterSet - static NSCharacterSet getAlphanumericCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_alphanumericCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// capitalizedLetterCharacterSet - static NSCharacterSet getCapitalizedLetterCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_capitalizedLetterCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// characterSetWithBitmapRepresentation: - static NSCharacterSet characterSetWithBitmapRepresentation(NSData data) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSCharacterSet, - _sel_characterSetWithBitmapRepresentation_, - data.ref.pointer, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// characterSetWithCharactersInString: - static NSCharacterSet characterSetWithCharactersInString(NSString aString) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSCharacterSet, - _sel_characterSetWithCharactersInString_, - aString.ref.pointer, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// characterSetWithContentsOfFile: - static NSCharacterSet? characterSetWithContentsOfFile(NSString fName) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSCharacterSet, - _sel_characterSetWithContentsOfFile_, - fName.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// characterSetWithRange: - static NSCharacterSet characterSetWithRange(NSRange aRange) { - final _ret = _objc_msgSend_1k1o1s7( - _class_NSCharacterSet, - _sel_characterSetWithRange_, - aRange, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// controlCharacterSet - static NSCharacterSet getControlCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_controlCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// decimalDigitCharacterSet - static NSCharacterSet getDecimalDigitCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_decimalDigitCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// decomposableCharacterSet - static NSCharacterSet getDecomposableCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_decomposableCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// illegalCharacterSet - static NSCharacterSet getIllegalCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_illegalCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// letterCharacterSet - static NSCharacterSet getLetterCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_letterCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// lowercaseLetterCharacterSet - static NSCharacterSet getLowercaseLetterCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_lowercaseLetterCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSCharacterSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_new); - return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); - } - - /// newlineCharacterSet - static NSCharacterSet getNewlineCharacterSet() { - objc.checkOsVersionInternal( - 'NSCharacterSet.newlineCharacterSet', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_newlineCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// nonBaseCharacterSet - static NSCharacterSet getNonBaseCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_nonBaseCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// punctuationCharacterSet - static NSCharacterSet getPunctuationCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_punctuationCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSCharacterSet, - _sel_supportsSecureCoding, - ); - } - - /// symbolCharacterSet - static NSCharacterSet getSymbolCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_symbolCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// uppercaseLetterCharacterSet - static NSCharacterSet getUppercaseLetterCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_uppercaseLetterCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// whitespaceAndNewlineCharacterSet - static NSCharacterSet getWhitespaceAndNewlineCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_whitespaceAndNewlineCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// whitespaceCharacterSet - static NSCharacterSet getWhitespaceCharacterSet() { - final _ret = _objc_msgSend_151sglz( - _class_NSCharacterSet, - _sel_whitespaceCharacterSet, - ); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// autorelease - NSCharacterSet autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// bitmapRepresentation - NSData get bitmapRepresentation { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_bitmapRepresentation, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// characterIsMember: - bool characterIsMember(int aCharacter) { - return _objc_msgSend_1co9mn4( - this.ref.pointer, - _sel_characterIsMember_, - aCharacter, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// hasMemberInPlane: - bool hasMemberInPlane(int thePlane) { - return _objc_msgSend_gerswc( - this.ref.pointer, - _sel_hasMemberInPlane_, - thePlane, - ); - } - - /// init - NSCharacterSet init() { - objc.checkOsVersionInternal( - 'NSCharacterSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSCharacterSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSCharacterSet.castFromPointer(_ret, retain: false, release: true); - } - - /// invertedSet - NSCharacterSet get invertedSet { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_invertedSet); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// isSupersetOfSet: - bool isSupersetOfSet(NSCharacterSet theOtherSet) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isSupersetOfSet_, - theOtherSet.ref.pointer, - ); - } - - /// longCharacterIsMember: - bool longCharacterIsMember(int theLongChar) { - return _objc_msgSend_jsclrq( - this.ref.pointer, - _sel_longCharacterIsMember_, - theLongChar, - ); - } - - /// retain - NSCharacterSet retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSCharacterSet self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSCharacterSet constructed with the default `new` method. - factory NSCharacterSet() => new$(); -} - -/// NSCoder -class NSCoder extends objc.ObjCObjectBase { - NSCoder._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSCoder] that points to the same underlying object as [other]. - NSCoder.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSCoder] that wraps the given raw object pointer. - NSCoder.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSCoder]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSCoder, - ); - } -} - -/// NSCoding -interface class NSCoding extends objc.ObjCProtocolBase { - NSCoding._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSCoding] that points to the same underlying object as [other]. - NSCoding.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSCoding] that wraps the given raw object pointer. - NSCoding.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSCoding]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSCoding, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSCoding.cast()); - - /// Builds an object that implements the NSCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCoding implement({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); - NSCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCoding implementAsListener({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); - NSCoding.encodeWithCoder_.implementAsListener(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSCoding.encodeWithCoder_.implementAsListener(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCoding implementAsBlocking({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); - NSCoding.encodeWithCoder_.implementAsBlocking(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSCoding.encodeWithCoder_.implementAsBlocking(builder, encodeWithCoder_); - NSCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// encodeWithCoder: - static final encodeWithCoder_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSCoding, - _sel_encodeWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCoding, - _sel_encodeWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - ); - - /// initWithCoder: - static final initWithCoder_ = - objc.ObjCProtocolMethod( - _protocol_NSCoding, - _sel_initWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_xr62hr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCoding, - _sel_initWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (Dartinstancetype? Function(NSCoder) func) => - ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - ); -} - -/// iOS: introduced 13.0.0 -/// macOS: introduced 10.15.0 -enum NSCollectionChangeType { - NSCollectionChangeInsert(0), - NSCollectionChangeRemove(1); - - final int value; - const NSCollectionChangeType(this.value); - - static NSCollectionChangeType fromValue(int value) => switch (value) { - 0 => NSCollectionChangeInsert, - 1 => NSCollectionChangeRemove, - _ => throw ArgumentError( - 'Unknown value for NSCollectionChangeType: $value', - ), - }; -} - -enum NSComparisonResult { - NSOrderedAscending(-1), - NSOrderedSame(0), - NSOrderedDescending(1); - - final int value; - const NSComparisonResult(this.value); - - static NSComparisonResult fromValue(int value) => switch (value) { - -1 => NSOrderedAscending, - 0 => NSOrderedSame, - 1 => NSOrderedDescending, - _ => throw ArgumentError('Unknown value for NSComparisonResult: $value'), - }; -} - -/// NSCopying -interface class NSCopying extends objc.ObjCProtocolBase { - NSCopying._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSCopying] that points to the same underlying object as [other]. - NSCopying.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSCopying] that wraps the given raw object pointer. - NSCopying.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSCopying]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSCopying, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSCopying.cast()); - - /// Builds an object that implements the NSCopying protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSCopying implement({ - required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSCopying'); - NSCopying.copyWithZone_.implement(builder, copyWithZone_); - builder.addProtocol($protocol); - return NSCopying.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSCopying protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, - bool $keepIsolateAlive = true, - }) { - NSCopying.copyWithZone_.implement(builder, copyWithZone_); - builder.addProtocol($protocol); - } - - /// copyWithZone: - static final copyWithZone_ = - objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function(ffi.Pointer) - >( - _protocol_NSCopying, - _sel_copyWithZone_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_18nsem0) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSCopying, - _sel_copyWithZone_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function(ffi.Pointer) func) => - ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => func(arg1), - ), - ); -} - -/// NSData -class NSData extends NSObject - implements NSCopying, NSMutableCopying, NSSecureCoding { - NSData._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSData] that points to the same underlying object as [other]. - NSData.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSData] that wraps the given raw object pointer. - NSData.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSData]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSData, - ); - } - - /// alloc - static NSData alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_alloc); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSData allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSData, - _sel_allocWithZone_, - zone, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// data - static NSData data() { - final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_data); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytes:length: - static NSData dataWithBytes( - ffi.Pointer bytes, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - _class_NSData, - _sel_dataWithBytes_length_, - bytes, - length, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytesNoCopy:length: - static NSData dataWithBytesNoCopy( - ffi.Pointer bytes, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - _class_NSData, - _sel_dataWithBytesNoCopy_length_, - bytes, - length, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytesNoCopy:length:freeWhenDone: - static NSData dataWithBytesNoCopy$1( - ffi.Pointer bytes, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_161ne8y( - _class_NSData, - _sel_dataWithBytesNoCopy_length_freeWhenDone_, - bytes, - length, - freeWhenDone, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfFile: - static NSData? dataWithContentsOfFile(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSData, - _sel_dataWithContentsOfFile_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfFile:options:error: - static NSData? dataWithContentsOfFile$1( - NSString path, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - _class_NSData, - _sel_dataWithContentsOfFile_options_error_, - path.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfURL: - static NSData? dataWithContentsOfURL(NSURL url) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSData, - _sel_dataWithContentsOfURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfURL:options:error: - static NSData? dataWithContentsOfURL$1( - NSURL url, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - _class_NSData, - _sel_dataWithContentsOfURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithData: - static NSData dataWithData(NSData data$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSData, - _sel_dataWithData_, - data$1.ref.pointer, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSData new$() { - final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_new); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSData, _sel_supportsSecureCoding); - } - - /// bytes - ffi.Pointer get bytes { - return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_bytes); - } - - /// compressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSData? compressedDataUsingAlgorithm( - NSDataCompressionAlgorithm algorithm, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSData.compressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1vnlaqg( - this.ref.pointer, - _sel_compressedDataUsingAlgorithm_error_, - algorithm.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// decompressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSData? decompressedDataUsingAlgorithm( - NSDataCompressionAlgorithm algorithm, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSData.decompressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1vnlaqg( - this.ref.pointer, - _sel_decompressedDataUsingAlgorithm_error_, - algorithm.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSData init() { - objc.checkOsVersionInternal( - 'NSData.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBase64EncodedData:options: - NSData? initWithBase64EncodedData( - NSData base64Data, { - required NSDataBase64DecodingOptions options, - }) { - objc.checkOsVersionInternal( - 'NSData.initWithBase64EncodedData:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedData_options_, - base64Data.ref.pointer, - options.value, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBase64EncodedString:options: - NSData? initWithBase64EncodedString( - NSString base64String, { - required NSDataBase64DecodingOptions options, - }) { - objc.checkOsVersionInternal( - 'NSData.initWithBase64EncodedString:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedString_options_, - base64String.ref.pointer, - options.value, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:length: - NSData initWithBytes(ffi.Pointer bytes$1, {required int length}) { - final _ret = _objc_msgSend_3nbx5e( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_, - bytes$1, - length, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length: - NSData initWithBytesNoCopy( - ffi.Pointer bytes$1, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_, - bytes$1, - length, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:deallocator: - NSData initWithBytesNoCopy$1( - ffi.Pointer bytes$1, { - required int length, - objc.ObjCBlock, ffi.UnsignedLong)>? - deallocator, - }) { - objc.checkOsVersionInternal( - 'NSData.initWithBytesNoCopy:length:deallocator:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_134vhyh( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_deallocator_, - bytes$1, - length, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:freeWhenDone: - NSData initWithBytesNoCopy$2( - ffi.Pointer bytes$1, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_161ne8y( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_freeWhenDone_, - bytes$1, - length, - freeWhenDone, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSData? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile: - NSData? initWithContentsOfFile(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:options:error: - NSData? initWithContentsOfFile$1( - NSString path, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_options_error_, - path.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - NSData? initWithContentsOfURL(NSURL url) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:options:error: - NSData? initWithContentsOfURL$1( - NSURL url, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithData: - NSData initWithData(NSData data$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithData_, - data$1.ref.pointer, - ); - return NSData.castFromPointer(_ret, retain: false, release: true); - } - - /// length - int get length { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); - } - - /// Returns a new instance of NSData constructed with the default `new` method. - factory NSData() => new$(); -} - -enum NSDataBase64DecodingOptions { - NSDataBase64DecodingIgnoreUnknownCharacters(1); - - final int value; - const NSDataBase64DecodingOptions(this.value); - - static NSDataBase64DecodingOptions fromValue(int value) => switch (value) { - 1 => NSDataBase64DecodingIgnoreUnknownCharacters, - _ => throw ArgumentError( - 'Unknown value for NSDataBase64DecodingOptions: $value', - ), - }; -} - -enum NSDataBase64EncodingOptions { - NSDataBase64Encoding64CharacterLineLength(1), - NSDataBase64Encoding76CharacterLineLength(2), - NSDataBase64EncodingEndLineWithCarriageReturn(16), - NSDataBase64EncodingEndLineWithLineFeed(32); - - final int value; - const NSDataBase64EncodingOptions(this.value); - - static NSDataBase64EncodingOptions fromValue(int value) => switch (value) { - 1 => NSDataBase64Encoding64CharacterLineLength, - 2 => NSDataBase64Encoding76CharacterLineLength, - 16 => NSDataBase64EncodingEndLineWithCarriageReturn, - 32 => NSDataBase64EncodingEndLineWithLineFeed, - _ => throw ArgumentError( - 'Unknown value for NSDataBase64EncodingOptions: $value', - ), - }; -} - -/// iOS: introduced 13.0.0 -/// macOS: introduced 10.15.0 -enum NSDataCompressionAlgorithm { - NSDataCompressionAlgorithmLZFSE(0), - NSDataCompressionAlgorithmLZ4(1), - NSDataCompressionAlgorithmLZMA(2), - NSDataCompressionAlgorithmZlib(3); - - final int value; - const NSDataCompressionAlgorithm(this.value); - - static NSDataCompressionAlgorithm fromValue(int value) => switch (value) { - 0 => NSDataCompressionAlgorithmLZFSE, - 1 => NSDataCompressionAlgorithmLZ4, - 2 => NSDataCompressionAlgorithmLZMA, - 3 => NSDataCompressionAlgorithmZlib, - _ => throw ArgumentError( - 'Unknown value for NSDataCompressionAlgorithm: $value', - ), - }; -} - -/// NSDataCreation -extension NSDataCreation on NSData {} - -enum NSDataReadingOptions { - NSDataReadingMappedIfSafe(1), - NSDataReadingUncached(2), - NSDataReadingMappedAlways(8); - - static const NSDataReadingMapped = NSDataReadingMappedIfSafe; - static const NSMappedRead = NSDataReadingMappedIfSafe; - static const NSUncachedRead = NSDataReadingUncached; - - final int value; - const NSDataReadingOptions(this.value); - - static NSDataReadingOptions fromValue(int value) => switch (value) { - 1 => NSDataReadingMappedIfSafe, - 2 => NSDataReadingUncached, - 8 => NSDataReadingMappedAlways, - _ => throw ArgumentError('Unknown value for NSDataReadingOptions: $value'), - }; - - @override - String toString() { - if (this == NSDataReadingMappedIfSafe) - return "NSDataReadingOptions.NSDataReadingMappedIfSafe, NSDataReadingOptions.NSDataReadingMapped, NSDataReadingOptions.NSMappedRead"; - if (this == NSDataReadingUncached) - return "NSDataReadingOptions.NSDataReadingUncached, NSDataReadingOptions.NSUncachedRead"; - return super.toString(); - } -} - -enum NSDataSearchOptions { - NSDataSearchBackwards(1), - NSDataSearchAnchored(2); - - final int value; - const NSDataSearchOptions(this.value); - - static NSDataSearchOptions fromValue(int value) => switch (value) { - 1 => NSDataSearchBackwards, - 2 => NSDataSearchAnchored, - _ => throw ArgumentError('Unknown value for NSDataSearchOptions: $value'), - }; -} - -enum NSDataWritingOptions { - NSDataWritingAtomic(1), - NSDataWritingWithoutOverwriting(2), - NSDataWritingFileProtectionNone(268435456), - NSDataWritingFileProtectionComplete(536870912), - NSDataWritingFileProtectionCompleteUnlessOpen(805306368), - NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication(1073741824), - NSDataWritingFileProtectionCompleteWhenUserInactive(1342177280), - NSDataWritingFileProtectionMask(4026531840); - - static const NSAtomicWrite = NSDataWritingAtomic; - - final int value; - const NSDataWritingOptions(this.value); - - static NSDataWritingOptions fromValue(int value) => switch (value) { - 1 => NSDataWritingAtomic, - 2 => NSDataWritingWithoutOverwriting, - 268435456 => NSDataWritingFileProtectionNone, - 536870912 => NSDataWritingFileProtectionComplete, - 805306368 => NSDataWritingFileProtectionCompleteUnlessOpen, - 1073741824 => - NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication, - 1342177280 => NSDataWritingFileProtectionCompleteWhenUserInactive, - 4026531840 => NSDataWritingFileProtectionMask, - _ => throw ArgumentError('Unknown value for NSDataWritingOptions: $value'), - }; - - @override - String toString() { - if (this == NSDataWritingAtomic) - return "NSDataWritingOptions.NSDataWritingAtomic, NSDataWritingOptions.NSAtomicWrite"; - return super.toString(); - } -} - -/// NSDate -class NSDate extends NSObject implements NSCopying, NSSecureCoding { - NSDate._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSDate] that points to the same underlying object as [other]. - NSDate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSDate] that wraps the given raw object pointer. - NSDate.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSDate]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSDate, - ); - } - - /// alloc - static NSDate alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_alloc); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSDate allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSDate, - _sel_allocWithZone_, - zone, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// date - static NSDate date() { - final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_date); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// dateWithTimeInterval:sinceDate: - static NSDate dateWithTimeInterval( - double secsToBeAdded, { - required NSDate sinceDate, - }) { - final _ret = _objc_msgSend_1ozwf6k( - _class_NSDate, - _sel_dateWithTimeInterval_sinceDate_, - secsToBeAdded, - sinceDate.ref.pointer, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSince1970: - static NSDate dateWithTimeIntervalSince1970(double secs) { - final _ret = _objc_msgSend_oa8mke( - _class_NSDate, - _sel_dateWithTimeIntervalSince1970_, - secs, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSinceNow: - static NSDate dateWithTimeIntervalSinceNow(double secs) { - final _ret = _objc_msgSend_oa8mke( - _class_NSDate, - _sel_dateWithTimeIntervalSinceNow_, - secs, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// dateWithTimeIntervalSinceReferenceDate: - static NSDate dateWithTimeIntervalSinceReferenceDate(double ti) { - final _ret = _objc_msgSend_oa8mke( - _class_NSDate, - _sel_dateWithTimeIntervalSinceReferenceDate_, - ti, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSDate new$() { - final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_new); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSDate, _sel_supportsSecureCoding); - } - - /// autorelease - NSDate autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// dateByAddingTimeInterval: - NSDate dateByAddingTimeInterval(double ti) { - objc.checkOsVersionInternal( - 'NSDate.dateByAddingTimeInterval:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_oa8mke( - this.ref.pointer, - _sel_dateByAddingTimeInterval_, - ti, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSDate init() { - objc.checkOsVersionInternal( - 'NSDate.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSDate? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithTimeInterval:sinceDate: - NSDate initWithTimeInterval( - double secsToBeAdded, { - required NSDate sinceDate, - }) { - final _ret = _objc_msgSend_1ozwf6k( - this.ref.retainAndReturnPointer(), - _sel_initWithTimeInterval_sinceDate_, - secsToBeAdded, - sinceDate.ref.pointer, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithTimeIntervalSince1970: - NSDate initWithTimeIntervalSince1970(double secs) { - final _ret = _objc_msgSend_oa8mke( - this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSince1970_, - secs, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithTimeIntervalSinceNow: - NSDate initWithTimeIntervalSinceNow(double secs) { - final _ret = _objc_msgSend_oa8mke( - this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSinceNow_, - secs, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithTimeIntervalSinceReferenceDate: - NSDate initWithTimeIntervalSinceReferenceDate(double ti) { - final _ret = _objc_msgSend_oa8mke( - this.ref.retainAndReturnPointer(), - _sel_initWithTimeIntervalSinceReferenceDate_, - ti, - ); - return NSDate.castFromPointer(_ret, retain: false, release: true); - } - - /// retain - NSDate retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSDate self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// timeIntervalSinceReferenceDate - double get timeIntervalSinceReferenceDate { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, - _sel_timeIntervalSinceReferenceDate, - ) - : _objc_msgSend_1ukqyt8( - this.ref.pointer, - _sel_timeIntervalSinceReferenceDate, - ); - } - - /// Returns a new instance of NSDate constructed with the default `new` method. - factory NSDate() => new$(); -} - -/// NSDictionary -class NSDictionary extends NSObject - with collection.MapBase - implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - /// Creates a [NSDictionary] from [other]. - static NSDictionary of(Map other) => - NSMutableDictionary.of(other); - - /// Creates a [NSDictionary] from [entries]. - static NSDictionary fromEntries( - Iterable> entries, - ) => NSMutableDictionary.fromEntries(entries); - - @override - int get length => count; - - @override - objc.ObjCObjectBase? operator [](Object? key) => - key is NSCopying ? objectForKey(key) : null; - - @override - Iterable get keys => _NSDictionaryKeyIterable(this); - - @override - Iterable get values => _NSDictionaryValueIterable(this); - - @override - bool containsKey(Object? key) => this[key] != null; - - @override - void operator []=(NSCopying key, objc.ObjCObjectBase value) => - throw UnsupportedError("Cannot modify NSDictionary"); - - @override - void clear() => throw UnsupportedError("Cannot modify NSDictionary"); - - @override - objc.ObjCObjectBase? remove(Object? key) => - throw UnsupportedError("Cannot modify NSDictionary"); - - NSDictionary._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSDictionary] that points to the same underlying object as [other]. - NSDictionary.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSDictionary] that wraps the given raw object pointer. - NSDictionary.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSDictionary]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSDictionary, - ); - } - - /// alloc - static NSDictionary alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_alloc); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSDictionary allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSDictionary, - _sel_allocWithZone_, - zone, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// dictionary - static NSDictionary dictionary() { - final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_dictionary); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// dictionaryWithDictionary: - static NSDictionary dictionaryWithDictionary(NSDictionary dict) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, - _sel_dictionaryWithDictionary_, - dict.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// dictionaryWithObject:forKey: - static NSDictionary dictionaryWithObject( - objc.ObjCObjectBase object, { - required NSCopying forKey, - }) { - final _ret = _objc_msgSend_15qeuct( - _class_NSDictionary, - _sel_dictionaryWithObject_forKey_, - object.ref.pointer, - forKey.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// dictionaryWithObjects:forKeys: - static NSDictionary dictionaryWithObjects( - NSArray objects, { - required NSArray forKeys, - }) { - final _ret = _objc_msgSend_15qeuct( - _class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_, - objects.ref.pointer, - forKeys.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// dictionaryWithObjects:forKeys:count: - static NSDictionary dictionaryWithObjects$1( - ffi.Pointer> objects, { - required ffi.Pointer> forKeys, - required int count, - }) { - final _ret = _objc_msgSend_1dydpdi( - _class_NSDictionary, - _sel_dictionaryWithObjects_forKeys_count_, - objects, - forKeys, - count, - ); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// dictionaryWithObjectsAndKeys: - static NSDictionary dictionaryWithObjectsAndKeys( - objc.ObjCObjectBase firstObject, - ) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSDictionary, - _sel_dictionaryWithObjectsAndKeys_, - firstObject.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSDictionary new$() { - final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_new); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSDictionary, _sel_supportsSecureCoding); - } - - /// count - int get count { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSDictionary init() { - objc.checkOsVersionInternal( - 'NSDictionary.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSDictionary? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithDictionary: - NSDictionary initWithDictionary(NSDictionary otherDictionary) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_, - otherDictionary.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithDictionary:copyItems: - NSDictionary initWithDictionary$1( - NSDictionary otherDictionary, { - required bool copyItems, - }) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_copyItems_, - otherDictionary.ref.pointer, - copyItems, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:forKeys: - NSDictionary initWithObjects(NSArray objects, {required NSArray forKeys}) { - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_, - objects.ref.pointer, - forKeys.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:forKeys:count: - NSDictionary initWithObjects$1( - ffi.Pointer> objects, { - required ffi.Pointer> forKeys, - required int count$1, - }) { - final _ret = _objc_msgSend_1dydpdi( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_count_, - objects, - forKeys, - count$1, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjectsAndKeys: - NSDictionary initWithObjectsAndKeys(objc.ObjCObjectBase firstObject) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjectsAndKeys_, - firstObject.ref.pointer, - ); - return NSDictionary.castFromPointer(_ret, retain: false, release: true); - } - - /// keyEnumerator - NSEnumerator keyEnumerator() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_keyEnumerator); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// objectForKey: - objc.ObjCObjectBase? objectForKey(objc.ObjCObjectBase aKey) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_objectForKey_, - aKey.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSDictionary constructed with the default `new` method. - factory NSDictionary() => new$(); -} - -enum NSEnumerationOptions { - NSEnumerationConcurrent(1), - NSEnumerationReverse(2); - - final int value; - const NSEnumerationOptions(this.value); - - static NSEnumerationOptions fromValue(int value) => switch (value) { - 1 => NSEnumerationConcurrent, - 2 => NSEnumerationReverse, - _ => throw ArgumentError('Unknown value for NSEnumerationOptions: $value'), - }; -} - -/// NSEnumerator -class NSEnumerator extends NSObject - implements NSFastEnumeration, Iterator { - objc.ObjCObjectBase? _current; - - @override - objc.ObjCObjectBase get current => _current!; - - @override - @pragma('vm:prefer-inline') - bool moveNext() { - _current = nextObject(); - return _current != null; - } - - NSEnumerator._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSEnumerator] that points to the same underlying object as [other]. - NSEnumerator.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSEnumerator] that wraps the given raw object pointer. - NSEnumerator.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSEnumerator]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSEnumerator, - ); - } - - /// alloc - static NSEnumerator alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSEnumerator, _sel_alloc); - return NSEnumerator.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSEnumerator allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSEnumerator, - _sel_allocWithZone_, - zone, - ); - return NSEnumerator.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSEnumerator new$() { - final _ret = _objc_msgSend_151sglz(_class_NSEnumerator, _sel_new); - return NSEnumerator.castFromPointer(_ret, retain: false, release: true); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// init - NSEnumerator init() { - objc.checkOsVersionInternal( - 'NSEnumerator.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSEnumerator.castFromPointer(_ret, retain: false, release: true); - } - - /// nextObject - objc.ObjCObjectBase? nextObject() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_nextObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSEnumerator constructed with the default `new` method. - factory NSEnumerator() => new$(); -} - -/// NSError -class NSError extends NSObject implements NSCopying, NSSecureCoding { - NSError._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSError] that points to the same underlying object as [other]. - NSError.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSError] that wraps the given raw object pointer. - NSError.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSError]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSError, - ); - } - - /// alloc - static NSError alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSError, _sel_alloc); - return NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSError allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSError, - _sel_allocWithZone_, - zone, - ); - return NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// errorWithDomain:code:userInfo: - static NSError errorWithDomain( - NSString domain, { - required int code, - NSDictionary? userInfo, - }) { - final _ret = _objc_msgSend_rc4ypv( - _class_NSError, - _sel_errorWithDomain_code_userInfo_, - domain.ref.pointer, - code, - userInfo?.ref.pointer ?? ffi.nullptr, - ); - return NSError.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSError new$() { - final _ret = _objc_msgSend_151sglz(_class_NSError, _sel_new); - return NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// setUserInfoValueProviderForDomain:provider: - static void setUserInfoValueProviderForDomain( - NSString errorDomain, { - objc.ObjCBlock? Function(NSError, NSString)>? - provider, - }) { - objc.checkOsVersionInternal( - 'NSError.setUserInfoValueProviderForDomain:provider:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - _objc_msgSend_o762yo( - _class_NSError, - _sel_setUserInfoValueProviderForDomain_provider_, - errorDomain.ref.pointer, - provider?.ref.pointer ?? ffi.nullptr, - ); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSError, _sel_supportsSecureCoding); - } - - /// userInfoValueProviderForDomain: - static objc.ObjCBlock< - ffi.Pointer? Function(NSError, NSString) - >? - userInfoValueProviderForDomain_( - NSError err, { - required NSString userInfoKey, - required NSString errorDomain, - }) { - objc.checkOsVersionInternal( - 'NSError.userInfoValueProviderForDomain:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_cnxxyq( - _class_NSError, - _sel_userInfoValueProviderForDomain_, - err.ref.pointer, - userInfoKey.ref.pointer, - errorDomain.ref.pointer, - ); - return _ret.address == 0 - ? null - : ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// code - int get code { - return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_code); - } - - /// domain - NSString get domain { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_domain); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// helpAnchor - NSString? get helpAnchor { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_helpAnchor); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSError init() { - objc.checkOsVersionInternal( - 'NSError.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSError? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithDomain:code:userInfo: - NSError initWithDomain( - NSString domain$1, { - required int code$1, - NSDictionary? userInfo, - }) { - final _ret = _objc_msgSend_rc4ypv( - this.ref.retainAndReturnPointer(), - _sel_initWithDomain_code_userInfo_, - domain$1.ref.pointer, - code$1, - userInfo?.ref.pointer ?? ffi.nullptr, - ); - return NSError.castFromPointer(_ret, retain: false, release: true); - } - - /// localizedDescription - NSString get localizedDescription { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedDescription, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedFailureReason - NSString? get localizedFailureReason { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedFailureReason, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedRecoveryOptions - NSArray? get localizedRecoveryOptions { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedRecoveryOptions, - ); - return _ret.address == 0 - ? null - : NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedRecoverySuggestion - NSString? get localizedRecoverySuggestion { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedRecoverySuggestion, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// recoveryAttempter - objc.ObjCObjectBase? get recoveryAttempter { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_recoveryAttempter, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// iOS: introduced 14.5.0 - /// macOS: introduced 11.3.0 - NSArray get underlyingErrors { - objc.checkOsVersionInternal( - 'NSError.underlyingErrors', - iOS: (false, (14, 5, 0)), - macOS: (false, (11, 3, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_underlyingErrors); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// userInfo - NSDictionary get userInfo { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); - return NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSError constructed with the default `new` method. - factory NSError() => new$(); -} - -/// NSExtendedArray -extension NSExtendedArray on NSArray { - /// arrayByAddingObject: - NSArray arrayByAddingObject(objc.ObjCObjectBase anObject) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_arrayByAddingObject_, - anObject.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayByAddingObjectsFromArray: - NSArray arrayByAddingObjectsFromArray(NSArray otherArray) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_arrayByAddingObjectsFromArray_, - otherArray.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// componentsJoinedByString: - NSString componentsJoinedByString(NSString separator) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_componentsJoinedByString_, - separator.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// containsObject: - bool containsObject(objc.ObjCObjectBase anObject) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_containsObject_, - anObject.ref.pointer, - ); - } - - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale:indent: - NSString descriptionWithLocale$1( - objc.ObjCObjectBase? locale, { - required int indent, - }) { - final _ret = _objc_msgSend_1k4kd9s( - this.ref.pointer, - _sel_descriptionWithLocale_indent_, - locale?.ref.pointer ?? ffi.nullptr, - indent, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// enumerateObjectsAtIndexes:options:usingBlock: - void enumerateObjectsAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSArray.enumerateObjectsAtIndexes:options:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_a3wp08( - this.ref.pointer, - _sel_enumerateObjectsAtIndexes_options_usingBlock_, - s.ref.pointer, - options.value, - usingBlock.ref.pointer, - ); - } - - /// enumerateObjectsUsingBlock: - void enumerateObjectsUsingBlock( - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSArray.enumerateObjectsUsingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateObjectsUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateObjectsWithOptions:usingBlock: - void enumerateObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSArray.enumerateObjectsWithOptions:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateObjectsWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// firstObject - objc.ObjCObjectBase? get firstObject { - objc.checkOsVersionInternal( - 'NSArray.firstObject', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_firstObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// firstObjectCommonWithArray: - objc.ObjCObjectBase? firstObjectCommonWithArray(NSArray otherArray) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_firstObjectCommonWithArray_, - otherArray.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// getObjects:range: - void getObjects( - ffi.Pointer> objects, { - required NSRange range, - }) { - _objc_msgSend_o16d3k( - this.ref.pointer, - _sel_getObjects_range_, - objects, - range, - ); - } - - /// indexOfObject: - int indexOfObject(objc.ObjCObjectBase anObject) { - return _objc_msgSend_1vd1c5m( - this.ref.pointer, - _sel_indexOfObject_, - anObject.ref.pointer, - ); - } - - /// indexOfObject:inRange: - int indexOfObject$1( - objc.ObjCObjectBase anObject, { - required NSRange inRange, - }) { - return _objc_msgSend_zug4wi( - this.ref.pointer, - _sel_indexOfObject_inRange_, - anObject.ref.pointer, - inRange, - ); - } - - /// indexOfObject:inSortedRange:options:usingComparator: - int indexOfObject$2( - objc.ObjCObjectBase obj, { - required NSRange inSortedRange, - required NSBinarySearchingOptions options, - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSArray.indexOfObject:inSortedRange:options:usingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_kshx9d( - this.ref.pointer, - _sel_indexOfObject_inSortedRange_options_usingComparator_, - obj.ref.pointer, - inSortedRange, - options.value, - usingComparator.ref.pointer, - ); - } - - /// indexOfObjectAtIndexes:options:passingTest: - int indexOfObjectAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSArray.indexOfObjectAtIndexes:options:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_k1x6mt( - this.ref.pointer, - _sel_indexOfObjectAtIndexes_options_passingTest_, - s.ref.pointer, - options.value, - passingTest.ref.pointer, - ); - } - - /// indexOfObjectIdenticalTo: - int indexOfObjectIdenticalTo(objc.ObjCObjectBase anObject) { - return _objc_msgSend_1vd1c5m( - this.ref.pointer, - _sel_indexOfObjectIdenticalTo_, - anObject.ref.pointer, - ); - } - - /// indexOfObjectIdenticalTo:inRange: - int indexOfObjectIdenticalTo$1( - objc.ObjCObjectBase anObject, { - required NSRange inRange, - }) { - return _objc_msgSend_zug4wi( - this.ref.pointer, - _sel_indexOfObjectIdenticalTo_inRange_, - anObject.ref.pointer, - inRange, - ); - } - - /// indexOfObjectPassingTest: - int indexOfObjectPassingTest( - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSArray.indexOfObjectPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_10mlopr( - this.ref.pointer, - _sel_indexOfObjectPassingTest_, - predicate.ref.pointer, - ); - } - - /// indexOfObjectWithOptions:passingTest: - int indexOfObjectWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSArray.indexOfObjectWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_1698hqz( - this.ref.pointer, - _sel_indexOfObjectWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - } - - /// indexesOfObjectsAtIndexes:options:passingTest: - NSIndexSet indexesOfObjectsAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSArray.indexesOfObjectsAtIndexes:options:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1i9v144( - this.ref.pointer, - _sel_indexesOfObjectsAtIndexes_options_passingTest_, - s.ref.pointer, - options.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesOfObjectsPassingTest: - NSIndexSet indexesOfObjectsPassingTest( - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSArray.indexesOfObjectsPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_indexesOfObjectsPassingTest_, - predicate.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesOfObjectsWithOptions:passingTest: - NSIndexSet indexesOfObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSArray.indexesOfObjectsWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_13x5boi( - this.ref.pointer, - _sel_indexesOfObjectsWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// isEqualToArray: - bool isEqualToArray(NSArray otherArray) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToArray_, - otherArray.ref.pointer, - ); - } - - /// lastObject - objc.ObjCObjectBase? get lastObject { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lastObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// makeObjectsPerformSelector: - void makeObjectsPerformSelector(ffi.Pointer aSelector) { - _objc_msgSend_1d9e4oe( - this.ref.pointer, - _sel_makeObjectsPerformSelector_, - aSelector, - ); - } - - /// makeObjectsPerformSelector:withObject: - void makeObjectsPerformSelector$1( - ffi.Pointer aSelector, { - objc.ObjCObjectBase? withObject, - }) { - _objc_msgSend_1qv0eq4( - this.ref.pointer, - _sel_makeObjectsPerformSelector_withObject_, - aSelector, - withObject?.ref.pointer ?? ffi.nullptr, - ); - } - - /// objectAtIndexedSubscript: - objc.ObjCObjectBase objectAtIndexedSubscript(int idx) { - objc.checkOsVersionInternal( - 'NSArray.objectAtIndexedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_objectAtIndexedSubscript_, - idx, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// objectEnumerator - NSEnumerator objectEnumerator() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// objectsAtIndexes: - NSArray objectsAtIndexes(NSIndexSet indexes) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_objectsAtIndexes_, - indexes.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// reverseObjectEnumerator - NSEnumerator reverseObjectEnumerator() { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_reverseObjectEnumerator, - ); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayHint - NSData get sortedArrayHint { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_sortedArrayHint); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayUsingComparator: - NSArray sortedArrayUsingComparator( - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - cmptr, - ) { - objc.checkOsVersionInternal( - 'NSArray.sortedArrayUsingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_sortedArrayUsingComparator_, - cmptr.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayUsingFunction:context: - NSArray sortedArrayUsingFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - comparator, { - required ffi.Pointer context, - }) { - final _ret = _objc_msgSend_1ffoev1( - this.ref.pointer, - _sel_sortedArrayUsingFunction_context_, - comparator, - context, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayUsingFunction:context:hint: - NSArray sortedArrayUsingFunction$1( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - comparator, { - required ffi.Pointer context, - NSData? hint, - }) { - final _ret = _objc_msgSend_1i2r70j( - this.ref.pointer, - _sel_sortedArrayUsingFunction_context_hint_, - comparator, - context, - hint?.ref.pointer ?? ffi.nullptr, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayUsingSelector: - NSArray sortedArrayUsingSelector(ffi.Pointer comparator) { - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_sortedArrayUsingSelector_, - comparator, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayWithOptions:usingComparator: - NSArray sortedArrayWithOptions( - NSSortOptions opts, { - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSArray.sortedArrayWithOptions:usingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1x5ew3h( - this.ref.pointer, - _sel_sortedArrayWithOptions_usingComparator_, - opts.value, - usingComparator.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// subarrayWithRange: - NSArray subarrayWithRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - this.ref.pointer, - _sel_subarrayWithRange_, - range, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// writeToURL:error: - bool writeToURL( - NSURL url, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSArray.writeToURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - return _objc_msgSend_l9p60w( - this.ref.pointer, - _sel_writeToURL_error_, - url.ref.pointer, - error, - ); - } -} - -/// NSExtendedData -extension NSExtendedData on NSData { - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// enumerateByteRangesUsingBlock: - void enumerateByteRangesUsingBlock( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSData.enumerateByteRangesUsingBlock:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateByteRangesUsingBlock_, - block.ref.pointer, - ); - } - - /// getBytes:length: - void getBytes(ffi.Pointer buffer, {required int length}) { - _objc_msgSend_zuf90e( - this.ref.pointer, - _sel_getBytes_length_, - buffer, - length, - ); - } - - /// getBytes:range: - void getBytes$1(ffi.Pointer buffer, {required NSRange range}) { - _objc_msgSend_xpqfd7(this.ref.pointer, _sel_getBytes_range_, buffer, range); - } - - /// isEqualToData: - bool isEqualToData(NSData other) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToData_, - other.ref.pointer, - ); - } - - /// rangeOfData:options:range: - NSRange rangeOfData( - NSData dataToFind, { - required NSDataSearchOptions options, - required NSRange range, - }) { - objc.checkOsVersionInternal( - 'NSData.rangeOfData:options:range:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1d8s65wStret( - _ptr, - this.ref.pointer, - _sel_rangeOfData_options_range_, - dataToFind.ref.pointer, - options.value, - range, - ) - : _ptr.ref = _objc_msgSend_1d8s65w( - this.ref.pointer, - _sel_rangeOfData_options_range_, - dataToFind.ref.pointer, - options.value, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// subdataWithRange: - NSData subdataWithRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - this.ref.pointer, - _sel_subdataWithRange_, - range, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// writeToFile:atomically: - bool writeToFile(NSString path, {required bool atomically}) { - return _objc_msgSend_1iyq28l( - this.ref.pointer, - _sel_writeToFile_atomically_, - path.ref.pointer, - atomically, - ); - } - - /// writeToFile:options:error: - bool writeToFile$1( - NSString path, { - required NSDataWritingOptions options, - required ffi.Pointer> error, - }) { - return _objc_msgSend_1xi08ar( - this.ref.pointer, - _sel_writeToFile_options_error_, - path.ref.pointer, - options.value, - error, - ); - } - - /// writeToURL:atomically: - bool writeToURL(NSURL url, {required bool atomically}) { - return _objc_msgSend_1iyq28l( - this.ref.pointer, - _sel_writeToURL_atomically_, - url.ref.pointer, - atomically, - ); - } - - /// writeToURL:options:error: - bool writeToURL$1( - NSURL url, { - required NSDataWritingOptions options, - required ffi.Pointer> error, - }) { - return _objc_msgSend_1xi08ar( - this.ref.pointer, - _sel_writeToURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - } -} - -/// NSExtendedDate -extension NSExtendedDate on NSDate { - /// timeIntervalSinceReferenceDate - static double getTimeIntervalSinceReferenceDate() { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - _class_NSDate, - _sel_timeIntervalSinceReferenceDate, - ) - : _objc_msgSend_1ukqyt8( - _class_NSDate, - _sel_timeIntervalSinceReferenceDate, - ); - } - - /// compare: - NSComparisonResult compare(NSDate other) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_compare_, - other.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// earlierDate: - NSDate earlierDate(NSDate anotherDate) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_earlierDate_, - anotherDate.ref.pointer, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// isEqualToDate: - bool isEqualToDate(NSDate otherDate) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToDate_, - otherDate.ref.pointer, - ); - } - - /// laterDate: - NSDate laterDate(NSDate anotherDate) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_laterDate_, - anotherDate.ref.pointer, - ); - return NSDate.castFromPointer(_ret, retain: true, release: true); - } - - /// timeIntervalSince1970 - double get timeIntervalSince1970 { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, - _sel_timeIntervalSince1970, - ) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeIntervalSince1970); - } - - /// timeIntervalSinceDate: - double timeIntervalSinceDate(NSDate anotherDate) { - return objc.useMsgSendVariants - ? _objc_msgSend_mabicuFpret( - this.ref.pointer, - _sel_timeIntervalSinceDate_, - anotherDate.ref.pointer, - ) - : _objc_msgSend_mabicu( - this.ref.pointer, - _sel_timeIntervalSinceDate_, - anotherDate.ref.pointer, - ); - } - - /// timeIntervalSinceNow - double get timeIntervalSinceNow { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret( - this.ref.pointer, - _sel_timeIntervalSinceNow, - ) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeIntervalSinceNow); - } -} - -/// NSExtendedDictionary -extension NSExtendedDictionary on NSDictionary { - /// allKeys - NSArray get allKeys { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allKeys); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// allKeysForObject: - NSArray allKeysForObject(objc.ObjCObjectBase anObject) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_allKeysForObject_, - anObject.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// allValues - NSArray get allValues { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allValues); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionInStringsFileFormat - NSString get descriptionInStringsFileFormat { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_descriptionInStringsFileFormat, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale:indent: - NSString descriptionWithLocale$1( - objc.ObjCObjectBase? locale, { - required int indent, - }) { - final _ret = _objc_msgSend_1k4kd9s( - this.ref.pointer, - _sel_descriptionWithLocale_indent_, - locale?.ref.pointer ?? ffi.nullptr, - indent, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// enumerateKeysAndObjectsUsingBlock: - void enumerateKeysAndObjectsUsingBlock( - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSDictionary.enumerateKeysAndObjectsUsingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateKeysAndObjectsUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateKeysAndObjectsWithOptions:usingBlock: - void enumerateKeysAndObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSDictionary.enumerateKeysAndObjectsWithOptions:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateKeysAndObjectsWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// getObjects:andKeys:count: - void getObjects( - ffi.Pointer> objects, { - required ffi.Pointer> andKeys, - required int count, - }) { - objc.checkOsVersionInternal( - 'NSDictionary.getObjects:andKeys:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_n2svg2( - this.ref.pointer, - _sel_getObjects_andKeys_count_, - objects, - andKeys, - count, - ); - } - - /// isEqualToDictionary: - bool isEqualToDictionary(NSDictionary otherDictionary) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToDictionary_, - otherDictionary.ref.pointer, - ); - } - - /// keysOfEntriesPassingTest: - NSSet keysOfEntriesPassingTest( - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSDictionary.keysOfEntriesPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_keysOfEntriesPassingTest_, - predicate.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// keysOfEntriesWithOptions:passingTest: - NSSet keysOfEntriesWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSDictionary.keysOfEntriesWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_13x5boi( - this.ref.pointer, - _sel_keysOfEntriesWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// keysSortedByValueUsingComparator: - NSArray keysSortedByValueUsingComparator( - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - cmptr, - ) { - objc.checkOsVersionInternal( - 'NSDictionary.keysSortedByValueUsingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_keysSortedByValueUsingComparator_, - cmptr.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// keysSortedByValueUsingSelector: - NSArray keysSortedByValueUsingSelector( - ffi.Pointer comparator, - ) { - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_keysSortedByValueUsingSelector_, - comparator, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// keysSortedByValueWithOptions:usingComparator: - NSArray keysSortedByValueWithOptions( - NSSortOptions opts, { - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSDictionary.keysSortedByValueWithOptions:usingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1x5ew3h( - this.ref.pointer, - _sel_keysSortedByValueWithOptions_usingComparator_, - opts.value, - usingComparator.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// objectEnumerator - NSEnumerator objectEnumerator() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// objectForKeyedSubscript: - objc.ObjCObjectBase? objectForKeyedSubscript(objc.ObjCObjectBase key) { - objc.checkOsVersionInternal( - 'NSDictionary.objectForKeyedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_objectForKeyedSubscript_, - key.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// objectsForKeys:notFoundMarker: - NSArray objectsForKeys( - NSArray keys, { - required objc.ObjCObjectBase notFoundMarker, - }) { - final _ret = _objc_msgSend_15qeuct( - this.ref.pointer, - _sel_objectsForKeys_notFoundMarker_, - keys.ref.pointer, - notFoundMarker.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// writeToURL:error: - bool writeToURL( - NSURL url, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSDictionary.writeToURL:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - return _objc_msgSend_l9p60w( - this.ref.pointer, - _sel_writeToURL_error_, - url.ref.pointer, - error, - ); - } -} - -/// NSExtendedEnumerator -extension NSExtendedEnumerator on NSEnumerator { - /// allObjects - NSArray get allObjects { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allObjects); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } -} - -/// NSExtendedMutableArray -extension NSExtendedMutableArray on NSMutableArray { - /// addObjectsFromArray: - void addObjectsFromArray(NSArray otherArray) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addObjectsFromArray_, - otherArray.ref.pointer, - ); - } - - /// exchangeObjectAtIndex:withObjectAtIndex: - void exchangeObjectAtIndex(int idx1, {required int withObjectAtIndex}) { - _objc_msgSend_bfp043( - this.ref.pointer, - _sel_exchangeObjectAtIndex_withObjectAtIndex_, - idx1, - withObjectAtIndex, - ); - } - - /// insertObjects:atIndexes: - void insertObjects(NSArray objects, {required NSIndexSet atIndexes}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_insertObjects_atIndexes_, - objects.ref.pointer, - atIndexes.ref.pointer, - ); - } - - /// removeAllObjects - void removeAllObjects() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); - } - - /// removeObject: - void removeObject(objc.ObjCObjectBase anObject) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObject_, - anObject.ref.pointer, - ); - } - - /// removeObject:inRange: - void removeObject$1( - objc.ObjCObjectBase anObject, { - required NSRange inRange, - }) { - _objc_msgSend_1oteutl( - this.ref.pointer, - _sel_removeObject_inRange_, - anObject.ref.pointer, - inRange, - ); - } - - /// removeObjectIdenticalTo: - void removeObjectIdenticalTo(objc.ObjCObjectBase anObject) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectIdenticalTo_, - anObject.ref.pointer, - ); - } - - /// removeObjectIdenticalTo:inRange: - void removeObjectIdenticalTo$1( - objc.ObjCObjectBase anObject, { - required NSRange inRange, - }) { - _objc_msgSend_1oteutl( - this.ref.pointer, - _sel_removeObjectIdenticalTo_inRange_, - anObject.ref.pointer, - inRange, - ); - } - - /// removeObjectsAtIndexes: - void removeObjectsAtIndexes(NSIndexSet indexes) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectsAtIndexes_, - indexes.ref.pointer, - ); - } - - /// removeObjectsInArray: - void removeObjectsInArray(NSArray otherArray) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectsInArray_, - otherArray.ref.pointer, - ); - } - - /// removeObjectsInRange: - void removeObjectsInRange(NSRange range) { - _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeObjectsInRange_, range); - } - - /// replaceObjectsAtIndexes:withObjects: - void replaceObjectsAtIndexes( - NSIndexSet indexes, { - required NSArray withObjects, - }) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_replaceObjectsAtIndexes_withObjects_, - indexes.ref.pointer, - withObjects.ref.pointer, - ); - } - - /// replaceObjectsInRange:withObjectsFromArray: - void replaceObjectsInRange( - NSRange range, { - required NSArray withObjectsFromArray, - }) { - _objc_msgSend_1tv4uax( - this.ref.pointer, - _sel_replaceObjectsInRange_withObjectsFromArray_, - range, - withObjectsFromArray.ref.pointer, - ); - } - - /// replaceObjectsInRange:withObjectsFromArray:range: - void replaceObjectsInRange$1( - NSRange range, { - required NSArray withObjectsFromArray, - required NSRange range$1, - }) { - _objc_msgSend_15bolr3( - this.ref.pointer, - _sel_replaceObjectsInRange_withObjectsFromArray_range_, - range, - withObjectsFromArray.ref.pointer, - range$1, - ); - } - - /// setArray: - void setArray(NSArray otherArray) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setArray_, - otherArray.ref.pointer, - ); - } - - /// setObject:atIndexedSubscript: - void setObject(objc.ObjCObjectBase obj, {required int atIndexedSubscript}) { - objc.checkOsVersionInternal( - 'NSMutableArray.setObject:atIndexedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_setObject_atIndexedSubscript_, - obj.ref.pointer, - atIndexedSubscript, - ); - } - - /// sortUsingComparator: - void sortUsingComparator( - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - cmptr, - ) { - objc.checkOsVersionInternal( - 'NSMutableArray.sortUsingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_sortUsingComparator_, - cmptr.ref.pointer, - ); - } - - /// sortUsingFunction:context: - void sortUsingFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - > - compare, { - required ffi.Pointer context, - }) { - _objc_msgSend_1bvics1( - this.ref.pointer, - _sel_sortUsingFunction_context_, - compare, - context, - ); - } - - /// sortUsingSelector: - void sortUsingSelector(ffi.Pointer comparator) { - _objc_msgSend_1d9e4oe( - this.ref.pointer, - _sel_sortUsingSelector_, - comparator, - ); - } - - /// sortWithOptions:usingComparator: - void sortWithOptions( - NSSortOptions opts, { - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSMutableArray.sortWithOptions:usingComparator:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_jjgvjt( - this.ref.pointer, - _sel_sortWithOptions_usingComparator_, - opts.value, - usingComparator.ref.pointer, - ); - } -} - -/// NSExtendedMutableData -extension NSExtendedMutableData on NSMutableData { - /// appendBytes:length: - void appendBytes(ffi.Pointer bytes, {required int length}) { - _objc_msgSend_zuf90e( - this.ref.pointer, - _sel_appendBytes_length_, - bytes, - length, - ); - } - - /// appendData: - void appendData(NSData other) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_appendData_, other.ref.pointer); - } - - /// increaseLengthBy: - void increaseLengthBy(int extraLength) { - _objc_msgSend_1i9r4xy( - this.ref.pointer, - _sel_increaseLengthBy_, - extraLength, - ); - } - - /// replaceBytesInRange:withBytes: - void replaceBytesInRange( - NSRange range, { - required ffi.Pointer withBytes, - }) { - _objc_msgSend_eh32gn( - this.ref.pointer, - _sel_replaceBytesInRange_withBytes_, - range, - withBytes, - ); - } - - /// replaceBytesInRange:withBytes:length: - void replaceBytesInRange$1( - NSRange range, { - required ffi.Pointer withBytes, - required int length, - }) { - _objc_msgSend_c0vg4w( - this.ref.pointer, - _sel_replaceBytesInRange_withBytes_length_, - range, - withBytes, - length, - ); - } - - /// resetBytesInRange: - void resetBytesInRange(NSRange range) { - _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_resetBytesInRange_, range); - } - - /// setData: - void setData(NSData data) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setData_, data.ref.pointer); - } -} - -/// NSExtendedMutableDictionary -extension NSExtendedMutableDictionary on NSMutableDictionary { - /// addEntriesFromDictionary: - void addEntriesFromDictionary(NSDictionary otherDictionary) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addEntriesFromDictionary_, - otherDictionary.ref.pointer, - ); - } - - /// removeAllObjects - void removeAllObjects() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); - } - - /// removeObjectsForKeys: - void removeObjectsForKeys(NSArray keyArray) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectsForKeys_, - keyArray.ref.pointer, - ); - } - - /// setDictionary: - void setDictionary(NSDictionary otherDictionary) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setDictionary_, - otherDictionary.ref.pointer, - ); - } - - /// setObject:forKeyedSubscript: - void setObject( - objc.ObjCObjectBase? obj, { - required NSCopying forKeyedSubscript, - }) { - objc.checkOsVersionInternal( - 'NSMutableDictionary.setObject:forKeyedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_setObject_forKeyedSubscript_, - obj?.ref.pointer ?? ffi.nullptr, - forKeyedSubscript.ref.pointer, - ); - } -} - -/// NSExtendedMutableOrderedSet -extension NSExtendedMutableOrderedSet on NSMutableOrderedSet { - /// addObject: - void addObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.addObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addObject_, object.ref.pointer); - } - - /// addObjects:count: - void addObjects( - ffi.Pointer> objects, { - required int count, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.addObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_gcjqkl( - this.ref.pointer, - _sel_addObjects_count_, - objects, - count, - ); - } - - /// addObjectsFromArray: - void addObjectsFromArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.addObjectsFromArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addObjectsFromArray_, - array.ref.pointer, - ); - } - - /// exchangeObjectAtIndex:withObjectAtIndex: - void exchangeObjectAtIndex(int idx1, {required int withObjectAtIndex}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.exchangeObjectAtIndex:withObjectAtIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_bfp043( - this.ref.pointer, - _sel_exchangeObjectAtIndex_withObjectAtIndex_, - idx1, - withObjectAtIndex, - ); - } - - /// insertObjects:atIndexes: - void insertObjects(NSArray objects, {required NSIndexSet atIndexes}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.insertObjects:atIndexes:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_insertObjects_atIndexes_, - objects.ref.pointer, - atIndexes.ref.pointer, - ); - } - - /// intersectOrderedSet: - void intersectOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.intersectOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_intersectOrderedSet_, - other.ref.pointer, - ); - } - - /// intersectSet: - void intersectSet(NSSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.intersectSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_intersectSet_, - other.ref.pointer, - ); - } - - /// minusOrderedSet: - void minusOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.minusOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_minusOrderedSet_, - other.ref.pointer, - ); - } - - /// minusSet: - void minusSet(NSSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.minusSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_minusSet_, other.ref.pointer); - } - - /// moveObjectsAtIndexes:toIndex: - void moveObjectsAtIndexes(NSIndexSet indexes, {required int toIndex}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.moveObjectsAtIndexes:toIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_moveObjectsAtIndexes_toIndex_, - indexes.ref.pointer, - toIndex, - ); - } - - /// removeAllObjects - void removeAllObjects() { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeAllObjects', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); - } - - /// removeObject: - void removeObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObject_, - object.ref.pointer, - ); - } - - /// removeObjectsAtIndexes: - void removeObjectsAtIndexes(NSIndexSet indexes) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeObjectsAtIndexes:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectsAtIndexes_, - indexes.ref.pointer, - ); - } - - /// removeObjectsInArray: - void removeObjectsInArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeObjectsInArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectsInArray_, - array.ref.pointer, - ); - } - - /// removeObjectsInRange: - void removeObjectsInRange(NSRange range) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeObjectsInRange:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeObjectsInRange_, range); - } - - /// replaceObjectsAtIndexes:withObjects: - void replaceObjectsAtIndexes( - NSIndexSet indexes, { - required NSArray withObjects, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.replaceObjectsAtIndexes:withObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_replaceObjectsAtIndexes_withObjects_, - indexes.ref.pointer, - withObjects.ref.pointer, - ); - } - - /// replaceObjectsInRange:withObjects:count: - void replaceObjectsInRange( - NSRange range, { - required ffi.Pointer> withObjects, - required int count, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.replaceObjectsInRange:withObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_122v0cv( - this.ref.pointer, - _sel_replaceObjectsInRange_withObjects_count_, - range, - withObjects, - count, - ); - } - - /// setObject:atIndex: - void setObject(objc.ObjCObjectBase obj, {required int atIndex}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.setObject:atIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_setObject_atIndex_, - obj.ref.pointer, - atIndex, - ); - } - - /// setObject:atIndexedSubscript: - void setObject$1(objc.ObjCObjectBase obj, {required int atIndexedSubscript}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.setObject:atIndexedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_setObject_atIndexedSubscript_, - obj.ref.pointer, - atIndexedSubscript, - ); - } - - /// sortRange:options:usingComparator: - void sortRange( - NSRange range, { - required NSSortOptions options, - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.sortRange:options:usingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_arew0j( - this.ref.pointer, - _sel_sortRange_options_usingComparator_, - range, - options.value, - usingComparator.ref.pointer, - ); - } - - /// sortUsingComparator: - void sortUsingComparator( - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - cmptr, - ) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.sortUsingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_sortUsingComparator_, - cmptr.ref.pointer, - ); - } - - /// sortWithOptions:usingComparator: - void sortWithOptions( - NSSortOptions opts, { - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.sortWithOptions:usingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_jjgvjt( - this.ref.pointer, - _sel_sortWithOptions_usingComparator_, - opts.value, - usingComparator.ref.pointer, - ); - } - - /// unionOrderedSet: - void unionOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.unionOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_unionOrderedSet_, - other.ref.pointer, - ); - } - - /// unionSet: - void unionSet(NSSet other) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.unionSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_unionSet_, other.ref.pointer); - } -} - -/// NSExtendedMutableSet -extension NSExtendedMutableSet on NSMutableSet { - /// addObjectsFromArray: - void addObjectsFromArray(NSArray array) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addObjectsFromArray_, - array.ref.pointer, - ); - } - - /// intersectSet: - void intersectSet(NSSet otherSet) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_intersectSet_, - otherSet.ref.pointer, - ); - } - - /// minusSet: - void minusSet(NSSet otherSet) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_minusSet_, - otherSet.ref.pointer, - ); - } - - /// removeAllObjects - void removeAllObjects() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); - } - - /// setSet: - void setSet(NSSet otherSet) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setSet_, otherSet.ref.pointer); - } - - /// unionSet: - void unionSet(NSSet otherSet) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_unionSet_, - otherSet.ref.pointer, - ); - } -} - -/// NSExtendedOrderedSet -extension NSExtendedOrderedSet on NSOrderedSet { - /// array - NSArray get array { - objc.checkOsVersionInternal( - 'NSOrderedSet.array', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_array); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// containsObject: - bool containsObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSOrderedSet.containsObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_containsObject_, - object.ref.pointer, - ); - } - - /// description - NSString get description { - objc.checkOsVersionInternal( - 'NSOrderedSet.description', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - objc.checkOsVersionInternal( - 'NSOrderedSet.descriptionWithLocale:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale:indent: - NSString descriptionWithLocale$1( - objc.ObjCObjectBase? locale, { - required int indent, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.descriptionWithLocale:indent:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1k4kd9s( - this.ref.pointer, - _sel_descriptionWithLocale_indent_, - locale?.ref.pointer ?? ffi.nullptr, - indent, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// enumerateObjectsAtIndexes:options:usingBlock: - void enumerateObjectsAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.enumerateObjectsAtIndexes:options:usingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_a3wp08( - this.ref.pointer, - _sel_enumerateObjectsAtIndexes_options_usingBlock_, - s.ref.pointer, - options.value, - usingBlock.ref.pointer, - ); - } - - /// enumerateObjectsUsingBlock: - void enumerateObjectsUsingBlock( - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSOrderedSet.enumerateObjectsUsingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateObjectsUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateObjectsWithOptions:usingBlock: - void enumerateObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.enumerateObjectsWithOptions:usingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateObjectsWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// firstObject - objc.ObjCObjectBase? get firstObject { - objc.checkOsVersionInternal( - 'NSOrderedSet.firstObject', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_firstObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// getObjects:range: - void getObjects( - ffi.Pointer> objects, { - required NSRange range, - }) { - _objc_msgSend_o16d3k( - this.ref.pointer, - _sel_getObjects_range_, - objects, - range, - ); - } - - /// indexOfObject:inSortedRange:options:usingComparator: - int indexOfObject( - objc.ObjCObjectBase object, { - required NSRange inSortedRange, - required NSBinarySearchingOptions options, - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexOfObject:inSortedRange:options:usingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_kshx9d( - this.ref.pointer, - _sel_indexOfObject_inSortedRange_options_usingComparator_, - object.ref.pointer, - inSortedRange, - options.value, - usingComparator.ref.pointer, - ); - } - - /// indexOfObjectAtIndexes:options:passingTest: - int indexOfObjectAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexOfObjectAtIndexes:options:passingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_k1x6mt( - this.ref.pointer, - _sel_indexOfObjectAtIndexes_options_passingTest_, - s.ref.pointer, - options.value, - passingTest.ref.pointer, - ); - } - - /// indexOfObjectPassingTest: - int indexOfObjectPassingTest( - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexOfObjectPassingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_10mlopr( - this.ref.pointer, - _sel_indexOfObjectPassingTest_, - predicate.ref.pointer, - ); - } - - /// indexOfObjectWithOptions:passingTest: - int indexOfObjectWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexOfObjectWithOptions:passingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_1698hqz( - this.ref.pointer, - _sel_indexOfObjectWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - } - - /// indexesOfObjectsAtIndexes:options:passingTest: - NSIndexSet indexesOfObjectsAtIndexes( - NSIndexSet s, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexesOfObjectsAtIndexes:options:passingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1i9v144( - this.ref.pointer, - _sel_indexesOfObjectsAtIndexes_options_passingTest_, - s.ref.pointer, - options.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesOfObjectsPassingTest: - NSIndexSet indexesOfObjectsPassingTest( - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexesOfObjectsPassingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_indexesOfObjectsPassingTest_, - predicate.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesOfObjectsWithOptions:passingTest: - NSIndexSet indexesOfObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexesOfObjectsWithOptions:passingTest:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_13x5boi( - this.ref.pointer, - _sel_indexesOfObjectsWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// intersectsOrderedSet: - bool intersectsOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSOrderedSet.intersectsOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_intersectsOrderedSet_, - other.ref.pointer, - ); - } - - /// intersectsSet: - bool intersectsSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.intersectsSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_intersectsSet_, - set$.ref.pointer, - ); - } - - /// isEqualToOrderedSet: - bool isEqualToOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSOrderedSet.isEqualToOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToOrderedSet_, - other.ref.pointer, - ); - } - - /// isSubsetOfOrderedSet: - bool isSubsetOfOrderedSet(NSOrderedSet other) { - objc.checkOsVersionInternal( - 'NSOrderedSet.isSubsetOfOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isSubsetOfOrderedSet_, - other.ref.pointer, - ); - } - - /// isSubsetOfSet: - bool isSubsetOfSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.isSubsetOfSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isSubsetOfSet_, - set$.ref.pointer, - ); - } - - /// lastObject - objc.ObjCObjectBase? get lastObject { - objc.checkOsVersionInternal( - 'NSOrderedSet.lastObject', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lastObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// objectAtIndexedSubscript: - objc.ObjCObjectBase objectAtIndexedSubscript(int idx) { - objc.checkOsVersionInternal( - 'NSOrderedSet.objectAtIndexedSubscript:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_objectAtIndexedSubscript_, - idx, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// objectEnumerator - NSEnumerator objectEnumerator() { - objc.checkOsVersionInternal( - 'NSOrderedSet.objectEnumerator', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// objectsAtIndexes: - NSArray objectsAtIndexes(NSIndexSet indexes) { - objc.checkOsVersionInternal( - 'NSOrderedSet.objectsAtIndexes:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_objectsAtIndexes_, - indexes.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// reverseObjectEnumerator - NSEnumerator reverseObjectEnumerator() { - objc.checkOsVersionInternal( - 'NSOrderedSet.reverseObjectEnumerator', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_reverseObjectEnumerator, - ); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// reversedOrderedSet - NSOrderedSet get reversedOrderedSet { - objc.checkOsVersionInternal( - 'NSOrderedSet.reversedOrderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_reversedOrderedSet, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// set - NSSet get set$ { - objc.checkOsVersionInternal( - 'NSOrderedSet.set', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_set); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayUsingComparator: - NSArray sortedArrayUsingComparator( - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - cmptr, - ) { - objc.checkOsVersionInternal( - 'NSOrderedSet.sortedArrayUsingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_sortedArrayUsingComparator_, - cmptr.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// sortedArrayWithOptions:usingComparator: - NSArray sortedArrayWithOptions( - NSSortOptions opts, { - required objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - usingComparator, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.sortedArrayWithOptions:usingComparator:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1x5ew3h( - this.ref.pointer, - _sel_sortedArrayWithOptions_usingComparator_, - opts.value, - usingComparator.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } -} - -/// NSExtendedSet -extension NSExtendedSet on NSSet { - /// allObjects - NSArray get allObjects { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allObjects); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// anyObject - objc.ObjCObjectBase? anyObject() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_anyObject); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// containsObject: - bool containsObject(objc.ObjCObjectBase anObject) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_containsObject_, - anObject.ref.pointer, - ); - } - - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// enumerateObjectsUsingBlock: - void enumerateObjectsUsingBlock( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSSet.enumerateObjectsUsingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateObjectsUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateObjectsWithOptions:usingBlock: - void enumerateObjectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSSet.enumerateObjectsWithOptions:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateObjectsWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// intersectsSet: - bool intersectsSet(NSSet otherSet) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_intersectsSet_, - otherSet.ref.pointer, - ); - } - - /// isEqualToSet: - bool isEqualToSet(NSSet otherSet) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToSet_, - otherSet.ref.pointer, - ); - } - - /// isSubsetOfSet: - bool isSubsetOfSet(NSSet otherSet) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isSubsetOfSet_, - otherSet.ref.pointer, - ); - } - - /// makeObjectsPerformSelector: - void makeObjectsPerformSelector(ffi.Pointer aSelector) { - _objc_msgSend_1d9e4oe( - this.ref.pointer, - _sel_makeObjectsPerformSelector_, - aSelector, - ); - } - - /// makeObjectsPerformSelector:withObject: - void makeObjectsPerformSelector$1( - ffi.Pointer aSelector, { - objc.ObjCObjectBase? withObject, - }) { - _objc_msgSend_1qv0eq4( - this.ref.pointer, - _sel_makeObjectsPerformSelector_withObject_, - aSelector, - withObject?.ref.pointer ?? ffi.nullptr, - ); - } - - /// objectsPassingTest: - NSSet objectsPassingTest( - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - predicate, - ) { - objc.checkOsVersionInternal( - 'NSSet.objectsPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_objectsPassingTest_, - predicate.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// objectsWithOptions:passingTest: - NSSet objectsWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSSet.objectsWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_13x5boi( - this.ref.pointer, - _sel_objectsWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setByAddingObject: - NSSet setByAddingObject(objc.ObjCObjectBase anObject) { - objc.checkOsVersionInternal( - 'NSSet.setByAddingObject:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_setByAddingObject_, - anObject.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setByAddingObjectsFromArray: - NSSet setByAddingObjectsFromArray(NSArray other) { - objc.checkOsVersionInternal( - 'NSSet.setByAddingObjectsFromArray:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_setByAddingObjectsFromArray_, - other.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setByAddingObjectsFromSet: - NSSet setByAddingObjectsFromSet(NSSet other) { - objc.checkOsVersionInternal( - 'NSSet.setByAddingObjectsFromSet:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_setByAddingObjectsFromSet_, - other.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } -} - -/// NSFastEnumeration -interface class NSFastEnumeration extends objc.ObjCProtocolBase { - NSFastEnumeration._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSFastEnumeration] that points to the same underlying object as [other]. - NSFastEnumeration.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSFastEnumeration] that wraps the given raw object pointer. - NSFastEnumeration.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSFastEnumeration]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSFastEnumeration, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSFastEnumeration.cast()); - - /// Builds an object that implements the NSFastEnumeration protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSFastEnumeration implement({ - required int Function( - ffi.Pointer, - ffi.Pointer>, - int, - ) - countByEnumeratingWithState_objects_count_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSFastEnumeration'); - NSFastEnumeration.countByEnumeratingWithState_objects_count_.implement( - builder, - countByEnumeratingWithState_objects_count_, - ); - builder.addProtocol($protocol); - return NSFastEnumeration.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSFastEnumeration protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required int Function( - ffi.Pointer, - ffi.Pointer>, - int, - ) - countByEnumeratingWithState_objects_count_, - bool $keepIsolateAlive = true, - }) { - NSFastEnumeration.countByEnumeratingWithState_objects_count_.implement( - builder, - countByEnumeratingWithState_objects_count_, - ); - builder.addProtocol($protocol); - } - - /// countByEnumeratingWithState:objects:count: - static final countByEnumeratingWithState_objects_count_ = - objc.ObjCProtocolMethod< - int Function( - ffi.Pointer, - ffi.Pointer>, - int, - ) - >( - _protocol_NSFastEnumeration, - _sel_countByEnumeratingWithState_objects_count_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_17ap02x) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSFastEnumeration, - _sel_countByEnumeratingWithState_objects_count_, - isRequired: true, - isInstanceMethod: true, - ), - ( - int Function( - ffi.Pointer, - ffi.Pointer>, - int, - ) - func, - ) => - ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, - ) => func(arg1, arg2, arg3), - ), - ); -} - -final class NSFastEnumerationState extends ffi.Struct { - @ffi.UnsignedLong() - external int state; - - external ffi.Pointer> itemsPtr; - - external ffi.Pointer mutationsPtr; - - @ffi.Array.multi([5]) - external ffi.Array extra; -} - -/// NSIndexSet -class NSIndexSet extends NSObject - implements NSCopying, NSMutableCopying, NSSecureCoding { - NSIndexSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSIndexSet] that points to the same underlying object as [other]. - NSIndexSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSIndexSet] that wraps the given raw object pointer. - NSIndexSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSIndexSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSIndexSet, - ); - } - - /// alloc - static NSIndexSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_alloc); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSIndexSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSIndexSet, - _sel_allocWithZone_, - zone, - ); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// indexSet - static NSIndexSet indexSet() { - final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_indexSet); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexSetWithIndex: - static NSIndexSet indexSetWithIndex(int value) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSIndexSet, - _sel_indexSetWithIndex_, - value, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexSetWithIndexesInRange: - static NSIndexSet indexSetWithIndexesInRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - _class_NSIndexSet, - _sel_indexSetWithIndexesInRange_, - range, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSIndexSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_new); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSIndexSet, _sel_supportsSecureCoding); - } - - /// containsIndex: - bool containsIndex(int value) { - return _objc_msgSend_6peh6o(this.ref.pointer, _sel_containsIndex_, value); - } - - /// containsIndexes: - bool containsIndexes(NSIndexSet indexSet$1) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_containsIndexes_, - indexSet$1.ref.pointer, - ); - } - - /// containsIndexesInRange: - bool containsIndexesInRange(NSRange range) { - return _objc_msgSend_p4nurx( - this.ref.pointer, - _sel_containsIndexesInRange_, - range, - ); - } - - /// count - int get count { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); - } - - /// countOfIndexesInRange: - int countOfIndexesInRange(NSRange range) { - objc.checkOsVersionInternal( - 'NSIndexSet.countOfIndexesInRange:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_qm9f5w( - this.ref.pointer, - _sel_countOfIndexesInRange_, - range, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// enumerateIndexesInRange:options:usingBlock: - void enumerateIndexesInRange( - NSRange range, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateIndexesInRange:options:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_177cajs( - this.ref.pointer, - _sel_enumerateIndexesInRange_options_usingBlock_, - range, - options.value, - usingBlock.ref.pointer, - ); - } - - /// enumerateIndexesUsingBlock: - void enumerateIndexesUsingBlock( - objc.ObjCBlock)> - block, - ) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateIndexesUsingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateIndexesUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateIndexesWithOptions:usingBlock: - void enumerateIndexesWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateIndexesWithOptions:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateIndexesWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// enumerateRangesInRange:options:usingBlock: - void enumerateRangesInRange( - NSRange range, { - required NSEnumerationOptions options, - required objc.ObjCBlock)> - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateRangesInRange:options:usingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_177cajs( - this.ref.pointer, - _sel_enumerateRangesInRange_options_usingBlock_, - range, - options.value, - usingBlock.ref.pointer, - ); - } - - /// enumerateRangesUsingBlock: - void enumerateRangesUsingBlock( - objc.ObjCBlock)> block, - ) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateRangesUsingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateRangesUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateRangesWithOptions:usingBlock: - void enumerateRangesWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock)> - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.enumerateRangesWithOptions:usingBlock:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_yx8yc6( - this.ref.pointer, - _sel_enumerateRangesWithOptions_usingBlock_, - opts.value, - usingBlock.ref.pointer, - ); - } - - /// firstIndex - int get firstIndex { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_firstIndex); - } - - /// getIndexes:maxCount:inIndexRange: - int getIndexes( - ffi.Pointer indexBuffer, { - required int maxCount, - required ffi.Pointer inIndexRange, - }) { - return _objc_msgSend_89xgla( - this.ref.pointer, - _sel_getIndexes_maxCount_inIndexRange_, - indexBuffer, - maxCount, - inIndexRange, - ); - } - - /// indexGreaterThanIndex: - int indexGreaterThanIndex(int value) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_indexGreaterThanIndex_, - value, - ); - } - - /// indexGreaterThanOrEqualToIndex: - int indexGreaterThanOrEqualToIndex(int value) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_indexGreaterThanOrEqualToIndex_, - value, - ); - } - - /// indexInRange:options:passingTest: - int indexInRange( - NSRange range, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexInRange:options:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_6jmuyz( - this.ref.pointer, - _sel_indexInRange_options_passingTest_, - range, - options.value, - passingTest.ref.pointer, - ); - } - - /// indexLessThanIndex: - int indexLessThanIndex(int value) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_indexLessThanIndex_, - value, - ); - } - - /// indexLessThanOrEqualToIndex: - int indexLessThanOrEqualToIndex(int value) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_indexLessThanOrEqualToIndex_, - value, - ); - } - - /// indexPassingTest: - int indexPassingTest( - objc.ObjCBlock)> - predicate, - ) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_10mlopr( - this.ref.pointer, - _sel_indexPassingTest_, - predicate.ref.pointer, - ); - } - - /// indexWithOptions:passingTest: - int indexWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_1698hqz( - this.ref.pointer, - _sel_indexWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - } - - /// indexesInRange:options:passingTest: - NSIndexSet indexesInRange( - NSRange range, { - required NSEnumerationOptions options, - required objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexesInRange:options:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1q30cs4( - this.ref.pointer, - _sel_indexesInRange_options_passingTest_, - range, - options.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesPassingTest: - NSIndexSet indexesPassingTest( - objc.ObjCBlock)> - predicate, - ) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexesPassingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_indexesPassingTest_, - predicate.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexesWithOptions:passingTest: - NSIndexSet indexesWithOptions( - NSEnumerationOptions opts, { - required objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - passingTest, - }) { - objc.checkOsVersionInternal( - 'NSIndexSet.indexesWithOptions:passingTest:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_13x5boi( - this.ref.pointer, - _sel_indexesWithOptions_passingTest_, - opts.value, - passingTest.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSIndexSet init() { - objc.checkOsVersionInternal( - 'NSIndexSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSIndexSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithIndex: - NSIndexSet initWithIndex(int value) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithIndex_, - value, - ); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithIndexSet: - NSIndexSet initWithIndexSet(NSIndexSet indexSet$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithIndexSet_, - indexSet$1.ref.pointer, - ); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithIndexesInRange: - NSIndexSet initWithIndexesInRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - this.ref.retainAndReturnPointer(), - _sel_initWithIndexesInRange_, - range, - ); - return NSIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// intersectsIndexesInRange: - bool intersectsIndexesInRange(NSRange range) { - return _objc_msgSend_p4nurx( - this.ref.pointer, - _sel_intersectsIndexesInRange_, - range, - ); - } - - /// isEqualToIndexSet: - bool isEqualToIndexSet(NSIndexSet indexSet$1) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToIndexSet_, - indexSet$1.ref.pointer, - ); - } - - /// lastIndex - int get lastIndex { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_lastIndex); - } - - /// Returns a new instance of NSIndexSet constructed with the default `new` method. - factory NSIndexSet() => new$(); -} - -/// NSInputStream -class NSInputStream extends NSStream { - NSInputStream._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSInputStream] that points to the same underlying object as [other]. - NSInputStream.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSInputStream] that wraps the given raw object pointer. - NSInputStream.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSInputStream]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSInputStream, - ); - } - - /// inputStreamWithData: - static NSInputStream? inputStreamWithData(NSData data) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithData_, - data.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSInputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// inputStreamWithFileAtPath: - static NSInputStream? inputStreamWithFileAtPath(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithFileAtPath_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSInputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// inputStreamWithURL: - static NSInputStream? inputStreamWithURL(NSURL url) { - objc.checkOsVersionInternal( - 'NSInputStream.inputStreamWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSInputStream, - _sel_inputStreamWithURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSInputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// getBuffer:length: - bool getBuffer( - ffi.Pointer> buffer, { - required ffi.Pointer length, - }) { - return _objc_msgSend_19lrthf( - this.ref.pointer, - _sel_getBuffer_length_, - buffer, - length, - ); - } - - /// hasBytesAvailable - bool get hasBytesAvailable { - return _objc_msgSend_91o635(this.ref.pointer, _sel_hasBytesAvailable); - } - - /// initWithData: - NSInputStream initWithData(NSData data) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithData_, - data.ref.pointer, - ); - return NSInputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFileAtPath: - NSInputStream? initWithFileAtPath(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithFileAtPath_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSInputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithURL: - NSInputStream? initWithURL(NSURL url) { - objc.checkOsVersionInternal( - 'NSInputStream.initWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSInputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// read:maxLength: - int read(ffi.Pointer buffer, {required int maxLength}) { - return _objc_msgSend_11e9f5x( - this.ref.pointer, - _sel_read_maxLength_, - buffer, - maxLength, - ); - } -} - -/// NSInvocation -class NSInvocation extends objc.ObjCObjectBase { - NSInvocation._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSInvocation] that points to the same underlying object as [other]. - NSInvocation.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSInvocation] that wraps the given raw object pointer. - NSInvocation.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSInvocation]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSInvocation, - ); - } -} - -/// NSItemProvider -class NSItemProvider extends NSObject implements NSCopying { - NSItemProvider._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSItemProvider', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - } - - /// Constructs a [NSItemProvider] that points to the same underlying object as [other]. - NSItemProvider.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSItemProvider] that wraps the given raw object pointer. - NSItemProvider.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSItemProvider]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSItemProvider, - ); - } - - /// alloc - static NSItemProvider alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSItemProvider, _sel_alloc); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSItemProvider allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSItemProvider, - _sel_allocWithZone_, - zone, - ); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSItemProvider new$() { - final _ret = _objc_msgSend_151sglz(_class_NSItemProvider, _sel_new); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// autorelease - NSItemProvider autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSItemProvider.castFromPointer(_ret, retain: true, release: true); - } - - /// canLoadObjectOfClass: - bool canLoadObjectOfClass(NSItemProviderReading aClass) { - objc.checkOsVersionInternal( - 'NSItemProvider.canLoadObjectOfClass:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_canLoadObjectOfClass_, - aClass.ref.pointer, - ); - } - - /// hasItemConformingToTypeIdentifier: - bool hasItemConformingToTypeIdentifier(NSString typeIdentifier) { - objc.checkOsVersionInternal( - 'NSItemProvider.hasItemConformingToTypeIdentifier:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_hasItemConformingToTypeIdentifier_, - typeIdentifier.ref.pointer, - ); - } - - /// hasRepresentationConformingToTypeIdentifier:fileOptions: - bool hasRepresentationConformingToTypeIdentifier( - NSString typeIdentifier, { - required NSItemProviderFileOptions fileOptions, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.hasRepresentationConformingToTypeIdentifier:fileOptions:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - return _objc_msgSend_1wdb8ji( - this.ref.pointer, - _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_, - typeIdentifier.ref.pointer, - fileOptions.value, - ); - } - - /// init - NSItemProvider init() { - objc.checkOsVersionInternal( - 'NSItemProvider.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - NSItemProvider? initWithContentsOfURL(NSURL fileURL) { - objc.checkOsVersionInternal( - 'NSItemProvider.initWithContentsOfURL:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - fileURL.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithItem:typeIdentifier: - NSItemProvider initWithItem( - NSSecureCoding? item, { - NSString? typeIdentifier, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.initWithItem:typeIdentifier:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithItem_typeIdentifier_, - item?.ref.pointer ?? ffi.nullptr, - typeIdentifier?.ref.pointer ?? ffi.nullptr, - ); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObject: - NSItemProvider initWithObject(NSItemProviderWriting object) { - objc.checkOsVersionInternal( - 'NSItemProvider.initWithObject:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObject_, - object.ref.pointer, - ); - return NSItemProvider.castFromPointer(_ret, retain: false, release: true); - } - - /// loadDataRepresentationForTypeIdentifier:completionHandler: - NSProgress loadDataRepresentationForTypeIdentifier( - NSString typeIdentifier, { - required objc.ObjCBlock - completionHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadDataRepresentationForTypeIdentifier:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_loadDataRepresentationForTypeIdentifier_completionHandler_, - typeIdentifier.ref.pointer, - completionHandler.ref.pointer, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// loadFileRepresentationForTypeIdentifier:completionHandler: - NSProgress loadFileRepresentationForTypeIdentifier( - NSString typeIdentifier, { - required objc.ObjCBlock - completionHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadFileRepresentationForTypeIdentifier:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_loadFileRepresentationForTypeIdentifier_completionHandler_, - typeIdentifier.ref.pointer, - completionHandler.ref.pointer, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// loadInPlaceFileRepresentationForTypeIdentifier:completionHandler: - NSProgress loadInPlaceFileRepresentationForTypeIdentifier( - NSString typeIdentifier, { - required objc.ObjCBlock - completionHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_, - typeIdentifier.ref.pointer, - completionHandler.ref.pointer, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// loadItemForTypeIdentifier:options:completionHandler: - void loadItemForTypeIdentifier( - NSString typeIdentifier, { - NSDictionary? options, - objc.ObjCBlock?, NSError)>? - completionHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadItemForTypeIdentifier:options:completionHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_18qun1e( - this.ref.pointer, - _sel_loadItemForTypeIdentifier_options_completionHandler_, - typeIdentifier.ref.pointer, - options?.ref.pointer ?? ffi.nullptr, - completionHandler?.ref.pointer ?? ffi.nullptr, - ); - } - - /// loadObjectOfClass:completionHandler: - NSProgress loadObjectOfClass( - NSItemProviderReading aClass, { - required objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - completionHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.loadObjectOfClass:completionHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_r0bo0s( - this.ref.pointer, - _sel_loadObjectOfClass_completionHandler_, - aClass.ref.pointer, - completionHandler.ref.pointer, - ); - return NSProgress.castFromPointer(_ret, retain: true, release: true); - } - - /// registerDataRepresentationForTypeIdentifier:visibility:loadHandler: - void registerDataRepresentationForTypeIdentifier( - NSString typeIdentifier, { - required NSItemProviderRepresentationVisibility visibility, - required objc.ObjCBlock< - NSProgress? Function(objc.ObjCBlock) - > - loadHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.registerDataRepresentationForTypeIdentifier:visibility:loadHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_1pl40xc( - this.ref.pointer, - _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_, - typeIdentifier.ref.pointer, - visibility.value, - loadHandler.ref.pointer, - ); - } - - /// registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler: - void registerFileRepresentationForTypeIdentifier( - NSString typeIdentifier, { - required NSItemProviderFileOptions fileOptions, - required NSItemProviderRepresentationVisibility visibility, - required objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > - loadHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_t7arir( - this.ref.pointer, - _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_, - typeIdentifier.ref.pointer, - fileOptions.value, - visibility.value, - loadHandler.ref.pointer, - ); - } - - /// registerItemForTypeIdentifier:loadHandler: - void registerItemForTypeIdentifier( - NSString typeIdentifier, { - required objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - > - loadHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.registerItemForTypeIdentifier:loadHandler:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - _objc_msgSend_o762yo( - this.ref.pointer, - _sel_registerItemForTypeIdentifier_loadHandler_, - typeIdentifier.ref.pointer, - loadHandler.ref.pointer, - ); - } - - /// registerObject:visibility: - void registerObject( - NSItemProviderWriting object, { - required NSItemProviderRepresentationVisibility visibility, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.registerObject:visibility:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_1k745tv( - this.ref.pointer, - _sel_registerObject_visibility_, - object.ref.pointer, - visibility.value, - ); - } - - /// registerObjectOfClass:visibility:loadHandler: - void registerObjectOfClass( - NSItemProviderWriting aClass, { - required NSItemProviderRepresentationVisibility visibility, - required objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - > - loadHandler, - }) { - objc.checkOsVersionInternal( - 'NSItemProvider.registerObjectOfClass:visibility:loadHandler:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_1pl40xc( - this.ref.pointer, - _sel_registerObjectOfClass_visibility_loadHandler_, - aClass.ref.pointer, - visibility.value, - loadHandler.ref.pointer, - ); - } - - /// registeredTypeIdentifiers - NSArray get registeredTypeIdentifiers { - objc.checkOsVersionInternal( - 'NSItemProvider.registeredTypeIdentifiers', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_registeredTypeIdentifiers, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// registeredTypeIdentifiersWithFileOptions: - NSArray registeredTypeIdentifiersWithFileOptions( - NSItemProviderFileOptions fileOptions, - ) { - objc.checkOsVersionInternal( - 'NSItemProvider.registeredTypeIdentifiersWithFileOptions:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_7g3u2y( - this.ref.pointer, - _sel_registeredTypeIdentifiersWithFileOptions_, - fileOptions.value, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// retain - NSItemProvider retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSItemProvider.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSItemProvider self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSItemProvider.castFromPointer(_ret, retain: true, release: true); - } - - /// setSuggestedName: - set suggestedName(NSString? value) { - objc.checkOsVersionInternal( - 'NSItemProvider.setSuggestedName:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 14, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setSuggestedName_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// suggestedName - NSString? get suggestedName { - objc.checkOsVersionInternal( - 'NSItemProvider.suggestedName', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 14, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_suggestedName); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSItemProvider constructed with the default `new` method. - factory NSItemProvider() => new$(); -} - -enum NSItemProviderFileOptions { - NSItemProviderFileOptionOpenInPlace(1); - - final int value; - const NSItemProviderFileOptions(this.value); - - static NSItemProviderFileOptions fromValue(int value) => switch (value) { - 1 => NSItemProviderFileOptionOpenInPlace, - _ => throw ArgumentError( - 'Unknown value for NSItemProviderFileOptions: $value', - ), - }; -} - -/// NSItemProviderReading -interface class NSItemProviderReading extends objc.ObjCProtocolBase - implements NSObjectProtocol { - NSItemProviderReading._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSItemProviderReading] that points to the same underlying object as [other]. - NSItemProviderReading.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSItemProviderReading] that wraps the given raw object pointer. - NSItemProviderReading.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSItemProviderReading]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSItemProviderReading, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSItemProviderReading.cast()); - - /// Builds an object that implements the NSItemProviderReading protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSItemProviderReading implement({bool $keepIsolateAlive = true}) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSItemProviderReading', - ); - - builder.addProtocol($protocol); - return NSItemProviderReading.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSItemProviderReading protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - bool $keepIsolateAlive = true, - }) { - builder.addProtocol($protocol); - } -} - -enum NSItemProviderRepresentationVisibility { - NSItemProviderRepresentationVisibilityAll(0), - NSItemProviderRepresentationVisibilityTeam(1), - NSItemProviderRepresentationVisibilityGroup(2), - NSItemProviderRepresentationVisibilityOwnProcess(3); - - final int value; - const NSItemProviderRepresentationVisibility(this.value); - - static NSItemProviderRepresentationVisibility fromValue(int value) => - switch (value) { - 0 => NSItemProviderRepresentationVisibilityAll, - 1 => NSItemProviderRepresentationVisibilityTeam, - 2 => NSItemProviderRepresentationVisibilityGroup, - 3 => NSItemProviderRepresentationVisibilityOwnProcess, - _ => throw ArgumentError( - 'Unknown value for NSItemProviderRepresentationVisibility: $value', - ), - }; -} - -/// NSItemProviderWriting -interface class NSItemProviderWriting extends objc.ObjCProtocolBase - implements NSObjectProtocol { - NSItemProviderWriting._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSItemProviderWriting] that points to the same underlying object as [other]. - NSItemProviderWriting.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSItemProviderWriting] that wraps the given raw object pointer. - NSItemProviderWriting.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSItemProviderWriting]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSItemProviderWriting, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSItemProviderWriting.cast()); - - /// Builds an object that implements the NSItemProviderWriting protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSItemProviderWriting implement({ - NSItemProviderRepresentationVisibility Function(NSString)? - itemProviderVisibilityForRepresentationWithTypeIdentifier_, - required NSProgress? Function( - NSString, - objc.ObjCBlock, - ) - loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - NSArray Function()? writableTypeIdentifiersForItemProvider, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder( - debugName: 'NSItemProviderWriting', - ); - NSItemProviderWriting - .itemProviderVisibilityForRepresentationWithTypeIdentifier_ - .implement( - builder, - itemProviderVisibilityForRepresentationWithTypeIdentifier_, - ); - NSItemProviderWriting - .loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ - .implement( - builder, - loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - ); - NSItemProviderWriting.writableTypeIdentifiersForItemProvider.implement( - builder, - writableTypeIdentifiersForItemProvider, - ); - builder.addProtocol($protocol); - return NSItemProviderWriting.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSItemProviderWriting protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - NSItemProviderRepresentationVisibility Function(NSString)? - itemProviderVisibilityForRepresentationWithTypeIdentifier_, - required NSProgress? Function( - NSString, - objc.ObjCBlock, - ) - loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - NSArray Function()? writableTypeIdentifiersForItemProvider, - bool $keepIsolateAlive = true, - }) { - NSItemProviderWriting - .itemProviderVisibilityForRepresentationWithTypeIdentifier_ - .implement( - builder, - itemProviderVisibilityForRepresentationWithTypeIdentifier_, - ); - NSItemProviderWriting - .loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ - .implement( - builder, - loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - ); - NSItemProviderWriting.writableTypeIdentifiersForItemProvider.implement( - builder, - writableTypeIdentifiersForItemProvider, - ); - builder.addProtocol($protocol); - } - - /// itemProviderVisibilityForRepresentationWithTypeIdentifier: - static final itemProviderVisibilityForRepresentationWithTypeIdentifier_ = - objc.ObjCProtocolMethod< - NSItemProviderRepresentationVisibility Function(NSString) - >( - _protocol_NSItemProviderWriting, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1ldqghh) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSItemProviderWriting, - _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, - isRequired: false, - isInstanceMethod: true, - ), - (NSItemProviderRepresentationVisibility Function(NSString) func) => - ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString.fromFunction( - (ffi.Pointer _, NSString arg1) => func(arg1), - ), - ); - - /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: - static final loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = - objc.ObjCProtocolMethod< - NSProgress? Function( - NSString, - objc.ObjCBlock, - ) - >( - _protocol_NSItemProviderWriting, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1q0i84) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSItemProviderWriting, - _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, - isRequired: true, - isInstanceMethod: true, - ), - ( - NSProgress? Function( - NSString, - objc.ObjCBlock, - ) - func, - ) => - ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError.fromFunction( - ( - ffi.Pointer _, - NSString arg1, - objc.ObjCBlock arg2, - ) => func(arg1, arg2), - ), - ); - - /// writableTypeIdentifiersForItemProvider - static final writableTypeIdentifiersForItemProvider = - objc.ObjCProtocolMethod( - _protocol_NSItemProviderWriting, - _sel_writableTypeIdentifiersForItemProvider, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSItemProviderWriting, - _sel_writableTypeIdentifiersForItemProvider, - isRequired: false, - isInstanceMethod: true, - ), - (NSArray Function() func) => ObjCBlock_NSArray_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); -} - -enum NSKeyValueChange { - NSKeyValueChangeSetting(1), - NSKeyValueChangeInsertion(2), - NSKeyValueChangeRemoval(3), - NSKeyValueChangeReplacement(4); - - final int value; - const NSKeyValueChange(this.value); - - static NSKeyValueChange fromValue(int value) => switch (value) { - 1 => NSKeyValueChangeSetting, - 2 => NSKeyValueChangeInsertion, - 3 => NSKeyValueChangeRemoval, - 4 => NSKeyValueChangeReplacement, - _ => throw ArgumentError('Unknown value for NSKeyValueChange: $value'), - }; -} - -enum NSKeyValueObservingOptions { - NSKeyValueObservingOptionNew(1), - NSKeyValueObservingOptionOld(2), - NSKeyValueObservingOptionInitial(4), - NSKeyValueObservingOptionPrior(8); - - final int value; - const NSKeyValueObservingOptions(this.value); - - static NSKeyValueObservingOptions fromValue(int value) => switch (value) { - 1 => NSKeyValueObservingOptionNew, - 2 => NSKeyValueObservingOptionOld, - 4 => NSKeyValueObservingOptionInitial, - 8 => NSKeyValueObservingOptionPrior, - _ => throw ArgumentError( - 'Unknown value for NSKeyValueObservingOptions: $value', - ), - }; -} - -enum NSKeyValueSetMutationKind { - NSKeyValueUnionSetMutation(1), - NSKeyValueMinusSetMutation(2), - NSKeyValueIntersectSetMutation(3), - NSKeyValueSetSetMutation(4); - - final int value; - const NSKeyValueSetMutationKind(this.value); - - static NSKeyValueSetMutationKind fromValue(int value) => switch (value) { - 1 => NSKeyValueUnionSetMutation, - 2 => NSKeyValueMinusSetMutation, - 3 => NSKeyValueIntersectSetMutation, - 4 => NSKeyValueSetSetMutation, - _ => throw ArgumentError( - 'Unknown value for NSKeyValueSetMutationKind: $value', - ), - }; -} - -/// NSLocale -class NSLocale extends objc.ObjCObjectBase { - NSLocale._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSLocale] that points to the same underlying object as [other]. - NSLocale.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSLocale] that wraps the given raw object pointer. - NSLocale.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSLocale]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSLocale, - ); - } -} - -/// NSMethodSignature -class NSMethodSignature extends NSObject { - NSMethodSignature._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMethodSignature] that points to the same underlying object as [other]. - NSMethodSignature.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMethodSignature] that wraps the given raw object pointer. - NSMethodSignature.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMethodSignature]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMethodSignature, - ); - } - - /// alloc - static NSMethodSignature alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_alloc); - return NSMethodSignature.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSMethodSignature allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMethodSignature, - _sel_allocWithZone_, - zone, - ); - return NSMethodSignature.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// new - static NSMethodSignature new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_new); - return NSMethodSignature.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// signatureWithObjCTypes: - static NSMethodSignature? signatureWithObjCTypes( - ffi.Pointer types, - ) { - final _ret = _objc_msgSend_56zxyn( - _class_NSMethodSignature, - _sel_signatureWithObjCTypes_, - types, - ); - return _ret.address == 0 - ? null - : NSMethodSignature.castFromPointer(_ret, retain: true, release: true); - } - - /// frameLength - int get frameLength { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_frameLength); - } - - /// getArgumentTypeAtIndex: - ffi.Pointer getArgumentTypeAtIndex(int idx) { - return _objc_msgSend_1jtxufi( - this.ref.pointer, - _sel_getArgumentTypeAtIndex_, - idx, - ); - } - - /// init - NSMethodSignature init() { - objc.checkOsVersionInternal( - 'NSMethodSignature.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMethodSignature.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// isOneway - bool isOneway() { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isOneway); - } - - /// methodReturnLength - int get methodReturnLength { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_methodReturnLength); - } - - /// methodReturnType - ffi.Pointer get methodReturnType { - return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_methodReturnType); - } - - /// numberOfArguments - int get numberOfArguments { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_numberOfArguments); - } - - /// Returns a new instance of NSMethodSignature constructed with the default `new` method. - factory NSMethodSignature() => new$(); -} - -/// NSMutableArray -class NSMutableArray extends NSArray - with collection.ListBase { - /// Creates a [NSMutableArray] of the given length with [fill] at each - /// position. - /// - /// The [length] must be a non-negative integer. - static NSMutableArray filled(int length, objc.ObjCObjectBase fill) { - final a = arrayWithCapacity(length); - for (var i = 0; i < length; ++i) a.add(fill); - return a; - } - - /// Creates a [NSMutableArray] from [elements]. - static NSMutableArray of(Iterable elements) => - arrayWithCapacity(elements.length)..addAll(elements); - - @override - set length(int newLength) { - var len = length; - RangeError.checkValueInInterval(newLength, 0, len); - for (; len > newLength; --len) removeLastObject(); - } - - @override - Iterator get iterator => _NSArrayIterator(this); - - @override - objc.ObjCObjectBase operator [](int index) => objectAtIndex(index); - - @override - void operator []=(int index, objc.ObjCObjectBase value) => - replaceObjectAtIndex(index, withObject: value); - - @override - void add(objc.ObjCObjectBase value) => addObject(value); - - NSMutableArray._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableArray] that points to the same underlying object as [other]. - NSMutableArray.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableArray] that wraps the given raw object pointer. - NSMutableArray.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableArray]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableArray, - ); - } - - /// alloc - static NSMutableArray alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_alloc); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSMutableArray allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableArray, - _sel_allocWithZone_, - zone, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// array - static NSMutableArray array() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_array); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithArray: - static NSMutableArray arrayWithArray(NSArray array$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, - _sel_arrayWithArray_, - array$1.ref.pointer, - ); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithCapacity: - static NSMutableArray arrayWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableArray, - _sel_arrayWithCapacity_, - numItems, - ); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObject: - static NSMutableArray arrayWithObject(objc.ObjCObjectBase anObject) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, - _sel_arrayWithObject_, - anObject.ref.pointer, - ); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObjects: - static NSMutableArray arrayWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableArray, - _sel_arrayWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// arrayWithObjects:count: - static NSMutableArray arrayWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - _class_NSMutableArray, - _sel_arrayWithObjects_count_, - objects, - count, - ); - return NSMutableArray.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSMutableArray new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_new); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableArray, - _sel_supportsSecureCoding, - ); - } - - /// addObject: - void addObject(objc.ObjCObjectBase anObject) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addObject_, - anObject.ref.pointer, - ); - } - - /// init - NSMutableArray init() { - objc.checkOsVersionInternal( - 'NSMutableArray.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray: - NSMutableArray initWithArray(NSArray array$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array$1.ref.pointer, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - NSMutableArray initWithArray$1(NSArray array$1, {required bool copyItems}) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - array$1.ref.pointer, - copyItems, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCapacity: - NSMutableArray initWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - numItems, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSMutableArray? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects: - NSMutableArray initWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:count: - NSMutableArray initWithObjects$1( - ffi.Pointer> objects, { - required int count$1, - }) { - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count$1, - ); - return NSMutableArray.castFromPointer(_ret, retain: false, release: true); - } - - /// insertObject:atIndex: - void insertObject(objc.ObjCObjectBase anObject, {required int atIndex}) { - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_insertObject_atIndex_, - anObject.ref.pointer, - atIndex, - ); - } - - /// removeLastObject - void removeLastObject() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeLastObject); - } - - /// removeObjectAtIndex: - void removeObjectAtIndex(int index) { - _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeObjectAtIndex_, index); - } - - /// replaceObjectAtIndex:withObject: - void replaceObjectAtIndex( - int index, { - required objc.ObjCObjectBase withObject, - }) { - _objc_msgSend_1gypgok( - this.ref.pointer, - _sel_replaceObjectAtIndex_withObject_, - index, - withObject.ref.pointer, - ); - } - - /// Returns a new instance of NSMutableArray constructed with the default `new` method. - factory NSMutableArray() => new$(); -} - -/// NSMutableCopying -interface class NSMutableCopying extends objc.ObjCProtocolBase { - NSMutableCopying._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableCopying] that points to the same underlying object as [other]. - NSMutableCopying.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableCopying] that wraps the given raw object pointer. - NSMutableCopying.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableCopying]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSMutableCopying, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSMutableCopying.cast()); - - /// Builds an object that implements the NSMutableCopying protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSMutableCopying implement({ - required objc.ObjCObjectBase Function(ffi.Pointer) - mutableCopyWithZone_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSMutableCopying'); - NSMutableCopying.mutableCopyWithZone_.implement( - builder, - mutableCopyWithZone_, - ); - builder.addProtocol($protocol); - return NSMutableCopying.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSMutableCopying protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObjectBase Function(ffi.Pointer) - mutableCopyWithZone_, - bool $keepIsolateAlive = true, - }) { - NSMutableCopying.mutableCopyWithZone_.implement( - builder, - mutableCopyWithZone_, - ); - builder.addProtocol($protocol); - } - - /// mutableCopyWithZone: - static final mutableCopyWithZone_ = - objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function(ffi.Pointer) - >( - _protocol_NSMutableCopying, - _sel_mutableCopyWithZone_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_18nsem0) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSMutableCopying, - _sel_mutableCopyWithZone_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function(ffi.Pointer) func) => - ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => func(arg1), - ), - ); -} - -/// NSMutableData -class NSMutableData extends NSData { - NSMutableData._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableData] that points to the same underlying object as [other]. - NSMutableData.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableData] that wraps the given raw object pointer. - NSMutableData.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableData]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableData, - ); - } - - /// alloc - static NSMutableData alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_alloc); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSMutableData allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableData, - _sel_allocWithZone_, - zone, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// data - static NSMutableData data() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_data); - return NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytes:length: - static NSMutableData dataWithBytes( - ffi.Pointer bytes, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - _class_NSMutableData, - _sel_dataWithBytes_length_, - bytes, - length, - ); - return NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytesNoCopy:length: - static NSMutableData dataWithBytesNoCopy( - ffi.Pointer bytes, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - _class_NSMutableData, - _sel_dataWithBytesNoCopy_length_, - bytes, - length, - ); - return NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithBytesNoCopy:length:freeWhenDone: - static NSMutableData dataWithBytesNoCopy$1( - ffi.Pointer bytes, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_161ne8y( - _class_NSMutableData, - _sel_dataWithBytesNoCopy_length_freeWhenDone_, - bytes, - length, - freeWhenDone, - ); - return NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithCapacity: - static NSMutableData? dataWithCapacity(int aNumItems) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableData, - _sel_dataWithCapacity_, - aNumItems, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfFile: - static NSMutableData? dataWithContentsOfFile(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableData, - _sel_dataWithContentsOfFile_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfFile:options:error: - static NSMutableData? dataWithContentsOfFile$1( - NSString path, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - _class_NSMutableData, - _sel_dataWithContentsOfFile_options_error_, - path.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfURL: - static NSMutableData? dataWithContentsOfURL(NSURL url) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableData, - _sel_dataWithContentsOfURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithContentsOfURL:options:error: - static NSMutableData? dataWithContentsOfURL$1( - NSURL url, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - _class_NSMutableData, - _sel_dataWithContentsOfURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithData: - static NSMutableData dataWithData(NSData data$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableData, - _sel_dataWithData_, - data$1.ref.pointer, - ); - return NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataWithLength: - static NSMutableData? dataWithLength(int length) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableData, - _sel_dataWithLength_, - length, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSMutableData new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_new); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableData, - _sel_supportsSecureCoding, - ); - } - - /// compressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSMutableData? compressedDataUsingAlgorithm( - NSDataCompressionAlgorithm algorithm, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableData.compressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1vnlaqg( - this.ref.pointer, - _sel_compressedDataUsingAlgorithm_error_, - algorithm.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// decompressedDataUsingAlgorithm:error: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSMutableData? decompressedDataUsingAlgorithm( - NSDataCompressionAlgorithm algorithm, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableData.decompressedDataUsingAlgorithm:error:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1vnlaqg( - this.ref.pointer, - _sel_decompressedDataUsingAlgorithm_error_, - algorithm.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSMutableData init() { - objc.checkOsVersionInternal( - 'NSMutableData.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBase64EncodedData:options: - NSMutableData? initWithBase64EncodedData( - NSData base64Data, { - required NSDataBase64DecodingOptions options, - }) { - objc.checkOsVersionInternal( - 'NSMutableData.initWithBase64EncodedData:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedData_options_, - base64Data.ref.pointer, - options.value, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBase64EncodedString:options: - NSMutableData? initWithBase64EncodedString( - NSString base64String, { - required NSDataBase64DecodingOptions options, - }) { - objc.checkOsVersionInternal( - 'NSMutableData.initWithBase64EncodedString:options:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_7kpg7m( - this.ref.retainAndReturnPointer(), - _sel_initWithBase64EncodedString_options_, - base64String.ref.pointer, - options.value, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:length: - NSMutableData initWithBytes( - ffi.Pointer bytes$1, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_, - bytes$1, - length, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length: - NSMutableData initWithBytesNoCopy( - ffi.Pointer bytes$1, { - required int length, - }) { - final _ret = _objc_msgSend_3nbx5e( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_, - bytes$1, - length, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:deallocator: - NSMutableData initWithBytesNoCopy$1( - ffi.Pointer bytes$1, { - required int length, - objc.ObjCBlock, ffi.UnsignedLong)>? - deallocator, - }) { - objc.checkOsVersionInternal( - 'NSMutableData.initWithBytesNoCopy:length:deallocator:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_134vhyh( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_deallocator_, - bytes$1, - length, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:freeWhenDone: - NSMutableData initWithBytesNoCopy$2( - ffi.Pointer bytes$1, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_161ne8y( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_freeWhenDone_, - bytes$1, - length, - freeWhenDone, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCapacity: - NSMutableData? initWithCapacity(int capacity) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - capacity, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSMutableData? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile: - NSMutableData? initWithContentsOfFile(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_, - path.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:options:error: - NSMutableData? initWithContentsOfFile$1( - NSString path, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_options_error_, - path.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL: - NSMutableData? initWithContentsOfURL(NSURL url) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:options:error: - NSMutableData? initWithContentsOfURL$1( - NSURL url, { - required NSDataReadingOptions options, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_8321cp( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithData: - NSMutableData initWithData(NSData data$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithData_, - data$1.ref.pointer, - ); - return NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithLength: - NSMutableData? initWithLength(int length) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithLength_, - length, - ); - return _ret.address == 0 - ? null - : NSMutableData.castFromPointer(_ret, retain: false, release: true); - } - - /// length - int get length { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); - } - - /// mutableBytes - ffi.Pointer get mutableBytes { - return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_mutableBytes); - } - - /// setLength: - set length(int value) { - _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_setLength_, value); - } - - /// Returns a new instance of NSMutableData constructed with the default `new` method. - factory NSMutableData() => new$(); -} - -/// NSMutableDictionary -class NSMutableDictionary extends NSDictionary { - /// Creates a [NSMutableDictionary] from [other]. - static NSDictionary of(Map other) => - NSMutableDictionary.dictionaryWithCapacity(other.length)..addAll(other); - - /// Creates a [NSMutableDictionary] from [entries]. - static NSMutableDictionary fromEntries( - Iterable> entries, - ) => - NSMutableDictionary.dictionaryWithCapacity(entries.length) - ..addEntries(entries); - - @override - void clear() => removeAllObjects(); - - @override - objc.ObjCObjectBase? remove(Object? key) { - if (key is! NSCopying) return null; - final old = this[key]; - removeObjectForKey(key); - return old; - } - - @override - void operator []=(NSCopying key, objc.ObjCObjectBase value) => - setObject(value, forKey: NSCopying.castFrom(key)); - - NSMutableDictionary._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableDictionary] that points to the same underlying object as [other]. - NSMutableDictionary.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableDictionary] that wraps the given raw object pointer. - NSMutableDictionary.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableDictionary]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableDictionary, - ); - } - - /// alloc - static NSMutableDictionary alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_alloc); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSMutableDictionary allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableDictionary, - _sel_allocWithZone_, - zone, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// dictionary - static NSMutableDictionary dictionary() { - final _ret = _objc_msgSend_151sglz( - _class_NSMutableDictionary, - _sel_dictionary, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithCapacity: - static NSMutableDictionary dictionaryWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableDictionary, - _sel_dictionaryWithCapacity_, - numItems, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithDictionary: - static NSMutableDictionary dictionaryWithDictionary(NSDictionary dict) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableDictionary, - _sel_dictionaryWithDictionary_, - dict.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithObject:forKey: - static NSMutableDictionary dictionaryWithObject( - objc.ObjCObjectBase object, { - required NSCopying forKey, - }) { - final _ret = _objc_msgSend_15qeuct( - _class_NSMutableDictionary, - _sel_dictionaryWithObject_forKey_, - object.ref.pointer, - forKey.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithObjects:forKeys: - static NSMutableDictionary dictionaryWithObjects( - NSArray objects, { - required NSArray forKeys, - }) { - final _ret = _objc_msgSend_15qeuct( - _class_NSMutableDictionary, - _sel_dictionaryWithObjects_forKeys_, - objects.ref.pointer, - forKeys.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithObjects:forKeys:count: - static NSMutableDictionary dictionaryWithObjects$1( - ffi.Pointer> objects, { - required ffi.Pointer> forKeys, - required int count, - }) { - final _ret = _objc_msgSend_1dydpdi( - _class_NSMutableDictionary, - _sel_dictionaryWithObjects_forKeys_count_, - objects, - forKeys, - count, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// dictionaryWithObjectsAndKeys: - static NSMutableDictionary dictionaryWithObjectsAndKeys( - objc.ObjCObjectBase firstObject, - ) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableDictionary, - _sel_dictionaryWithObjectsAndKeys_, - firstObject.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// new - static NSMutableDictionary new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_new); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableDictionary, - _sel_supportsSecureCoding, - ); - } - - /// init - NSMutableDictionary init() { - objc.checkOsVersionInternal( - 'NSMutableDictionary.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithCapacity: - NSMutableDictionary initWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - numItems, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithCoder: - NSMutableDictionary? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithDictionary: - NSMutableDictionary initWithDictionary(NSDictionary otherDictionary) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_, - otherDictionary.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithDictionary:copyItems: - NSMutableDictionary initWithDictionary$1( - NSDictionary otherDictionary, { - required bool copyItems, - }) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithDictionary_copyItems_, - otherDictionary.ref.pointer, - copyItems, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObjects:forKeys: - NSMutableDictionary initWithObjects( - NSArray objects, { - required NSArray forKeys, - }) { - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_, - objects.ref.pointer, - forKeys.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObjects:forKeys:count: - NSMutableDictionary initWithObjects$1( - ffi.Pointer> objects, { - required ffi.Pointer> forKeys, - required int count$1, - }) { - final _ret = _objc_msgSend_1dydpdi( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_forKeys_count_, - objects, - forKeys, - count$1, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObjectsAndKeys: - NSMutableDictionary initWithObjectsAndKeys(objc.ObjCObjectBase firstObject) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjectsAndKeys_, - firstObject.ref.pointer, - ); - return NSMutableDictionary.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// removeObjectForKey: - void removeObjectForKey(objc.ObjCObjectBase aKey) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObjectForKey_, - aKey.ref.pointer, - ); - } - - /// setObject:forKey: - void setObject(objc.ObjCObjectBase anObject, {required NSCopying forKey}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_setObject_forKey_, - anObject.ref.pointer, - forKey.ref.pointer, - ); - } - - /// Returns a new instance of NSMutableDictionary constructed with the default `new` method. - factory NSMutableDictionary() => new$(); -} - -/// NSMutableIndexSet -class NSMutableIndexSet extends NSIndexSet { - NSMutableIndexSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableIndexSet] that points to the same underlying object as [other]. - NSMutableIndexSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableIndexSet] that wraps the given raw object pointer. - NSMutableIndexSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableIndexSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableIndexSet, - ); - } - - /// alloc - static NSMutableIndexSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_alloc); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSMutableIndexSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableIndexSet, - _sel_allocWithZone_, - zone, - ); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// indexSet - static NSMutableIndexSet indexSet() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_indexSet); - return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexSetWithIndex: - static NSMutableIndexSet indexSetWithIndex(int value) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableIndexSet, - _sel_indexSetWithIndex_, - value, - ); - return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// indexSetWithIndexesInRange: - static NSMutableIndexSet indexSetWithIndexesInRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - _class_NSMutableIndexSet, - _sel_indexSetWithIndexesInRange_, - range, - ); - return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSMutableIndexSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_new); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableIndexSet, - _sel_supportsSecureCoding, - ); - } - - /// addIndex: - void addIndex(int value) { - _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_addIndex_, value); - } - - /// addIndexes: - void addIndexes(NSIndexSet indexSet) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addIndexes_, - indexSet.ref.pointer, - ); - } - - /// addIndexesInRange: - void addIndexesInRange(NSRange range) { - _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_addIndexesInRange_, range); - } - - /// init - NSMutableIndexSet init() { - objc.checkOsVersionInternal( - 'NSMutableIndexSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithCoder: - NSMutableIndexSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableIndexSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithIndex: - NSMutableIndexSet initWithIndex(int value) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithIndex_, - value, - ); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithIndexSet: - NSMutableIndexSet initWithIndexSet(NSIndexSet indexSet$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithIndexSet_, - indexSet$1.ref.pointer, - ); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithIndexesInRange: - NSMutableIndexSet initWithIndexesInRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - this.ref.retainAndReturnPointer(), - _sel_initWithIndexesInRange_, - range, - ); - return NSMutableIndexSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// removeAllIndexes - void removeAllIndexes() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllIndexes); - } - - /// removeIndex: - void removeIndex(int value) { - _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeIndex_, value); - } - - /// removeIndexes: - void removeIndexes(NSIndexSet indexSet) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeIndexes_, - indexSet.ref.pointer, - ); - } - - /// removeIndexesInRange: - void removeIndexesInRange(NSRange range) { - _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeIndexesInRange_, range); - } - - /// shiftIndexesStartingAtIndex:by: - void shiftIndexesStartingAtIndex(int index, {required int by}) { - _objc_msgSend_otx1t4( - this.ref.pointer, - _sel_shiftIndexesStartingAtIndex_by_, - index, - by, - ); - } - - /// Returns a new instance of NSMutableIndexSet constructed with the default `new` method. - factory NSMutableIndexSet() => new$(); -} - -/// NSMutableOrderedSet -class NSMutableOrderedSet extends NSOrderedSet { - NSMutableOrderedSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } - - /// Constructs a [NSMutableOrderedSet] that points to the same underlying object as [other]. - NSMutableOrderedSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableOrderedSet] that wraps the given raw object pointer. - NSMutableOrderedSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableOrderedSet, - ); - } - - /// alloc - static NSMutableOrderedSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_alloc); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSMutableOrderedSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableOrderedSet, - _sel_allocWithZone_, - zone, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// new - static NSMutableOrderedSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_new); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// orderedSet - static NSMutableOrderedSet orderedSet() { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz( - _class_NSMutableOrderedSet, - _sel_orderedSet, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithArray: - static NSMutableOrderedSet orderedSetWithArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithArray_, - array.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithArray:range:copyItems: - static NSMutableOrderedSet orderedSetWithArray$1( - NSArray array, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - _class_NSMutableOrderedSet, - _sel_orderedSetWithArray_range_copyItems_, - array.ref.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithCapacity: - static NSMutableOrderedSet orderedSetWithCapacity(int numItems) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithCapacity:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableOrderedSet, - _sel_orderedSetWithCapacity_, - numItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithObject: - static NSMutableOrderedSet orderedSetWithObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithObject_, - object.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithObjects: - static NSMutableOrderedSet orderedSetWithObjects( - objc.ObjCObjectBase firstObj, - ) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithObjects:count: - static NSMutableOrderedSet orderedSetWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_zmbtbd( - _class_NSMutableOrderedSet, - _sel_orderedSetWithObjects_count_, - objects, - count, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithOrderedSet: - static NSMutableOrderedSet orderedSetWithOrderedSet(NSOrderedSet set$) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithOrderedSet_, - set$.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithOrderedSet:range:copyItems: - static NSMutableOrderedSet orderedSetWithOrderedSet$1( - NSOrderedSet set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - _class_NSMutableOrderedSet, - _sel_orderedSetWithOrderedSet_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithSet: - static NSMutableOrderedSet orderedSetWithSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableOrderedSet, - _sel_orderedSetWithSet_, - set$.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// orderedSetWithSet:copyItems: - static NSMutableOrderedSet orderedSetWithSet$1( - NSSet set$, { - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.orderedSetWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - _class_NSMutableOrderedSet, - _sel_orderedSetWithSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableOrderedSet, - _sel_supportsSecureCoding, - ); - } - - /// autorelease - NSMutableOrderedSet autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// init - NSMutableOrderedSet init() { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithArray: - NSMutableOrderedSet initWithArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithArray:copyItems: - NSMutableOrderedSet initWithArray$1(NSArray set$, {required bool copyItems}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithArray:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithArray:range:copyItems: - NSMutableOrderedSet initWithArray$2( - NSArray set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithCapacity: - NSMutableOrderedSet initWithCapacity(int numItems) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithCapacity:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - numItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithCoder: - NSMutableOrderedSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObject: - NSMutableOrderedSet initWithObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObject_, - object.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObjects: - NSMutableOrderedSet initWithObjects(objc.ObjCObjectBase firstObj) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObjects:count: - NSMutableOrderedSet initWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithOrderedSet: - NSMutableOrderedSet initWithOrderedSet(NSOrderedSet set$) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_, - set$.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithOrderedSet:copyItems: - NSMutableOrderedSet initWithOrderedSet$1( - NSOrderedSet set$, { - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithOrderedSet:range:copyItems: - NSMutableOrderedSet initWithOrderedSet$2( - NSOrderedSet set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithSet: - NSMutableOrderedSet initWithSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_, - set$.ref.pointer, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithSet:copyItems: - NSMutableOrderedSet initWithSet$1(NSSet set$, {required bool copyItems}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.initWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// insertObject:atIndex: - void insertObject(objc.ObjCObjectBase object, {required int atIndex}) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.insertObject:atIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_djsa9o( - this.ref.pointer, - _sel_insertObject_atIndex_, - object.ref.pointer, - atIndex, - ); - } - - /// removeObjectAtIndex: - void removeObjectAtIndex(int idx) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.removeObjectAtIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeObjectAtIndex_, idx); - } - - /// replaceObjectAtIndex:withObject: - void replaceObjectAtIndex( - int idx, { - required objc.ObjCObjectBase withObject, - }) { - objc.checkOsVersionInternal( - 'NSMutableOrderedSet.replaceObjectAtIndex:withObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1gypgok( - this.ref.pointer, - _sel_replaceObjectAtIndex_withObject_, - idx, - withObject.ref.pointer, - ); - } - - /// retain - NSMutableOrderedSet retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// self - NSMutableOrderedSet self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSMutableOrderedSet.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// Returns a new instance of NSMutableOrderedSet constructed with the default `new` method. - factory NSMutableOrderedSet() => new$(); -} - -/// NSMutableSet -class NSMutableSet extends NSSet { - /// Creates a [NSMutableSet] from [elements]. - static NSMutableSet of(Iterable elements) => - setWithCapacity(elements.length)..addAll(elements); - - @override - bool add(objc.ObjCObjectBase value) { - final alreadyContains = contains(value); - addObject(value); - return !alreadyContains; - } - - @override - bool remove(Object? value) { - if (value is! objc.ObjCObjectBase) return false; - final alreadyContains = contains(value); - removeObject(value); - return alreadyContains; - } - - @override - void clear() => removeAllObjects(); - - NSMutableSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableSet] that points to the same underlying object as [other]. - NSMutableSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableSet] that wraps the given raw object pointer. - NSMutableSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableSet, - ); - } - - /// alloc - static NSMutableSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_alloc); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSMutableSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableSet, - _sel_allocWithZone_, - zone, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSMutableSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_new); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// set - static NSMutableSet set$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_set); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithArray: - static NSMutableSet setWithArray(NSArray array) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, - _sel_setWithArray_, - array.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithCapacity: - static NSMutableSet setWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSMutableSet, - _sel_setWithCapacity_, - numItems, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObject: - static NSMutableSet setWithObject(objc.ObjCObjectBase object) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, - _sel_setWithObject_, - object.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObjects: - static NSMutableSet setWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, - _sel_setWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObjects:count: - static NSMutableSet setWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - _class_NSMutableSet, - _sel_setWithObjects_count_, - objects, - count, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithSet: - static NSMutableSet setWithSet(NSSet set$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableSet, - _sel_setWithSet_, - set$1.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSMutableSet, _sel_supportsSecureCoding); - } - - /// addObject: - void addObject(objc.ObjCObjectBase object) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addObject_, object.ref.pointer); - } - - /// init - NSMutableSet init() { - objc.checkOsVersionInternal( - 'NSMutableSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray: - NSMutableSet initWithArray(NSArray array) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCapacity: - NSMutableSet initWithCapacity(int numItems) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithCapacity_, - numItems, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSMutableSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects: - NSMutableSet initWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:count: - NSMutableSet initWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet: - NSMutableSet initWithSet(NSSet set$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_, - set$1.ref.pointer, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - NSMutableSet initWithSet$1(NSSet set$1, {required bool copyItems}) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - set$1.ref.pointer, - copyItems, - ); - return NSMutableSet.castFromPointer(_ret, retain: false, release: true); - } - - /// removeObject: - void removeObject(objc.ObjCObjectBase object) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeObject_, - object.ref.pointer, - ); - } - - /// Returns a new instance of NSMutableSet constructed with the default `new` method. - factory NSMutableSet() => new$(); -} - -/// NSMutableString -class NSMutableString extends NSString { - NSMutableString._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSMutableString] that points to the same underlying object as [other]. - NSMutableString.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSMutableString] that wraps the given raw object pointer. - NSMutableString.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSMutableString]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSMutableString, - ); - } - - /// alloc - static NSMutableString alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_alloc); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSMutableString allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSMutableString, - _sel_allocWithZone_, - zone, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// localizedStringWithFormat: - static NSMutableString localizedStringWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableString, - _sel_localizedStringWithFormat_, - format.ref.pointer, - ); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: - static NSMutableString? localizedStringWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSMutableString, - _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSMutableString new$() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_new); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static NSMutableString? objectWithItemProviderData( - NSData data, { - required NSString typeIdentifier, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableString.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSMutableString, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// string - static NSMutableString string() { - final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_string); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithCString:encoding: - static NSMutableString? stringWithCString( - ffi.Pointer cString, { - required int encoding, - }) { - final _ret = _objc_msgSend_erqryg( - _class_NSMutableString, - _sel_stringWithCString_encoding_, - cString, - encoding, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithCharacters:length: - static NSMutableString stringWithCharacters( - ffi.Pointer characters, { - required int length, - }) { - final _ret = _objc_msgSend_9x4k8x( - _class_NSMutableString, - _sel_stringWithCharacters_length_, - characters, - length, - ); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfFile:encoding:error: - static NSMutableString? stringWithContentsOfFile( - NSString path, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - _class_NSMutableString, - _sel_stringWithContentsOfFile_encoding_error_, - path.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfFile:usedEncoding:error: - static NSMutableString? stringWithContentsOfFile$1( - NSString path, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - _class_NSMutableString, - _sel_stringWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfURL:encoding:error: - static NSMutableString? stringWithContentsOfURL( - NSURL url, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - _class_NSMutableString, - _sel_stringWithContentsOfURL_encoding_error_, - url.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfURL:usedEncoding:error: - static NSMutableString? stringWithContentsOfURL$1( - NSURL url, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - _class_NSMutableString, - _sel_stringWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithFormat: - static NSMutableString stringWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableString, - _sel_stringWithFormat_, - format.ref.pointer, - ); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithString: - static NSMutableString stringWithString(NSString string$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSMutableString, - _sel_stringWithString_, - string$1.ref.pointer, - ); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithUTF8String: - static NSMutableString? stringWithUTF8String( - ffi.Pointer nullTerminatedCString, - ) { - final _ret = _objc_msgSend_56zxyn( - _class_NSMutableString, - _sel_stringWithUTF8String_, - nullTerminatedCString, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithValidatedFormat:validFormatSpecifiers:error: - static NSMutableString? stringWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableString.stringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSMutableString, - _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635( - _class_NSMutableString, - _sel_supportsSecureCoding, - ); - } - - /// autorelease - NSMutableString autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSMutableString init() { - objc.checkOsVersionInternal( - 'NSMutableString.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:length:encoding: - NSMutableString? initWithBytes( - ffi.Pointer bytes, { - required int length, - required int encoding, - }) { - final _ret = _objc_msgSend_9b3h4v( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_encoding_, - bytes, - length, - encoding, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:encoding:deallocator: - NSMutableString? initWithBytesNoCopy( - ffi.Pointer bytes, { - required int length, - required int encoding, - objc.ObjCBlock, ffi.UnsignedLong)>? - deallocator, - }) { - final _ret = _objc_msgSend_1lbgrac( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_encoding_deallocator_, - bytes, - length, - encoding, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:encoding:freeWhenDone: - NSMutableString? initWithBytesNoCopy$1( - ffi.Pointer bytes, { - required int length, - required int encoding, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_k4j8m3( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, - bytes, - length, - encoding, - freeWhenDone, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCString:encoding: - NSMutableString? initWithCString( - ffi.Pointer nullTerminatedCString, { - required int encoding, - }) { - final _ret = _objc_msgSend_erqryg( - this.ref.retainAndReturnPointer(), - _sel_initWithCString_encoding_, - nullTerminatedCString, - encoding, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharacters:length: - NSMutableString initWithCharacters( - ffi.Pointer characters, { - required int length, - }) { - final _ret = _objc_msgSend_9x4k8x( - this.ref.retainAndReturnPointer(), - _sel_initWithCharacters_length_, - characters, - length, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharactersNoCopy:length:deallocator: - NSMutableString initWithCharactersNoCopy( - ffi.Pointer chars, { - required int length, - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >? - deallocator, - }) { - final _ret = _objc_msgSend_talwei( - this.ref.retainAndReturnPointer(), - _sel_initWithCharactersNoCopy_length_deallocator_, - chars, - length, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharactersNoCopy:length:freeWhenDone: - NSMutableString initWithCharactersNoCopy$1( - ffi.Pointer characters, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_lh0jh5( - this.ref.retainAndReturnPointer(), - _sel_initWithCharactersNoCopy_length_freeWhenDone_, - characters, - length, - freeWhenDone, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSMutableString? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:encoding:error: - NSMutableString? initWithContentsOfFile( - NSString path, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_encoding_error_, - path.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:usedEncoding:error: - NSMutableString? initWithContentsOfFile$1( - NSString path, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:encoding:error: - NSMutableString? initWithContentsOfURL( - NSURL url, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_encoding_error_, - url.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:usedEncoding:error: - NSMutableString? initWithContentsOfURL$1( - NSURL url, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithData:encoding: - NSMutableString? initWithData(NSData data, {required int encoding}) { - final _ret = _objc_msgSend_1k4kd9s( - this.ref.retainAndReturnPointer(), - _sel_initWithData_encoding_, - data.ref.pointer, - encoding, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFormat: - NSMutableString initWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithFormat_, - format.ref.pointer, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFormat:locale: - NSMutableString initWithFormat$1( - NSString format, { - objc.ObjCObjectBase? locale, - }) { - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithFormat_locale_, - format.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithString: - NSMutableString initWithString(NSString aString) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithString_, - aString.ref.pointer, - ); - return NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUTF8String: - NSMutableString? initWithUTF8String( - ffi.Pointer nullTerminatedCString, - ) { - final _ret = _objc_msgSend_56zxyn( - this.ref.retainAndReturnPointer(), - _sel_initWithUTF8String_, - nullTerminatedCString, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithValidatedFormat:validFormatSpecifiers:error: - /// - /// iOS: introduced 16.0.0 - /// macOS: introduced 13.0.0 - NSMutableString? initWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithValidatedFormat:validFormatSpecifiers:locale:error: - /// - /// iOS: introduced 16.0.0 - /// macOS: introduced 13.0.0 - NSMutableString? initWithValidatedFormat$1( - NSString format, { - required NSString validFormatSpecifiers, - objc.ObjCObjectBase? locale, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - final _ret = _objc_msgSend_1k0ezzm( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr, - error, - ); - return _ret.address == 0 - ? null - : NSMutableString.castFromPointer(_ret, retain: false, release: true); - } - - /// replaceCharactersInRange:withString: - void replaceCharactersInRange(NSRange range, {required NSString withString}) { - _objc_msgSend_1tv4uax( - this.ref.pointer, - _sel_replaceCharactersInRange_withString_, - range, - withString.ref.pointer, - ); - } - - /// retain - NSMutableString retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSMutableString self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSMutableString.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSMutableString constructed with the default `new` method. - factory NSMutableString() => new$(); -} - -/// NSNotification -class NSNotification extends NSObject implements NSCopying, NSCoding { - NSNotification._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSNotification] that points to the same underlying object as [other]. - NSNotification.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSNotification] that wraps the given raw object pointer. - NSNotification.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSNotification]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSNotification, - ); - } - - /// alloc - static NSNotification alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSNotification, _sel_alloc); - return NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSNotification allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSNotification, - _sel_allocWithZone_, - zone, - ); - return NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSNotification new$() { - final _ret = _objc_msgSend_151sglz(_class_NSNotification, _sel_new); - return NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// notificationWithName:object: - static NSNotification notificationWithName( - NSString aName, { - objc.ObjCObjectBase? object, - }) { - final _ret = _objc_msgSend_15qeuct( - _class_NSNotification, - _sel_notificationWithName_object_, - aName.ref.pointer, - object?.ref.pointer ?? ffi.nullptr, - ); - return NSNotification.castFromPointer(_ret, retain: true, release: true); - } - - /// notificationWithName:object:userInfo: - static NSNotification notificationWithName$1( - NSString aName, { - objc.ObjCObjectBase? object, - NSDictionary? userInfo, - }) { - final _ret = _objc_msgSend_11spmsz( - _class_NSNotification, - _sel_notificationWithName_object_userInfo_, - aName.ref.pointer, - object?.ref.pointer ?? ffi.nullptr, - userInfo?.ref.pointer ?? ffi.nullptr, - ); - return NSNotification.castFromPointer(_ret, retain: true, release: true); - } - - /// autorelease - NSNotification autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSNotification.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSNotification init() { - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSNotification? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithName:object:userInfo: - NSNotification initWithName( - NSString name, { - objc.ObjCObjectBase? object, - NSDictionary? userInfo, - }) { - objc.checkOsVersionInternal( - 'NSNotification.initWithName:object:userInfo:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_11spmsz( - this.ref.retainAndReturnPointer(), - _sel_initWithName_object_userInfo_, - name.ref.pointer, - object?.ref.pointer ?? ffi.nullptr, - userInfo?.ref.pointer ?? ffi.nullptr, - ); - return NSNotification.castFromPointer(_ret, retain: false, release: true); - } - - /// name - NSString get name { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_name); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// object - objc.ObjCObjectBase? get object { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_object); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// retain - NSNotification retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSNotification.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSNotification self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSNotification.castFromPointer(_ret, retain: true, release: true); - } - - /// userInfo - NSDictionary? get userInfo { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); - return _ret.address == 0 - ? null - : NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSNotification constructed with the default `new` method. - factory NSNotification() => new$(); -} - -/// NSNumber -class NSNumber extends NSValue { - NSNumber._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSNumber] that points to the same underlying object as [other]. - NSNumber.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSNumber] that wraps the given raw object pointer. - NSNumber.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSNumber]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSNumber, - ); - } - - /// alloc - static NSNumber alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSNumber, _sel_alloc); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSNumber allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSNumber, - _sel_allocWithZone_, - zone, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSNumber new$() { - final _ret = _objc_msgSend_151sglz(_class_NSNumber, _sel_new); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSNumber, _sel_supportsSecureCoding); - } - - /// boolValue - bool get boolValue { - return _objc_msgSend_91o635(this.ref.pointer, _sel_boolValue); - } - - /// charValue - int get charValue { - return _objc_msgSend_xmlz1t(this.ref.pointer, _sel_charValue); - } - - /// compare: - NSComparisonResult compare(NSNumber otherNumber) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_compare_, - otherNumber.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// descriptionWithLocale: - NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_descriptionWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// doubleValue - double get doubleValue { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_doubleValue) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_doubleValue); - } - - /// floatValue - double get floatValue { - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(this.ref.pointer, _sel_floatValue) - : _objc_msgSend_2cgrxl(this.ref.pointer, _sel_floatValue); - } - - /// init - NSNumber init() { - objc.checkOsVersionInternal( - 'NSNumber.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBool: - NSNumber initWithBool(bool value) { - final _ret = _objc_msgSend_1t6aok9( - this.ref.retainAndReturnPointer(), - _sel_initWithBool_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:objCType: - NSNumber initWithBytes( - ffi.Pointer value, { - required ffi.Pointer objCType, - }) { - final _ret = _objc_msgSend_e9mncn( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_objCType_, - value, - objCType, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithChar: - NSNumber initWithChar(int value) { - final _ret = _objc_msgSend_13mclwd( - this.ref.retainAndReturnPointer(), - _sel_initWithChar_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSNumber? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithDouble: - NSNumber initWithDouble(double value) { - final _ret = _objc_msgSend_oa8mke( - this.ref.retainAndReturnPointer(), - _sel_initWithDouble_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFloat: - NSNumber initWithFloat(double value) { - final _ret = _objc_msgSend_et8cuh( - this.ref.retainAndReturnPointer(), - _sel_initWithFloat_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithInt: - NSNumber initWithInt(int value) { - final _ret = _objc_msgSend_14hvw5k( - this.ref.retainAndReturnPointer(), - _sel_initWithInt_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithInteger: - NSNumber initWithInteger(int value) { - objc.checkOsVersionInternal( - 'NSNumber.initWithInteger:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_qugqlf( - this.ref.retainAndReturnPointer(), - _sel_initWithInteger_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithLong: - NSNumber initWithLong(int value) { - final _ret = _objc_msgSend_qugqlf( - this.ref.retainAndReturnPointer(), - _sel_initWithLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithLongLong: - NSNumber initWithLongLong(int value) { - final _ret = _objc_msgSend_16f0drb( - this.ref.retainAndReturnPointer(), - _sel_initWithLongLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithShort: - NSNumber initWithShort(int value) { - final _ret = _objc_msgSend_68x6r1( - this.ref.retainAndReturnPointer(), - _sel_initWithShort_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedChar: - NSNumber initWithUnsignedChar(int value) { - final _ret = _objc_msgSend_7uautw( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedChar_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedInt: - NSNumber initWithUnsignedInt(int value) { - final _ret = _objc_msgSend_degb40( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedInt_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedInteger: - NSNumber initWithUnsignedInteger(int value) { - objc.checkOsVersionInternal( - 'NSNumber.initWithUnsignedInteger:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedInteger_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedLong: - NSNumber initWithUnsignedLong(int value) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedLongLong: - NSNumber initWithUnsignedLongLong(int value) { - final _ret = _objc_msgSend_1x2hskc( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedLongLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUnsignedShort: - NSNumber initWithUnsignedShort(int value) { - final _ret = _objc_msgSend_1njucl2( - this.ref.retainAndReturnPointer(), - _sel_initWithUnsignedShort_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: false, release: true); - } - - /// intValue - int get intValue { - return _objc_msgSend_13yqbb6(this.ref.pointer, _sel_intValue); - } - - /// integerValue - int get integerValue { - objc.checkOsVersionInternal( - 'NSNumber.integerValue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_integerValue); - } - - /// isEqualToNumber: - bool isEqualToNumber(NSNumber number) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToNumber_, - number.ref.pointer, - ); - } - - /// longLongValue - int get longLongValue { - return _objc_msgSend_1k101e3(this.ref.pointer, _sel_longLongValue); - } - - /// longValue - int get longValue { - return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_longValue); - } - - /// shortValue - int get shortValue { - return _objc_msgSend_1jwityx(this.ref.pointer, _sel_shortValue); - } - - /// stringValue - NSString get stringValue { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_stringValue); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// unsignedCharValue - int get unsignedCharValue { - return _objc_msgSend_1ko4qka(this.ref.pointer, _sel_unsignedCharValue); - } - - /// unsignedIntValue - int get unsignedIntValue { - return _objc_msgSend_3pyzne(this.ref.pointer, _sel_unsignedIntValue); - } - - /// unsignedIntegerValue - int get unsignedIntegerValue { - objc.checkOsVersionInternal( - 'NSNumber.unsignedIntegerValue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_unsignedIntegerValue); - } - - /// unsignedLongLongValue - int get unsignedLongLongValue { - return _objc_msgSend_1p4gbjy(this.ref.pointer, _sel_unsignedLongLongValue); - } - - /// unsignedLongValue - int get unsignedLongValue { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_unsignedLongValue); - } - - /// unsignedShortValue - int get unsignedShortValue { - return _objc_msgSend_ud8gg(this.ref.pointer, _sel_unsignedShortValue); - } - - /// Returns a new instance of NSNumber constructed with the default `new` method. - factory NSNumber() => new$(); -} - -/// NSNumberCreation -extension NSNumberCreation on NSNumber { - /// numberWithBool: - static NSNumber numberWithBool(bool value) { - final _ret = _objc_msgSend_1t6aok9( - _class_NSNumber, - _sel_numberWithBool_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithChar: - static NSNumber numberWithChar(int value) { - final _ret = _objc_msgSend_13mclwd( - _class_NSNumber, - _sel_numberWithChar_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithDouble: - static NSNumber numberWithDouble(double value) { - final _ret = _objc_msgSend_oa8mke( - _class_NSNumber, - _sel_numberWithDouble_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithFloat: - static NSNumber numberWithFloat(double value) { - final _ret = _objc_msgSend_et8cuh( - _class_NSNumber, - _sel_numberWithFloat_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithInt: - static NSNumber numberWithInt(int value) { - final _ret = _objc_msgSend_14hvw5k( - _class_NSNumber, - _sel_numberWithInt_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithInteger: - static NSNumber numberWithInteger(int value) { - objc.checkOsVersionInternal( - 'NSNumber.numberWithInteger:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_qugqlf( - _class_NSNumber, - _sel_numberWithInteger_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithLong: - static NSNumber numberWithLong(int value) { - final _ret = _objc_msgSend_qugqlf( - _class_NSNumber, - _sel_numberWithLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithLongLong: - static NSNumber numberWithLongLong(int value) { - final _ret = _objc_msgSend_16f0drb( - _class_NSNumber, - _sel_numberWithLongLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithShort: - static NSNumber numberWithShort(int value) { - final _ret = _objc_msgSend_68x6r1( - _class_NSNumber, - _sel_numberWithShort_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedChar: - static NSNumber numberWithUnsignedChar(int value) { - final _ret = _objc_msgSend_7uautw( - _class_NSNumber, - _sel_numberWithUnsignedChar_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedInt: - static NSNumber numberWithUnsignedInt(int value) { - final _ret = _objc_msgSend_degb40( - _class_NSNumber, - _sel_numberWithUnsignedInt_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedInteger: - static NSNumber numberWithUnsignedInteger(int value) { - objc.checkOsVersionInternal( - 'NSNumber.numberWithUnsignedInteger:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - _class_NSNumber, - _sel_numberWithUnsignedInteger_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedLong: - static NSNumber numberWithUnsignedLong(int value) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSNumber, - _sel_numberWithUnsignedLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedLongLong: - static NSNumber numberWithUnsignedLongLong(int value) { - final _ret = _objc_msgSend_1x2hskc( - _class_NSNumber, - _sel_numberWithUnsignedLongLong_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// numberWithUnsignedShort: - static NSNumber numberWithUnsignedShort(int value) { - final _ret = _objc_msgSend_1njucl2( - _class_NSNumber, - _sel_numberWithUnsignedShort_, - value, - ); - return NSNumber.castFromPointer(_ret, retain: true, release: true); - } -} - -/// NSObject -class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { - NSObject._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSObject', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - } - - /// Constructs a [NSObject] that points to the same underlying object as [other]. - NSObject.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSObject] that wraps the given raw object pointer. - NSObject.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSObject]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSObject, - ); - } - - /// alloc - static NSObject alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_alloc); - return NSObject.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSObject allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSObject, - _sel_allocWithZone_, - zone, - ); - return NSObject.castFromPointer(_ret, retain: false, release: true); - } - - /// class - static objc.ObjCObjectBase class$() { - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_class); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// conformsToProtocol: - static bool conformsToProtocol(Protocol protocol) { - objc.checkOsVersionInternal( - 'NSObject.conformsToProtocol:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _class_NSObject, - _sel_conformsToProtocol_, - protocol.ref.pointer, - ); - } - - /// copyWithZone: - static objc.ObjCObjectBase copyWithZone(ffi.Pointer zone) { - objc.checkOsVersionInternal( - 'NSObject.copyWithZone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_1cwp428( - _class_NSObject, - _sel_copyWithZone_, - zone, - ); - return objc.ObjCObjectBase(_ret, retain: false, release: true); - } - - /// debugDescription - static NSString debugDescription() { - objc.checkOsVersionInternal( - 'NSObject.debugDescription', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_debugDescription); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// description - static NSString description() { - objc.checkOsVersionInternal( - 'NSObject.description', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// hash - static int hash() { - objc.checkOsVersionInternal( - 'NSObject.hash', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_xw2lbc(_class_NSObject, _sel_hash); - } - - /// initialize - static void initialize() { - objc.checkOsVersionInternal( - 'NSObject.initialize', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1pl9qdv(_class_NSObject, _sel_initialize); - } - - /// instanceMethodForSelector: - static ffi.Pointer> - instanceMethodForSelector(ffi.Pointer aSelector) { - objc.checkOsVersionInternal( - 'NSObject.instanceMethodForSelector:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1pa9f4m( - _class_NSObject, - _sel_instanceMethodForSelector_, - aSelector, - ); - } - - /// instanceMethodSignatureForSelector: - static NSMethodSignature instanceMethodSignatureForSelector( - ffi.Pointer aSelector, - ) { - final _ret = _objc_msgSend_3ctkt6( - _class_NSObject, - _sel_instanceMethodSignatureForSelector_, - aSelector, - ); - return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); - } - - /// instancesRespondToSelector: - static bool instancesRespondToSelector( - ffi.Pointer aSelector, - ) { - objc.checkOsVersionInternal( - 'NSObject.instancesRespondToSelector:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1srf6wk( - _class_NSObject, - _sel_instancesRespondToSelector_, - aSelector, - ); - } - - /// isSubclassOfClass: - static bool isSubclassOfClass(objc.ObjCObjectBase aClass) { - objc.checkOsVersionInternal( - 'NSObject.isSubclassOfClass:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_19nvye5( - _class_NSObject, - _sel_isSubclassOfClass_, - aClass.ref.pointer, - ); - } - - /// load - static void load() { - objc.checkOsVersionInternal( - 'NSObject.load', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1pl9qdv(_class_NSObject, _sel_load); - } - - /// mutableCopyWithZone: - static objc.ObjCObjectBase mutableCopyWithZone(ffi.Pointer zone) { - objc.checkOsVersionInternal( - 'NSObject.mutableCopyWithZone:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_1cwp428( - _class_NSObject, - _sel_mutableCopyWithZone_, - zone, - ); - return objc.ObjCObjectBase(_ret, retain: false, release: true); - } - - /// new - static NSObject new$() { - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_new); - return NSObject.castFromPointer(_ret, retain: false, release: true); - } - - /// resolveClassMethod: - static bool resolveClassMethod(ffi.Pointer sel) { - objc.checkOsVersionInternal( - 'NSObject.resolveClassMethod:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1srf6wk( - _class_NSObject, - _sel_resolveClassMethod_, - sel, - ); - } - - /// resolveInstanceMethod: - static bool resolveInstanceMethod(ffi.Pointer sel) { - objc.checkOsVersionInternal( - 'NSObject.resolveInstanceMethod:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1srf6wk( - _class_NSObject, - _sel_resolveInstanceMethod_, - sel, - ); - } - - /// superclass - static objc.ObjCObjectBase superclass() { - objc.checkOsVersionInternal( - 'NSObject.superclass', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_superclass); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// autorelease - NSObject autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSObject.castFromPointer(_ret, retain: true, release: true); - } - - /// class - objc.ObjCObjectBase class$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_class); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// conformsToProtocol: - bool conformsToProtocol$1(Protocol aProtocol) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_conformsToProtocol_, - aProtocol.ref.pointer, - ); - } - - /// copy - objc.ObjCObjectBase copy() { - objc.checkOsVersionInternal( - 'NSObject.copy', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_copy); - return objc.ObjCObjectBase(_ret, retain: false, release: true); - } - - /// dealloc - void dealloc() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); - } - - /// debugDescription - NSString get debugDescription$1 { - if (!objc.respondsToSelector(this.ref.pointer, _sel_debugDescription)) { - throw objc.UnimplementedOptionalMethodException( - 'NSObject', - 'debugDescription', - ); - } - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_debugDescription); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// description - NSString get description$1 { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// doesNotRecognizeSelector: - void doesNotRecognizeSelector(ffi.Pointer aSelector) { - objc.checkOsVersionInternal( - 'NSObject.doesNotRecognizeSelector:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - _objc_msgSend_1d9e4oe( - this.ref.pointer, - _sel_doesNotRecognizeSelector_, - aSelector, - ); - } - - /// forwardInvocation: - void forwardInvocation(NSInvocation anInvocation) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_forwardInvocation_, - anInvocation.ref.pointer, - ); - } - - /// forwardingTargetForSelector: - objc.ObjCObjectBase forwardingTargetForSelector( - ffi.Pointer aSelector, - ) { - objc.checkOsVersionInternal( - 'NSObject.forwardingTargetForSelector:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_forwardingTargetForSelector_, - aSelector, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// hash - int get hash$1 { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_hash); - } - - /// init - NSObject init() { - objc.checkOsVersionInternal( - 'NSObject.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSObject.castFromPointer(_ret, retain: false, release: true); - } - - /// isEqual: - bool isEqual(objc.ObjCObjectBase object) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqual_, - object.ref.pointer, - ); - } - - /// isKindOfClass: - bool isKindOfClass(objc.ObjCObjectBase aClass) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isKindOfClass_, - aClass.ref.pointer, - ); - } - - /// isMemberOfClass: - bool isMemberOfClass(objc.ObjCObjectBase aClass) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isMemberOfClass_, - aClass.ref.pointer, - ); - } - - /// isProxy - bool isProxy() { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isProxy); - } - - /// methodForSelector: - ffi.Pointer> methodForSelector( - ffi.Pointer aSelector, - ) { - objc.checkOsVersionInternal( - 'NSObject.methodForSelector:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - return _objc_msgSend_1pa9f4m( - this.ref.pointer, - _sel_methodForSelector_, - aSelector, - ); - } - - /// methodSignatureForSelector: - NSMethodSignature methodSignatureForSelector( - ffi.Pointer aSelector, - ) { - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_methodSignatureForSelector_, - aSelector, - ); - return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); - } - - /// mutableCopy - objc.ObjCObjectBase mutableCopy() { - objc.checkOsVersionInternal( - 'NSObject.mutableCopy', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_mutableCopy); - return objc.ObjCObjectBase(_ret, retain: false, release: true); - } - - /// performSelector: - objc.ObjCObjectBase performSelector( - ffi.Pointer aSelector, - ) { - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_performSelector_, - aSelector, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// performSelector:withObject: - objc.ObjCObjectBase performSelector$1( - ffi.Pointer aSelector, { - required objc.ObjCObjectBase withObject, - }) { - final _ret = _objc_msgSend_gx50so( - this.ref.pointer, - _sel_performSelector_withObject_, - aSelector, - withObject.ref.pointer, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// performSelector:withObject:withObject: - objc.ObjCObjectBase performSelector$2( - ffi.Pointer aSelector, { - required objc.ObjCObjectBase withObject, - required objc.ObjCObjectBase withObject$1, - }) { - final _ret = _objc_msgSend_cfx8ce( - this.ref.pointer, - _sel_performSelector_withObject_withObject_, - aSelector, - withObject.ref.pointer, - withObject$1.ref.pointer, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// release - void release() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_release); - } - - /// respondsToSelector: - bool respondsToSelector(ffi.Pointer aSelector) { - return _objc_msgSend_1srf6wk( - this.ref.pointer, - _sel_respondsToSelector_, - aSelector, - ); - } - - /// retain - NSObject retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSObject.castFromPointer(_ret, retain: true, release: true); - } - - /// retainCount - int retainCount() { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_retainCount); - } - - /// self - NSObject self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSObject.castFromPointer(_ret, retain: true, release: true); - } - - /// superclass - objc.ObjCObjectBase get superclass$1 { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_superclass); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// zone - ffi.Pointer zone() { - return _objc_msgSend_sz90oi(this.ref.pointer, _sel_zone); - } - - /// Returns a new instance of NSObject constructed with the default `new` method. - factory NSObject() => new$(); -} - -/// NSObject -interface class NSObjectProtocol extends objc.ObjCProtocolBase { - NSObjectProtocol._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSObjectProtocol] that points to the same underlying object as [other]. - NSObjectProtocol.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSObjectProtocol] that wraps the given raw object pointer. - NSObjectProtocol.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSObjectProtocol]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSObject, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSObject.cast()); - - /// Builds an object that implements the NSObject protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSObjectProtocol implement({ - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implement(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - return NSObjectProtocol.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSObject protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implement(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSObject protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSObjectProtocol implementAsListener({ - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implementAsListener(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - return NSObjectProtocol.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSObject protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implementAsListener(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSObject protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSObjectProtocol implementAsBlocking({ - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implementAsBlocking(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - return NSObjectProtocol.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSObject protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required objc.ObjCObjectBase Function() autorelease, - required objc.ObjCObjectBase Function() class$, - required bool Function(Protocol) conformsToProtocol_, - NSString Function()? debugDescription, - required NSString Function() description, - required int Function() hash, - required bool Function(objc.ObjCObjectBase) isEqual_, - required bool Function(objc.ObjCObjectBase) isKindOfClass_, - required bool Function(objc.ObjCObjectBase) isMemberOfClass_, - required bool Function() isProxy, - required objc.ObjCObjectBase Function(ffi.Pointer) - performSelector_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - performSelector_withObject_, - required objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - performSelector_withObject_withObject_, - required void Function() release, - required bool Function(ffi.Pointer) respondsToSelector_, - required objc.ObjCObjectBase Function() retain, - required int Function() retainCount, - required objc.ObjCObjectBase Function() self$1, - required objc.ObjCObjectBase Function() superclass, - required ffi.Pointer Function() zone, - bool $keepIsolateAlive = true, - }) { - NSObjectProtocol.autorelease.implement(builder, autorelease); - NSObjectProtocol.class$.implement(builder, class$); - NSObjectProtocol.conformsToProtocol_.implement( - builder, - conformsToProtocol_, - ); - NSObjectProtocol.debugDescription.implement(builder, debugDescription); - NSObjectProtocol.description.implement(builder, description); - NSObjectProtocol.hash.implement(builder, hash); - NSObjectProtocol.isEqual_.implement(builder, isEqual_); - NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); - NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); - NSObjectProtocol.isProxy.implement(builder, isProxy); - NSObjectProtocol.performSelector_.implement(builder, performSelector_); - NSObjectProtocol.performSelector_withObject_.implement( - builder, - performSelector_withObject_, - ); - NSObjectProtocol.performSelector_withObject_withObject_.implement( - builder, - performSelector_withObject_withObject_, - ); - NSObjectProtocol.release.implementAsBlocking(builder, release); - NSObjectProtocol.respondsToSelector_.implement( - builder, - respondsToSelector_, - ); - NSObjectProtocol.retain.implement(builder, retain); - NSObjectProtocol.retainCount.implement(builder, retainCount); - NSObjectProtocol.self$1.implement(builder, self$1); - NSObjectProtocol.superclass.implement(builder, superclass); - NSObjectProtocol.zone.implement(builder, zone); - builder.addProtocol($protocol); - } - - /// autorelease - static final autorelease = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_autorelease, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_autorelease, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// class - static final class$ = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_class, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_class, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// conformsToProtocol: - static final conformsToProtocol_ = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_conformsToProtocol_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_conformsToProtocol_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(Protocol) func) => - ObjCBlock_bool_ffiVoid_Protocol.fromFunction( - (ffi.Pointer _, Protocol arg1) => func(arg1), - ), - ); - - /// debugDescription - static final debugDescription = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_debugDescription, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_debugDescription, - isRequired: false, - isInstanceMethod: true, - ), - (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// description - static final description = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_description, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_description, - isRequired: true, - isInstanceMethod: true, - ), - (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// hash - static final hash = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_hash, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1ckyi24) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_hash, - isRequired: true, - isInstanceMethod: true, - ), - (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// isEqual: - static final isEqual_ = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isEqual_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isEqual_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.ObjCObjectBase) func) => - ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( - (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), - ), - ); - - /// isKindOfClass: - static final isKindOfClass_ = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isKindOfClass_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isKindOfClass_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.ObjCObjectBase) func) => - ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( - (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), - ), - ); - - /// isMemberOfClass: - static final isMemberOfClass_ = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isMemberOfClass_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_3su7tt) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isMemberOfClass_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(objc.ObjCObjectBase) func) => - ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( - (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), - ), - ); - - /// isProxy - static final isProxy = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_isProxy, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_e3qsqz) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_isProxy, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// performSelector: - static final performSelector_ = - objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function(ffi.Pointer) - >( - _protocol_NSObject, - _sel_performSelector_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_50as9u) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_performSelector_, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function(ffi.Pointer) func) => - ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1), - ), - ); - - /// performSelector:withObject: - static final performSelector_withObject_ = - objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - >( - _protocol_NSObject, - _sel_performSelector_withObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mllhpc) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_performSelector_withObject_, - isRequired: true, - isInstanceMethod: true, - ), - ( - objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - ) - func, - ) => - ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2, - ) => func(arg1, arg2), - ), - ); - - /// performSelector:withObject:withObject: - static final performSelector_withObject_withObject_ = - objc.ObjCProtocolMethod< - objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - >( - _protocol_NSObject, - _sel_performSelector_withObject_withObject_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_c7gk2u) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_performSelector_withObject_withObject_, - isRequired: true, - isInstanceMethod: true, - ), - ( - objc.ObjCObjectBase Function( - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - func, - ) => - ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject.fromFunction( - ( - ffi.Pointer _, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2, - objc.ObjCObjectBase arg3, - ) => func(arg1, arg2, arg3), - ), - ); - - /// release - static final release = objc.ObjCProtocolListenableMethod( - _protocol_NSObject, - _sel_release, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_ovsamd) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_release, - isRequired: true, - isInstanceMethod: true, - ), - (void Function() func) => ObjCBlock_ffiVoid_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - (void Function() func) => - ObjCBlock_ffiVoid_ffiVoid.listener((ffi.Pointer _) => func()), - (void Function() func) => - ObjCBlock_ffiVoid_ffiVoid.blocking((ffi.Pointer _) => func()), - ); - - /// respondsToSelector: - static final respondsToSelector_ = - objc.ObjCProtocolMethod)>( - _protocol_NSObject, - _sel_respondsToSelector_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_w1e3k0) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_respondsToSelector_, - isRequired: true, - isInstanceMethod: true, - ), - (bool Function(ffi.Pointer) func) => - ObjCBlock_bool_ffiVoid_objcObjCSelector.fromFunction( - (ffi.Pointer _, ffi.Pointer arg1) => - func(arg1), - ), - ); - - /// retain - static final retain = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_retain, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_retain, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// retainCount - static final retainCount = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_retainCount, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1ckyi24) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_retainCount, - isRequired: true, - isInstanceMethod: true, - ), - (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// self - static final self$1 = objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_self, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_self, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// superclass - static final superclass = - objc.ObjCProtocolMethod( - _protocol_NSObject, - _sel_superclass, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_superclass, - isRequired: true, - isInstanceMethod: true, - ), - (objc.ObjCObjectBase Function() func) => - ObjCBlock_objcObjCObject_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); - - /// zone - static final zone = objc.ObjCProtocolMethod Function()>( - _protocol_NSObject, - _sel_zone, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1a8cl66) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSObject, - _sel_zone, - isRequired: true, - isInstanceMethod: true, - ), - (ffi.Pointer Function() func) => - ObjCBlock_NSZone_ffiVoid.fromFunction( - (ffi.Pointer _) => func(), - ), - ); -} - -/// NSOrderedCollectionChange -/// -/// iOS: introduced 13.0.0 -/// macOS: introduced 10.15.0 -class NSOrderedCollectionChange extends NSObject { - NSOrderedCollectionChange._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - } - - /// Constructs a [NSOrderedCollectionChange] that points to the same underlying object as [other]. - NSOrderedCollectionChange.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSOrderedCollectionChange] that wraps the given raw object pointer. - NSOrderedCollectionChange.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSOrderedCollectionChange]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSOrderedCollectionChange, - ); - } - - /// alloc - static NSOrderedCollectionChange alloc() { - final _ret = _objc_msgSend_151sglz( - _class_NSOrderedCollectionChange, - _sel_alloc, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSOrderedCollectionChange allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSOrderedCollectionChange, - _sel_allocWithZone_, - zone, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// changeWithObject:type:index: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - static NSOrderedCollectionChange changeWithObject( - objc.ObjCObjectBase? anObject, { - required NSCollectionChangeType type, - required int index, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.changeWithObject:type:index:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_vbymrb( - _class_NSOrderedCollectionChange, - _sel_changeWithObject_type_index_, - anObject?.ref.pointer ?? ffi.nullptr, - type.value, - index, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// changeWithObject:type:index:associatedIndex: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - static NSOrderedCollectionChange changeWithObject$1( - objc.ObjCObjectBase? anObject, { - required NSCollectionChangeType type, - required int index, - required int associatedIndex, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.changeWithObject:type:index:associatedIndex:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1egc1c( - _class_NSOrderedCollectionChange, - _sel_changeWithObject_type_index_associatedIndex_, - anObject?.ref.pointer ?? ffi.nullptr, - type.value, - index, - associatedIndex, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// new - static NSOrderedCollectionChange new$() { - final _ret = _objc_msgSend_151sglz( - _class_NSOrderedCollectionChange, - _sel_new, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - int get associatedIndex { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.associatedIndex', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_associatedIndex); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSCollectionChangeType get changeType { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.changeType', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_hc8exi(this.ref.pointer, _sel_changeType); - return NSCollectionChangeType.fromValue(_ret); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - int get index { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.index', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_index); - } - - /// init - NSOrderedCollectionChange init() { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObject:type:index: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionChange initWithObject( - objc.ObjCObjectBase? anObject, { - required NSCollectionChangeType type, - required int index$1, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.initWithObject:type:index:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_vbymrb( - this.ref.retainAndReturnPointer(), - _sel_initWithObject_type_index_, - anObject?.ref.pointer ?? ffi.nullptr, - type.value, - index$1, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithObject:type:index:associatedIndex: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionChange initWithObject$1( - objc.ObjCObjectBase? anObject, { - required NSCollectionChangeType type, - required int index$1, - required int associatedIndex$1, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.initWithObject:type:index:associatedIndex:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1egc1c( - this.ref.retainAndReturnPointer(), - _sel_initWithObject_type_index_associatedIndex_, - anObject?.ref.pointer ?? ffi.nullptr, - type.value, - index$1, - associatedIndex$1, - ); - return NSOrderedCollectionChange.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - objc.ObjCObjectBase? get object { - objc.checkOsVersionInternal( - 'NSOrderedCollectionChange.object', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_object); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSOrderedCollectionChange constructed with the default `new` method. - factory NSOrderedCollectionChange() => new$(); -} - -/// NSOrderedCollectionDifference -/// -/// iOS: introduced 13.0.0 -/// macOS: introduced 10.15.0 -class NSOrderedCollectionDifference extends NSObject - implements NSFastEnumeration { - NSOrderedCollectionDifference._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - } - - /// Constructs a [NSOrderedCollectionDifference] that points to the same underlying object as [other]. - NSOrderedCollectionDifference.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSOrderedCollectionDifference] that wraps the given raw object pointer. - NSOrderedCollectionDifference.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSOrderedCollectionDifference]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSOrderedCollectionDifference, - ); - } - - /// alloc - static NSOrderedCollectionDifference alloc() { - final _ret = _objc_msgSend_151sglz( - _class_NSOrderedCollectionDifference, - _sel_alloc, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// allocWithZone: - static NSOrderedCollectionDifference allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSOrderedCollectionDifference, - _sel_allocWithZone_, - zone, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// new - static NSOrderedCollectionDifference new$() { - final _ret = _objc_msgSend_151sglz( - _class_NSOrderedCollectionDifference, - _sel_new, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// differenceByTransformingChangesWithBlock: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionDifference differenceByTransformingChangesWithBlock( - objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - > - block, - ) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.differenceByTransformingChangesWithBlock:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.pointer, - _sel_differenceByTransformingChangesWithBlock_, - block.ref.pointer, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - bool get hasChanges { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.hasChanges', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_hasChanges); - } - - /// init - NSOrderedCollectionDifference init() { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithChanges: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionDifference initWithChanges(NSArray changes) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.initWithChanges:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithChanges_, - changes.ref.pointer, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionDifference initWithInsertIndexes( - NSIndexSet inserts, { - NSArray? insertedObjects, - required NSIndexSet removeIndexes, - NSArray? removedObjects, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_s92gih( - this.ref.retainAndReturnPointer(), - _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_, - inserts.ref.pointer, - insertedObjects?.ref.pointer ?? ffi.nullptr, - removeIndexes.ref.pointer, - removedObjects?.ref.pointer ?? ffi.nullptr, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionDifference initWithInsertIndexes$1( - NSIndexSet inserts, { - NSArray? insertedObjects, - required NSIndexSet removeIndexes, - NSArray? removedObjects, - required NSArray additionalChanges, - }) { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_3cbdpb( - this.ref.retainAndReturnPointer(), - _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_, - inserts.ref.pointer, - insertedObjects?.ref.pointer ?? ffi.nullptr, - removeIndexes.ref.pointer, - removedObjects?.ref.pointer ?? ffi.nullptr, - additionalChanges.ref.pointer, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: false, - release: true, - ); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSArray get insertions { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.insertions', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_insertions); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// inverseDifference - /// - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSOrderedCollectionDifference inverseDifference() { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.inverseDifference', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_inverseDifference, - ); - return NSOrderedCollectionDifference.castFromPointer( - _ret, - retain: true, - release: true, - ); - } - - /// iOS: introduced 13.0.0 - /// macOS: introduced 10.15.0 - NSArray get removals { - objc.checkOsVersionInternal( - 'NSOrderedCollectionDifference.removals', - iOS: (false, (13, 0, 0)), - macOS: (false, (10, 15, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_removals); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSOrderedCollectionDifference constructed with the default `new` method. - factory NSOrderedCollectionDifference() => new$(); -} - -/// iOS: introduced 13.0.0 -/// macOS: introduced 10.15.0 -enum NSOrderedCollectionDifferenceCalculationOptions { - NSOrderedCollectionDifferenceCalculationOmitInsertedObjects(1), - NSOrderedCollectionDifferenceCalculationOmitRemovedObjects(2), - NSOrderedCollectionDifferenceCalculationInferMoves(4); - - final int value; - const NSOrderedCollectionDifferenceCalculationOptions(this.value); - - static NSOrderedCollectionDifferenceCalculationOptions fromValue( - int value, - ) => switch (value) { - 1 => NSOrderedCollectionDifferenceCalculationOmitInsertedObjects, - 2 => NSOrderedCollectionDifferenceCalculationOmitRemovedObjects, - 4 => NSOrderedCollectionDifferenceCalculationInferMoves, - _ => throw ArgumentError( - 'Unknown value for NSOrderedCollectionDifferenceCalculationOptions: $value', - ), - }; -} - -/// NSOrderedSet -class NSOrderedSet extends NSObject - implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - NSOrderedSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release) { - objc.checkOsVersionInternal( - 'NSOrderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - } - - /// Constructs a [NSOrderedSet] that points to the same underlying object as [other]. - NSOrderedSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSOrderedSet] that wraps the given raw object pointer. - NSOrderedSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSOrderedSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSOrderedSet, - ); - } - - /// alloc - static NSOrderedSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_alloc); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSOrderedSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSOrderedSet, - _sel_allocWithZone_, - zone, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSOrderedSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_new); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// orderedSet - static NSOrderedSet orderedSet() { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSet', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithArray: - static NSOrderedSet orderedSetWithArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithArray_, - array.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithArray:range:copyItems: - static NSOrderedSet orderedSetWithArray$1( - NSArray array, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - _class_NSOrderedSet, - _sel_orderedSetWithArray_range_copyItems_, - array.ref.pointer, - range, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithObject: - static NSOrderedSet orderedSetWithObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithObject_, - object.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithObjects: - static NSOrderedSet orderedSetWithObjects(objc.ObjCObjectBase firstObj) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithObjects_, - firstObj.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithObjects:count: - static NSOrderedSet orderedSetWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_zmbtbd( - _class_NSOrderedSet, - _sel_orderedSetWithObjects_count_, - objects, - count, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet: - static NSOrderedSet orderedSetWithOrderedSet(NSOrderedSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_, - set$.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithOrderedSet:range:copyItems: - static NSOrderedSet orderedSetWithOrderedSet$1( - NSOrderedSet set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - _class_NSOrderedSet, - _sel_orderedSetWithOrderedSet_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithSet: - static NSOrderedSet orderedSetWithSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - _class_NSOrderedSet, - _sel_orderedSetWithSet_, - set$.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// orderedSetWithSet:copyItems: - static NSOrderedSet orderedSetWithSet$1( - NSSet set$, { - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.orderedSetWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - _class_NSOrderedSet, - _sel_orderedSetWithSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSOrderedSet, _sel_supportsSecureCoding); - } - - /// autorelease - NSOrderedSet autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// count - int get count { - objc.checkOsVersionInternal( - 'NSOrderedSet.count', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// indexOfObject: - int indexOfObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSOrderedSet.indexOfObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_1vd1c5m( - this.ref.pointer, - _sel_indexOfObject_, - object.ref.pointer, - ); - } - - /// init - NSOrderedSet init() { - objc.checkOsVersionInternal( - 'NSOrderedSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray: - NSOrderedSet initWithArray(NSArray array) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray:copyItems: - NSOrderedSet initWithArray$1(NSArray set$, {required bool copyItems}) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray:range:copyItems: - NSOrderedSet initWithArray$2( - NSArray set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithArray:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSOrderedSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObject: - NSOrderedSet initWithObject(objc.ObjCObjectBase object) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObject:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObject_, - object.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects: - NSOrderedSet initWithObjects(objc.ObjCObjectBase firstObj) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObjects:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:count: - NSOrderedSet initWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithObjects:count:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithOrderedSet: - NSOrderedSet initWithOrderedSet(NSOrderedSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_, - set$.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithOrderedSet:copyItems: - NSOrderedSet initWithOrderedSet$1( - NSOrderedSet set$, { - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithOrderedSet:range:copyItems: - NSOrderedSet initWithOrderedSet$2( - NSOrderedSet set$, { - required NSRange range, - required bool copyItems, - }) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithOrderedSet:range:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_w9bq5x( - this.ref.retainAndReturnPointer(), - _sel_initWithOrderedSet_range_copyItems_, - set$.ref.pointer, - range, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet: - NSOrderedSet initWithSet(NSSet set$) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithSet:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_, - set$.ref.pointer, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - NSOrderedSet initWithSet$1(NSSet set$, {required bool copyItems}) { - objc.checkOsVersionInternal( - 'NSOrderedSet.initWithSet:copyItems:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - set$.ref.pointer, - copyItems, - ); - return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); - } - - /// objectAtIndex: - objc.ObjCObjectBase objectAtIndex(int idx) { - objc.checkOsVersionInternal( - 'NSOrderedSet.objectAtIndex:', - iOS: (false, (5, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_objectAtIndex_, - idx, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// retain - NSOrderedSet retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSOrderedSet self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSOrderedSet constructed with the default `new` method. - factory NSOrderedSet() => new$(); -} - -/// NSOutputStream -class NSOutputStream extends NSStream { - NSOutputStream._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSOutputStream] that points to the same underlying object as [other]. - NSOutputStream.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSOutputStream] that wraps the given raw object pointer. - NSOutputStream.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSOutputStream]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSOutputStream, - ); - } - - /// outputStreamToBuffer:capacity: - static NSOutputStream outputStreamToBuffer( - ffi.Pointer buffer, { - required int capacity, - }) { - final _ret = _objc_msgSend_158ju31( - _class_NSOutputStream, - _sel_outputStreamToBuffer_capacity_, - buffer, - capacity, - ); - return NSOutputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// outputStreamToFileAtPath:append: - static NSOutputStream outputStreamToFileAtPath( - NSString path, { - required bool append, - }) { - final _ret = _objc_msgSend_17amj0z( - _class_NSOutputStream, - _sel_outputStreamToFileAtPath_append_, - path.ref.pointer, - append, - ); - return NSOutputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// outputStreamToMemory - static NSOutputStream outputStreamToMemory() { - final _ret = _objc_msgSend_151sglz( - _class_NSOutputStream, - _sel_outputStreamToMemory, - ); - return NSOutputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// outputStreamWithURL:append: - static NSOutputStream? outputStreamWithURL( - NSURL url, { - required bool append, - }) { - objc.checkOsVersionInternal( - 'NSOutputStream.outputStreamWithURL:append:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - _class_NSOutputStream, - _sel_outputStreamWithURL_append_, - url.ref.pointer, - append, - ); - return _ret.address == 0 - ? null - : NSOutputStream.castFromPointer(_ret, retain: true, release: true); - } - - /// hasSpaceAvailable - bool get hasSpaceAvailable { - return _objc_msgSend_91o635(this.ref.pointer, _sel_hasSpaceAvailable); - } - - /// initToBuffer:capacity: - NSOutputStream initToBuffer( - ffi.Pointer buffer, { - required int capacity, - }) { - final _ret = _objc_msgSend_158ju31( - this.ref.retainAndReturnPointer(), - _sel_initToBuffer_capacity_, - buffer, - capacity, - ); - return NSOutputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// initToFileAtPath:append: - NSOutputStream? initToFileAtPath(NSString path, {required bool append}) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initToFileAtPath_append_, - path.ref.pointer, - append, - ); - return _ret.address == 0 - ? null - : NSOutputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// initToMemory - NSOutputStream initToMemory() { - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_initToMemory, - ); - return NSOutputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithURL:append: - NSOutputStream? initWithURL(NSURL url, {required bool append}) { - objc.checkOsVersionInternal( - 'NSOutputStream.initWithURL:append:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_append_, - url.ref.pointer, - append, - ); - return _ret.address == 0 - ? null - : NSOutputStream.castFromPointer(_ret, retain: false, release: true); - } - - /// write:maxLength: - int write(ffi.Pointer buffer, {required int maxLength}) { - return _objc_msgSend_11e9f5x( - this.ref.pointer, - _sel_write_maxLength_, - buffer, - maxLength, - ); - } -} - -/// NSProgress -class NSProgress extends objc.ObjCObjectBase { - NSProgress._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSProgress] that points to the same underlying object as [other]. - NSProgress.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSProgress] that wraps the given raw object pointer. - NSProgress.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSProgress]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSProgress, - ); - } -} - -enum NSQualityOfService { - NSQualityOfServiceUserInteractive(33), - NSQualityOfServiceUserInitiated(25), - NSQualityOfServiceUtility(17), - NSQualityOfServiceBackground(9), - NSQualityOfServiceDefault(-1); - - final int value; - const NSQualityOfService(this.value); - - static NSQualityOfService fromValue(int value) => switch (value) { - 33 => NSQualityOfServiceUserInteractive, - 25 => NSQualityOfServiceUserInitiated, - 17 => NSQualityOfServiceUtility, - 9 => NSQualityOfServiceBackground, - -1 => NSQualityOfServiceDefault, - _ => throw ArgumentError('Unknown value for NSQualityOfService: $value'), - }; -} - -final class NSRange extends ffi.Struct { - @ffi.UnsignedLong() - external int location; - - @ffi.UnsignedLong() - external int length; -} - -/// NSRunLoop -class NSRunLoop extends objc.ObjCObjectBase { - NSRunLoop._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSRunLoop] that points to the same underlying object as [other]. - NSRunLoop.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSRunLoop] that wraps the given raw object pointer. - NSRunLoop.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSRunLoop]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSRunLoop, - ); - } -} - -/// NSSecureCoding -interface class NSSecureCoding extends objc.ObjCProtocolBase - implements NSCoding { - NSSecureCoding._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSSecureCoding] that points to the same underlying object as [other]. - NSSecureCoding.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSSecureCoding] that wraps the given raw object pointer. - NSSecureCoding.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSSecureCoding]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSSecureCoding, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSSecureCoding.cast()); - - /// Builds an object that implements the NSSecureCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSecureCoding implement({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); - NSSecureCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSSecureCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSecureCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSSecureCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSSecureCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSecureCoding implementAsListener({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); - NSSecureCoding.encodeWithCoder_.implementAsListener( - builder, - encodeWithCoder_, - ); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSSecureCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSecureCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSSecureCoding.encodeWithCoder_.implementAsListener( - builder, - encodeWithCoder_, - ); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSSecureCoding protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSSecureCoding implementAsBlocking({ - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); - NSSecureCoding.encodeWithCoder_.implementAsBlocking( - builder, - encodeWithCoder_, - ); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - return NSSecureCoding.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSSecureCoding protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function(NSCoder) encodeWithCoder_, - required Dartinstancetype? Function(NSCoder) initWithCoder_, - bool $keepIsolateAlive = true, - }) { - NSSecureCoding.encodeWithCoder_.implementAsBlocking( - builder, - encodeWithCoder_, - ); - NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); - builder.addProtocol($protocol); - } - - /// encodeWithCoder: - static final encodeWithCoder_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSSecureCoding, - _sel_encodeWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSecureCoding, - _sel_encodeWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - (void Function(NSCoder) func) => - ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - ); - - /// initWithCoder: - static final initWithCoder_ = - objc.ObjCProtocolMethod( - _protocol_NSSecureCoding, - _sel_initWithCoder_, - ffi.Native.addressOf< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_xr62hr) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSSecureCoding, - _sel_initWithCoder_, - isRequired: true, - isInstanceMethod: true, - ), - (Dartinstancetype? Function(NSCoder) func) => - ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( - (ffi.Pointer _, NSCoder arg1) => func(arg1), - ), - ); -} - -/// NSSet -class NSSet extends NSObject - with collection.SetBase - implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { - /// Creates a [NSSet] from [elements]. - static NSSet of(Iterable elements) => - NSMutableSet.of(elements); - - @override - int get length => count; - - @override - bool contains(Object? element) => - element is objc.ObjCObjectBase ? containsObject(element) : false; - - @override - objc.ObjCObjectBase? lookup(Object? element) => - element is objc.ObjCObjectBase ? member(element) : null; - - @override - Iterator get iterator => objectEnumerator(); - - @override - Set toSet() => {...this}; - - @override - bool add(objc.ObjCObjectBase value) => - throw UnsupportedError("Cannot modify NSSet"); - - @override - bool remove(Object? value) => throw UnsupportedError("Cannot modify NSSet"); - - @override - void clear() => throw UnsupportedError("Cannot modify NSSet"); - - NSSet._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSSet] that points to the same underlying object as [other]. - NSSet.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSSet] that wraps the given raw object pointer. - NSSet.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSSet]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSSet, - ); - } - - /// alloc - static NSSet alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_alloc); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSSet allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428(_class_NSSet, _sel_allocWithZone_, zone); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSSet new$() { - final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_new); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// set - static NSSet set$() { - final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_set); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithArray: - static NSSet setWithArray(NSArray array) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithArray_, - array.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObject: - static NSSet setWithObject(objc.ObjCObjectBase object) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithObject_, - object.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObjects: - static NSSet setWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithObjects_, - firstObj.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithObjects:count: - static NSSet setWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - _class_NSSet, - _sel_setWithObjects_count_, - objects, - count, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// setWithSet: - static NSSet setWithSet(NSSet set$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSSet, - _sel_setWithSet_, - set$1.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSSet, _sel_supportsSecureCoding); - } - - /// count - int get count { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); - } - - /// countByEnumeratingWithState:objects:count: - int countByEnumeratingWithState( - ffi.Pointer state, { - required ffi.Pointer> objects, - required int count$1, - }) { - return _objc_msgSend_1b5ysjl( - this.ref.pointer, - _sel_countByEnumeratingWithState_objects_count_, - state, - objects, - count$1, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSSet init() { - objc.checkOsVersionInternal( - 'NSSet.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithArray: - NSSet initWithArray(NSArray array) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithArray_, - array.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSSet? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects: - NSSet initWithObjects(objc.ObjCObjectBase firstObj) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_, - firstObj.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithObjects:count: - NSSet initWithObjects$1( - ffi.Pointer> objects, { - required int count, - }) { - final _ret = _objc_msgSend_zmbtbd( - this.ref.retainAndReturnPointer(), - _sel_initWithObjects_count_, - objects, - count, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet: - NSSet initWithSet(NSSet set$1) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_, - set$1.ref.pointer, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithSet:copyItems: - NSSet initWithSet$1(NSSet set$1, {required bool copyItems}) { - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithSet_copyItems_, - set$1.ref.pointer, - copyItems, - ); - return NSSet.castFromPointer(_ret, retain: false, release: true); - } - - /// member: - objc.ObjCObjectBase? member(objc.ObjCObjectBase object) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_member_, - object.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// objectEnumerator - NSEnumerator objectEnumerator() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); - return NSEnumerator.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSSet constructed with the default `new` method. - factory NSSet() => new$(); -} - -enum NSSortOptions { - NSSortConcurrent(1), - NSSortStable(16); - - final int value; - const NSSortOptions(this.value); - - static NSSortOptions fromValue(int value) => switch (value) { - 1 => NSSortConcurrent, - 16 => NSSortStable, - _ => throw ArgumentError('Unknown value for NSSortOptions: $value'), - }; -} - -/// NSStream -class NSStream extends NSObject { - NSStream._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSStream] that points to the same underlying object as [other]. - NSStream.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSStream] that wraps the given raw object pointer. - NSStream.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSStream]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSStream, - ); - } - - /// alloc - static NSStream alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSStream, _sel_alloc); - return NSStream.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSStream allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSStream, - _sel_allocWithZone_, - zone, - ); - return NSStream.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSStream new$() { - final _ret = _objc_msgSend_151sglz(_class_NSStream, _sel_new); - return NSStream.castFromPointer(_ret, retain: false, release: true); - } - - /// autorelease - NSStream autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSStream.castFromPointer(_ret, retain: true, release: true); - } - - /// close - void close() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_close); - } - - /// delegate - NSStreamDelegate? get delegate { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_delegate); - return _ret.address == 0 - ? null - : NSStreamDelegate.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSStream init() { - objc.checkOsVersionInternal( - 'NSStream.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSStream.castFromPointer(_ret, retain: false, release: true); - } - - /// open - void open() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_open); - } - - /// propertyForKey: - objc.ObjCObjectBase? propertyForKey(NSString key) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_propertyForKey_, - key.ref.pointer, - ); - return _ret.address == 0 - ? null - : objc.ObjCObjectBase(_ret, retain: true, release: true); - } - - /// removeFromRunLoop:forMode: - void removeFromRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_removeFromRunLoop_forMode_, - aRunLoop.ref.pointer, - forMode.ref.pointer, - ); - } - - /// retain - NSStream retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSStream.castFromPointer(_ret, retain: true, release: true); - } - - /// scheduleInRunLoop:forMode: - void scheduleInRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) { - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_scheduleInRunLoop_forMode_, - aRunLoop.ref.pointer, - forMode.ref.pointer, - ); - } - - /// self - NSStream self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSStream.castFromPointer(_ret, retain: true, release: true); - } - - /// setDelegate: - set delegate(NSStreamDelegate? value) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setDelegate_, - value?.ref.pointer ?? ffi.nullptr, - ); - } - - /// setProperty:forKey: - bool setProperty(objc.ObjCObjectBase? property, {required NSString forKey}) { - return _objc_msgSend_1lsax7n( - this.ref.pointer, - _sel_setProperty_forKey_, - property?.ref.pointer ?? ffi.nullptr, - forKey.ref.pointer, - ); - } - - /// streamError - NSError? get streamError { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_streamError); - return _ret.address == 0 - ? null - : NSError.castFromPointer(_ret, retain: true, release: true); - } - - /// streamStatus - NSStreamStatus get streamStatus { - final _ret = _objc_msgSend_1efxbd8(this.ref.pointer, _sel_streamStatus); - return NSStreamStatus.fromValue(_ret); - } - - /// Returns a new instance of NSStream constructed with the default `new` method. - factory NSStream() => new$(); -} - -/// NSStreamDelegate -interface class NSStreamDelegate extends objc.ObjCProtocolBase - implements NSObjectProtocol { - NSStreamDelegate._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [NSStreamDelegate] that points to the same underlying object as [other]. - NSStreamDelegate.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSStreamDelegate] that wraps the given raw object pointer. - NSStreamDelegate.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSStreamDelegate]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( - obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_NSStreamDelegate, - ); - } - - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_NSStreamDelegate.cast()); - - /// Builds an object that implements the NSStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSStreamDelegate implement({ - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); - NSStreamDelegate.stream_handleEvent_.implement( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - return NSStreamDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - NSStreamDelegate.stream_handleEvent_.implement( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSStreamDelegate implementAsListener({ - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); - NSStreamDelegate.stream_handleEvent_.implementAsListener( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - return NSStreamDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - NSStreamDelegate.stream_handleEvent_.implementAsListener( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - } - - /// Builds an object that implements the NSStreamDelegate protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static NSStreamDelegate implementAsBlocking({ - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); - NSStreamDelegate.stream_handleEvent_.implementAsBlocking( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - return NSStreamDelegate.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), - ); - } - - /// Adds the implementation of the NSStreamDelegate protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - void Function(NSStream, NSStreamEvent)? stream_handleEvent_, - bool $keepIsolateAlive = true, - }) { - NSStreamDelegate.stream_handleEvent_.implementAsBlocking( - builder, - stream_handleEvent_, - ); - builder.addProtocol($protocol); - } - - /// stream:handleEvent: - static final stream_handleEvent_ = - objc.ObjCProtocolListenableMethod( - _protocol_NSStreamDelegate, - _sel_stream_handleEvent_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_hoampi) - .cast(), - objc.getProtocolMethodSignature( - _protocol_NSStreamDelegate, - _sel_stream_handleEvent_, - isRequired: false, - isInstanceMethod: true, - ), - (void Function(NSStream, NSStreamEvent) func) => - ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.fromFunction( - (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => - func(arg1, arg2), - ), - (void Function(NSStream, NSStreamEvent) func) => - ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.listener( - (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => - func(arg1, arg2), - ), - (void Function(NSStream, NSStreamEvent) func) => - ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.blocking( - (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => - func(arg1, arg2), - ), - ); -} - -enum NSStreamEvent { - NSStreamEventNone(0), - NSStreamEventOpenCompleted(1), - NSStreamEventHasBytesAvailable(2), - NSStreamEventHasSpaceAvailable(4), - NSStreamEventErrorOccurred(8), - NSStreamEventEndEncountered(16); - - final int value; - const NSStreamEvent(this.value); - - static NSStreamEvent fromValue(int value) => switch (value) { - 0 => NSStreamEventNone, - 1 => NSStreamEventOpenCompleted, - 2 => NSStreamEventHasBytesAvailable, - 4 => NSStreamEventHasSpaceAvailable, - 8 => NSStreamEventErrorOccurred, - 16 => NSStreamEventEndEncountered, - _ => throw ArgumentError('Unknown value for NSStreamEvent: $value'), - }; -} - -enum NSStreamStatus { - NSStreamStatusNotOpen(0), - NSStreamStatusOpening(1), - NSStreamStatusOpen(2), - NSStreamStatusReading(3), - NSStreamStatusWriting(4), - NSStreamStatusAtEnd(5), - NSStreamStatusClosed(6), - NSStreamStatusError(7); - - final int value; - const NSStreamStatus(this.value); - - static NSStreamStatus fromValue(int value) => switch (value) { - 0 => NSStreamStatusNotOpen, - 1 => NSStreamStatusOpening, - 2 => NSStreamStatusOpen, - 3 => NSStreamStatusReading, - 4 => NSStreamStatusWriting, - 5 => NSStreamStatusAtEnd, - 6 => NSStreamStatusClosed, - 7 => NSStreamStatusError, - _ => throw ArgumentError('Unknown value for NSStreamStatus: $value'), - }; -} - -/// NSString -class NSString extends NSObject - implements NSCopying, NSMutableCopying, NSSecureCoding { - factory NSString(String str) { - final cstr = str.toNativeUtf16(); - final nsstr = stringWithCharacters(cstr.cast(), length: str.length); - pkg_ffi.calloc.free(cstr); - return nsstr; - } - - NSString._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSString] that points to the same underlying object as [other]. - NSString.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSString] that wraps the given raw object pointer. - NSString.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSString]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSString, - ); - } - - /// alloc - static NSString alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_alloc); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSString allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSString, - _sel_allocWithZone_, - zone, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// localizedStringWithFormat: - static NSString localizedStringWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSString, - _sel_localizedStringWithFormat_, - format.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: - static NSString? localizedStringWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSString new$() { - final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_new); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static NSString? objectWithItemProviderData( - NSData data, { - required NSString typeIdentifier, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSString.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// string - static NSString string() { - final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_string); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithCString:encoding: - static NSString? stringWithCString( - ffi.Pointer cString, { - required int encoding, - }) { - final _ret = _objc_msgSend_erqryg( - _class_NSString, - _sel_stringWithCString_encoding_, - cString, - encoding, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithCharacters:length: - static NSString stringWithCharacters( - ffi.Pointer characters, { - required int length, - }) { - final _ret = _objc_msgSend_9x4k8x( - _class_NSString, - _sel_stringWithCharacters_length_, - characters, - length, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfFile:encoding:error: - static NSString? stringWithContentsOfFile( - NSString path, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - _class_NSString, - _sel_stringWithContentsOfFile_encoding_error_, - path.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfFile:usedEncoding:error: - static NSString? stringWithContentsOfFile$1( - NSString path, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - _class_NSString, - _sel_stringWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfURL:encoding:error: - static NSString? stringWithContentsOfURL( - NSURL url, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - _class_NSString, - _sel_stringWithContentsOfURL_encoding_error_, - url.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithContentsOfURL:usedEncoding:error: - static NSString? stringWithContentsOfURL$1( - NSURL url, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - _class_NSString, - _sel_stringWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithFormat: - static NSString stringWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSString, - _sel_stringWithFormat_, - format.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithString: - static NSString stringWithString(NSString string$1) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSString, - _sel_stringWithString_, - string$1.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithUTF8String: - static NSString? stringWithUTF8String( - ffi.Pointer nullTerminatedCString, - ) { - final _ret = _objc_msgSend_56zxyn( - _class_NSString, - _sel_stringWithUTF8String_, - nullTerminatedCString, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringWithValidatedFormat:validFormatSpecifiers:error: - static NSString? stringWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSString.stringWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSString, - _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSString, _sel_supportsSecureCoding); - } - - /// autorelease - NSString autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// characterAtIndex: - int characterAtIndex(int index) { - return _objc_msgSend_1deg8x( - this.ref.pointer, - _sel_characterAtIndex_, - index, - ); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// init - NSString init() { - objc.checkOsVersionInternal( - 'NSString.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:length:encoding: - NSString? initWithBytes( - ffi.Pointer bytes, { - required int length, - required int encoding, - }) { - final _ret = _objc_msgSend_9b3h4v( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_length_encoding_, - bytes, - length, - encoding, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:encoding:deallocator: - NSString? initWithBytesNoCopy( - ffi.Pointer bytes, { - required int length, - required int encoding, - objc.ObjCBlock, ffi.UnsignedLong)>? - deallocator, - }) { - final _ret = _objc_msgSend_1lbgrac( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_encoding_deallocator_, - bytes, - length, - encoding, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytesNoCopy:length:encoding:freeWhenDone: - NSString? initWithBytesNoCopy$1( - ffi.Pointer bytes, { - required int length, - required int encoding, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_k4j8m3( - this.ref.retainAndReturnPointer(), - _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, - bytes, - length, - encoding, - freeWhenDone, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCString:encoding: - NSString? initWithCString( - ffi.Pointer nullTerminatedCString, { - required int encoding, - }) { - final _ret = _objc_msgSend_erqryg( - this.ref.retainAndReturnPointer(), - _sel_initWithCString_encoding_, - nullTerminatedCString, - encoding, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharacters:length: - NSString initWithCharacters( - ffi.Pointer characters, { - required int length, - }) { - final _ret = _objc_msgSend_9x4k8x( - this.ref.retainAndReturnPointer(), - _sel_initWithCharacters_length_, - characters, - length, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharactersNoCopy:length:deallocator: - NSString initWithCharactersNoCopy( - ffi.Pointer chars, { - required int length, - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >? - deallocator, - }) { - final _ret = _objc_msgSend_talwei( - this.ref.retainAndReturnPointer(), - _sel_initWithCharactersNoCopy_length_deallocator_, - chars, - length, - deallocator?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCharactersNoCopy:length:freeWhenDone: - NSString initWithCharactersNoCopy$1( - ffi.Pointer characters, { - required int length, - required bool freeWhenDone, - }) { - final _ret = _objc_msgSend_lh0jh5( - this.ref.retainAndReturnPointer(), - _sel_initWithCharactersNoCopy_length_freeWhenDone_, - characters, - length, - freeWhenDone, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSString? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:encoding:error: - NSString? initWithContentsOfFile( - NSString path, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_encoding_error_, - path.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfFile:usedEncoding:error: - NSString? initWithContentsOfFile$1( - NSString path, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfFile_usedEncoding_error_, - path.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:encoding:error: - NSString? initWithContentsOfURL( - NSURL url, { - required int encoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1nomli1( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_encoding_error_, - url.ref.pointer, - encoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithContentsOfURL:usedEncoding:error: - NSString? initWithContentsOfURL$1( - NSURL url, { - required ffi.Pointer usedEncoding, - required ffi.Pointer> error, - }) { - final _ret = _objc_msgSend_1alewu7( - this.ref.retainAndReturnPointer(), - _sel_initWithContentsOfURL_usedEncoding_error_, - url.ref.pointer, - usedEncoding, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithData:encoding: - NSString? initWithData(NSData data, {required int encoding}) { - final _ret = _objc_msgSend_1k4kd9s( - this.ref.retainAndReturnPointer(), - _sel_initWithData_encoding_, - data.ref.pointer, - encoding, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFormat: - NSString initWithFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithFormat_, - format.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithFormat:locale: - NSString initWithFormat$1(NSString format, {objc.ObjCObjectBase? locale}) { - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithFormat_locale_, - format.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithString: - NSString initWithString(NSString aString) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithString_, - aString.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithUTF8String: - NSString? initWithUTF8String(ffi.Pointer nullTerminatedCString) { - final _ret = _objc_msgSend_56zxyn( - this.ref.retainAndReturnPointer(), - _sel_initWithUTF8String_, - nullTerminatedCString, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithValidatedFormat:validFormatSpecifiers:error: - /// - /// iOS: introduced 16.0.0 - /// macOS: introduced 13.0.0 - NSString? initWithValidatedFormat( - NSString format, { - required NSString validFormatSpecifiers, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSString.initWithValidatedFormat:validFormatSpecifiers:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithValidatedFormat:validFormatSpecifiers:locale:error: - /// - /// iOS: introduced 16.0.0 - /// macOS: introduced 13.0.0 - NSString? initWithValidatedFormat$1( - NSString format, { - required NSString validFormatSpecifiers, - objc.ObjCObjectBase? locale, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', - iOS: (false, (16, 0, 0)), - macOS: (false, (13, 0, 0)), - ); - final _ret = _objc_msgSend_1k0ezzm( - this.ref.retainAndReturnPointer(), - _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, - format.ref.pointer, - validFormatSpecifiers.ref.pointer, - locale?.ref.pointer ?? ffi.nullptr, - error, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: false, release: true); - } - - /// length - int get length { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); - } - - /// retain - NSString retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSString self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSString.castFromPointer(_ret, retain: true, release: true); - } -} - -enum NSStringCompareOptions { - NSCaseInsensitiveSearch(1), - NSLiteralSearch(2), - NSBackwardsSearch(4), - NSAnchoredSearch(8), - NSNumericSearch(64), - NSDiacriticInsensitiveSearch(128), - NSWidthInsensitiveSearch(256), - NSForcedOrderingSearch(512), - NSRegularExpressionSearch(1024); - - final int value; - const NSStringCompareOptions(this.value); - - static NSStringCompareOptions fromValue(int value) => switch (value) { - 1 => NSCaseInsensitiveSearch, - 2 => NSLiteralSearch, - 4 => NSBackwardsSearch, - 8 => NSAnchoredSearch, - 64 => NSNumericSearch, - 128 => NSDiacriticInsensitiveSearch, - 256 => NSWidthInsensitiveSearch, - 512 => NSForcedOrderingSearch, - 1024 => NSRegularExpressionSearch, - _ => throw ArgumentError( - 'Unknown value for NSStringCompareOptions: $value', - ), - }; -} - -enum NSStringEncodingConversionOptions { - NSStringEncodingConversionAllowLossy(1), - NSStringEncodingConversionExternalRepresentation(2); - - final int value; - const NSStringEncodingConversionOptions(this.value); - - static NSStringEncodingConversionOptions fromValue(int value) => - switch (value) { - 1 => NSStringEncodingConversionAllowLossy, - 2 => NSStringEncodingConversionExternalRepresentation, - _ => throw ArgumentError( - 'Unknown value for NSStringEncodingConversionOptions: $value', - ), - }; -} - -enum NSStringEnumerationOptions { - NSStringEnumerationByLines(0), - NSStringEnumerationByParagraphs(1), - NSStringEnumerationByComposedCharacterSequences(2), - NSStringEnumerationByWords(3), - NSStringEnumerationBySentences(4), - NSStringEnumerationByCaretPositions(5), - NSStringEnumerationByDeletionClusters(6), - NSStringEnumerationReverse(256), - NSStringEnumerationSubstringNotRequired(512), - NSStringEnumerationLocalized(1024); - - final int value; - const NSStringEnumerationOptions(this.value); - - static NSStringEnumerationOptions fromValue(int value) => switch (value) { - 0 => NSStringEnumerationByLines, - 1 => NSStringEnumerationByParagraphs, - 2 => NSStringEnumerationByComposedCharacterSequences, - 3 => NSStringEnumerationByWords, - 4 => NSStringEnumerationBySentences, - 5 => NSStringEnumerationByCaretPositions, - 6 => NSStringEnumerationByDeletionClusters, - 256 => NSStringEnumerationReverse, - 512 => NSStringEnumerationSubstringNotRequired, - 1024 => NSStringEnumerationLocalized, - _ => throw ArgumentError( - 'Unknown value for NSStringEnumerationOptions: $value', - ), - }; -} - -/// NSStringExtensionMethods -extension NSStringExtensionMethods on NSString { - /// availableStringEncodings - static ffi.Pointer getAvailableStringEncodings() { - return _objc_msgSend_1h2q612( - _class_NSString, - _sel_availableStringEncodings, - ); - } - - /// defaultCStringEncoding - static int getDefaultCStringEncoding() { - return _objc_msgSend_xw2lbc(_class_NSString, _sel_defaultCStringEncoding); - } - - /// localizedNameOfStringEncoding: - static NSString localizedNameOfStringEncoding(int encoding) { - final _ret = _objc_msgSend_14hpxwa( - _class_NSString, - _sel_localizedNameOfStringEncoding_, - encoding, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// UTF8String - ffi.Pointer get UTF8String { - return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_UTF8String); - } - - /// boolValue - bool get boolValue { - objc.checkOsVersionInternal( - 'NSString.boolValue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_boolValue); - } - - /// cStringUsingEncoding: - ffi.Pointer cStringUsingEncoding(int encoding) { - return _objc_msgSend_1jtxufi( - this.ref.pointer, - _sel_cStringUsingEncoding_, - encoding, - ); - } - - /// canBeConvertedToEncoding: - bool canBeConvertedToEncoding(int encoding) { - return _objc_msgSend_6peh6o( - this.ref.pointer, - _sel_canBeConvertedToEncoding_, - encoding, - ); - } - - /// capitalizedString - NSString get capitalizedString { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_capitalizedString, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// capitalizedStringWithLocale: - NSString capitalizedStringWithLocale(NSLocale? locale) { - objc.checkOsVersionInternal( - 'NSString.capitalizedStringWithLocale:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_capitalizedStringWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// caseInsensitiveCompare: - NSComparisonResult caseInsensitiveCompare(NSString string) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_caseInsensitiveCompare_, - string.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// commonPrefixWithString:options: - NSString commonPrefixWithString( - NSString str, { - required NSStringCompareOptions options, - }) { - final _ret = _objc_msgSend_diypgk( - this.ref.pointer, - _sel_commonPrefixWithString_options_, - str.ref.pointer, - options.value, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// compare: - NSComparisonResult compare(NSString string) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_compare_, - string.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// compare:options: - NSComparisonResult compare$1( - NSString string, { - required NSStringCompareOptions options, - }) { - final _ret = _objc_msgSend_pg1fnv( - this.ref.pointer, - _sel_compare_options_, - string.ref.pointer, - options.value, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// compare:options:range: - NSComparisonResult compare$2( - NSString string, { - required NSStringCompareOptions options, - required NSRange range, - }) { - final _ret = _objc_msgSend_xrqic1( - this.ref.pointer, - _sel_compare_options_range_, - string.ref.pointer, - options.value, - range, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// compare:options:range:locale: - NSComparisonResult compare$3( - NSString string, { - required NSStringCompareOptions options, - required NSRange range, - objc.ObjCObjectBase? locale, - }) { - final _ret = _objc_msgSend_1895u4n( - this.ref.pointer, - _sel_compare_options_range_locale_, - string.ref.pointer, - options.value, - range, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// componentsSeparatedByCharactersInSet: - NSArray componentsSeparatedByCharactersInSet(NSCharacterSet separator) { - objc.checkOsVersionInternal( - 'NSString.componentsSeparatedByCharactersInSet:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_componentsSeparatedByCharactersInSet_, - separator.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// componentsSeparatedByString: - NSArray componentsSeparatedByString(NSString separator) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_componentsSeparatedByString_, - separator.ref.pointer, - ); - return NSArray.castFromPointer(_ret, retain: true, release: true); - } - - /// containsString: - bool containsString(NSString str) { - objc.checkOsVersionInternal( - 'NSString.containsString:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_containsString_, - str.ref.pointer, - ); - } - - /// dataUsingEncoding: - NSData? dataUsingEncoding(int encoding) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_dataUsingEncoding_, - encoding, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataUsingEncoding:allowLossyConversion: - NSData? dataUsingEncoding$1( - int encoding, { - required bool allowLossyConversion, - }) { - final _ret = _objc_msgSend_hiwitm( - this.ref.pointer, - _sel_dataUsingEncoding_allowLossyConversion_, - encoding, - allowLossyConversion, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// decomposedStringWithCanonicalMapping - NSString get decomposedStringWithCanonicalMapping { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_decomposedStringWithCanonicalMapping, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// decomposedStringWithCompatibilityMapping - NSString get decomposedStringWithCompatibilityMapping { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_decomposedStringWithCompatibilityMapping, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// description - NSString get description { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// doubleValue - double get doubleValue { - return objc.useMsgSendVariants - ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_doubleValue) - : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_doubleValue); - } - - /// enumerateLinesUsingBlock: - void enumerateLinesUsingBlock( - objc.ObjCBlock)> block, - ) { - objc.checkOsVersionInternal( - 'NSString.enumerateLinesUsingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_f167m6( - this.ref.pointer, - _sel_enumerateLinesUsingBlock_, - block.ref.pointer, - ); - } - - /// enumerateSubstringsInRange:options:usingBlock: - void enumerateSubstringsInRange( - NSRange range, { - required NSStringEnumerationOptions options, - required objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - usingBlock, - }) { - objc.checkOsVersionInternal( - 'NSString.enumerateSubstringsInRange:options:usingBlock:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - _objc_msgSend_14ew8zr( - this.ref.pointer, - _sel_enumerateSubstringsInRange_options_usingBlock_, - range, - options.value, - usingBlock.ref.pointer, - ); - } - - /// fastestEncoding - int get fastestEncoding { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_fastestEncoding); - } - - /// floatValue - double get floatValue { - return objc.useMsgSendVariants - ? _objc_msgSend_2cgrxlFpret(this.ref.pointer, _sel_floatValue) - : _objc_msgSend_2cgrxl(this.ref.pointer, _sel_floatValue); - } - - /// getBytes:maxLength:usedLength:encoding:options:range:remainingRange: - bool getBytes( - ffi.Pointer buffer, { - required int maxLength, - required ffi.Pointer usedLength, - required int encoding, - required NSStringEncodingConversionOptions options, - required NSRange range, - required ffi.Pointer remainingRange, - }) { - return _objc_msgSend_i30zh3( - this.ref.pointer, - _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_, - buffer, - maxLength, - usedLength, - encoding, - options.value, - range, - remainingRange, - ); - } - - /// getCString:maxLength:encoding: - bool getCString( - ffi.Pointer buffer, { - required int maxLength, - required int encoding, - }) { - return _objc_msgSend_1lv8yz3( - this.ref.pointer, - _sel_getCString_maxLength_encoding_, - buffer, - maxLength, - encoding, - ); - } - - /// getCharacters:range: - void getCharacters( - ffi.Pointer buffer, { - required NSRange range, - }) { - _objc_msgSend_898fog( - this.ref.pointer, - _sel_getCharacters_range_, - buffer, - range, - ); - } - - /// getLineStart:end:contentsEnd:forRange: - void getLineStart( - ffi.Pointer startPtr, { - required ffi.Pointer end, - required ffi.Pointer contentsEnd, - required NSRange forRange, - }) { - _objc_msgSend_ourvf2( - this.ref.pointer, - _sel_getLineStart_end_contentsEnd_forRange_, - startPtr, - end, - contentsEnd, - forRange, - ); - } - - /// getParagraphStart:end:contentsEnd:forRange: - void getParagraphStart( - ffi.Pointer startPtr, { - required ffi.Pointer end, - required ffi.Pointer contentsEnd, - required NSRange forRange, - }) { - _objc_msgSend_ourvf2( - this.ref.pointer, - _sel_getParagraphStart_end_contentsEnd_forRange_, - startPtr, - end, - contentsEnd, - forRange, - ); - } - - /// hasPrefix: - bool hasPrefix(NSString str) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_hasPrefix_, - str.ref.pointer, - ); - } - - /// hasSuffix: - bool hasSuffix(NSString str) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_hasSuffix_, - str.ref.pointer, - ); - } - - /// hash - int get hash { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_hash); - } - - /// intValue - int get intValue { - return _objc_msgSend_13yqbb6(this.ref.pointer, _sel_intValue); - } - - /// integerValue - int get integerValue { - objc.checkOsVersionInternal( - 'NSString.integerValue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_integerValue); - } - - /// isEqualToString: - bool isEqualToString(NSString aString) { - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_isEqualToString_, - aString.ref.pointer, - ); - } - - /// lengthOfBytesUsingEncoding: - int lengthOfBytesUsingEncoding(int enc) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_lengthOfBytesUsingEncoding_, - enc, - ); - } - - /// lineRangeForRange: - NSRange lineRangeForRange(NSRange range) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_uimyc7Stret( - _ptr, - this.ref.pointer, - _sel_lineRangeForRange_, - range, - ) - : _ptr.ref = _objc_msgSend_uimyc7( - this.ref.pointer, - _sel_lineRangeForRange_, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// localizedCapitalizedString - NSString get localizedCapitalizedString { - objc.checkOsVersionInternal( - 'NSString.localizedCapitalizedString', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedCapitalizedString, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedCaseInsensitiveCompare: - NSComparisonResult localizedCaseInsensitiveCompare(NSString string) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_localizedCaseInsensitiveCompare_, - string.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// localizedCaseInsensitiveContainsString: - bool localizedCaseInsensitiveContainsString(NSString str) { - objc.checkOsVersionInternal( - 'NSString.localizedCaseInsensitiveContainsString:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_localizedCaseInsensitiveContainsString_, - str.ref.pointer, - ); - } - - /// localizedCompare: - NSComparisonResult localizedCompare(NSString string) { - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_localizedCompare_, - string.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// localizedLowercaseString - NSString get localizedLowercaseString { - objc.checkOsVersionInternal( - 'NSString.localizedLowercaseString', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedLowercaseString, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// localizedStandardCompare: - NSComparisonResult localizedStandardCompare(NSString string) { - objc.checkOsVersionInternal( - 'NSString.localizedStandardCompare:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1ym6zyw( - this.ref.pointer, - _sel_localizedStandardCompare_, - string.ref.pointer, - ); - return NSComparisonResult.fromValue(_ret); - } - - /// localizedStandardContainsString: - bool localizedStandardContainsString(NSString str) { - objc.checkOsVersionInternal( - 'NSString.localizedStandardContainsString:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - return _objc_msgSend_19nvye5( - this.ref.pointer, - _sel_localizedStandardContainsString_, - str.ref.pointer, - ); - } - - /// localizedStandardRangeOfString: - NSRange localizedStandardRangeOfString(NSString str) { - objc.checkOsVersionInternal( - 'NSString.localizedStandardRangeOfString:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret( - _ptr, - this.ref.pointer, - _sel_localizedStandardRangeOfString_, - str.ref.pointer, - ) - : _ptr.ref = _objc_msgSend_182fzon( - this.ref.pointer, - _sel_localizedStandardRangeOfString_, - str.ref.pointer, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// localizedUppercaseString - NSString get localizedUppercaseString { - objc.checkOsVersionInternal( - 'NSString.localizedUppercaseString', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_localizedUppercaseString, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// longLongValue - int get longLongValue { - objc.checkOsVersionInternal( - 'NSString.longLongValue', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - return _objc_msgSend_1k101e3(this.ref.pointer, _sel_longLongValue); - } - - /// lowercaseString - NSString get lowercaseString { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lowercaseString); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// lowercaseStringWithLocale: - NSString lowercaseStringWithLocale(NSLocale? locale) { - objc.checkOsVersionInternal( - 'NSString.lowercaseStringWithLocale:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_lowercaseStringWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// maximumLengthOfBytesUsingEncoding: - int maximumLengthOfBytesUsingEncoding(int enc) { - return _objc_msgSend_12py2ux( - this.ref.pointer, - _sel_maximumLengthOfBytesUsingEncoding_, - enc, - ); - } - - /// paragraphRangeForRange: - NSRange paragraphRangeForRange(NSRange range) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_uimyc7Stret( - _ptr, - this.ref.pointer, - _sel_paragraphRangeForRange_, - range, - ) - : _ptr.ref = _objc_msgSend_uimyc7( - this.ref.pointer, - _sel_paragraphRangeForRange_, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// precomposedStringWithCanonicalMapping - NSString get precomposedStringWithCanonicalMapping { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_precomposedStringWithCanonicalMapping, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// precomposedStringWithCompatibilityMapping - NSString get precomposedStringWithCompatibilityMapping { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_precomposedStringWithCompatibilityMapping, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// rangeOfCharacterFromSet: - NSRange rangeOfCharacterFromSet(NSCharacterSet searchSet) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret( - _ptr, - this.ref.pointer, - _sel_rangeOfCharacterFromSet_, - searchSet.ref.pointer, - ) - : _ptr.ref = _objc_msgSend_182fzon( - this.ref.pointer, - _sel_rangeOfCharacterFromSet_, - searchSet.ref.pointer, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfCharacterFromSet:options: - NSRange rangeOfCharacterFromSet$1( - NSCharacterSet searchSet, { - required NSStringCompareOptions options, - }) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_102xxo4Stret( - _ptr, - this.ref.pointer, - _sel_rangeOfCharacterFromSet_options_, - searchSet.ref.pointer, - options.value, - ) - : _ptr.ref = _objc_msgSend_102xxo4( - this.ref.pointer, - _sel_rangeOfCharacterFromSet_options_, - searchSet.ref.pointer, - options.value, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfCharacterFromSet:options:range: - NSRange rangeOfCharacterFromSet$2( - NSCharacterSet searchSet, { - required NSStringCompareOptions options, - required NSRange range, - }) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1nmlvqcStret( - _ptr, - this.ref.pointer, - _sel_rangeOfCharacterFromSet_options_range_, - searchSet.ref.pointer, - options.value, - range, - ) - : _ptr.ref = _objc_msgSend_1nmlvqc( - this.ref.pointer, - _sel_rangeOfCharacterFromSet_options_range_, - searchSet.ref.pointer, - options.value, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfComposedCharacterSequenceAtIndex: - NSRange rangeOfComposedCharacterSequenceAtIndex(int index) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_d3i1uyStret( - _ptr, - this.ref.pointer, - _sel_rangeOfComposedCharacterSequenceAtIndex_, - index, - ) - : _ptr.ref = _objc_msgSend_d3i1uy( - this.ref.pointer, - _sel_rangeOfComposedCharacterSequenceAtIndex_, - index, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfComposedCharacterSequencesForRange: - NSRange rangeOfComposedCharacterSequencesForRange(NSRange range) { - objc.checkOsVersionInternal( - 'NSString.rangeOfComposedCharacterSequencesForRange:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_uimyc7Stret( - _ptr, - this.ref.pointer, - _sel_rangeOfComposedCharacterSequencesForRange_, - range, - ) - : _ptr.ref = _objc_msgSend_uimyc7( - this.ref.pointer, - _sel_rangeOfComposedCharacterSequencesForRange_, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfString: - NSRange rangeOfString(NSString searchString) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_182fzonStret( - _ptr, - this.ref.pointer, - _sel_rangeOfString_, - searchString.ref.pointer, - ) - : _ptr.ref = _objc_msgSend_182fzon( - this.ref.pointer, - _sel_rangeOfString_, - searchString.ref.pointer, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfString:options: - NSRange rangeOfString$1( - NSString searchString, { - required NSStringCompareOptions options, - }) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_102xxo4Stret( - _ptr, - this.ref.pointer, - _sel_rangeOfString_options_, - searchString.ref.pointer, - options.value, - ) - : _ptr.ref = _objc_msgSend_102xxo4( - this.ref.pointer, - _sel_rangeOfString_options_, - searchString.ref.pointer, - options.value, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfString:options:range: - NSRange rangeOfString$2( - NSString searchString, { - required NSStringCompareOptions options, - required NSRange range, - }) { - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_1nmlvqcStret( - _ptr, - this.ref.pointer, - _sel_rangeOfString_options_range_, - searchString.ref.pointer, - options.value, - range, - ) - : _ptr.ref = _objc_msgSend_1nmlvqc( - this.ref.pointer, - _sel_rangeOfString_options_range_, - searchString.ref.pointer, - options.value, - range, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// rangeOfString:options:range:locale: - NSRange rangeOfString$3( - NSString searchString, { - required NSStringCompareOptions options, - required NSRange range, - NSLocale? locale, - }) { - objc.checkOsVersionInternal( - 'NSString.rangeOfString:options:range:locale:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ptr = pkg_ffi.calloc(); - objc.useMsgSendVariants - ? _objc_msgSend_gg0462Stret( - _ptr, - this.ref.pointer, - _sel_rangeOfString_options_range_locale_, - searchString.ref.pointer, - options.value, - range, - locale?.ref.pointer ?? ffi.nullptr, - ) - : _ptr.ref = _objc_msgSend_gg0462( - this.ref.pointer, - _sel_rangeOfString_options_range_locale_, - searchString.ref.pointer, - options.value, - range, - locale?.ref.pointer ?? ffi.nullptr, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); - return ffi.Struct.create(_finalizable); - } - - /// smallestEncoding - int get smallestEncoding { - return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_smallestEncoding); - } - - /// stringByAppendingFormat: - NSString stringByAppendingFormat(NSString format) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_stringByAppendingFormat_, - format.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByAppendingString: - NSString stringByAppendingString(NSString aString) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_stringByAppendingString_, - aString.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByApplyingTransform:reverse: - NSString? stringByApplyingTransform( - NSString transform, { - required bool reverse, - }) { - objc.checkOsVersionInternal( - 'NSString.stringByApplyingTransform:reverse:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.pointer, - _sel_stringByApplyingTransform_reverse_, - transform.ref.pointer, - reverse, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByFoldingWithOptions:locale: - NSString stringByFoldingWithOptions( - NSStringCompareOptions options, { - NSLocale? locale, - }) { - objc.checkOsVersionInternal( - 'NSString.stringByFoldingWithOptions:locale:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_11cbyu0( - this.ref.pointer, - _sel_stringByFoldingWithOptions_locale_, - options.value, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByPaddingToLength:withString:startingAtIndex: - NSString stringByPaddingToLength( - int newLength, { - required NSString withString, - required int startingAtIndex, - }) { - final _ret = _objc_msgSend_1tfztp( - this.ref.pointer, - _sel_stringByPaddingToLength_withString_startingAtIndex_, - newLength, - withString.ref.pointer, - startingAtIndex, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByReplacingCharactersInRange:withString: - NSString stringByReplacingCharactersInRange( - NSRange range, { - required NSString withString, - }) { - objc.checkOsVersionInternal( - 'NSString.stringByReplacingCharactersInRange:withString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_bstjp9( - this.ref.pointer, - _sel_stringByReplacingCharactersInRange_withString_, - range, - withString.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByReplacingOccurrencesOfString:withString: - NSString stringByReplacingOccurrencesOfString( - NSString target, { - required NSString withString, - }) { - objc.checkOsVersionInternal( - 'NSString.stringByReplacingOccurrencesOfString:withString:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.pointer, - _sel_stringByReplacingOccurrencesOfString_withString_, - target.ref.pointer, - withString.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByReplacingOccurrencesOfString:withString:options:range: - NSString stringByReplacingOccurrencesOfString$1( - NSString target, { - required NSString withString, - required NSStringCompareOptions options, - required NSRange range, - }) { - objc.checkOsVersionInternal( - 'NSString.stringByReplacingOccurrencesOfString:withString:options:range:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_2u4jm6( - this.ref.pointer, - _sel_stringByReplacingOccurrencesOfString_withString_options_range_, - target.ref.pointer, - withString.ref.pointer, - options.value, - range, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// stringByTrimmingCharactersInSet: - NSString stringByTrimmingCharactersInSet(NSCharacterSet set$) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_stringByTrimmingCharactersInSet_, - set$.ref.pointer, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// substringFromIndex: - NSString substringFromIndex(int from) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_substringFromIndex_, - from, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// substringToIndex: - NSString substringToIndex(int to) { - final _ret = _objc_msgSend_14hpxwa( - this.ref.pointer, - _sel_substringToIndex_, - to, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// substringWithRange: - NSString substringWithRange(NSRange range) { - final _ret = _objc_msgSend_1k1o1s7( - this.ref.pointer, - _sel_substringWithRange_, - range, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// uppercaseString - NSString get uppercaseString { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_uppercaseString); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// uppercaseStringWithLocale: - NSString uppercaseStringWithLocale(NSLocale? locale) { - objc.checkOsVersionInternal( - 'NSString.uppercaseStringWithLocale:', - iOS: (false, (6, 0, 0)), - macOS: (false, (10, 8, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.pointer, - _sel_uppercaseStringWithLocale_, - locale?.ref.pointer ?? ffi.nullptr, - ); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// writeToFile:atomically:encoding:error: - bool writeToFile( - NSString path, { - required bool atomically, - required int encoding, - required ffi.Pointer> error, - }) { - return _objc_msgSend_dv3z6r( - this.ref.pointer, - _sel_writeToFile_atomically_encoding_error_, - path.ref.pointer, - atomically, - encoding, - error, - ); - } - - /// writeToURL:atomically:encoding:error: - bool writeToURL( - NSURL url, { - required bool atomically, - required int encoding, - required ffi.Pointer> error, - }) { - return _objc_msgSend_dv3z6r( - this.ref.pointer, - _sel_writeToURL_atomically_encoding_error_, - url.ref.pointer, - atomically, - encoding, - error, - ); - } -} - -/// NSURL -class NSURL extends NSObject implements NSSecureCoding, NSCopying { - NSURL._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSURL] that points to the same underlying object as [other]. - NSURL.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSURL] that wraps the given raw object pointer. - NSURL.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURL]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSURL, - ); - } - - /// URLByResolvingAliasFileAtURL:options:error: - static NSURL? URLByResolvingAliasFileAtURL( - NSURL url, { - required NSURLBookmarkResolutionOptions options, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.URLByResolvingAliasFileAtURL:options:error:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); - final _ret = _objc_msgSend_1tiux5i( - _class_NSURL, - _sel_URLByResolvingAliasFileAtURL_options_error_, - url.ref.pointer, - options.value, - error, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: - static NSURL? URLByResolvingBookmarkData( - NSData bookmarkData, { - required NSURLBookmarkResolutionOptions options, - NSURL? relativeToURL, - required ffi.Pointer bookmarkDataIsStale, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1ceswyu( - _class_NSURL, - _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, - bookmarkData.ref.pointer, - options.value, - relativeToURL?.ref.pointer ?? ffi.nullptr, - bookmarkDataIsStale, - error, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// URLWithDataRepresentation:relativeToURL: - static NSURL URLWithDataRepresentation(NSData data, {NSURL? relativeToURL}) { - objc.checkOsVersionInternal( - 'NSURL.URLWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_URLWithDataRepresentation_relativeToURL_, - data.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// URLWithString: - static NSURL? URLWithString(NSString URLString) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSURL, - _sel_URLWithString_, - URLString.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// URLWithString:encodingInvalidCharacters: - /// - /// iOS: introduced 17.0.0 - /// macOS: introduced 14.0.0 - static NSURL? URLWithString$1( - NSString URLString, { - required bool encodingInvalidCharacters, - }) { - objc.checkOsVersionInternal( - 'NSURL.URLWithString:encodingInvalidCharacters:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - _class_NSURL, - _sel_URLWithString_encodingInvalidCharacters_, - URLString.ref.pointer, - encodingInvalidCharacters, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// URLWithString:relativeToURL: - static NSURL? URLWithString$2(NSString URLString, {NSURL? relativeToURL}) { - final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_URLWithString_relativeToURL_, - URLString.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// absoluteURLWithDataRepresentation:relativeToURL: - static NSURL absoluteURLWithDataRepresentation( - NSData data, { - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.absoluteURLWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_absoluteURLWithDataRepresentation_relativeToURL_, - data.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// alloc - static NSURL alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSURL, _sel_alloc); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSURL allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428(_class_NSURL, _sel_allocWithZone_, zone); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// bookmarkDataWithContentsOfURL:error: - static NSData? bookmarkDataWithContentsOfURL( - NSURL bookmarkFileURL, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.bookmarkDataWithContentsOfURL:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1lhpu4m( - _class_NSURL, - _sel_bookmarkDataWithContentsOfURL_error_, - bookmarkFileURL.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURLWithFileSystemRepresentation:isDirectory:relativeToURL: - static NSURL fileURLWithFileSystemRepresentation( - ffi.Pointer path, { - required bool isDirectory, - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_1n40f6p( - _class_NSURL, - _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, - path, - isDirectory, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURLWithPath: - static NSURL fileURLWithPath(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - _class_NSURL, - _sel_fileURLWithPath_, - path.ref.pointer, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURLWithPath:isDirectory: - static NSURL fileURLWithPath$1(NSString path, {required bool isDirectory}) { - objc.checkOsVersionInternal( - 'NSURL.fileURLWithPath:isDirectory:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - _class_NSURL, - _sel_fileURLWithPath_isDirectory_, - path.ref.pointer, - isDirectory, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURLWithPath:isDirectory:relativeToURL: - static NSURL fileURLWithPath$2( - NSString path, { - required bool isDirectory, - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.fileURLWithPath:isDirectory:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_1ged0jd( - _class_NSURL, - _sel_fileURLWithPath_isDirectory_relativeToURL_, - path.ref.pointer, - isDirectory, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileURLWithPath:relativeToURL: - static NSURL fileURLWithPath$3(NSString path, {NSURL? relativeToURL}) { - objc.checkOsVersionInternal( - 'NSURL.fileURLWithPath:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_fileURLWithPath_relativeToURL_, - path.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// new - static NSURL new$() { - final _ret = _objc_msgSend_151sglz(_class_NSURL, _sel_new); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// objectWithItemProviderData:typeIdentifier:error: - static NSURL? objectWithItemProviderData( - NSData data, { - required NSString typeIdentifier, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.objectWithItemProviderData:typeIdentifier:error:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - final _ret = _objc_msgSend_1pnyuds( - _class_NSURL, - _sel_objectWithItemProviderData_typeIdentifier_error_, - data.ref.pointer, - typeIdentifier.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// resourceValuesForKeys:fromBookmarkData: - static NSDictionary? resourceValuesForKeys( - NSArray keys, { - required NSData fromBookmarkData, - }) { - objc.checkOsVersionInternal( - 'NSURL.resourceValuesForKeys:fromBookmarkData:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - _class_NSURL, - _sel_resourceValuesForKeys_fromBookmarkData_, - keys.ref.pointer, - fromBookmarkData.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSURL, _sel_supportsSecureCoding); - } - - /// writeBookmarkData:toURL:options:error: - static bool writeBookmarkData( - NSData bookmarkData, { - required NSURL toURL, - required int options, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.writeBookmarkData:toURL:options:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_1vxoo9h( - _class_NSURL, - _sel_writeBookmarkData_toURL_options_error_, - bookmarkData.ref.pointer, - toURL.ref.pointer, - options, - error, - ); - } - - /// absoluteString - NSString? get absoluteString { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_absoluteString); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// absoluteURL - NSURL? get absoluteURL { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_absoluteURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// baseURL - NSURL? get baseURL { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_baseURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error: - NSData? bookmarkDataWithOptions( - NSURLBookmarkCreationOptions options, { - NSArray? includingResourceValuesForKeys, - NSURL? relativeToURL, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1wt9a7r( - this.ref.pointer, - _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_, - options.value, - includingResourceValuesForKeys?.ref.pointer ?? ffi.nullptr, - relativeToURL?.ref.pointer ?? ffi.nullptr, - error, - ); - return _ret.address == 0 - ? null - : NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// dataRepresentation - NSData get dataRepresentation { - objc.checkOsVersionInternal( - 'NSURL.dataRepresentation', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_dataRepresentation, - ); - return NSData.castFromPointer(_ret, retain: true, release: true); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// filePathURL - NSURL? get filePathURL { - objc.checkOsVersionInternal( - 'NSURL.filePathURL', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_filePathURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileReferenceURL - NSURL? fileReferenceURL() { - objc.checkOsVersionInternal( - 'NSURL.fileReferenceURL', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fileReferenceURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// fileSystemRepresentation - ffi.Pointer get fileSystemRepresentation { - objc.checkOsVersionInternal( - 'NSURL.fileSystemRepresentation', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_1fuqfwb( - this.ref.pointer, - _sel_fileSystemRepresentation, - ); - } - - /// fragment - NSString? get fragment { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fragment); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// getFileSystemRepresentation:maxLength: - bool getFileSystemRepresentation( - ffi.Pointer buffer, { - required int maxLength, - }) { - objc.checkOsVersionInternal( - 'NSURL.getFileSystemRepresentation:maxLength:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - return _objc_msgSend_8cymbm( - this.ref.pointer, - _sel_getFileSystemRepresentation_maxLength_, - buffer, - maxLength, - ); - } - - /// getResourceValue:forKey:error: - bool getResourceValue( - ffi.Pointer> value, { - required NSString forKey, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.getResourceValue:forKey:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_1j9bhml( - this.ref.pointer, - _sel_getResourceValue_forKey_error_, - value, - forKey.ref.pointer, - error, - ); - } - - /// hasDirectoryPath - bool get hasDirectoryPath { - objc.checkOsVersionInternal( - 'NSURL.hasDirectoryPath', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_hasDirectoryPath); - } - - /// host - NSString? get host { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_host); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSURL init() { - objc.checkOsVersionInternal( - 'NSURL.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initAbsoluteURLWithDataRepresentation:relativeToURL: - NSURL initAbsoluteURLWithDataRepresentation( - NSData data, { - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.initAbsoluteURLWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_, - data.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: - NSURL? initByResolvingBookmarkData( - NSData bookmarkData, { - required NSURLBookmarkResolutionOptions options, - NSURL? relativeToURL, - required ffi.Pointer bookmarkDataIsStale, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1ceswyu( - this.ref.retainAndReturnPointer(), - _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, - bookmarkData.ref.pointer, - options.value, - relativeToURL?.ref.pointer ?? ffi.nullptr, - bookmarkDataIsStale, - error, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL: - NSURL initFileURLWithFileSystemRepresentation( - ffi.Pointer path, { - required bool isDirectory, - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - final _ret = _objc_msgSend_1n40f6p( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, - path, - isDirectory, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initFileURLWithPath: - NSURL initFileURLWithPath(NSString path) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_, - path.ref.pointer, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initFileURLWithPath:isDirectory: - NSURL initFileURLWithPath$1(NSString path, {required bool isDirectory}) { - objc.checkOsVersionInternal( - 'NSURL.initFileURLWithPath:isDirectory:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_isDirectory_, - path.ref.pointer, - isDirectory, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initFileURLWithPath:isDirectory:relativeToURL: - NSURL initFileURLWithPath$2( - NSString path, { - required bool isDirectory, - NSURL? relativeToURL, - }) { - objc.checkOsVersionInternal( - 'NSURL.initFileURLWithPath:isDirectory:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_1ged0jd( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_isDirectory_relativeToURL_, - path.ref.pointer, - isDirectory, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initFileURLWithPath:relativeToURL: - NSURL initFileURLWithPath$3(NSString path, {NSURL? relativeToURL}) { - objc.checkOsVersionInternal( - 'NSURL.initFileURLWithPath:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initFileURLWithPath_relativeToURL_, - path.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSURL? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithDataRepresentation:relativeToURL: - NSURL initWithDataRepresentation(NSData data, {NSURL? relativeToURL}) { - objc.checkOsVersionInternal( - 'NSURL.initWithDataRepresentation:relativeToURL:', - iOS: (false, (9, 0, 0)), - macOS: (false, (10, 11, 0)), - ); - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithDataRepresentation_relativeToURL_, - data.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithString: - NSURL? initWithString(NSString URLString) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithString_, - URLString.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithString:encodingInvalidCharacters: - /// - /// iOS: introduced 17.0.0 - /// macOS: introduced 14.0.0 - NSURL? initWithString$1( - NSString URLString, { - required bool encodingInvalidCharacters, - }) { - objc.checkOsVersionInternal( - 'NSURL.initWithString:encodingInvalidCharacters:', - iOS: (false, (17, 0, 0)), - macOS: (false, (14, 0, 0)), - ); - final _ret = _objc_msgSend_17amj0z( - this.ref.retainAndReturnPointer(), - _sel_initWithString_encodingInvalidCharacters_, - URLString.ref.pointer, - encodingInvalidCharacters, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithString:relativeToURL: - NSURL? initWithString$2(NSString URLString, {NSURL? relativeToURL}) { - final _ret = _objc_msgSend_15qeuct( - this.ref.retainAndReturnPointer(), - _sel_initWithString_relativeToURL_, - URLString.ref.pointer, - relativeToURL?.ref.pointer ?? ffi.nullptr, - ); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: false, release: true); - } - - /// isFileReferenceURL - bool isFileReferenceURL() { - objc.checkOsVersionInternal( - 'NSURL.isFileReferenceURL', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_91o635(this.ref.pointer, _sel_isFileReferenceURL); - } - - /// isFileURL - bool get fileURL { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isFileURL); - } - - /// iOS: introduced 2.0.0, deprecated 13.0.0 - /// macOS: introduced 10.2.0, deprecated 10.15.0 - NSString? get parameterString { - objc.checkOsVersionInternal( - 'NSURL.parameterString', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 2, 0)), - ); - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_parameterString); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// password - NSString? get password { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_password); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// path - NSString? get path { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_path); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// port - NSNumber? get port { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_port); - return _ret.address == 0 - ? null - : NSNumber.castFromPointer(_ret, retain: true, release: true); - } - - /// query - NSString? get query { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_query); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// relativePath - NSString? get relativePath { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_relativePath); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// relativeString - NSString get relativeString { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_relativeString); - return NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// removeAllCachedResourceValues - void removeAllCachedResourceValues() { - objc.checkOsVersionInternal( - 'NSURL.removeAllCachedResourceValues', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllCachedResourceValues); - } - - /// removeCachedResourceValueForKey: - void removeCachedResourceValueForKey(NSString key) { - objc.checkOsVersionInternal( - 'NSURL.removeCachedResourceValueForKey:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_removeCachedResourceValueForKey_, - key.ref.pointer, - ); - } - - /// resourceSpecifier - NSString? get resourceSpecifier { - final _ret = _objc_msgSend_151sglz( - this.ref.pointer, - _sel_resourceSpecifier, - ); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// resourceValuesForKeys:error: - NSDictionary? resourceValuesForKeys$1( - NSArray keys, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.resourceValuesForKeys:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1lhpu4m( - this.ref.pointer, - _sel_resourceValuesForKeys_error_, - keys.ref.pointer, - error, - ); - return _ret.address == 0 - ? null - : NSDictionary.castFromPointer(_ret, retain: true, release: true); - } - - /// scheme - NSString? get scheme { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_scheme); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// setResourceValue:forKey:error: - bool setResourceValue( - objc.ObjCObjectBase? value, { - required NSString forKey, - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.setResourceValue:forKey:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_6z4k82( - this.ref.pointer, - _sel_setResourceValue_forKey_error_, - value?.ref.pointer ?? ffi.nullptr, - forKey.ref.pointer, - error, - ); - } - - /// setResourceValues:error: - bool setResourceValues( - NSDictionary keyedValues, { - required ffi.Pointer> error, - }) { - objc.checkOsVersionInternal( - 'NSURL.setResourceValues:error:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - return _objc_msgSend_l9p60w( - this.ref.pointer, - _sel_setResourceValues_error_, - keyedValues.ref.pointer, - error, - ); - } - - /// setTemporaryResourceValue:forKey: - void setTemporaryResourceValue( - objc.ObjCObjectBase? value, { - required NSString forKey, - }) { - objc.checkOsVersionInternal( - 'NSURL.setTemporaryResourceValue:forKey:', - iOS: (false, (7, 0, 0)), - macOS: (false, (10, 9, 0)), - ); - _objc_msgSend_pfv6jd( - this.ref.pointer, - _sel_setTemporaryResourceValue_forKey_, - value?.ref.pointer ?? ffi.nullptr, - forKey.ref.pointer, - ); - } - - /// standardizedURL - NSURL? get standardizedURL { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_standardizedURL); - return _ret.address == 0 - ? null - : NSURL.castFromPointer(_ret, retain: true, release: true); - } - - /// startAccessingSecurityScopedResource - bool startAccessingSecurityScopedResource() { - objc.checkOsVersionInternal( - 'NSURL.startAccessingSecurityScopedResource', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - return _objc_msgSend_91o635( - this.ref.pointer, - _sel_startAccessingSecurityScopedResource, - ); - } - - /// stopAccessingSecurityScopedResource - void stopAccessingSecurityScopedResource() { - objc.checkOsVersionInternal( - 'NSURL.stopAccessingSecurityScopedResource', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 7, 0)), - ); - _objc_msgSend_1pl9qdv( - this.ref.pointer, - _sel_stopAccessingSecurityScopedResource, - ); - } - - /// user - NSString? get user { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_user); - return _ret.address == 0 - ? null - : NSString.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSURL constructed with the default `new` method. - factory NSURL() => new$(); -} - -enum NSURLBookmarkCreationOptions { - NSURLBookmarkCreationPreferFileIDResolution(256), - NSURLBookmarkCreationMinimalBookmark(512), - NSURLBookmarkCreationSuitableForBookmarkFile(1024), - NSURLBookmarkCreationWithSecurityScope(2048), - NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess(4096), - NSURLBookmarkCreationWithoutImplicitSecurityScope(536870912); - - final int value; - const NSURLBookmarkCreationOptions(this.value); - - static NSURLBookmarkCreationOptions fromValue(int value) => switch (value) { - 256 => NSURLBookmarkCreationPreferFileIDResolution, - 512 => NSURLBookmarkCreationMinimalBookmark, - 1024 => NSURLBookmarkCreationSuitableForBookmarkFile, - 2048 => NSURLBookmarkCreationWithSecurityScope, - 4096 => NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess, - 536870912 => NSURLBookmarkCreationWithoutImplicitSecurityScope, - _ => throw ArgumentError( - 'Unknown value for NSURLBookmarkCreationOptions: $value', - ), - }; -} - -enum NSURLBookmarkResolutionOptions { - NSURLBookmarkResolutionWithoutUI(256), - NSURLBookmarkResolutionWithoutMounting(512), - NSURLBookmarkResolutionWithSecurityScope(1024), - NSURLBookmarkResolutionWithoutImplicitStartAccessing(32768); - - final int value; - const NSURLBookmarkResolutionOptions(this.value); - - static NSURLBookmarkResolutionOptions fromValue(int value) => switch (value) { - 256 => NSURLBookmarkResolutionWithoutUI, - 512 => NSURLBookmarkResolutionWithoutMounting, - 1024 => NSURLBookmarkResolutionWithSecurityScope, - 32768 => NSURLBookmarkResolutionWithoutImplicitStartAccessing, - _ => throw ArgumentError( - 'Unknown value for NSURLBookmarkResolutionOptions: $value', - ), - }; -} - -/// NSURLHandle -class NSURLHandle extends NSObject { - NSURLHandle._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSURLHandle] that points to the same underlying object as [other]. - NSURLHandle.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSURLHandle] that wraps the given raw object pointer. - NSURLHandle.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSURLHandle]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSURLHandle, - ); - } - - /// alloc - static NSURLHandle alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSURLHandle, _sel_alloc); - return NSURLHandle.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSURLHandle allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSURLHandle, - _sel_allocWithZone_, - zone, - ); - return NSURLHandle.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSURLHandle new$() { - final _ret = _objc_msgSend_151sglz(_class_NSURLHandle, _sel_new); - return NSURLHandle.castFromPointer(_ret, retain: false, release: true); - } - - /// autorelease - NSURLHandle autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return NSURLHandle.castFromPointer(_ret, retain: true, release: true); - } - - /// init - NSURLHandle init() { - objc.checkOsVersionInternal( - 'NSURLHandle.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSURLHandle.castFromPointer(_ret, retain: false, release: true); - } - - /// retain - NSURLHandle retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return NSURLHandle.castFromPointer(_ret, retain: true, release: true); - } - - /// self - NSURLHandle self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return NSURLHandle.castFromPointer(_ret, retain: true, release: true); - } - - /// Returns a new instance of NSURLHandle constructed with the default `new` method. - factory NSURLHandle() => new$(); -} - -enum NSURLHandleStatus { - NSURLHandleNotLoaded(0), - NSURLHandleLoadSucceeded(1), - NSURLHandleLoadInProgress(2), - NSURLHandleLoadFailed(3); - - final int value; - const NSURLHandleStatus(this.value); - - static NSURLHandleStatus fromValue(int value) => switch (value) { - 0 => NSURLHandleNotLoaded, - 1 => NSURLHandleLoadSucceeded, - 2 => NSURLHandleLoadInProgress, - 3 => NSURLHandleLoadFailed, - _ => throw ArgumentError('Unknown value for NSURLHandleStatus: $value'), - }; -} - -/// NSValue -class NSValue extends NSObject implements NSCopying, NSSecureCoding { - NSValue._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); - - /// Constructs a [NSValue] that points to the same underlying object as [other]. - NSValue.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [NSValue] that wraps the given raw object pointer. - NSValue.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [NSValue]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSValue, - ); - } - - /// alloc - static NSValue alloc() { - final _ret = _objc_msgSend_151sglz(_class_NSValue, _sel_alloc); - return NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// allocWithZone: - static NSValue allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSValue, - _sel_allocWithZone_, - zone, - ); - return NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// new - static NSValue new$() { - final _ret = _objc_msgSend_151sglz(_class_NSValue, _sel_new); - return NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// supportsSecureCoding - static bool getSupportsSecureCoding() { - return _objc_msgSend_91o635(_class_NSValue, _sel_supportsSecureCoding); - } - - /// encodeWithCoder: - void encodeWithCoder(NSCoder coder) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_encodeWithCoder_, - coder.ref.pointer, - ); - } - - /// getValue:size: - void getValue(ffi.Pointer value, {required int size}) { - objc.checkOsVersionInternal( - 'NSValue.getValue:size:', - iOS: (false, (11, 0, 0)), - macOS: (false, (10, 13, 0)), - ); - _objc_msgSend_zuf90e(this.ref.pointer, _sel_getValue_size_, value, size); - } - - /// init - NSValue init() { - objc.checkOsVersionInternal( - 'NSValue.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithBytes:objCType: - NSValue initWithBytes( - ffi.Pointer value, { - required ffi.Pointer objCType, - }) { - final _ret = _objc_msgSend_e9mncn( - this.ref.retainAndReturnPointer(), - _sel_initWithBytes_objCType_, - value, - objCType, - ); - return NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// initWithCoder: - NSValue? initWithCoder(NSCoder coder) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithCoder_, - coder.ref.pointer, - ); - return _ret.address == 0 - ? null - : NSValue.castFromPointer(_ret, retain: false, release: true); - } - - /// objCType - ffi.Pointer get objCType { - return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_objCType); - } - - /// Returns a new instance of NSValue constructed with the default `new` method. - factory NSValue() => new$(); -} - -final class NSZone extends ffi.Opaque {} - -ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline) - .cast(); -ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSArray_ffiVoid_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSArray_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_NSArray_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - NSArray Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSArray_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSArray_ffiVoid_CallExtension - on objc.ObjCBlock)> { - NSArray call(ffi.Pointer arg0) => NSArray.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); -} - -int _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline, - 0, - ) - .cast(); -int -_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as int Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable = - ffi.Pointer.fromFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline, - 0, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - NSComparisonResult Function(objc.ObjCObjectBase, objc.ObjCObjectBase) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - objc.ObjCObjectBase(arg1, retain: true, release: true), - ).value, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_CallExtension - on - objc.ObjCBlock< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - NSComparisonResult call(objc.ObjCObjectBase arg0, objc.ObjCObjectBase arg1) => - NSComparisonResult.fromValue( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer), - ); -} - -int -_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline, - 0, - ) - .cast(); -int -_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as int Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer -_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable = - ffi.Pointer.fromFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline, - 0, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock, NSString)>`. -abstract final class ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSString)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSString)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock, NSString)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSString)>( - objc.newPointerBlock( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSString)> - fromFunction( - NSItemProviderRepresentationVisibility Function( - ffi.Pointer, - NSString, - ) - fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSString)>( - objc.newClosureBlock( - _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - arg0, - NSString.castFromPointer(arg1, retain: true, release: true), - ).value, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, NSString)>`. -extension ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_CallExtension - on objc.ObjCBlock, NSString)> { - NSItemProviderRepresentationVisibility call( - ffi.Pointer arg0, - NSString arg1, - ) => NSItemProviderRepresentationVisibility.fromValue( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer), - ); -} - -ffi.Pointer -_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer -_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrTrampoline, - ) - .cast(); -ffi.Pointer -_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); -ffi.Pointer -_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureTrampoline, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => - objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - >( - objc.newPointerBlock( - _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - > - fromFunction( - NSOrderedCollectionChange Function(NSOrderedCollectionChange) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - >( - objc.newClosureBlock( - _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureCallable, - (ffi.Pointer arg0) => fn( - NSOrderedCollectionChange.castFromPointer( - arg0, - retain: true, - release: true, - ), - ).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_CallExtension - on - objc.ObjCBlock< - NSOrderedCollectionChange Function(NSOrderedCollectionChange) - > { - NSOrderedCollectionChange call(NSOrderedCollectionChange arg0) => - NSOrderedCollectionChange.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ))(arg0); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSProgress_ffiVoidNSDataNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSProgress? Function(objc.ObjCBlock) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - NSProgress? Function(objc.ObjCBlock) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSProgress? Function(objc.ObjCBlock) - > - fromFunction( - NSProgress? Function(objc.ObjCBlock) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureCallable, - (ffi.Pointer arg0) => - fn( - ObjCBlock_ffiVoid_NSData_NSError.castFromPointer( - arg0, - retain: true, - release: true, - ), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSProgress_ffiVoidNSDataNSError_CallExtension - on - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > { - NSProgress? call(objc.ObjCBlock arg0) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer) - .address == - 0 - ? null - : NSProgress.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ))(arg0); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > - fromFunction( - NSProgress? Function( - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureCallable, - (ffi.Pointer arg0) => - fn( - ObjCBlock_ffiVoid_NSURL_bool_NSError.castFromPointer( - arg0, - retain: true, - release: true, - ), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_CallExtension - on - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock, - ) - > { - NSProgress? call( - objc.ObjCBlock arg0, - ) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer) - .address == - 0 - ? null - : NSProgress.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock, NSString, objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - > - fromFunction( - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => - fn( - arg0, - NSString.castFromPointer(arg1, retain: true, release: true), - ObjCBlock_ffiVoid_NSData_NSError.castFromPointer( - arg2, - retain: true, - release: true, - ), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, NSString, objc.ObjCBlock)>`. -extension ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_CallExtension - on - objc.ObjCBlock< - NSProgress? Function( - ffi.Pointer, - NSString, - objc.ObjCBlock, - ) - > { - NSProgress? call( - ffi.Pointer arg0, - NSString arg1, - objc.ObjCBlock arg2, - ) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer) - .address == - 0 - ? null - : NSProgress.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ))(arg0); -ffi.Pointer -_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock?, NSError?)>)>`. -abstract final class ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - > - fromFunction( - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureCallable, - (ffi.Pointer arg0) => - fn( - ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError.castFromPointer( - arg0, - retain: true, - release: true, - ), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock?, NSError?)>)>`. -extension ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_CallExtension - on - objc.ObjCBlock< - NSProgress? Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >, - ) - > { - NSProgress? call( - objc.ObjCBlock?, NSError?)> - arg0, - ) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer) - .address == - 0 - ? null - : NSProgress.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer _ObjCBlock_NSString_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer _ObjCBlock_NSString_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSString_ffiVoid_fnPtrTrampoline) - .cast(); -ffi.Pointer _ObjCBlock_NSString_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_NSString_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSString_ffiVoid_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSString_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_NSString_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - NSString Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSString_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSString_ffiVoid_CallExtension - on objc.ObjCBlock)> { - NSString call(ffi.Pointer arg0) => NSString.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); -} - -int _ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); -ffi.Pointer _ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline, 0) - .cast(); -int _ObjCBlock_NSUInteger_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_NSUInteger_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSUInteger_ffiVoid_closureTrampoline, 0) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_NSUInteger_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - int Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_NSUInteger_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_NSUInteger_ffiVoid_CallExtension - on objc.ObjCBlock)> { - int call(ffi.Pointer arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); -} - -int -_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - ffi.UnsignedLong arg3, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >()(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - >( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline, - 0, - ) - .cast(); -int -_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, -) => - (objc.getBlockClosure(block) - as int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ))(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable = - ffi.Pointer.fromFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - >( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline, - 0, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - ffi.UnsignedLong arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - >( - objc.newPointerBlock( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - fromFunction( - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - >( - objc.newClosureBlock( - _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, - ) => fn(arg0, arg1, arg2, arg3), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. -extension ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_CallExtension - on - objc.ObjCBlock< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > { - int call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - int arg3, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer> arg2, - ffi.UnsignedLong arg3, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >()(ref.pointer, arg0, arg1, arg2, arg3); -} - -ffi.Pointer _ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction Function(ffi.Pointer)>()(arg0); -ffi.Pointer _ObjCBlock_NSZone_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline) - .cast(); -ffi.Pointer _ObjCBlock_NSZone_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_NSZone_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSZone_ffiVoid_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_NSZone_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock Function(ffi.Pointer)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_NSZone_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunction( - ffi.Pointer Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock Function(ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_NSZone_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_NSZone_ffiVoid_CallExtension - on objc.ObjCBlock Function(ffi.Pointer)> { - ffi.Pointer call(ffi.Pointer arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); -} - -bool _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_KeyType_ObjectType_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_bool_KeyType_ObjectType_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_KeyType_ObjectType_bool_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_KeyType_ObjectType_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - bool Function( - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_bool_KeyType_ObjectType_bool_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - objc.ObjCObjectBase(arg1, retain: true, release: true), - arg2, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_bool_KeyType_ObjectType_bool_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call( - objc.ObjCObjectBase arg0, - objc.ObjCObjectBase arg1, - ffi.Pointer arg2, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2); -} - -bool _ObjCBlock_bool_NSUInteger_bool_fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) - > - >() - .asFunction)>()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_NSUInteger_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_bool_NSUInteger_bool_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_NSUInteger_bool_closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, -) => (objc.getBlockClosure(block) as bool Function(int, ffi.Pointer))( - arg0, - arg1, -); -ffi.Pointer _ObjCBlock_bool_NSUInteger_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_bool_NSUInteger_bool_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_bool_NSUInteger_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_bool_NSUInteger_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > - fromFunction( - bool Function(int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_bool_NSUInteger_bool_closureCallable, - (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_bool_NSUInteger_bool_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) - > { - bool call(int arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); -} - -bool _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, int, ffi.Pointer) - >()(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ObjectType_NSUInteger_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_bool_ObjectType_NSUInteger_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ObjectType_NSUInteger_bool_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ObjectType_NSUInteger_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - fromFunction( - bool Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_bool_ObjectType_NSUInteger_bool_closureCallable, - ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - arg1, - arg2, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. -extension ObjCBlock_bool_ObjectType_NSUInteger_bool_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > { - bool call(objc.ObjCObjectBase arg0, int arg1, ffi.Pointer arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1, arg2); -} - -bool _ObjCBlock_bool_ObjectType_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ObjectType_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ObjectType_bool_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ObjectType_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as bool Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_bool_ObjectType_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ObjectType_bool_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ObjectType_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_bool_ObjectType_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - bool Function(objc.ObjCObjectBase, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_bool_ObjectType_bool_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: true, release: true), arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ObjectType_bool_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > { - bool call(objc.ObjCObjectBase arg0, ffi.Pointer arg1) => ref - .pointer - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1); -} - -bool _ObjCBlock_bool_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast arg0)>>() - .asFunction)>()(arg0); -ffi.Pointer _ObjCBlock_bool_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) as bool Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_bool_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_bool_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - bool Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_bool_ffiVoid_CallExtension - on objc.ObjCBlock)> { - bool call(ffi.Pointer arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); -} - -bool _ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as bool Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_bool_ffiVoid_Protocol_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, Protocol)>`. -abstract final class ObjCBlock_bool_ffiVoid_Protocol { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, Protocol)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, Protocol)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock, Protocol)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, Protocol)>( - objc.newPointerBlock( - _ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, Protocol)> - fromFunction( - bool Function(ffi.Pointer, Protocol) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, Protocol)>( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_Protocol_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, Protocol.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, Protocol)>`. -extension ObjCBlock_bool_ffiVoid_Protocol_CallExtension - on objc.ObjCBlock, Protocol)> { - bool call(ffi.Pointer arg0, Protocol arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer); -} - -bool _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as bool Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ffiVoid_objcObjCObject { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - bool Function(ffi.Pointer, objc.ObjCObjectBase) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, objc.ObjCObjectBase(arg1, retain: true, release: true)), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ffiVoid_objcObjCObject_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > { - bool call(ffi.Pointer arg0, objc.ObjCObjectBase arg1) => ref - .pointer - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer); -} - -bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline, false) - .cast(); -bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as bool Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable = - ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline, false) - .cast(); - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_bool_ffiVoid_objcObjCSelector { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - bool Function(ffi.Pointer, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Bool Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_bool_ffiVoid_objcObjCSelector_CallExtension - on - objc.ObjCBlock< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - bool call(ffi.Pointer arg0, ffi.Pointer arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); -} - -void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_KeyType_ObjectType_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - void Function( - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - objc.ObjCObjectBase(arg1, retain: true, release: true), - arg2, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - listener( - void Function( - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerCallable.nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - arg2, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1o83rbn(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - blocking( - void Function( - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingCallable.nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - arg2, - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - objc.ObjCObjectBase(arg1, retain: false, release: true), - arg2, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1o83rbn( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_KeyType_ObjectType_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - void call( - objc.ObjCObjectBase arg0, - objc.ObjCObjectBase arg1, - ffi.Pointer arg2, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2); -} - -void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSData_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSData_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSData_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSData?, NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSData.castFromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSData?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSData.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSData?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSData.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSData.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSData_NSError_CallExtension - on objc.ObjCBlock { - void call(NSData? arg0, NSError? arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1?.ref.pointer ?? ffi.nullptr, - ); -} - -void -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline, - ) - .cast(); -void -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline, - ) - .cast(); -void -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>`. -abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary, - ) - > - fromFunction( - void Function( - objc.ObjCBlock?, NSError)>, - objc.ObjCObjectBase, - NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( - arg0, - retain: true, - release: true, - ), - objc.ObjCObjectBase(arg1, retain: true, release: true), - NSDictionary.castFromPointer(arg2, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary, - ) - > - listener( - void Function( - objc.ObjCBlock?, NSError)>, - objc.ObjCObjectBase, - NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( - arg0, - retain: false, - release: true, - ), - objc.ObjCObjectBase(arg1, retain: false, release: true), - NSDictionary.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1b3bb6a(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock?, NSError)>, - ffi.Pointer, - NSDictionary, - ) - > - blocking( - void Function( - objc.ObjCBlock?, NSError)>, - objc.ObjCObjectBase, - NSDictionary, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( - arg0, - retain: false, - release: true, - ), - objc.ObjCObjectBase(arg1, retain: false, release: true), - NSDictionary.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( - arg0, - retain: false, - release: true, - ), - objc.ObjCObjectBase(arg1, retain: false, release: true), - NSDictionary.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>`. -extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >, - ffi.Pointer, - NSDictionary, - ) - > { - void call( - objc.ObjCBlock?, NSError)> - arg0, - objc.ObjCObjectBase arg1, - NSDictionary arg2, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); -} - -void _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline( - ffi.Pointer block, - NSRange arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(NSRange arg0, ffi.Pointer arg1) - > - >() - .asFunction)>()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline( - ffi.Pointer block, - NSRange arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function(NSRange, ffi.Pointer))(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSRange_bool_listenerTrampoline( - ffi.Pointer block, - NSRange arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function(NSRange, ffi.Pointer))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSRange_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSRange_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - NSRange arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(NSRange, ffi.Pointer))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSRange_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSRange_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(NSRange arg0, ffi.Pointer arg1) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSRange_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - void Function(NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSRange_bool_closureCallable, - (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - listener( - void Function(NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSRange_bool_listenerCallable.nativeFunction.cast(), - (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_zkjmn1(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> - blocking( - void Function(NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSRange_bool_blockingCallable.nativeFunction.cast(), - (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSRange_bool_blockingListenerCallable.nativeFunction - .cast(), - (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_zkjmn1( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSRange_bool_CallExtension - on objc.ObjCBlock)> { - void call(NSRange arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - NSRange arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); -} - -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - fromFunction( - void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureCallable, - ( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => fn( - arg0.address == 0 - ? null - : NSString.castFromPointer(arg0, retain: true, release: true), - arg1, - arg2, - arg3, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - listener( - void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => fn( - arg0.address == 0 - ? null - : NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2, - arg3, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_lmc3p5(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > - blocking( - void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => fn( - arg0.address == 0 - ? null - : NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2, - arg3, - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => fn( - arg0.address == 0 - ? null - : NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2, - arg3, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_lmc3p5( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) - > { - void call( - NSString? arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - NSRange arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1, arg2, arg3); -} - -void _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSString_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSString_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSString_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSString_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - fromFunction( - void Function(NSString, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_bool_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(NSString.castFromPointer(arg0, retain: true, release: true), arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> - listener( - void Function(NSString, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_bool_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_t8l8el(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> - blocking( - void Function(NSString, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_bool_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_bool_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => fn( - NSString.castFromPointer(arg0, retain: false, release: true), - arg1, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_t8l8el( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSString_bool_CallExtension - on objc.ObjCBlock)> { - void call(NSString arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1); -} - -void _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) - > - >() - .asFunction)>()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, -) => (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( - arg0, - arg1, -); -ffi.Pointer _ObjCBlock_ffiVoid_NSUInteger_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSUInteger_bool_listenerTrampoline( - ffi.Pointer block, - int arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSUInteger_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSUInteger_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSUInteger_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSUInteger_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_NSUInteger_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - fromFunction( - void Function(int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSUInteger_bool_closureCallable, - (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - listener( - void Function(int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSUInteger_bool_listenerCallable.nativeFunction.cast(), - (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_q5jeyk(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > - blocking( - void Function(int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSUInteger_bool_blockingCallable.nativeFunction.cast(), - (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSUInteger_bool_blockingListenerCallable.nativeFunction - .cast(), - (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_q5jeyk( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_NSUInteger_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) - > { - void call(int arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1); -} - -void _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSURL_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSURL_NSError_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURL_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(NSURL?, NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSError_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: true, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURL?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSError_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURL?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSError_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_NSError_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURL_NSError_CallExtension - on objc.ObjCBlock { - void call(NSURL? arg0, NSError? arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1?.ref.pointer ?? ffi.nullptr, - ); -} - -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - bool, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - bool, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - bool, - ffi.Pointer, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - bool, - ffi.Pointer, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock`. -abstract final class ObjCBlock_ffiVoid_NSURL_bool_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(NSURL?, bool, NSError?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureCallable, - ( - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, - ) => fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: true, release: true), - arg1, - arg2.address == 0 - ? null - : NSError.castFromPointer(arg2, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function(NSURL?, bool, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerCallable.nativeFunction - .cast(), - ( - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, - ) => fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2.address == 0 - ? null - : NSError.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_rnu2c5(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function(NSURL?, bool, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingCallable.nativeFunction - .cast(), - ( - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, - ) => fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2.address == 0 - ? null - : NSError.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2, - ) => fn( - arg0.address == 0 - ? null - : NSURL.castFromPointer(arg0, retain: false, release: true), - arg1, - arg2.address == 0 - ? null - : NSError.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_rnu2c5( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock`. -extension ObjCBlock_ffiVoid_NSURL_bool_NSError_CallExtension - on objc.ObjCBlock { - void call(NSURL? arg0, bool arg1, NSError? arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1, - arg2?.ref.pointer ?? ffi.nullptr, - ); -} - -void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, int, ffi.Pointer) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - int, - ffi.Pointer, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - fromFunction( - void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureCallable, - ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: true, release: true), - arg1, - arg2, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - listener( - void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - arg1, - arg2, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1p9ui4q(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - blocking( - void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - arg1, - arg2, - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2, - ) => fn( - objc.ObjCObjectBase(arg0, retain: false, release: true), - arg1, - arg2, - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > { - void call(objc.ObjCObjectBase arg0, int arg1, ffi.Pointer arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1, arg2); -} - -void _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ObjectType_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ObjectType_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_ffiVoid_ObjectType_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ObjectType_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ObjectType_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ObjectType_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ObjectType_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ObjectType_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - fromFunction( - void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_bool_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: true, release: true), arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - listener( - void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_bool_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_t8l8el(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > - blocking( - void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_bool_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ObjectType_bool_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_t8l8el( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ObjectType_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.Pointer) - > { - void call(objc.ObjCObjectBase arg0, ffi.Pointer arg1) => ref - .pointer - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1); -} - -void _ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast arg0)>>() - .asFunction)>()(arg0); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { - (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Pointer) -> -_ObjCBlock_ffiVoid_ffiVoid_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, -) { - try { - (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> fromFunction( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_ovsamd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_ovsamd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_ffiVoid_CallExtension - on objc.ObjCBlock)> { - void call(ffi.Pointer arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, ffi.Pointer))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, NSCoder)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock, NSCoder)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock, NSCoder)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock, NSCoder)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => objc.ObjCBlock, NSCoder)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSCoder)> - fromFunction( - void Function(ffi.Pointer, NSCoder) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock, NSCoder)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSCoder.castFromPointer(arg1, retain: true, release: true)), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock, NSCoder)> - listener( - void Function(ffi.Pointer, NSCoder) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_18v1jvf(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock, NSCoder)>( - wrapper, - retain: false, - release: true, - ); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock, NSCoder)> - blocking( - void Function(ffi.Pointer, NSCoder) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock, NSCoder)>( - wrapper, - retain: false, - release: true, - ); - } -} - -/// Call operator for `objc.ObjCBlock, NSCoder)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSCoder_CallExtension - on objc.ObjCBlock, NSCoder)> { - void call(ffi.Pointer arg0, NSCoder arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer); -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, NSRange, ffi.Pointer) - >()(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, NSRange, ffi.Pointer))( - arg0, - arg1, - arg2, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, NSRange, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - fromFunction( - void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureCallable, - ( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => fn(arg0, arg1, arg2), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - listener( - void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1q8ia8l(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - > - blocking( - void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, NSRange, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - > { - void call( - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer, int) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, NSStream, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - NSStream.castFromPointer(arg1, retain: true, release: true), - NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - NSStream.castFromPointer(arg1, retain: false, release: true), - NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_hoampi(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - NSStream.castFromPointer(arg1, retain: false, release: true), - NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - NSStream.castFromPointer(arg1, retain: false, release: true), - NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_hoampi( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, NSStream, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) - > { - void call(ffi.Pointer arg0, NSStream arg1, NSStreamEvent arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.value); -} - -void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.UnsignedLong arg1) - > - >() - .asFunction, int)>()(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) => (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( - arg0, - arg1, -); -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) { - (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( - arg0, - arg1, - ); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - int arg1, -) { - try { - (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( - arg0, - arg1, - ); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.UnsignedLong arg1) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureCallable, - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_zuf90e(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_zuf90e( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSUInteger_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > { - void call(ffi.Pointer arg0, int arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, arg1); -} - -void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock?, NSError?)>`. -abstract final class ObjCBlock_ffiVoid_idNSItemProviderReading_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - fromFunction( - void Function(NSItemProviderReading?, NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => fn( - arg0.address == 0 - ? null - : NSItemProviderReading.castFromPointer( - arg0, - retain: true, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - listener( - void Function(NSItemProviderReading?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderReading.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - blocking( - void Function(NSItemProviderReading?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderReading.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderReading.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock?, NSError?)>`. -extension ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > { - void call(NSItemProviderReading? arg0, NSError? arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1?.ref.pointer ?? ffi.nullptr, - ); -} - -void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline, - ) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock?, NSError?)>`. -abstract final class ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - fromFunction( - void Function(NSItemProviderWriting?, NSError?) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => fn( - arg0.address == 0 - ? null - : NSItemProviderWriting.castFromPointer( - arg0, - retain: true, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - listener( - void Function(NSItemProviderWriting?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderWriting.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > - blocking( - void Function(NSItemProviderWriting?, NSError?) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderWriting.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSItemProviderWriting.castFromPointer( - arg0, - retain: false, - release: true, - ), - arg1.address == 0 - ? null - : NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock?, NSError?)>`. -extension ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError?) - > { - void call(NSItemProviderWriting? arg0, NSError? arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0?.ref.pointer ?? ffi.nullptr, - arg1?.ref.pointer ?? ffi.nullptr, - ); -} - -void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock?, NSError)>`. -abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock?, NSError)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock?, NSError)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > - fromFunction( - void Function(NSSecureCoding?, NSError) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock?, NSError)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer( - arg0, - retain: true, - release: true, - ), - NSError.castFromPointer(arg1, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > - listener( - void Function(NSSecureCoding?, NSError) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer( - arg0, - retain: false, - release: true, - ), - NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > - blocking( - void Function(NSSecureCoding?, NSError) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer( - arg0, - retain: false, - release: true, - ), - NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0.address == 0 - ? null - : NSSecureCoding.castFromPointer( - arg0, - retain: false, - release: true, - ), - NSError.castFromPointer(arg1, retain: false, release: true), - ), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock?, NSError)>`. -extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer?, NSError) - > { - void call(NSSecureCoding? arg0, NSError arg1) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1.ref.pointer); -} - -void _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ) - > - >() - .asFunction, int)>()( - arg0, - arg1, - ); -ffi.Pointer _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, int))(arg0, arg1); -ffi.Pointer _ObjCBlock_ffiVoid_unichar_NSUInteger_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_unichar_NSUInteger_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - int arg1, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, int))(arg0, arg1); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_unichar_NSUInteger_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener(_ObjCBlock_ffiVoid_unichar_NSUInteger_listenerTrampoline) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - int arg1, -) { - try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer, int))(arg0, arg1); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener(_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline) - ..keepIsolateAlive = false; - -/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_unichar_NSUInteger { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_unichar_NSUInteger_closureCallable, - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ), - retain: false, - release: true, - ); - - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_unichar_NSUInteger_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_vhbh5h(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } - - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, int) fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), - keepIsolateAlive, - ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_vhbh5h( - raw, - rawListener, - objc.objCContext, - ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); - } -} - -/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_unichar_NSUInteger_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) - > { - void call(ffi.Pointer arg0, int arg1) => ref - .pointer - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, arg1); -} - -instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline) - .cast(); -instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as instancetype Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>`. -abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - >( - objc.newPointerBlock( - _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - > - fromFunction( - Dartinstancetype? Function(ffi.Pointer, NSCoder) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - >( - objc.newClosureBlock( - _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn( - arg0, - NSCoder.castFromPointer(arg1, retain: true, release: true), - )?.ref.retainAndReturnPointer() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>`. -extension ObjCBlock_instancetype_ffiVoid_NSCoder_CallExtension - on - objc.ObjCBlock< - objc.Retained?> Function( - ffi.Pointer, - NSCoder, - ) - > { - Dartinstancetype? call(ffi.Pointer arg0, NSCoder arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer) - .address == - 0 - ? null - : objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1.ref.pointer), - retain: false, - release: true, - ); -} - -instancetype -_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, -) => block.ref.target - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline) - .cast(); -instancetype -_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, -) => - (objc.getBlockClosure(block) - as instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ))(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable = - ffi.Pointer.fromFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>`. -abstract final class ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - >( - objc.newPointerBlock( - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - > - fromFunction( - Dartinstancetype? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - >( - objc.newClosureBlock( - _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, - ) => - fn( - arg0, - NSData.castFromPointer(arg1, retain: true, release: true), - NSString.castFromPointer(arg2, retain: true, release: true), - arg3, - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>`. -extension ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_CallExtension - on - objc.ObjCBlock< - ffi.Pointer? Function( - ffi.Pointer, - NSData, - NSString, - ffi.Pointer>, - ) - > { - Dartinstancetype? call( - ffi.Pointer arg0, - NSData arg1, - NSString arg2, - ffi.Pointer> arg3, - ) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3) - .address == - 0 - ? null - : objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer> arg3, - ) - > - >() - .asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock? Function(NSError, NSString)>`. -abstract final class ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer? Function(NSError, NSString) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock? Function(NSError, NSString)>( - pointer, - retain: retain, - release: release, - ); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer? Function(NSError, NSString) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock? Function(NSError, NSString)>( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer? Function(NSError, NSString) - > - fromFunction( - objc.ObjCObjectBase? Function(NSError, NSString) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock? Function(NSError, NSString)>( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => - fn( - NSError.castFromPointer(arg0, retain: true, release: true), - NSString.castFromPointer(arg1, retain: true, release: true), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock? Function(NSError, NSString)>`. -extension ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_CallExtension - on - objc.ObjCBlock< - ffi.Pointer? Function(NSError, NSString) - > { - objc.ObjCObjectBase? call(NSError arg0, NSString arg1) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer) - .address == - 0 - ? null - : objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - objc.ObjCObjectBase Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid_NSZone { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObjectBase Function(ffi.Pointer, ffi.Pointer) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, arg1).ref.retainAndReturnPointer(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_NSZone_CallExtension - on - objc.ObjCBlock< - objc.Retained> Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - objc.ObjCObjectBase call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1), - retain: false, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline) - .cast(); - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObjectBase Function( - ffi.Pointer, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable, - (ffi.Pointer arg0, ffi.Pointer arg1) => - fn(arg0, arg1).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > { - objc.ObjCObjectBase call( - ffi.Pointer arg0, - ffi.Pointer arg1, - ) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline, - ) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObjectBase Function( - ffi.Pointer, - ffi.Pointer, - objc.ObjCObjectBase, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) => fn( - arg0, - arg1, - objc.ObjCObjectBase(arg2, retain: true, release: true), - ).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - objc.ObjCObjectBase call( - ffi.Pointer arg0, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2, - ) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2.ref.pointer), - retain: true, - release: true, - ); -} - -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline, - ) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline, - ) - .cast(); - -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); - - /// 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. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); - - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - fromFunction( - objc.ObjCObjectBase Function( - ffi.Pointer, - ffi.Pointer, - objc.ObjCObjectBase, - objc.ObjCObjectBase, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) => fn( - arg0, - arg1, - objc.ObjCObjectBase(arg2, retain: true, release: true), - objc.ObjCObjectBase(arg3, retain: true, release: true), - ).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); -} - -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > { - objc.ObjCObjectBase call( - ffi.Pointer arg0, - ffi.Pointer arg1, - objc.ObjCObjectBase arg2, - objc.ObjCObjectBase arg3, - ) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2.ref.pointer, arg3.ref.pointer), - retain: true, - release: true, - ); -} - -/// Protocol -class Protocol extends objc.ObjCObjectBase { - Protocol._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super(pointer, retain: retain, release: release); - - /// Constructs a [Protocol] that points to the same underlying object as [other]. - Protocol.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [Protocol] that wraps the given raw object pointer. - Protocol.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); - - /// Returns whether [obj] is an instance of [Protocol]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_Protocol, - ); - } -} - -late final _class_NSArray = objc.getClass("NSArray"); -late final _class_NSCharacterSet = objc.getClass("NSCharacterSet"); -late final _class_NSCoder = objc.getClass("NSCoder"); -late final _class_NSData = objc.getClass("NSData"); -late final _class_NSDate = objc.getClass("NSDate"); -late final _class_NSDictionary = objc.getClass("NSDictionary"); -late final _class_NSEnumerator = objc.getClass("NSEnumerator"); -late final _class_NSError = objc.getClass("NSError"); -late final _class_NSIndexSet = objc.getClass("NSIndexSet"); -late final _class_NSInputStream = objc.getClass("NSInputStream"); -late final _class_NSInvocation = objc.getClass("NSInvocation"); -late final _class_NSItemProvider = objc.getClass("NSItemProvider"); -late final _class_NSLocale = objc.getClass("NSLocale"); -late final _class_NSMethodSignature = objc.getClass("NSMethodSignature"); -late final _class_NSMutableArray = objc.getClass("NSMutableArray"); -late final _class_NSMutableData = objc.getClass("NSMutableData"); -late final _class_NSMutableDictionary = objc.getClass("NSMutableDictionary"); -late final _class_NSMutableIndexSet = objc.getClass("NSMutableIndexSet"); -late final _class_NSMutableOrderedSet = objc.getClass("NSMutableOrderedSet"); -late final _class_NSMutableSet = objc.getClass("NSMutableSet"); -late final _class_NSMutableString = objc.getClass("NSMutableString"); -late final _class_NSNotification = objc.getClass("NSNotification"); -late final _class_NSNumber = objc.getClass("NSNumber"); -late final _class_NSObject = objc.getClass("NSObject"); -late final _class_NSOrderedCollectionChange = objc.getClass( - "NSOrderedCollectionChange", -); -late final _class_NSOrderedCollectionDifference = objc.getClass( - "NSOrderedCollectionDifference", -); -late final _class_NSOrderedSet = objc.getClass("NSOrderedSet"); -late final _class_NSOutputStream = objc.getClass("NSOutputStream"); -late final _class_NSProgress = objc.getClass("NSProgress"); -late final _class_NSRunLoop = objc.getClass("NSRunLoop"); -late final _class_NSSet = objc.getClass("NSSet"); -late final _class_NSStream = objc.getClass("NSStream"); -late final _class_NSString = objc.getClass("NSString"); -late final _class_NSURL = objc.getClass("NSURL"); -late final _class_NSURLHandle = objc.getClass("NSURLHandle"); -late final _class_NSValue = objc.getClass("NSValue"); -late final _class_Protocol = objc.getClass("Protocol"); -final _objc_msgSend_102xxo4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_102xxo4Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_10mlopr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_11cbyu0 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_11e9f5x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_11spmsz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_122v0cv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_12py2ux = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_134vhyh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_13mclwd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Char, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_13x5boi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_13yqbb6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_14ew8zr = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_14hpxwa = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_14hvw5k = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_151sglz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_158ju31 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_15bolr3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_15qeuct = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_161ne8y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool, - ) - >(); -final _objc_msgSend_1698hqz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_16f0drb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.LongLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_16fy0up = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_177cajs = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_17amj0z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_182fzon = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_182fzonStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1895u4n = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_18qun1e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_19lrthf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ) - >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1alewu7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1b5ysjl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_1bvics1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ceswyu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1co9mn4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedShort, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1d8s65w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_1d8s65wStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_1d9e4oe = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1deg8x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedShort Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1dydpdi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_1e3pm0z = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_1efxbd8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1egc1c = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.UnsignedLong, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - ) - >(); -final _objc_msgSend_1ffoev1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1fuqfwb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ged0jd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1gypgok = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1h2q612 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1hz7y9r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1i2r70j = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1i9r4xy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1i9v144 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1iyq28l = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1j9bhml = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1jtxufi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1jwityx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1k0ezzm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1k101e3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.LongLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1k1o1s7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_1k4kd9s = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1k745tv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1ko4qka = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedChar Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1lbgrac = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lhpu4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1lsax7n = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1lv8yz3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_1n40f6p = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1njucl2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedShort, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1nmlvqc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_1nmlvqcStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_1nomli1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1oteutl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_1ozwf6k = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1p4gbjy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLongLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_1pa9f4m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pl40xc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1pnyuds = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1q30cs4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1qv0eq4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1sotr3r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1srf6wk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1t6aok9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - bool, - ) - >(); -final _objc_msgSend_1tfztp = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1tiux5i = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1tv4uax = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vd1c5m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1vnlaqg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1vxoo9h = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1wdb8ji = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1wt9a7r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1x2hskc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLongLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_1x5ew3h = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_1xi08ar = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_1ym6zyw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_2u4jm6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_3cbdpb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_3ctkt6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_3nbx5e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_3pyzne = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_56zxyn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_68x6r1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Short, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_6ex6p5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_6jmuyz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_6peh6o = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_6z4k82 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_7g3u2y = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_7kpg7m = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_7uautw = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedChar, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_8321cp = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_898fog = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_89xgla = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_8cymbm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_91o635 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_9b3h4v = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_9x4k8x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_a3wp08 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_arew0j = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_bfp043 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_bstjp9 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_c0vg4w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_cfx8ce = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_cnxxyq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_d3i1uy = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_d3i1uyStret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_degb40 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_diypgk = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_djsa9o = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_dv3z6r = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.UnsignedLong, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_e3qsqz = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_e9mncn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_eh32gn = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_erqryg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_et8cuh = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Float, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_f167m6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_gcjqkl = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_gerswc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Uint8, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_gg0462 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_gg0462Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_gx50so = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_hc8exi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_hiwitm = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - bool, - ) - >(); -final _objc_msgSend_i30zh3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - NSRange, - ffi.Pointer, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - int, - int, - NSRange, - ffi.Pointer, - ) - >(); -final _objc_msgSend_jjgvjt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_jsclrq = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_k1x6mt = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_k4j8m3 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - bool, - ) - >(); -final _objc_msgSend_kshx9d = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_l9p60w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ) - >(); -final _objc_msgSend_lh0jh5 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool, - ) - >(); -final _objc_msgSend_mabicu = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer - .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_n2svg2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_nnxkei = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_o16d3k = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - NSRange, - ) - >(); -final _objc_msgSend_o762yo = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_oa8mke = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); -final _objc_msgSend_otx1t4 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Long, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_ourvf2 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_p4nurx = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_pfv6jd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_pg1fnv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_qm9f5w = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_qugqlf = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_r0bo0s = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_rc4ypv = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_s92gih = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_sz90oi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_t7arir = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_talwei = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_ud8gg = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedShort Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_uimyc7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - NSRange Function( - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_uimyc7Stret = objc.msgSendStretPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_vbymrb = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ) - >(); -final _objc_msgSend_w9bq5x = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ffi.Bool, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - bool, - ) - >(); -final _objc_msgSend_xmlz1t = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Char Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_xpqfd7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -final _objc_msgSend_xrqic1 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - NSRange, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - NSRange, - ) - >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -final _objc_msgSend_xw2lbc = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() - .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -final _objc_msgSend_yx8yc6 = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ) - >(); -final _objc_msgSend_zmbtbd = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int, - ) - >(); -final _objc_msgSend_zuf90e = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -final _objc_msgSend_zug4wi = objc.msgSendPointer - .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - > - >() - .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - NSRange, - ) - >(); -late final _protocol_NSCoding = objc.getProtocol("NSCoding"); -late final _protocol_NSCopying = objc.getProtocol("NSCopying"); -late final _protocol_NSFastEnumeration = objc.getProtocol("NSFastEnumeration"); -late final _protocol_NSItemProviderReading = objc.getProtocol( - "NSItemProviderReading", -); -late final _protocol_NSItemProviderWriting = objc.getProtocol( - "NSItemProviderWriting", -); -late final _protocol_NSMutableCopying = objc.getProtocol("NSMutableCopying"); -late final _protocol_NSObject = objc.getProtocol("NSObject"); -late final _protocol_NSSecureCoding = objc.getProtocol("NSSecureCoding"); -late final _protocol_NSStreamDelegate = objc.getProtocol("NSStreamDelegate"); -late final _sel_URLByResolvingAliasFileAtURL_options_error_ = objc.registerName( - "URLByResolvingAliasFileAtURL:options:error:", -); -late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = - objc.registerName( - "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", - ); -late final _sel_URLWithDataRepresentation_relativeToURL_ = objc.registerName( - "URLWithDataRepresentation:relativeToURL:", -); -late final _sel_URLWithString_ = objc.registerName("URLWithString:"); -late final _sel_URLWithString_encodingInvalidCharacters_ = objc.registerName( - "URLWithString:encodingInvalidCharacters:", -); -late final _sel_URLWithString_relativeToURL_ = objc.registerName( - "URLWithString:relativeToURL:", -); -late final _sel_UTF8String = objc.registerName("UTF8String"); -late final _sel_absoluteString = objc.registerName("absoluteString"); -late final _sel_absoluteURL = objc.registerName("absoluteURL"); -late final _sel_absoluteURLWithDataRepresentation_relativeToURL_ = objc - .registerName("absoluteURLWithDataRepresentation:relativeToURL:"); -late final _sel_addEntriesFromDictionary_ = objc.registerName( - "addEntriesFromDictionary:", -); -late final _sel_addIndex_ = objc.registerName("addIndex:"); -late final _sel_addIndexesInRange_ = objc.registerName("addIndexesInRange:"); -late final _sel_addIndexes_ = objc.registerName("addIndexes:"); -late final _sel_addObject_ = objc.registerName("addObject:"); -late final _sel_addObjectsFromArray_ = objc.registerName( - "addObjectsFromArray:", -); -late final _sel_addObjects_count_ = objc.registerName("addObjects:count:"); -late final _sel_allKeys = objc.registerName("allKeys"); -late final _sel_allKeysForObject_ = objc.registerName("allKeysForObject:"); -late final _sel_allObjects = objc.registerName("allObjects"); -late final _sel_allValues = objc.registerName("allValues"); -late final _sel_alloc = objc.registerName("alloc"); -late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); -late final _sel_alphanumericCharacterSet = objc.registerName( - "alphanumericCharacterSet", -); -late final _sel_anyObject = objc.registerName("anyObject"); -late final _sel_appendBytes_length_ = objc.registerName("appendBytes:length:"); -late final _sel_appendData_ = objc.registerName("appendData:"); -late final _sel_array = objc.registerName("array"); -late final _sel_arrayByAddingObject_ = objc.registerName( - "arrayByAddingObject:", -); -late final _sel_arrayByAddingObjectsFromArray_ = objc.registerName( - "arrayByAddingObjectsFromArray:", -); -late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); -late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); -late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); -late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); -late final _sel_arrayWithObjects_count_ = objc.registerName( - "arrayWithObjects:count:", -); -late final _sel_associatedIndex = objc.registerName("associatedIndex"); -late final _sel_autorelease = objc.registerName("autorelease"); -late final _sel_availableStringEncodings = objc.registerName( - "availableStringEncodings", -); -late final _sel_baseURL = objc.registerName("baseURL"); -late final _sel_bitmapRepresentation = objc.registerName( - "bitmapRepresentation", -); -late final _sel_bookmarkDataWithContentsOfURL_error_ = objc.registerName( - "bookmarkDataWithContentsOfURL:error:", -); -late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_ = - objc.registerName( - "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:", - ); -late final _sel_boolValue = objc.registerName("boolValue"); -late final _sel_bytes = objc.registerName("bytes"); -late final _sel_cStringUsingEncoding_ = objc.registerName( - "cStringUsingEncoding:", -); -late final _sel_canBeConvertedToEncoding_ = objc.registerName( - "canBeConvertedToEncoding:", -); -late final _sel_canLoadObjectOfClass_ = objc.registerName( - "canLoadObjectOfClass:", -); -late final _sel_capitalizedLetterCharacterSet = objc.registerName( - "capitalizedLetterCharacterSet", -); -late final _sel_capitalizedString = objc.registerName("capitalizedString"); -late final _sel_capitalizedStringWithLocale_ = objc.registerName( - "capitalizedStringWithLocale:", -); -late final _sel_caseInsensitiveCompare_ = objc.registerName( - "caseInsensitiveCompare:", -); -late final _sel_changeType = objc.registerName("changeType"); -late final _sel_changeWithObject_type_index_ = objc.registerName( - "changeWithObject:type:index:", -); -late final _sel_changeWithObject_type_index_associatedIndex_ = objc - .registerName("changeWithObject:type:index:associatedIndex:"); -late final _sel_charValue = objc.registerName("charValue"); -late final _sel_characterAtIndex_ = objc.registerName("characterAtIndex:"); -late final _sel_characterIsMember_ = objc.registerName("characterIsMember:"); -late final _sel_characterSetWithBitmapRepresentation_ = objc.registerName( - "characterSetWithBitmapRepresentation:", -); -late final _sel_characterSetWithCharactersInString_ = objc.registerName( - "characterSetWithCharactersInString:", -); -late final _sel_characterSetWithContentsOfFile_ = objc.registerName( - "characterSetWithContentsOfFile:", -); -late final _sel_characterSetWithRange_ = objc.registerName( - "characterSetWithRange:", -); -late final _sel_class = objc.registerName("class"); -late final _sel_close = objc.registerName("close"); -late final _sel_code = objc.registerName("code"); -late final _sel_commonPrefixWithString_options_ = objc.registerName( - "commonPrefixWithString:options:", -); -late final _sel_compare_ = objc.registerName("compare:"); -late final _sel_compare_options_ = objc.registerName("compare:options:"); -late final _sel_compare_options_range_ = objc.registerName( - "compare:options:range:", -); -late final _sel_compare_options_range_locale_ = objc.registerName( - "compare:options:range:locale:", -); -late final _sel_componentsJoinedByString_ = objc.registerName( - "componentsJoinedByString:", -); -late final _sel_componentsSeparatedByCharactersInSet_ = objc.registerName( - "componentsSeparatedByCharactersInSet:", -); -late final _sel_componentsSeparatedByString_ = objc.registerName( - "componentsSeparatedByString:", -); -late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( - "compressedDataUsingAlgorithm:error:", -); -late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); -late final _sel_containsIndex_ = objc.registerName("containsIndex:"); -late final _sel_containsIndexesInRange_ = objc.registerName( - "containsIndexesInRange:", -); -late final _sel_containsIndexes_ = objc.registerName("containsIndexes:"); -late final _sel_containsObject_ = objc.registerName("containsObject:"); -late final _sel_containsString_ = objc.registerName("containsString:"); -late final _sel_controlCharacterSet = objc.registerName("controlCharacterSet"); -late final _sel_copy = objc.registerName("copy"); -late final _sel_copyWithZone_ = objc.registerName("copyWithZone:"); -late final _sel_count = objc.registerName("count"); -late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( - "countByEnumeratingWithState:objects:count:", -); -late final _sel_countOfIndexesInRange_ = objc.registerName( - "countOfIndexesInRange:", -); -late final _sel_data = objc.registerName("data"); -late final _sel_dataRepresentation = objc.registerName("dataRepresentation"); -late final _sel_dataUsingEncoding_ = objc.registerName("dataUsingEncoding:"); -late final _sel_dataUsingEncoding_allowLossyConversion_ = objc.registerName( - "dataUsingEncoding:allowLossyConversion:", -); -late final _sel_dataWithBytesNoCopy_length_ = objc.registerName( - "dataWithBytesNoCopy:length:", -); -late final _sel_dataWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( - "dataWithBytesNoCopy:length:freeWhenDone:", -); -late final _sel_dataWithBytes_length_ = objc.registerName( - "dataWithBytes:length:", -); -late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); -late final _sel_dataWithContentsOfFile_ = objc.registerName( - "dataWithContentsOfFile:", -); -late final _sel_dataWithContentsOfFile_options_error_ = objc.registerName( - "dataWithContentsOfFile:options:error:", -); -late final _sel_dataWithContentsOfURL_ = objc.registerName( - "dataWithContentsOfURL:", -); -late final _sel_dataWithContentsOfURL_options_error_ = objc.registerName( - "dataWithContentsOfURL:options:error:", -); -late final _sel_dataWithData_ = objc.registerName("dataWithData:"); -late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); -late final _sel_date = objc.registerName("date"); -late final _sel_dateByAddingTimeInterval_ = objc.registerName( - "dateByAddingTimeInterval:", -); -late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( - "dateWithTimeIntervalSince1970:", -); -late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( - "dateWithTimeIntervalSinceNow:", -); -late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( - "dateWithTimeIntervalSinceReferenceDate:", -); -late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( - "dateWithTimeInterval:sinceDate:", -); -late final _sel_dealloc = objc.registerName("dealloc"); -late final _sel_debugDescription = objc.registerName("debugDescription"); -late final _sel_decimalDigitCharacterSet = objc.registerName( - "decimalDigitCharacterSet", -); -late final _sel_decomposableCharacterSet = objc.registerName( - "decomposableCharacterSet", -); -late final _sel_decomposedStringWithCanonicalMapping = objc.registerName( - "decomposedStringWithCanonicalMapping", -); -late final _sel_decomposedStringWithCompatibilityMapping = objc.registerName( - "decomposedStringWithCompatibilityMapping", -); -late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( - "decompressedDataUsingAlgorithm:error:", -); -late final _sel_defaultCStringEncoding = objc.registerName( - "defaultCStringEncoding", -); -late final _sel_delegate = objc.registerName("delegate"); -late final _sel_description = objc.registerName("description"); -late final _sel_descriptionInStringsFileFormat = objc.registerName( - "descriptionInStringsFileFormat", -); -late final _sel_descriptionWithLocale_ = objc.registerName( - "descriptionWithLocale:", -); -late final _sel_descriptionWithLocale_indent_ = objc.registerName( - "descriptionWithLocale:indent:", -); -late final _sel_dictionary = objc.registerName("dictionary"); -late final _sel_dictionaryWithCapacity_ = objc.registerName( - "dictionaryWithCapacity:", -); -late final _sel_dictionaryWithDictionary_ = objc.registerName( - "dictionaryWithDictionary:", -); -late final _sel_dictionaryWithObject_forKey_ = objc.registerName( - "dictionaryWithObject:forKey:", -); -late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( - "dictionaryWithObjectsAndKeys:", -); -late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( - "dictionaryWithObjects:forKeys:", -); -late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( - "dictionaryWithObjects:forKeys:count:", -); -late final _sel_differenceByTransformingChangesWithBlock_ = objc.registerName( - "differenceByTransformingChangesWithBlock:", -); -late final _sel_doesNotRecognizeSelector_ = objc.registerName( - "doesNotRecognizeSelector:", -); -late final _sel_domain = objc.registerName("domain"); -late final _sel_doubleValue = objc.registerName("doubleValue"); -late final _sel_earlierDate_ = objc.registerName("earlierDate:"); -late final _sel_encodeWithCoder_ = objc.registerName("encodeWithCoder:"); -late final _sel_enumerateByteRangesUsingBlock_ = objc.registerName( - "enumerateByteRangesUsingBlock:", -); -late final _sel_enumerateIndexesInRange_options_usingBlock_ = objc.registerName( - "enumerateIndexesInRange:options:usingBlock:", -); -late final _sel_enumerateIndexesUsingBlock_ = objc.registerName( - "enumerateIndexesUsingBlock:", -); -late final _sel_enumerateIndexesWithOptions_usingBlock_ = objc.registerName( - "enumerateIndexesWithOptions:usingBlock:", -); -late final _sel_enumerateKeysAndObjectsUsingBlock_ = objc.registerName( - "enumerateKeysAndObjectsUsingBlock:", -); -late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_ = objc - .registerName("enumerateKeysAndObjectsWithOptions:usingBlock:"); -late final _sel_enumerateLinesUsingBlock_ = objc.registerName( - "enumerateLinesUsingBlock:", -); -late final _sel_enumerateObjectsAtIndexes_options_usingBlock_ = objc - .registerName("enumerateObjectsAtIndexes:options:usingBlock:"); -late final _sel_enumerateObjectsUsingBlock_ = objc.registerName( - "enumerateObjectsUsingBlock:", -); -late final _sel_enumerateObjectsWithOptions_usingBlock_ = objc.registerName( - "enumerateObjectsWithOptions:usingBlock:", -); -late final _sel_enumerateRangesInRange_options_usingBlock_ = objc.registerName( - "enumerateRangesInRange:options:usingBlock:", -); -late final _sel_enumerateRangesUsingBlock_ = objc.registerName( - "enumerateRangesUsingBlock:", -); -late final _sel_enumerateRangesWithOptions_usingBlock_ = objc.registerName( - "enumerateRangesWithOptions:usingBlock:", -); -late final _sel_enumerateSubstringsInRange_options_usingBlock_ = objc - .registerName("enumerateSubstringsInRange:options:usingBlock:"); -late final _sel_errorWithDomain_code_userInfo_ = objc.registerName( - "errorWithDomain:code:userInfo:", -); -late final _sel_exchangeObjectAtIndex_withObjectAtIndex_ = objc.registerName( - "exchangeObjectAtIndex:withObjectAtIndex:", -); -late final _sel_fastestEncoding = objc.registerName("fastestEncoding"); -late final _sel_filePathURL = objc.registerName("filePathURL"); -late final _sel_fileReferenceURL = objc.registerName("fileReferenceURL"); -late final _sel_fileSystemRepresentation = objc.registerName( - "fileSystemRepresentation", -); -late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = - objc.registerName( - "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", - ); -late final _sel_fileURLWithPath_ = objc.registerName("fileURLWithPath:"); -late final _sel_fileURLWithPath_isDirectory_ = objc.registerName( - "fileURLWithPath:isDirectory:", -); -late final _sel_fileURLWithPath_isDirectory_relativeToURL_ = objc.registerName( - "fileURLWithPath:isDirectory:relativeToURL:", -); -late final _sel_fileURLWithPath_relativeToURL_ = objc.registerName( - "fileURLWithPath:relativeToURL:", -); -late final _sel_firstIndex = objc.registerName("firstIndex"); -late final _sel_firstObject = objc.registerName("firstObject"); -late final _sel_firstObjectCommonWithArray_ = objc.registerName( - "firstObjectCommonWithArray:", -); -late final _sel_floatValue = objc.registerName("floatValue"); -late final _sel_forwardInvocation_ = objc.registerName("forwardInvocation:"); -late final _sel_forwardingTargetForSelector_ = objc.registerName( - "forwardingTargetForSelector:", -); -late final _sel_fragment = objc.registerName("fragment"); -late final _sel_frameLength = objc.registerName("frameLength"); -late final _sel_getArgumentTypeAtIndex_ = objc.registerName( - "getArgumentTypeAtIndex:", -); -late final _sel_getBuffer_length_ = objc.registerName("getBuffer:length:"); -late final _sel_getBytes_length_ = objc.registerName("getBytes:length:"); -late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_ = - objc.registerName( - "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:", - ); -late final _sel_getBytes_range_ = objc.registerName("getBytes:range:"); -late final _sel_getCString_maxLength_encoding_ = objc.registerName( - "getCString:maxLength:encoding:", -); -late final _sel_getCharacters_range_ = objc.registerName( - "getCharacters:range:", -); -late final _sel_getFileSystemRepresentation_maxLength_ = objc.registerName( - "getFileSystemRepresentation:maxLength:", -); -late final _sel_getIndexes_maxCount_inIndexRange_ = objc.registerName( - "getIndexes:maxCount:inIndexRange:", -); -late final _sel_getLineStart_end_contentsEnd_forRange_ = objc.registerName( - "getLineStart:end:contentsEnd:forRange:", -); -late final _sel_getObjects_andKeys_count_ = objc.registerName( - "getObjects:andKeys:count:", -); -late final _sel_getObjects_range_ = objc.registerName("getObjects:range:"); -late final _sel_getParagraphStart_end_contentsEnd_forRange_ = objc.registerName( - "getParagraphStart:end:contentsEnd:forRange:", -); -late final _sel_getResourceValue_forKey_error_ = objc.registerName( - "getResourceValue:forKey:error:", -); -late final _sel_getValue_size_ = objc.registerName("getValue:size:"); -late final _sel_hasBytesAvailable = objc.registerName("hasBytesAvailable"); -late final _sel_hasChanges = objc.registerName("hasChanges"); -late final _sel_hasDirectoryPath = objc.registerName("hasDirectoryPath"); -late final _sel_hasItemConformingToTypeIdentifier_ = objc.registerName( - "hasItemConformingToTypeIdentifier:", -); -late final _sel_hasMemberInPlane_ = objc.registerName("hasMemberInPlane:"); -late final _sel_hasPrefix_ = objc.registerName("hasPrefix:"); -late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_ = objc - .registerName("hasRepresentationConformingToTypeIdentifier:fileOptions:"); -late final _sel_hasSpaceAvailable = objc.registerName("hasSpaceAvailable"); -late final _sel_hasSuffix_ = objc.registerName("hasSuffix:"); -late final _sel_hash = objc.registerName("hash"); -late final _sel_helpAnchor = objc.registerName("helpAnchor"); -late final _sel_host = objc.registerName("host"); -late final _sel_illegalCharacterSet = objc.registerName("illegalCharacterSet"); -late final _sel_increaseLengthBy_ = objc.registerName("increaseLengthBy:"); -late final _sel_index = objc.registerName("index"); -late final _sel_indexGreaterThanIndex_ = objc.registerName( - "indexGreaterThanIndex:", -); -late final _sel_indexGreaterThanOrEqualToIndex_ = objc.registerName( - "indexGreaterThanOrEqualToIndex:", -); -late final _sel_indexInRange_options_passingTest_ = objc.registerName( - "indexInRange:options:passingTest:", -); -late final _sel_indexLessThanIndex_ = objc.registerName("indexLessThanIndex:"); -late final _sel_indexLessThanOrEqualToIndex_ = objc.registerName( - "indexLessThanOrEqualToIndex:", -); -late final _sel_indexOfObjectAtIndexes_options_passingTest_ = objc.registerName( - "indexOfObjectAtIndexes:options:passingTest:", -); -late final _sel_indexOfObjectIdenticalTo_ = objc.registerName( - "indexOfObjectIdenticalTo:", -); -late final _sel_indexOfObjectIdenticalTo_inRange_ = objc.registerName( - "indexOfObjectIdenticalTo:inRange:", -); -late final _sel_indexOfObjectPassingTest_ = objc.registerName( - "indexOfObjectPassingTest:", -); -late final _sel_indexOfObjectWithOptions_passingTest_ = objc.registerName( - "indexOfObjectWithOptions:passingTest:", -); -late final _sel_indexOfObject_ = objc.registerName("indexOfObject:"); -late final _sel_indexOfObject_inRange_ = objc.registerName( - "indexOfObject:inRange:", -); -late final _sel_indexOfObject_inSortedRange_options_usingComparator_ = objc - .registerName("indexOfObject:inSortedRange:options:usingComparator:"); -late final _sel_indexPassingTest_ = objc.registerName("indexPassingTest:"); -late final _sel_indexSet = objc.registerName("indexSet"); -late final _sel_indexSetWithIndex_ = objc.registerName("indexSetWithIndex:"); -late final _sel_indexSetWithIndexesInRange_ = objc.registerName( - "indexSetWithIndexesInRange:", -); -late final _sel_indexWithOptions_passingTest_ = objc.registerName( - "indexWithOptions:passingTest:", -); -late final _sel_indexesInRange_options_passingTest_ = objc.registerName( - "indexesInRange:options:passingTest:", -); -late final _sel_indexesOfObjectsAtIndexes_options_passingTest_ = objc - .registerName("indexesOfObjectsAtIndexes:options:passingTest:"); -late final _sel_indexesOfObjectsPassingTest_ = objc.registerName( - "indexesOfObjectsPassingTest:", -); -late final _sel_indexesOfObjectsWithOptions_passingTest_ = objc.registerName( - "indexesOfObjectsWithOptions:passingTest:", -); -late final _sel_indexesPassingTest_ = objc.registerName("indexesPassingTest:"); -late final _sel_indexesWithOptions_passingTest_ = objc.registerName( - "indexesWithOptions:passingTest:", -); -late final _sel_init = objc.registerName("init"); -late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_ = objc - .registerName("initAbsoluteURLWithDataRepresentation:relativeToURL:"); -late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = - objc.registerName( - "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", - ); -late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = - objc.registerName( - "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", - ); -late final _sel_initFileURLWithPath_ = objc.registerName( - "initFileURLWithPath:", -); -late final _sel_initFileURLWithPath_isDirectory_ = objc.registerName( - "initFileURLWithPath:isDirectory:", -); -late final _sel_initFileURLWithPath_isDirectory_relativeToURL_ = objc - .registerName("initFileURLWithPath:isDirectory:relativeToURL:"); -late final _sel_initFileURLWithPath_relativeToURL_ = objc.registerName( - "initFileURLWithPath:relativeToURL:", -); -late final _sel_initToBuffer_capacity_ = objc.registerName( - "initToBuffer:capacity:", -); -late final _sel_initToFileAtPath_append_ = objc.registerName( - "initToFileAtPath:append:", -); -late final _sel_initToMemory = objc.registerName("initToMemory"); -late final _sel_initWithArray_ = objc.registerName("initWithArray:"); -late final _sel_initWithArray_copyItems_ = objc.registerName( - "initWithArray:copyItems:", -); -late final _sel_initWithArray_range_copyItems_ = objc.registerName( - "initWithArray:range:copyItems:", -); -late final _sel_initWithBase64EncodedData_options_ = objc.registerName( - "initWithBase64EncodedData:options:", -); -late final _sel_initWithBase64EncodedString_options_ = objc.registerName( - "initWithBase64EncodedString:options:", -); -late final _sel_initWithBool_ = objc.registerName("initWithBool:"); -late final _sel_initWithBytesNoCopy_length_ = objc.registerName( - "initWithBytesNoCopy:length:", -); -late final _sel_initWithBytesNoCopy_length_deallocator_ = objc.registerName( - "initWithBytesNoCopy:length:deallocator:", -); -late final _sel_initWithBytesNoCopy_length_encoding_deallocator_ = objc - .registerName("initWithBytesNoCopy:length:encoding:deallocator:"); -late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_ = objc - .registerName("initWithBytesNoCopy:length:encoding:freeWhenDone:"); -late final _sel_initWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( - "initWithBytesNoCopy:length:freeWhenDone:", -); -late final _sel_initWithBytes_length_ = objc.registerName( - "initWithBytes:length:", -); -late final _sel_initWithBytes_length_encoding_ = objc.registerName( - "initWithBytes:length:encoding:", -); -late final _sel_initWithBytes_objCType_ = objc.registerName( - "initWithBytes:objCType:", -); -late final _sel_initWithCString_encoding_ = objc.registerName( - "initWithCString:encoding:", -); -late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); -late final _sel_initWithChanges_ = objc.registerName("initWithChanges:"); -late final _sel_initWithChar_ = objc.registerName("initWithChar:"); -late final _sel_initWithCharactersNoCopy_length_deallocator_ = objc - .registerName("initWithCharactersNoCopy:length:deallocator:"); -late final _sel_initWithCharactersNoCopy_length_freeWhenDone_ = objc - .registerName("initWithCharactersNoCopy:length:freeWhenDone:"); -late final _sel_initWithCharacters_length_ = objc.registerName( - "initWithCharacters:length:", -); -late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); -late final _sel_initWithContentsOfFile_ = objc.registerName( - "initWithContentsOfFile:", -); -late final _sel_initWithContentsOfFile_encoding_error_ = objc.registerName( - "initWithContentsOfFile:encoding:error:", -); -late final _sel_initWithContentsOfFile_options_error_ = objc.registerName( - "initWithContentsOfFile:options:error:", -); -late final _sel_initWithContentsOfFile_usedEncoding_error_ = objc.registerName( - "initWithContentsOfFile:usedEncoding:error:", -); -late final _sel_initWithContentsOfURL_ = objc.registerName( - "initWithContentsOfURL:", -); -late final _sel_initWithContentsOfURL_encoding_error_ = objc.registerName( - "initWithContentsOfURL:encoding:error:", -); -late final _sel_initWithContentsOfURL_options_error_ = objc.registerName( - "initWithContentsOfURL:options:error:", -); -late final _sel_initWithContentsOfURL_usedEncoding_error_ = objc.registerName( - "initWithContentsOfURL:usedEncoding:error:", -); -late final _sel_initWithDataRepresentation_relativeToURL_ = objc.registerName( - "initWithDataRepresentation:relativeToURL:", -); -late final _sel_initWithData_ = objc.registerName("initWithData:"); -late final _sel_initWithData_encoding_ = objc.registerName( - "initWithData:encoding:", -); -late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); -late final _sel_initWithDictionary_copyItems_ = objc.registerName( - "initWithDictionary:copyItems:", -); -late final _sel_initWithDomain_code_userInfo_ = objc.registerName( - "initWithDomain:code:userInfo:", -); -late final _sel_initWithDouble_ = objc.registerName("initWithDouble:"); -late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); -late final _sel_initWithFloat_ = objc.registerName("initWithFloat:"); -late final _sel_initWithFormat_ = objc.registerName("initWithFormat:"); -late final _sel_initWithFormat_locale_ = objc.registerName( - "initWithFormat:locale:", -); -late final _sel_initWithIndexSet_ = objc.registerName("initWithIndexSet:"); -late final _sel_initWithIndex_ = objc.registerName("initWithIndex:"); -late final _sel_initWithIndexesInRange_ = objc.registerName( - "initWithIndexesInRange:", -); -late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_ = - objc.registerName( - "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:", - ); -late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_ = - objc.registerName( - "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:", - ); -late final _sel_initWithInt_ = objc.registerName("initWithInt:"); -late final _sel_initWithInteger_ = objc.registerName("initWithInteger:"); -late final _sel_initWithItem_typeIdentifier_ = objc.registerName( - "initWithItem:typeIdentifier:", -); -late final _sel_initWithLength_ = objc.registerName("initWithLength:"); -late final _sel_initWithLongLong_ = objc.registerName("initWithLongLong:"); -late final _sel_initWithLong_ = objc.registerName("initWithLong:"); -late final _sel_initWithName_object_userInfo_ = objc.registerName( - "initWithName:object:userInfo:", -); -late final _sel_initWithObject_ = objc.registerName("initWithObject:"); -late final _sel_initWithObject_type_index_ = objc.registerName( - "initWithObject:type:index:", -); -late final _sel_initWithObject_type_index_associatedIndex_ = objc.registerName( - "initWithObject:type:index:associatedIndex:", -); -late final _sel_initWithObjectsAndKeys_ = objc.registerName( - "initWithObjectsAndKeys:", -); -late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); -late final _sel_initWithObjects_count_ = objc.registerName( - "initWithObjects:count:", -); -late final _sel_initWithObjects_forKeys_ = objc.registerName( - "initWithObjects:forKeys:", -); -late final _sel_initWithObjects_forKeys_count_ = objc.registerName( - "initWithObjects:forKeys:count:", -); -late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); -late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( - "initWithOrderedSet:copyItems:", -); -late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( - "initWithOrderedSet:range:copyItems:", -); -late final _sel_initWithSet_ = objc.registerName("initWithSet:"); -late final _sel_initWithSet_copyItems_ = objc.registerName( - "initWithSet:copyItems:", -); -late final _sel_initWithShort_ = objc.registerName("initWithShort:"); -late final _sel_initWithString_ = objc.registerName("initWithString:"); -late final _sel_initWithString_encodingInvalidCharacters_ = objc.registerName( - "initWithString:encodingInvalidCharacters:", -); -late final _sel_initWithString_relativeToURL_ = objc.registerName( - "initWithString:relativeToURL:", -); -late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( - "initWithTimeIntervalSince1970:", -); -late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( - "initWithTimeIntervalSinceNow:", -); -late final _sel_initWithTimeIntervalSinceReferenceDate_ = objc.registerName( - "initWithTimeIntervalSinceReferenceDate:", -); -late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( - "initWithTimeInterval:sinceDate:", -); -late final _sel_initWithURL_ = objc.registerName("initWithURL:"); -late final _sel_initWithURL_append_ = objc.registerName("initWithURL:append:"); -late final _sel_initWithUTF8String_ = objc.registerName("initWithUTF8String:"); -late final _sel_initWithUnsignedChar_ = objc.registerName( - "initWithUnsignedChar:", -); -late final _sel_initWithUnsignedInt_ = objc.registerName( - "initWithUnsignedInt:", -); -late final _sel_initWithUnsignedInteger_ = objc.registerName( - "initWithUnsignedInteger:", -); -late final _sel_initWithUnsignedLongLong_ = objc.registerName( - "initWithUnsignedLongLong:", -); -late final _sel_initWithUnsignedLong_ = objc.registerName( - "initWithUnsignedLong:", -); -late final _sel_initWithUnsignedShort_ = objc.registerName( - "initWithUnsignedShort:", -); -late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_ = objc - .registerName("initWithValidatedFormat:validFormatSpecifiers:error:"); -late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_ = - objc.registerName( - "initWithValidatedFormat:validFormatSpecifiers:locale:error:", - ); -late final _sel_initialize = objc.registerName("initialize"); -late final _sel_inputStreamWithData_ = objc.registerName( - "inputStreamWithData:", -); -late final _sel_inputStreamWithFileAtPath_ = objc.registerName( - "inputStreamWithFileAtPath:", -); -late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); -late final _sel_insertObject_atIndex_ = objc.registerName( - "insertObject:atIndex:", -); -late final _sel_insertObjects_atIndexes_ = objc.registerName( - "insertObjects:atIndexes:", -); -late final _sel_insertions = objc.registerName("insertions"); -late final _sel_instanceMethodForSelector_ = objc.registerName( - "instanceMethodForSelector:", -); -late final _sel_instanceMethodSignatureForSelector_ = objc.registerName( - "instanceMethodSignatureForSelector:", -); -late final _sel_instancesRespondToSelector_ = objc.registerName( - "instancesRespondToSelector:", -); -late final _sel_intValue = objc.registerName("intValue"); -late final _sel_integerValue = objc.registerName("integerValue"); -late final _sel_intersectOrderedSet_ = objc.registerName( - "intersectOrderedSet:", -); -late final _sel_intersectSet_ = objc.registerName("intersectSet:"); -late final _sel_intersectsIndexesInRange_ = objc.registerName( - "intersectsIndexesInRange:", -); -late final _sel_intersectsOrderedSet_ = objc.registerName( - "intersectsOrderedSet:", -); -late final _sel_intersectsSet_ = objc.registerName("intersectsSet:"); -late final _sel_inverseDifference = objc.registerName("inverseDifference"); -late final _sel_invertedSet = objc.registerName("invertedSet"); -late final _sel_isEqualToArray_ = objc.registerName("isEqualToArray:"); -late final _sel_isEqualToData_ = objc.registerName("isEqualToData:"); -late final _sel_isEqualToDate_ = objc.registerName("isEqualToDate:"); -late final _sel_isEqualToDictionary_ = objc.registerName( - "isEqualToDictionary:", -); -late final _sel_isEqualToIndexSet_ = objc.registerName("isEqualToIndexSet:"); -late final _sel_isEqualToNumber_ = objc.registerName("isEqualToNumber:"); -late final _sel_isEqualToOrderedSet_ = objc.registerName( - "isEqualToOrderedSet:", -); -late final _sel_isEqualToSet_ = objc.registerName("isEqualToSet:"); -late final _sel_isEqualToString_ = objc.registerName("isEqualToString:"); -late final _sel_isEqual_ = objc.registerName("isEqual:"); -late final _sel_isFileReferenceURL = objc.registerName("isFileReferenceURL"); -late final _sel_isFileURL = objc.registerName("isFileURL"); -late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); -late final _sel_isMemberOfClass_ = objc.registerName("isMemberOfClass:"); -late final _sel_isOneway = objc.registerName("isOneway"); -late final _sel_isProxy = objc.registerName("isProxy"); -late final _sel_isSubclassOfClass_ = objc.registerName("isSubclassOfClass:"); -late final _sel_isSubsetOfOrderedSet_ = objc.registerName( - "isSubsetOfOrderedSet:", -); -late final _sel_isSubsetOfSet_ = objc.registerName("isSubsetOfSet:"); -late final _sel_isSupersetOfSet_ = objc.registerName("isSupersetOfSet:"); -late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = - objc.registerName( - "itemProviderVisibilityForRepresentationWithTypeIdentifier:", - ); -late final _sel_keyEnumerator = objc.registerName("keyEnumerator"); -late final _sel_keysOfEntriesPassingTest_ = objc.registerName( - "keysOfEntriesPassingTest:", -); -late final _sel_keysOfEntriesWithOptions_passingTest_ = objc.registerName( - "keysOfEntriesWithOptions:passingTest:", -); -late final _sel_keysSortedByValueUsingComparator_ = objc.registerName( - "keysSortedByValueUsingComparator:", -); -late final _sel_keysSortedByValueUsingSelector_ = objc.registerName( - "keysSortedByValueUsingSelector:", -); -late final _sel_keysSortedByValueWithOptions_usingComparator_ = objc - .registerName("keysSortedByValueWithOptions:usingComparator:"); -late final _sel_lastIndex = objc.registerName("lastIndex"); -late final _sel_lastObject = objc.registerName("lastObject"); -late final _sel_laterDate_ = objc.registerName("laterDate:"); -late final _sel_length = objc.registerName("length"); -late final _sel_lengthOfBytesUsingEncoding_ = objc.registerName( - "lengthOfBytesUsingEncoding:", -); -late final _sel_letterCharacterSet = objc.registerName("letterCharacterSet"); -late final _sel_lineRangeForRange_ = objc.registerName("lineRangeForRange:"); -late final _sel_load = objc.registerName("load"); -late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_ = - objc.registerName( - "loadDataRepresentationForTypeIdentifier:completionHandler:", - ); -late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = - objc.registerName( - "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", - ); -late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_ = - objc.registerName( - "loadFileRepresentationForTypeIdentifier:completionHandler:", - ); -late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_ = - objc.registerName( - "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:", - ); -late final _sel_loadItemForTypeIdentifier_options_completionHandler_ = objc - .registerName("loadItemForTypeIdentifier:options:completionHandler:"); -late final _sel_loadObjectOfClass_completionHandler_ = objc.registerName( - "loadObjectOfClass:completionHandler:", -); -late final _sel_localizedCapitalizedString = objc.registerName( - "localizedCapitalizedString", -); -late final _sel_localizedCaseInsensitiveCompare_ = objc.registerName( - "localizedCaseInsensitiveCompare:", -); -late final _sel_localizedCaseInsensitiveContainsString_ = objc.registerName( - "localizedCaseInsensitiveContainsString:", -); -late final _sel_localizedCompare_ = objc.registerName("localizedCompare:"); -late final _sel_localizedDescription = objc.registerName( - "localizedDescription", -); -late final _sel_localizedFailureReason = objc.registerName( - "localizedFailureReason", -); -late final _sel_localizedLowercaseString = objc.registerName( - "localizedLowercaseString", -); -late final _sel_localizedNameOfStringEncoding_ = objc.registerName( - "localizedNameOfStringEncoding:", -); -late final _sel_localizedRecoveryOptions = objc.registerName( - "localizedRecoveryOptions", -); -late final _sel_localizedRecoverySuggestion = objc.registerName( - "localizedRecoverySuggestion", -); -late final _sel_localizedStandardCompare_ = objc.registerName( - "localizedStandardCompare:", -); -late final _sel_localizedStandardContainsString_ = objc.registerName( - "localizedStandardContainsString:", -); -late final _sel_localizedStandardRangeOfString_ = objc.registerName( - "localizedStandardRangeOfString:", -); -late final _sel_localizedStringWithFormat_ = objc.registerName( - "localizedStringWithFormat:", -); -late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_ = - objc.registerName( - "localizedStringWithValidatedFormat:validFormatSpecifiers:error:", - ); -late final _sel_localizedUppercaseString = objc.registerName( - "localizedUppercaseString", -); -late final _sel_longCharacterIsMember_ = objc.registerName( - "longCharacterIsMember:", -); -late final _sel_longLongValue = objc.registerName("longLongValue"); -late final _sel_longValue = objc.registerName("longValue"); -late final _sel_lowercaseLetterCharacterSet = objc.registerName( - "lowercaseLetterCharacterSet", -); -late final _sel_lowercaseString = objc.registerName("lowercaseString"); -late final _sel_lowercaseStringWithLocale_ = objc.registerName( - "lowercaseStringWithLocale:", -); -late final _sel_makeObjectsPerformSelector_ = objc.registerName( - "makeObjectsPerformSelector:", -); -late final _sel_makeObjectsPerformSelector_withObject_ = objc.registerName( - "makeObjectsPerformSelector:withObject:", -); -late final _sel_maximumLengthOfBytesUsingEncoding_ = objc.registerName( - "maximumLengthOfBytesUsingEncoding:", -); -late final _sel_member_ = objc.registerName("member:"); -late final _sel_methodForSelector_ = objc.registerName("methodForSelector:"); -late final _sel_methodReturnLength = objc.registerName("methodReturnLength"); -late final _sel_methodReturnType = objc.registerName("methodReturnType"); -late final _sel_methodSignatureForSelector_ = objc.registerName( - "methodSignatureForSelector:", -); -late final _sel_minusOrderedSet_ = objc.registerName("minusOrderedSet:"); -late final _sel_minusSet_ = objc.registerName("minusSet:"); -late final _sel_moveObjectsAtIndexes_toIndex_ = objc.registerName( - "moveObjectsAtIndexes:toIndex:", -); -late final _sel_mutableBytes = objc.registerName("mutableBytes"); -late final _sel_mutableCopy = objc.registerName("mutableCopy"); -late final _sel_mutableCopyWithZone_ = objc.registerName( - "mutableCopyWithZone:", -); -late final _sel_name = objc.registerName("name"); -late final _sel_new = objc.registerName("new"); -late final _sel_newlineCharacterSet = objc.registerName("newlineCharacterSet"); -late final _sel_nextObject = objc.registerName("nextObject"); -late final _sel_nonBaseCharacterSet = objc.registerName("nonBaseCharacterSet"); -late final _sel_notificationWithName_object_ = objc.registerName( - "notificationWithName:object:", -); -late final _sel_notificationWithName_object_userInfo_ = objc.registerName( - "notificationWithName:object:userInfo:", -); -late final _sel_numberOfArguments = objc.registerName("numberOfArguments"); -late final _sel_numberWithBool_ = objc.registerName("numberWithBool:"); -late final _sel_numberWithChar_ = objc.registerName("numberWithChar:"); -late final _sel_numberWithDouble_ = objc.registerName("numberWithDouble:"); -late final _sel_numberWithFloat_ = objc.registerName("numberWithFloat:"); -late final _sel_numberWithInt_ = objc.registerName("numberWithInt:"); -late final _sel_numberWithInteger_ = objc.registerName("numberWithInteger:"); -late final _sel_numberWithLongLong_ = objc.registerName("numberWithLongLong:"); -late final _sel_numberWithLong_ = objc.registerName("numberWithLong:"); -late final _sel_numberWithShort_ = objc.registerName("numberWithShort:"); -late final _sel_numberWithUnsignedChar_ = objc.registerName( - "numberWithUnsignedChar:", -); -late final _sel_numberWithUnsignedInt_ = objc.registerName( - "numberWithUnsignedInt:", -); -late final _sel_numberWithUnsignedInteger_ = objc.registerName( - "numberWithUnsignedInteger:", -); -late final _sel_numberWithUnsignedLongLong_ = objc.registerName( - "numberWithUnsignedLongLong:", -); -late final _sel_numberWithUnsignedLong_ = objc.registerName( - "numberWithUnsignedLong:", -); -late final _sel_numberWithUnsignedShort_ = objc.registerName( - "numberWithUnsignedShort:", -); -late final _sel_objCType = objc.registerName("objCType"); -late final _sel_object = objc.registerName("object"); -late final _sel_objectAtIndex_ = objc.registerName("objectAtIndex:"); -late final _sel_objectAtIndexedSubscript_ = objc.registerName( - "objectAtIndexedSubscript:", -); -late final _sel_objectEnumerator = objc.registerName("objectEnumerator"); -late final _sel_objectForKey_ = objc.registerName("objectForKey:"); -late final _sel_objectForKeyedSubscript_ = objc.registerName( - "objectForKeyedSubscript:", -); -late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc - .registerName("objectWithItemProviderData:typeIdentifier:error:"); -late final _sel_objectsAtIndexes_ = objc.registerName("objectsAtIndexes:"); -late final _sel_objectsForKeys_notFoundMarker_ = objc.registerName( - "objectsForKeys:notFoundMarker:", -); -late final _sel_objectsPassingTest_ = objc.registerName("objectsPassingTest:"); -late final _sel_objectsWithOptions_passingTest_ = objc.registerName( - "objectsWithOptions:passingTest:", -); -late final _sel_open = objc.registerName("open"); -late final _sel_orderedSet = objc.registerName("orderedSet"); -late final _sel_orderedSetWithArray_ = objc.registerName( - "orderedSetWithArray:", -); -late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( - "orderedSetWithArray:range:copyItems:", -); -late final _sel_orderedSetWithCapacity_ = objc.registerName( - "orderedSetWithCapacity:", -); -late final _sel_orderedSetWithObject_ = objc.registerName( - "orderedSetWithObject:", -); -late final _sel_orderedSetWithObjects_ = objc.registerName( - "orderedSetWithObjects:", -); -late final _sel_orderedSetWithObjects_count_ = objc.registerName( - "orderedSetWithObjects:count:", -); -late final _sel_orderedSetWithOrderedSet_ = objc.registerName( - "orderedSetWithOrderedSet:", -); -late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( - "orderedSetWithOrderedSet:range:copyItems:", -); -late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); -late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( - "orderedSetWithSet:copyItems:", -); -late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( - "outputStreamToBuffer:capacity:", -); -late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( - "outputStreamToFileAtPath:append:", -); -late final _sel_outputStreamToMemory = objc.registerName( - "outputStreamToMemory", -); -late final _sel_outputStreamWithURL_append_ = objc.registerName( - "outputStreamWithURL:append:", -); -late final _sel_paragraphRangeForRange_ = objc.registerName( - "paragraphRangeForRange:", -); -late final _sel_parameterString = objc.registerName("parameterString"); -late final _sel_password = objc.registerName("password"); -late final _sel_path = objc.registerName("path"); -late final _sel_performSelector_ = objc.registerName("performSelector:"); -late final _sel_performSelector_withObject_ = objc.registerName( - "performSelector:withObject:", -); -late final _sel_performSelector_withObject_withObject_ = objc.registerName( - "performSelector:withObject:withObject:", -); -late final _sel_port = objc.registerName("port"); -late final _sel_precomposedStringWithCanonicalMapping = objc.registerName( - "precomposedStringWithCanonicalMapping", -); -late final _sel_precomposedStringWithCompatibilityMapping = objc.registerName( - "precomposedStringWithCompatibilityMapping", -); -late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); -late final _sel_punctuationCharacterSet = objc.registerName( - "punctuationCharacterSet", -); -late final _sel_query = objc.registerName("query"); -late final _sel_rangeOfCharacterFromSet_ = objc.registerName( - "rangeOfCharacterFromSet:", -); -late final _sel_rangeOfCharacterFromSet_options_ = objc.registerName( - "rangeOfCharacterFromSet:options:", -); -late final _sel_rangeOfCharacterFromSet_options_range_ = objc.registerName( - "rangeOfCharacterFromSet:options:range:", -); -late final _sel_rangeOfComposedCharacterSequenceAtIndex_ = objc.registerName( - "rangeOfComposedCharacterSequenceAtIndex:", -); -late final _sel_rangeOfComposedCharacterSequencesForRange_ = objc.registerName( - "rangeOfComposedCharacterSequencesForRange:", -); -late final _sel_rangeOfData_options_range_ = objc.registerName( - "rangeOfData:options:range:", -); -late final _sel_rangeOfString_ = objc.registerName("rangeOfString:"); -late final _sel_rangeOfString_options_ = objc.registerName( - "rangeOfString:options:", -); -late final _sel_rangeOfString_options_range_ = objc.registerName( - "rangeOfString:options:range:", -); -late final _sel_rangeOfString_options_range_locale_ = objc.registerName( - "rangeOfString:options:range:locale:", -); -late final _sel_read_maxLength_ = objc.registerName("read:maxLength:"); -late final _sel_recoveryAttempter = objc.registerName("recoveryAttempter"); -late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_ = - objc.registerName( - "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:", - ); -late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_ = - objc.registerName( - "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:", - ); -late final _sel_registerItemForTypeIdentifier_loadHandler_ = objc.registerName( - "registerItemForTypeIdentifier:loadHandler:", -); -late final _sel_registerObjectOfClass_visibility_loadHandler_ = objc - .registerName("registerObjectOfClass:visibility:loadHandler:"); -late final _sel_registerObject_visibility_ = objc.registerName( - "registerObject:visibility:", -); -late final _sel_registeredTypeIdentifiers = objc.registerName( - "registeredTypeIdentifiers", -); -late final _sel_registeredTypeIdentifiersWithFileOptions_ = objc.registerName( - "registeredTypeIdentifiersWithFileOptions:", -); -late final _sel_relativePath = objc.registerName("relativePath"); -late final _sel_relativeString = objc.registerName("relativeString"); -late final _sel_release = objc.registerName("release"); -late final _sel_removals = objc.registerName("removals"); -late final _sel_removeAllCachedResourceValues = objc.registerName( - "removeAllCachedResourceValues", -); -late final _sel_removeAllIndexes = objc.registerName("removeAllIndexes"); -late final _sel_removeAllObjects = objc.registerName("removeAllObjects"); -late final _sel_removeCachedResourceValueForKey_ = objc.registerName( - "removeCachedResourceValueForKey:", -); -late final _sel_removeFromRunLoop_forMode_ = objc.registerName( - "removeFromRunLoop:forMode:", -); -late final _sel_removeIndex_ = objc.registerName("removeIndex:"); -late final _sel_removeIndexesInRange_ = objc.registerName( - "removeIndexesInRange:", -); -late final _sel_removeIndexes_ = objc.registerName("removeIndexes:"); -late final _sel_removeLastObject = objc.registerName("removeLastObject"); -late final _sel_removeObjectAtIndex_ = objc.registerName( - "removeObjectAtIndex:", -); -late final _sel_removeObjectForKey_ = objc.registerName("removeObjectForKey:"); -late final _sel_removeObjectIdenticalTo_ = objc.registerName( - "removeObjectIdenticalTo:", -); -late final _sel_removeObjectIdenticalTo_inRange_ = objc.registerName( - "removeObjectIdenticalTo:inRange:", -); -late final _sel_removeObject_ = objc.registerName("removeObject:"); -late final _sel_removeObject_inRange_ = objc.registerName( - "removeObject:inRange:", -); -late final _sel_removeObjectsAtIndexes_ = objc.registerName( - "removeObjectsAtIndexes:", -); -late final _sel_removeObjectsForKeys_ = objc.registerName( - "removeObjectsForKeys:", -); -late final _sel_removeObjectsInArray_ = objc.registerName( - "removeObjectsInArray:", -); -late final _sel_removeObjectsInRange_ = objc.registerName( - "removeObjectsInRange:", -); -late final _sel_replaceBytesInRange_withBytes_ = objc.registerName( - "replaceBytesInRange:withBytes:", -); -late final _sel_replaceBytesInRange_withBytes_length_ = objc.registerName( - "replaceBytesInRange:withBytes:length:", -); -late final _sel_replaceCharactersInRange_withString_ = objc.registerName( - "replaceCharactersInRange:withString:", -); -late final _sel_replaceObjectAtIndex_withObject_ = objc.registerName( - "replaceObjectAtIndex:withObject:", -); -late final _sel_replaceObjectsAtIndexes_withObjects_ = objc.registerName( - "replaceObjectsAtIndexes:withObjects:", -); -late final _sel_replaceObjectsInRange_withObjectsFromArray_ = objc.registerName( - "replaceObjectsInRange:withObjectsFromArray:", -); -late final _sel_replaceObjectsInRange_withObjectsFromArray_range_ = objc - .registerName("replaceObjectsInRange:withObjectsFromArray:range:"); -late final _sel_replaceObjectsInRange_withObjects_count_ = objc.registerName( - "replaceObjectsInRange:withObjects:count:", -); -late final _sel_resetBytesInRange_ = objc.registerName("resetBytesInRange:"); -late final _sel_resolveClassMethod_ = objc.registerName("resolveClassMethod:"); -late final _sel_resolveInstanceMethod_ = objc.registerName( - "resolveInstanceMethod:", -); -late final _sel_resourceSpecifier = objc.registerName("resourceSpecifier"); -late final _sel_resourceValuesForKeys_error_ = objc.registerName( - "resourceValuesForKeys:error:", -); -late final _sel_resourceValuesForKeys_fromBookmarkData_ = objc.registerName( - "resourceValuesForKeys:fromBookmarkData:", -); -late final _sel_respondsToSelector_ = objc.registerName("respondsToSelector:"); -late final _sel_retain = objc.registerName("retain"); -late final _sel_retainCount = objc.registerName("retainCount"); -late final _sel_reverseObjectEnumerator = objc.registerName( - "reverseObjectEnumerator", -); -late final _sel_reversedOrderedSet = objc.registerName("reversedOrderedSet"); -late final _sel_scheduleInRunLoop_forMode_ = objc.registerName( - "scheduleInRunLoop:forMode:", -); -late final _sel_scheme = objc.registerName("scheme"); -late final _sel_self = objc.registerName("self"); -late final _sel_set = objc.registerName("set"); -late final _sel_setArray_ = objc.registerName("setArray:"); -late final _sel_setByAddingObject_ = objc.registerName("setByAddingObject:"); -late final _sel_setByAddingObjectsFromArray_ = objc.registerName( - "setByAddingObjectsFromArray:", -); -late final _sel_setByAddingObjectsFromSet_ = objc.registerName( - "setByAddingObjectsFromSet:", -); -late final _sel_setData_ = objc.registerName("setData:"); -late final _sel_setDelegate_ = objc.registerName("setDelegate:"); -late final _sel_setDictionary_ = objc.registerName("setDictionary:"); -late final _sel_setLength_ = objc.registerName("setLength:"); -late final _sel_setObject_atIndex_ = objc.registerName("setObject:atIndex:"); -late final _sel_setObject_atIndexedSubscript_ = objc.registerName( - "setObject:atIndexedSubscript:", -); -late final _sel_setObject_forKey_ = objc.registerName("setObject:forKey:"); -late final _sel_setObject_forKeyedSubscript_ = objc.registerName( - "setObject:forKeyedSubscript:", -); -late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); -late final _sel_setResourceValue_forKey_error_ = objc.registerName( - "setResourceValue:forKey:error:", -); -late final _sel_setResourceValues_error_ = objc.registerName( - "setResourceValues:error:", -); -late final _sel_setSet_ = objc.registerName("setSet:"); -late final _sel_setSuggestedName_ = objc.registerName("setSuggestedName:"); -late final _sel_setTemporaryResourceValue_forKey_ = objc.registerName( - "setTemporaryResourceValue:forKey:", -); -late final _sel_setUserInfoValueProviderForDomain_provider_ = objc.registerName( - "setUserInfoValueProviderForDomain:provider:", -); -late final _sel_setWithArray_ = objc.registerName("setWithArray:"); -late final _sel_setWithCapacity_ = objc.registerName("setWithCapacity:"); -late final _sel_setWithObject_ = objc.registerName("setWithObject:"); -late final _sel_setWithObjects_ = objc.registerName("setWithObjects:"); -late final _sel_setWithObjects_count_ = objc.registerName( - "setWithObjects:count:", -); -late final _sel_setWithSet_ = objc.registerName("setWithSet:"); -late final _sel_shiftIndexesStartingAtIndex_by_ = objc.registerName( - "shiftIndexesStartingAtIndex:by:", -); -late final _sel_shortValue = objc.registerName("shortValue"); -late final _sel_signatureWithObjCTypes_ = objc.registerName( - "signatureWithObjCTypes:", -); -late final _sel_smallestEncoding = objc.registerName("smallestEncoding"); -late final _sel_sortRange_options_usingComparator_ = objc.registerName( - "sortRange:options:usingComparator:", -); -late final _sel_sortUsingComparator_ = objc.registerName( - "sortUsingComparator:", -); -late final _sel_sortUsingFunction_context_ = objc.registerName( - "sortUsingFunction:context:", -); -late final _sel_sortUsingSelector_ = objc.registerName("sortUsingSelector:"); -late final _sel_sortWithOptions_usingComparator_ = objc.registerName( - "sortWithOptions:usingComparator:", -); -late final _sel_sortedArrayHint = objc.registerName("sortedArrayHint"); -late final _sel_sortedArrayUsingComparator_ = objc.registerName( - "sortedArrayUsingComparator:", -); -late final _sel_sortedArrayUsingFunction_context_ = objc.registerName( - "sortedArrayUsingFunction:context:", -); -late final _sel_sortedArrayUsingFunction_context_hint_ = objc.registerName( - "sortedArrayUsingFunction:context:hint:", -); -late final _sel_sortedArrayUsingSelector_ = objc.registerName( - "sortedArrayUsingSelector:", -); -late final _sel_sortedArrayWithOptions_usingComparator_ = objc.registerName( - "sortedArrayWithOptions:usingComparator:", -); -late final _sel_standardizedURL = objc.registerName("standardizedURL"); -late final _sel_startAccessingSecurityScopedResource = objc.registerName( - "startAccessingSecurityScopedResource", -); -late final _sel_stopAccessingSecurityScopedResource = objc.registerName( - "stopAccessingSecurityScopedResource", -); -late final _sel_streamError = objc.registerName("streamError"); -late final _sel_streamStatus = objc.registerName("streamStatus"); -late final _sel_stream_handleEvent_ = objc.registerName("stream:handleEvent:"); -late final _sel_string = objc.registerName("string"); -late final _sel_stringByAppendingFormat_ = objc.registerName( - "stringByAppendingFormat:", -); -late final _sel_stringByAppendingString_ = objc.registerName( - "stringByAppendingString:", -); -late final _sel_stringByApplyingTransform_reverse_ = objc.registerName( - "stringByApplyingTransform:reverse:", -); -late final _sel_stringByFoldingWithOptions_locale_ = objc.registerName( - "stringByFoldingWithOptions:locale:", -); -late final _sel_stringByPaddingToLength_withString_startingAtIndex_ = objc - .registerName("stringByPaddingToLength:withString:startingAtIndex:"); -late final _sel_stringByReplacingCharactersInRange_withString_ = objc - .registerName("stringByReplacingCharactersInRange:withString:"); -late final _sel_stringByReplacingOccurrencesOfString_withString_ = objc - .registerName("stringByReplacingOccurrencesOfString:withString:"); -late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_ = - objc.registerName( - "stringByReplacingOccurrencesOfString:withString:options:range:", - ); -late final _sel_stringByTrimmingCharactersInSet_ = objc.registerName( - "stringByTrimmingCharactersInSet:", -); -late final _sel_stringValue = objc.registerName("stringValue"); -late final _sel_stringWithCString_encoding_ = objc.registerName( - "stringWithCString:encoding:", -); -late final _sel_stringWithCharacters_length_ = objc.registerName( - "stringWithCharacters:length:", -); -late final _sel_stringWithContentsOfFile_encoding_error_ = objc.registerName( - "stringWithContentsOfFile:encoding:error:", -); -late final _sel_stringWithContentsOfFile_usedEncoding_error_ = objc - .registerName("stringWithContentsOfFile:usedEncoding:error:"); -late final _sel_stringWithContentsOfURL_encoding_error_ = objc.registerName( - "stringWithContentsOfURL:encoding:error:", -); -late final _sel_stringWithContentsOfURL_usedEncoding_error_ = objc.registerName( - "stringWithContentsOfURL:usedEncoding:error:", -); -late final _sel_stringWithFormat_ = objc.registerName("stringWithFormat:"); -late final _sel_stringWithString_ = objc.registerName("stringWithString:"); -late final _sel_stringWithUTF8String_ = objc.registerName( - "stringWithUTF8String:", -); -late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_ = objc - .registerName("stringWithValidatedFormat:validFormatSpecifiers:error:"); -late final _sel_subarrayWithRange_ = objc.registerName("subarrayWithRange:"); -late final _sel_subdataWithRange_ = objc.registerName("subdataWithRange:"); -late final _sel_substringFromIndex_ = objc.registerName("substringFromIndex:"); -late final _sel_substringToIndex_ = objc.registerName("substringToIndex:"); -late final _sel_substringWithRange_ = objc.registerName("substringWithRange:"); -late final _sel_suggestedName = objc.registerName("suggestedName"); -late final _sel_superclass = objc.registerName("superclass"); -late final _sel_supportsSecureCoding = objc.registerName( - "supportsSecureCoding", -); -late final _sel_symbolCharacterSet = objc.registerName("symbolCharacterSet"); -late final _sel_timeIntervalSince1970 = objc.registerName( - "timeIntervalSince1970", -); -late final _sel_timeIntervalSinceDate_ = objc.registerName( - "timeIntervalSinceDate:", -); -late final _sel_timeIntervalSinceNow = objc.registerName( - "timeIntervalSinceNow", -); -late final _sel_timeIntervalSinceReferenceDate = objc.registerName( - "timeIntervalSinceReferenceDate", -); -late final _sel_underlyingErrors = objc.registerName("underlyingErrors"); -late final _sel_unionOrderedSet_ = objc.registerName("unionOrderedSet:"); -late final _sel_unionSet_ = objc.registerName("unionSet:"); -late final _sel_unsignedCharValue = objc.registerName("unsignedCharValue"); -late final _sel_unsignedIntValue = objc.registerName("unsignedIntValue"); -late final _sel_unsignedIntegerValue = objc.registerName( - "unsignedIntegerValue", -); -late final _sel_unsignedLongLongValue = objc.registerName( - "unsignedLongLongValue", -); -late final _sel_unsignedLongValue = objc.registerName("unsignedLongValue"); -late final _sel_unsignedShortValue = objc.registerName("unsignedShortValue"); -late final _sel_uppercaseLetterCharacterSet = objc.registerName( - "uppercaseLetterCharacterSet", -); -late final _sel_uppercaseString = objc.registerName("uppercaseString"); -late final _sel_uppercaseStringWithLocale_ = objc.registerName( - "uppercaseStringWithLocale:", -); -late final _sel_user = objc.registerName("user"); -late final _sel_userInfo = objc.registerName("userInfo"); -late final _sel_userInfoValueProviderForDomain_ = objc.registerName( - "userInfoValueProviderForDomain:", -); -late final _sel_whitespaceAndNewlineCharacterSet = objc.registerName( - "whitespaceAndNewlineCharacterSet", -); -late final _sel_whitespaceCharacterSet = objc.registerName( - "whitespaceCharacterSet", -); -late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( - "writableTypeIdentifiersForItemProvider", -); -late final _sel_writeBookmarkData_toURL_options_error_ = objc.registerName( - "writeBookmarkData:toURL:options:error:", -); -late final _sel_writeToFile_atomically_ = objc.registerName( - "writeToFile:atomically:", -); -late final _sel_writeToFile_atomically_encoding_error_ = objc.registerName( - "writeToFile:atomically:encoding:error:", -); -late final _sel_writeToFile_options_error_ = objc.registerName( - "writeToFile:options:error:", -); -late final _sel_writeToURL_atomically_ = objc.registerName( - "writeToURL:atomically:", -); -late final _sel_writeToURL_atomically_encoding_error_ = objc.registerName( - "writeToURL:atomically:encoding:error:", -); -late final _sel_writeToURL_error_ = objc.registerName("writeToURL:error:"); -late final _sel_writeToURL_options_error_ = objc.registerName( - "writeToURL:options:error:", -); -late final _sel_write_maxLength_ = objc.registerName("write:maxLength:"); -late final _sel_zone = objc.registerName("zone"); -typedef instancetype = ffi.Pointer; -typedef Dartinstancetype = objc.ObjCObjectBase; - -class _NSArrayIterator implements Iterator { - final Iterable _iterable; - final int _length; - int _index; - objc.ObjCObjectBase? _current; - - _NSArrayIterator(Iterable iterable) - : _iterable = iterable, - _length = iterable.length, - _index = 0; - - @override - objc.ObjCObjectBase get current => _current!; - - @override - @pragma('vm:prefer-inline') - bool moveNext() { - final length = _iterable.length; - if (_length != length) { - throw ConcurrentModificationError(_iterable); - } - if (_index >= length) { - _current = null; - return false; - } - _current = _iterable.elementAt(_index); - _index++; - return true; - } -} - -class _NSDictionaryKeyIterable with Iterable { - NSDictionary _dictionary; - - _NSDictionaryKeyIterable(this._dictionary); - - @override - int get length => _dictionary.length; - - @override - Iterator get iterator => - _NSDictionaryKeyIterator(_dictionary.keyEnumerator()); - - @override - bool contains(Object? key) => _dictionary.containsKey(key); -} - -class _NSDictionaryValueIterable with Iterable { - NSDictionary _dictionary; - - _NSDictionaryValueIterable(this._dictionary); - - @override - int get length => _dictionary.length; - - @override - Iterator get iterator => _dictionary.objectEnumerator(); -} - -class _NSDictionaryKeyIterator implements Iterator { - final Iterator _iterator; - _NSDictionaryKeyIterator(this._iterator); - - @override - NSCopying get current => NSCopying.castFrom(_iterator.current); - - @override - @pragma('vm:prefer-inline') - bool moveNext() => _iterator.moveNext(); -} diff --git a/pkgs/objective_c/lib/src/ns_data.dart b/pkgs/objective_c/lib/src/ns_data.dart index 2fb9430a6..0a0e690f9 100644 --- a/pkgs/objective_c/lib/src/ns_data.dart +++ b/pkgs/objective_c/lib/src/ns_data.dart @@ -7,7 +7,6 @@ import 'dart:typed_data'; import 'package:ffi/ffi.dart'; -import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension NSDataExtensions on NSData { diff --git a/pkgs/objective_c/lib/src/ns_date.dart b/pkgs/objective_c/lib/src/ns_date.dart index e123a7964..4c12ca3d5 100644 --- a/pkgs/objective_c/lib/src/ns_date.dart +++ b/pkgs/objective_c/lib/src/ns_date.dart @@ -2,7 +2,6 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension DateTimeToNSDate on DateTime { diff --git a/pkgs/objective_c/lib/src/ns_input_stream.dart b/pkgs/objective_c/lib/src/ns_input_stream.dart index 572c4a6e5..8fd8ec742 100644 --- a/pkgs/objective_c/lib/src/ns_input_stream.dart +++ b/pkgs/objective_c/lib/src/ns_input_stream.dart @@ -4,7 +4,6 @@ import 'dart:isolate'; import 'ns_data.dart'; import 'ns_string.dart'; -import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension NSInputStreamStreamExtension on Stream> { diff --git a/pkgs/objective_c/lib/src/ns_mutable_data.dart b/pkgs/objective_c/lib/src/ns_mutable_data.dart index 943afed9e..9873410ed 100644 --- a/pkgs/objective_c/lib/src/ns_mutable_data.dart +++ b/pkgs/objective_c/lib/src/ns_mutable_data.dart @@ -6,7 +6,6 @@ import 'dart:ffi'; import 'package:ffi/ffi.dart'; -import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension NSMutableDataExtensions on NSMutableData { diff --git a/pkgs/objective_c/lib/src/ns_number.dart b/pkgs/objective_c/lib/src/ns_number.dart index cc1452dc1..4e8583d0d 100644 --- a/pkgs/objective_c/lib/src/ns_number.dart +++ b/pkgs/objective_c/lib/src/ns_number.dart @@ -2,7 +2,6 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension IntToNSNumber on int { diff --git a/pkgs/objective_c/lib/src/ns_string.dart b/pkgs/objective_c/lib/src/ns_string.dart index 9efd8bc09..ca25a11a7 100644 --- a/pkgs/objective_c/lib/src/ns_string.dart +++ b/pkgs/objective_c/lib/src/ns_string.dart @@ -4,7 +4,6 @@ import 'package:ffi/ffi.dart'; -import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension StringToNSString on String { diff --git a/pkgs/objective_c/lib/src/foundation_bindings_exported.dart b/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart similarity index 94% rename from pkgs/objective_c/lib/src/foundation_bindings_exported.dart rename to pkgs/objective_c/lib/src/objective_c_bindings_exported.dart index 1a7cac916..14b335fd5 100644 --- a/pkgs/objective_c/lib/src/foundation_bindings_exported.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart @@ -4,7 +4,7 @@ // Generated by package:objective_c's tool/generate_code.dart. -export 'foundation_bindings_generated.dart' +export 'objective_c_bindings_generated.dart' show AEDesc, CFRunLoop, @@ -12,6 +12,10 @@ export 'foundation_bindings_generated.dart' CGPoint, CGRect, CGSize, + DOBJCObservation, + DartInputStreamAdapter, + DartProtocol, + DartProtocolBuilder, NSAppleEventSendOptions, NSArray, NSBinarySearchingOptions, @@ -82,6 +86,7 @@ export 'foundation_bindings_generated.dart' NSNotification, NSNumber, NSNumberCreation, + NSNumberIsFloat, NSObject, NSObjectProtocol, NSOrderedCollectionChange, @@ -117,5 +122,6 @@ export 'foundation_bindings_generated.dart' NSURLHandleStatus, NSValue, NSZone, + Observer, OpaqueAEDataStorageType, Protocol; diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart index 966acc5ef..15eb90d5d 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -// Bindings for package:objective_c's custom ObjC interfaces. +// Bindings for package:objective_c's ObjC code and the Foundation framework. // Regenerate bindings with `dart run tool/generate_code.dart`. // ignore_for_file: always_specify_types @@ -17,8 +17,216 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint +@ffi.DefaultAsset('package:objective_c/objective_c.dylib') +library; + +import 'dart:collection' as collection; import 'dart:ffi' as ffi; -import 'package:objective_c/objective_c.dart' as objc; +import '../objective_c.dart' as objc; +import 'package:ffi/ffi.dart' as pkg_ffi; + +@ffi.Native>(symbol: 'NSKeyValueChangeIndexesKey') +external ffi.Pointer _NSKeyValueChangeIndexesKey; + +NSString get NSKeyValueChangeIndexesKey => NSString.castFromPointer( + _NSKeyValueChangeIndexesKey, + retain: true, + release: true, +); + +set NSKeyValueChangeIndexesKey(NSString value) { + NSString.castFromPointer( + _NSKeyValueChangeIndexesKey, + retain: false, + release: true, + ).ref.release(); + _NSKeyValueChangeIndexesKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSKeyValueChangeKindKey') +external ffi.Pointer _NSKeyValueChangeKindKey; + +NSString get NSKeyValueChangeKindKey => NSString.castFromPointer( + _NSKeyValueChangeKindKey, + retain: true, + release: true, +); + +set NSKeyValueChangeKindKey(NSString value) { + NSString.castFromPointer( + _NSKeyValueChangeKindKey, + retain: false, + release: true, + ).ref.release(); + _NSKeyValueChangeKindKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSKeyValueChangeNewKey') +external ffi.Pointer _NSKeyValueChangeNewKey; + +NSString get NSKeyValueChangeNewKey => NSString.castFromPointer( + _NSKeyValueChangeNewKey, + retain: true, + release: true, +); + +set NSKeyValueChangeNewKey(NSString value) { + NSString.castFromPointer( + _NSKeyValueChangeNewKey, + retain: false, + release: true, + ).ref.release(); + _NSKeyValueChangeNewKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native>( + symbol: 'NSKeyValueChangeNotificationIsPriorKey', +) +external ffi.Pointer _NSKeyValueChangeNotificationIsPriorKey; + +NSString get NSKeyValueChangeNotificationIsPriorKey => NSString.castFromPointer( + _NSKeyValueChangeNotificationIsPriorKey, + retain: true, + release: true, +); + +set NSKeyValueChangeNotificationIsPriorKey(NSString value) { + NSString.castFromPointer( + _NSKeyValueChangeNotificationIsPriorKey, + retain: false, + release: true, + ).ref.release(); + _NSKeyValueChangeNotificationIsPriorKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSKeyValueChangeOldKey') +external ffi.Pointer _NSKeyValueChangeOldKey; + +NSString get NSKeyValueChangeOldKey => NSString.castFromPointer( + _NSKeyValueChangeOldKey, + retain: true, + release: true, +); + +set NSKeyValueChangeOldKey(NSString value) { + NSString.castFromPointer( + _NSKeyValueChangeOldKey, + retain: false, + release: true, + ).ref.release(); + _NSKeyValueChangeOldKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native>(symbol: 'NSLocalizedDescriptionKey') +external ffi.Pointer _NSLocalizedDescriptionKey; + +NSString get NSLocalizedDescriptionKey => NSString.castFromPointer( + _NSLocalizedDescriptionKey, + retain: true, + release: true, +); + +set NSLocalizedDescriptionKey(NSString value) { + NSString.castFromPointer( + _NSLocalizedDescriptionKey, + retain: false, + release: true, + ).ref.release(); + _NSLocalizedDescriptionKey = value.ref.retainAndReturnPointer(); +} + +@ffi.Native< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) +>() +external instancetype _ObjectiveCBindings_protocolTrampoline_10z9f5k( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +); + +@ffi.Native< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) +>() +external int _ObjectiveCBindings_protocolTrampoline_17ap02x( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_18nsem0( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external void _ObjectiveCBindings_protocolTrampoline_18v1jvf( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer _ObjectiveCBindings_protocolTrampoline_1a8cl66( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) +>() +external int _ObjectiveCBindings_protocolTrampoline_1ckyi24( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external int _ObjectiveCBindings_protocolTrampoline_1ldqghh( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); @ffi.Native< ffi.Pointer Function( @@ -32,6 +240,38 @@ _ObjectiveCBindings_protocolTrampoline_1mbt9g9( ffi.Pointer arg0, ); +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_1mllhpc( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_1q0i84( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +); + @ffi.Native< ffi.Void Function( ffi.Pointer, @@ -51,6 +291,59 @@ external void _ObjectiveCBindings_protocolTrampoline_1sr3ozv( ffi.Pointer arg4, ); +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _ObjectiveCBindings_protocolTrampoline_3su7tt( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_50as9u( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external ffi.Pointer +_ObjectiveCBindings_protocolTrampoline_c7gk2u( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +); + +@ffi.Native< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) +>() +external bool _ObjectiveCBindings_protocolTrampoline_e3qsqz( + ffi.Pointer target, + ffi.Pointer arg0, +); + @ffi.Native< ffi.Void Function( ffi.Pointer, @@ -66,6 +359,40 @@ external void _ObjectiveCBindings_protocolTrampoline_hoampi( int arg2, ); +@ffi.Native< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +>() +external void _ObjectiveCBindings_protocolTrampoline_ovsamd( + ffi.Pointer target, + ffi.Pointer arg0, +); + +@ffi.Native< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external bool _ObjectiveCBindings_protocolTrampoline_w1e3k0( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + +@ffi.Native< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>() +external instancetype _ObjectiveCBindings_protocolTrampoline_xr62hr( + ffi.Pointer target, + ffi.Pointer arg0, + ffi.Pointer arg1, +); + @ffi.Native< ffi.Pointer Function( ffi.Pointer, @@ -74,7 +401,7 @@ external void _ObjectiveCBindings_protocolTrampoline_hoampi( ) >(isLeaf: true) external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( +_ObjectiveCBindings_wrapBlockingBlock_18v1jvf( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, @@ -88,326 +415,471 @@ _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( ) >(isLeaf: true) external ffi.Pointer -_ObjectiveCBindings_wrapBlockingBlock_hoampi( +_ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) >(isLeaf: true) external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_1sr3ozv( +_ObjectiveCBindings_wrapBlockingBlock_1o83rbn( ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) >(isLeaf: true) external ffi.Pointer -_ObjectiveCBindings_wrapListenerBlock_hoampi( +_ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, ); -typedef CFStringRef = ffi.Pointer; +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_1pl9qdv( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); -/// Represents a single KVO observation. Each observation creates a new -/// DOBJCObservation, even for the same observer, observed object, and keyPath. -class DOBJCObservation extends objc.NSObject { - DOBJCObservation._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// Constructs a [DOBJCObservation] that points to the same underlying object as [other]. - DOBJCObservation.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); - - /// Constructs a [DOBJCObservation] that wraps the given raw object pointer. - DOBJCObservation.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// Returns whether [obj] is an instance of [DOBJCObservation]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_DOBJCObservation, - ); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_hoampi( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// alloc - static DOBJCObservation alloc() { - final _ret = _objc_msgSend_151sglz(_class_DOBJCObservation, _sel_alloc); - return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_lmc3p5( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// allocWithZone: - static DOBJCObservation allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_DOBJCObservation, - _sel_allocWithZone_, - zone, - ); - return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_ovsamd( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// new - static DOBJCObservation new$() { - final _ret = _objc_msgSend_151sglz(_class_DOBJCObservation, _sel_new); - return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// autorelease - DOBJCObservation autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_q5jeyk( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// dealloc - void dealloc() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_rnu2c5( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// debugObserver - ffi.Pointer debugObserver() { - return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_debugObserver); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_t8l8el( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// init - DOBJCObservation init() { - objc.checkOsVersionInternal( - 'DOBJCObservation.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); - return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_vhbh5h( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// initForKeyPath:ofObject:withObserver:options:context: - DOBJCObservation initForKeyPath( - objc.NSString keyPath, { - required objc.ObjCObjectBase ofObject, - required Observer withObserver, - required objc.NSKeyValueObservingOptions options, - required ffi.Pointer context, - }) { - final _ret = _objc_msgSend_1jiinfj( - this.ref.retainAndReturnPointer(), - _sel_initForKeyPath_ofObject_withObserver_options_context_, - keyPath.ref.pointer, - ofObject.ref.pointer, - withObserver.ref.pointer, - options.value, - context, - ); - return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_xtuoz7( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// remove - void remove() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_remove); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_zkjmn1( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// retain - DOBJCObservation retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); - } +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapBlockingBlock_zuf90e( + ffi.Pointer block, + ffi.Pointer listnerBlock, + ffi.Pointer context, +); - /// self - DOBJCObservation self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); - } +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_18v1jvf( + ffi.Pointer block, +); - /// Returns a new instance of DOBJCObservation constructed with the default `new` method. - factory DOBJCObservation() => new$(); -} +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1b3bb6a( + ffi.Pointer block, +); -/// Helper class to adapt a Dart stream into a `NSInputStream`. -class DartInputStreamAdapter extends objc.NSInputStream - implements objc.NSStreamDelegate { - DartInputStreamAdapter._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1o83rbn( + ffi.Pointer block, +); - /// Constructs a [DartInputStreamAdapter] that points to the same underlying object as [other]. - DartInputStreamAdapter.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1p9ui4q( + ffi.Pointer block, +); - /// Constructs a [DartInputStreamAdapter] that wraps the given raw object pointer. - DartInputStreamAdapter.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1pl9qdv( + ffi.Pointer block, +); - /// Returns whether [obj] is an instance of [DartInputStreamAdapter]. - static bool isInstance(objc.ObjCObjectBase obj) { - return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_DOBJCDartInputStreamAdapter, - ); - } +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1q8ia8l( + ffi.Pointer block, +); - /// Creates the adapter. - /// @param sendPort A port to that is will receive two types of messages: - /// -1 => The `NSInputStream` has been closed and the port can be closed. - /// _ => The number of types being required in a `read:maxLength` call. - static DartInputStreamAdapter inputStreamWithPort(int sendPort) { - final _ret = _objc_msgSend_1ya1kjn( - _class_DOBJCDartInputStreamAdapter, - _sel_inputStreamWithPort_, - sendPort, - ); - return DartInputStreamAdapter.castFromPointer( - _ret, - retain: true, - release: true, - ); - } +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_1sr3ozv( + ffi.Pointer block, +); - /// addData: - int addData(objc.NSData data) { - return _objc_msgSend_1vd1c5m( - this.ref.pointer, - _sel_addData_, - data.ref.pointer, - ); - } +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_hoampi( + ffi.Pointer block, +); - /// initWithData: - DartInputStreamAdapter initWithData(objc.NSData data) { - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithData_, - data.ref.pointer, - ); - return DartInputStreamAdapter.castFromPointer( - _ret, - retain: false, - release: true, - ); - } +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_lmc3p5( + ffi.Pointer block, +); - /// initWithURL: - DartInputStreamAdapter? initWithURL(objc.NSURL url) { - objc.checkOsVersionInternal( - 'DOBJCDartInputStreamAdapter.initWithURL:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); - final _ret = _objc_msgSend_1sotr3r( - this.ref.retainAndReturnPointer(), - _sel_initWithURL_, - url.ref.pointer, - ); - return _ret.address == 0 - ? null - : DartInputStreamAdapter.castFromPointer( - _ret, - retain: false, - release: true, - ); - } +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_ovsamd( + ffi.Pointer block, +); - /// setDone - void setDone() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_setDone); - } +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_pfv6jd( + ffi.Pointer block, +); - /// setError: - void setError(objc.NSError error) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setError_, error.ref.pointer); - } +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_q5jeyk( + ffi.Pointer block, +); - /// stream:handleEvent: - void stream( - objc.NSStream aStream, { - required objc.NSStreamEvent handleEvent, - }) { - if (!objc.respondsToSelector(this.ref.pointer, _sel_stream_handleEvent_)) { - throw objc.UnimplementedOptionalMethodException( - 'DOBJCDartInputStreamAdapter', - 'stream:handleEvent:', - ); - } - _objc_msgSend_3l8zum( - this.ref.pointer, - _sel_stream_handleEvent_, - aStream.ref.pointer, - handleEvent.value, - ); - } +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_rnu2c5( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_t8l8el( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_vhbh5h( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_xtuoz7( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_zkjmn1( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_ObjectiveCBindings_wrapListenerBlock_zuf90e( + ffi.Pointer block, +); + +@ffi.Packed(2) +final class AEDesc extends ffi.Struct { + @ffi.UnsignedInt() + external int descriptorType; + + external ffi.Pointer> dataHandle; } -/// Base class of all classes DOBJCDartProtocolBuilder creates. -class DartProtocol extends objc.NSObject { - DartProtocol._( +final class CFRunLoop extends ffi.Opaque {} + +final class CFString extends ffi.Opaque {} + +typedef CFStringRef = ffi.Pointer; + +final class CGPoint extends ffi.Struct { + @ffi.Double() + external double x; + + @ffi.Double() + external double y; +} + +final class CGRect extends ffi.Struct { + external CGPoint origin; + + external CGSize size; +} + +final class CGSize extends ffi.Struct { + @ffi.Double() + external double width; + + @ffi.Double() + external double height; +} + +/// Represents a single KVO observation. Each observation creates a new +/// DOBJCObservation, even for the same observer, observed object, and keyPath. +class DOBJCObservation extends NSObject { + DOBJCObservation._( ffi.Pointer pointer, { bool retain = false, bool release = false, }) : super.castFromPointer(pointer, retain: retain, release: release); - /// Constructs a [DartProtocol] that points to the same underlying object as [other]. - DartProtocol.castFrom(objc.ObjCObjectBase other) + /// Constructs a [DOBJCObservation] that points to the same underlying object as [other]. + DOBJCObservation.castFrom(objc.ObjCObjectBase other) : this._(other.ref.pointer, retain: true, release: true); - /// Constructs a [DartProtocol] that wraps the given raw object pointer. - DartProtocol.castFromPointer( + /// Constructs a [DOBJCObservation] that wraps the given raw object pointer. + DOBJCObservation.castFromPointer( ffi.Pointer other, { bool retain = false, bool release = false, }) : this._(other, retain: retain, release: release); - /// Returns whether [obj] is an instance of [DartProtocol]. + /// Returns whether [obj] is an instance of [DOBJCObservation]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, - _class_DOBJCDartProtocol, + _class_DOBJCObservation, ); } /// alloc - static DartProtocol alloc() { - final _ret = _objc_msgSend_151sglz(_class_DOBJCDartProtocol, _sel_alloc); - return DartProtocol.castFromPointer(_ret, retain: false, release: true); + static DOBJCObservation alloc() { + final _ret = _objc_msgSend_151sglz(_class_DOBJCObservation, _sel_alloc); + return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); } /// allocWithZone: - static DartProtocol allocWithZone(ffi.Pointer zone) { + static DOBJCObservation allocWithZone(ffi.Pointer zone) { final _ret = _objc_msgSend_1cwp428( - _class_DOBJCDartProtocol, + _class_DOBJCObservation, _sel_allocWithZone_, zone, ); - return DartProtocol.castFromPointer(_ret, retain: false, release: true); + return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); } /// new - static DartProtocol new$() { - final _ret = _objc_msgSend_151sglz(_class_DOBJCDartProtocol, _sel_new); - return DartProtocol.castFromPointer(_ret, retain: false, release: true); + static DOBJCObservation new$() { + final _ret = _objc_msgSend_151sglz(_class_DOBJCObservation, _sel_new); + return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); } /// autorelease - DartProtocol autorelease() { + DOBJCObservation autorelease() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return DartProtocol.castFromPointer(_ret, retain: true, release: true); + return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); } /// dealloc @@ -415,22 +887,15 @@ class DartProtocol extends objc.NSObject { _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); } - /// getDOBJCDartProtocolMethodForSelector: - objc.ObjCObjectBase getDOBJCDartProtocolMethodForSelector( - ffi.Pointer sel, - ) { - final _ret = _objc_msgSend_3ctkt6( - this.ref.pointer, - _sel_getDOBJCDartProtocolMethodForSelector_, - sel, - ); - return objc.ObjCObjectBase(_ret, retain: true, release: true); + /// debugObserver + ffi.Pointer debugObserver() { + return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_debugObserver); } /// init - DartProtocol init() { + DOBJCObservation init() { objc.checkOsVersionInternal( - 'DOBJCDartProtocol.init', + 'DOBJCObservation.init', iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0)), ); @@ -438,1558 +903,37449 @@ class DartProtocol extends objc.NSObject { this.ref.retainAndReturnPointer(), _sel_init, ); - return DartProtocol.castFromPointer(_ret, retain: false, release: true); + return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); } - /// initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort: - DartProtocol initDOBJCDartProtocolFromDartProtocolBuilder( - DartProtocolBuilder builder, { - required int withDisposePort, + /// initForKeyPath:ofObject:withObserver:options:context: + DOBJCObservation initForKeyPath( + NSString keyPath, { + required objc.ObjCObjectBase ofObject, + required Observer withObserver, + required NSKeyValueObservingOptions options, + required ffi.Pointer context, }) { - final _ret = _objc_msgSend_dbvvll( + final _ret = _objc_msgSend_1jiinfj( this.ref.retainAndReturnPointer(), - _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_, - builder.ref.pointer, - withDisposePort, + _sel_initForKeyPath_ofObject_withObserver_options_context_, + keyPath.ref.pointer, + ofObject.ref.pointer, + withObserver.ref.pointer, + options.value, + context, ); - return DartProtocol.castFromPointer(_ret, retain: false, release: true); + return DOBJCObservation.castFromPointer(_ret, retain: false, release: true); + } + + /// remove + void remove() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_remove); } /// retain - DartProtocol retain() { + DOBJCObservation retain() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return DartProtocol.castFromPointer(_ret, retain: true, release: true); + return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); } /// self - DartProtocol self$1() { + DOBJCObservation self$1() { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return DartProtocol.castFromPointer(_ret, retain: true, release: true); + return DOBJCObservation.castFromPointer(_ret, retain: true, release: true); } - /// Returns a new instance of DartProtocol constructed with the default `new` method. - factory DartProtocol() => new$(); + /// Returns a new instance of DOBJCObservation constructed with the default `new` method. + factory DOBJCObservation() => new$(); } -/// Used by the Dart ObjCProtocolBuilder to construct ObjC classes at runtime to -/// implement protocols. -class DartProtocolBuilder extends objc.NSObject { - DartProtocolBuilder._( +/// Helper class to adapt a Dart stream into a `NSInputStream`. +class DartInputStreamAdapter extends NSInputStream implements NSStreamDelegate { + DartInputStreamAdapter._( ffi.Pointer pointer, { bool retain = false, bool release = false, }) : super.castFromPointer(pointer, retain: retain, release: release); - /// Constructs a [DartProtocolBuilder] that points to the same underlying object as [other]. - DartProtocolBuilder.castFrom(objc.ObjCObjectBase other) + /// Constructs a [DartInputStreamAdapter] that points to the same underlying object as [other]. + DartInputStreamAdapter.castFrom(objc.ObjCObjectBase other) : this._(other.ref.pointer, retain: true, release: true); - /// Constructs a [DartProtocolBuilder] that wraps the given raw object pointer. - DartProtocolBuilder.castFromPointer( + /// Constructs a [DartInputStreamAdapter] that wraps the given raw object pointer. + DartInputStreamAdapter.castFromPointer( ffi.Pointer other, { bool retain = false, bool release = false, }) : this._(other, retain: retain, release: release); - /// Returns whether [obj] is an instance of [DartProtocolBuilder]. + /// Returns whether [obj] is an instance of [DartInputStreamAdapter]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( obj.ref.pointer, _sel_isKindOfClass_, - _class_DOBJCDartProtocolBuilder, - ); - } - - /// alloc - static DartProtocolBuilder alloc() { - final _ret = _objc_msgSend_151sglz( - _class_DOBJCDartProtocolBuilder, - _sel_alloc, - ); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: false, - release: true, + _class_DOBJCDartInputStreamAdapter, ); } - /// allocWithZone: - static DartProtocolBuilder allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_DOBJCDartProtocolBuilder, - _sel_allocWithZone_, - zone, - ); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: false, - release: true, + /// inputStreamWithData: + static DartInputStreamAdapter? inputStreamWithData(NSData data) { + final _ret = _objc_msgSend_1sotr3r( + _class_DOBJCDartInputStreamAdapter, + _sel_inputStreamWithData_, + data.ref.pointer, ); + return _ret.address == 0 + ? null + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: true, + release: true, + ); } - /// new - static DartProtocolBuilder new$() { - final _ret = _objc_msgSend_151sglz( - _class_DOBJCDartProtocolBuilder, - _sel_new, - ); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: false, - release: true, + /// inputStreamWithFileAtPath: + static DartInputStreamAdapter? inputStreamWithFileAtPath(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + _class_DOBJCDartInputStreamAdapter, + _sel_inputStreamWithFileAtPath_, + path.ref.pointer, ); + return _ret.address == 0 + ? null + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: true, + release: true, + ); } - /// addProtocol: - void addProtocol(objc.Protocol protocol) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_addProtocol_, - protocol.ref.pointer, + /// Creates the adapter. + /// @param sendPort A port to that is will receive two types of messages: + /// -1 => The `NSInputStream` has been closed and the port can be closed. + /// _ => The number of types being required in a `read:maxLength` call. + static DartInputStreamAdapter inputStreamWithPort(int sendPort) { + final _ret = _objc_msgSend_1ya1kjn( + _class_DOBJCDartInputStreamAdapter, + _sel_inputStreamWithPort_, + sendPort, ); - } - - /// autorelease - DartProtocolBuilder autorelease() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); - return DartProtocolBuilder.castFromPointer( + return DartInputStreamAdapter.castFromPointer( _ret, retain: true, release: true, ); } - /// buildInstance: - DartProtocol buildInstance(int port) { - final _ret = _objc_msgSend_1ya1kjn( - this.ref.pointer, - _sel_buildInstance_, - port, + /// inputStreamWithURL: + static DartInputStreamAdapter? inputStreamWithURL(NSURL url) { + objc.checkOsVersionInternal( + 'DOBJCDartInputStreamAdapter.inputStreamWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), ); - return DartProtocol.castFromPointer(_ret, retain: true, release: true); + final _ret = _objc_msgSend_1sotr3r( + _class_DOBJCDartInputStreamAdapter, + _sel_inputStreamWithURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: true, + release: true, + ); } - /// implementMethod:withBlock:withTrampoline:withSignature: - void implementMethod( - ffi.Pointer sel, { - required ffi.Pointer withBlock, - required ffi.Pointer withTrampoline, - required ffi.Pointer withSignature, - }) { - _objc_msgSend_1s2gdyk( + /// addData: + int addData(NSData data) { + return _objc_msgSend_1vd1c5m( this.ref.pointer, - _sel_implementMethod_withBlock_withTrampoline_withSignature_, - sel, - withBlock, - withTrampoline, - withSignature, + _sel_addData_, + data.ref.pointer, ); } - /// init - DartProtocolBuilder init() { - objc.checkOsVersionInternal( - 'DOBJCDartProtocolBuilder.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( + /// initWithData: + DartInputStreamAdapter initWithData(NSData data) { + final _ret = _objc_msgSend_1sotr3r( this.ref.retainAndReturnPointer(), - _sel_init, + _sel_initWithData_, + data.ref.pointer, ); - return DartProtocolBuilder.castFromPointer( + return DartInputStreamAdapter.castFromPointer( _ret, retain: false, release: true, ); } - /// initWithClassName: - DartProtocolBuilder initWithClassName(ffi.Pointer name) { - final _ret = _objc_msgSend_56zxyn( + /// initWithFileAtPath: + DartInputStreamAdapter? initWithFileAtPath(NSString path) { + final _ret = _objc_msgSend_1sotr3r( this.ref.retainAndReturnPointer(), - _sel_initWithClassName_, - name, - ); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: false, - release: true, + _sel_initWithFileAtPath_, + path.ref.pointer, ); + return _ret.address == 0 + ? null + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: false, + release: true, + ); } - /// registerClass - void registerClass() { - _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_registerClass); + /// initWithURL: + DartInputStreamAdapter? initWithURL(NSURL url) { + objc.checkOsVersionInternal( + 'DOBJCDartInputStreamAdapter.initWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : DartInputStreamAdapter.castFromPointer( + _ret, + retain: false, + release: true, + ); } - /// retain - DartProtocolBuilder retain() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: true, - release: true, - ); + /// setDone + void setDone() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_setDone); } - /// self - DartProtocolBuilder self$1() { - final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); - return DartProtocolBuilder.castFromPointer( - _ret, - retain: true, - release: true, - ); + /// setError: + void setError(NSError error) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setError_, error.ref.pointer); } - /// Returns a new instance of DartProtocolBuilder constructed with the default `new` method. - factory DartProtocolBuilder() => new$(); -} - -/// NSNumberIsFloat -extension NSNumberIsFloat on objc.NSNumber { - /// isFloat - bool get isFloat { - return _objc_msgSend_91o635(this.ref.pointer, _sel_isFloat); + /// stream:handleEvent: + void stream(NSStream aStream, {required NSStreamEvent handleEvent}) { + if (!objc.respondsToSelector(this.ref.pointer, _sel_stream_handleEvent_)) { + throw objc.UnimplementedOptionalMethodException( + 'DOBJCDartInputStreamAdapter', + 'stream:handleEvent:', + ); + } + _objc_msgSend_3l8zum( + this.ref.pointer, + _sel_stream_handleEvent_, + aStream.ref.pointer, + handleEvent.value, + ); } } -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer, int) - >()(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); -ffi.Pointer -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline) - .cast(); -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - int, - ))(arg0, arg1, arg2); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} +/// Base class of all classes DOBJCDartProtocolBuilder creates. +class DartProtocol extends NSObject { + DartProtocol._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - >.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, - ) - ..keepIsolateAlive = false; + /// Constructs a [DartProtocol] that points to the same underlying object as [other]. + DartProtocol.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); -/// Construction methods for `objc.ObjCBlock, objc.NSStream, ffi.UnsignedLong)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) - > - castFromPointer( - ffi.Pointer pointer, { + /// Constructs a [DartProtocol] that wraps the given raw object pointer. + DartProtocol.castFromPointer( + ffi.Pointer other, { bool retain = false, bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSStream, - ffi.UnsignedLong, - ) - >(pointer, retain: retain, release: release); + }) : this._(other, retain: retain, release: release); - /// 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. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSStream, - ffi.UnsignedLong, - ) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + /// Returns whether [obj] is an instance of [DartProtocol]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DOBJCDartProtocol, + ); + } - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) - > - fromFunction( - void Function(ffi.Pointer, objc.NSStream, objc.NSStreamEvent) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSStream, - ffi.UnsignedLong, - ) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - objc.NSStream.castFromPointer(arg1, retain: true, release: true), - objc.NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + /// alloc + static DartProtocol alloc() { + final _ret = _objc_msgSend_151sglz(_class_DOBJCDartProtocol, _sel_alloc); + return DartProtocol.castFromPointer(_ret, retain: false, release: true); + } - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) - > - listener( - void Function(ffi.Pointer, objc.NSStream, objc.NSStreamEvent) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - objc.NSStream.castFromPointer(arg1, retain: false, release: true), - objc.NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, + /// allocWithZone: + static DartProtocol allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_DOBJCDartProtocol, + _sel_allocWithZone_, + zone, ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_hoampi(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); + return DartProtocol.castFromPointer(_ret, retain: false, release: true); } - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) - > - blocking( - void Function(ffi.Pointer, objc.NSStream, objc.NSStreamEvent) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - objc.NSStream.castFromPointer(arg1, retain: false, release: true), - objc.NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, + /// new + static DartProtocol new$() { + final _ret = _objc_msgSend_151sglz(_class_DOBJCDartProtocol, _sel_new); + return DartProtocol.castFromPointer(_ret, retain: false, release: true); + } + + /// autorelease + DartProtocol autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return DartProtocol.castFromPointer(_ret, retain: true, release: true); + } + + /// dealloc + void dealloc() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); + } + + /// getDOBJCDartProtocolMethodForSelector: + objc.ObjCObjectBase getDOBJCDartProtocolMethodForSelector( + ffi.Pointer sel, + ) { + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_getDOBJCDartProtocolMethodForSelector_, + sel, ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - int arg2, - ) => fn( - arg0, - objc.NSStream.castFromPointer(arg1, retain: false, release: true), - objc.NSStreamEvent.fromValue(arg2), - ), - keepIsolateAlive, + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// init + DartProtocol init() { + objc.checkOsVersionInternal( + 'DOBJCDartProtocol.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_hoampi( - raw, - rawListener, - objc.objCContext, + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function(ffi.Pointer, objc.NSStream, ffi.UnsignedLong) - >(wrapper, retain: false, release: true); + return DartProtocol.castFromPointer(_ret, retain: false, release: true); } -} -/// Call operator for `objc.ObjCBlock, objc.NSStream, ffi.UnsignedLong)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSStream, - ffi.UnsignedLong, - ) - > { - void call( - ffi.Pointer arg0, - objc.NSStream arg1, - objc.NSStreamEvent arg2, - ) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.UnsignedLong arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >()(ref.pointer, arg0, arg1.ref.pointer, arg2.value); + /// initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort: + DartProtocol initDOBJCDartProtocolFromDartProtocolBuilder( + DartProtocolBuilder builder, { + required int withDisposePort, + }) { + final _ret = _objc_msgSend_dbvvll( + this.ref.retainAndReturnPointer(), + _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_, + builder.ref.pointer, + withDisposePort, + ); + return DartProtocol.castFromPointer(_ret, retain: false, release: true); + } + + /// retain + DartProtocol retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return DartProtocol.castFromPointer(_ret, retain: true, release: true); + } + + /// self + DartProtocol self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return DartProtocol.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of DartProtocol constructed with the default `new` method. + factory DartProtocol() => new$(); } -void -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrTrampoline, - ) - .cast(); -void -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -) => - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); -ffi.Pointer -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureTrampoline, - ) - .cast(); -void -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -) { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - objc.objectRelease(block.cast()); -} - -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerTrampoline, - ) - ..keepIsolateAlive = false; -void -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, -) { - try { - (objc.getBlockClosure(block) - as void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ))(arg0, arg1, arg2, arg3, arg4); - } catch (e) { - } finally { - objc.signalWaiter(waiter); - objc.objectRelease(block.cast()); - } -} +/// Used by the Dart ObjCProtocolBuilder to construct ObjC classes at runtime to +/// implement protocols. +class DartProtocolBuilder extends NSObject { + DartProtocolBuilder._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline, - ) - ..keepIsolateAlive = false; -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline, - ) - ..keepIsolateAlive = false; + /// Constructs a [DartProtocolBuilder] that points to the same underlying object as [other]. + DartProtocolBuilder.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); -/// Construction methods for `objc.ObjCBlock, objc.NSString, ffi.Pointer, objc.NSDictionary, ffi.Pointer)>`. -abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - > - castFromPointer( - ffi.Pointer pointer, { + /// Constructs a [DartProtocolBuilder] that wraps the given raw object pointer. + DartProtocolBuilder.castFromPointer( + ffi.Pointer other, { bool retain = false, bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - >(pointer, retain: retain, release: release); + }) : this._(other, retain: retain, release: release); - /// 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. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + /// Returns whether [obj] is an instance of [DartProtocolBuilder]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DOBJCDartProtocolBuilder, + ); + } - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - > - fromFunction( - void Function( - ffi.Pointer, - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureCallable, - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => fn( - arg0, - objc.NSString.castFromPointer(arg1, retain: true, release: true), - objc.ObjCObjectBase(arg2, retain: true, release: true), - objc.NSDictionary.castFromPointer( - arg3, - retain: true, - release: true, - ), - arg4, - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + /// alloc + static DartProtocolBuilder alloc() { + final _ret = _objc_msgSend_151sglz( + _class_DOBJCDartProtocolBuilder, + _sel_alloc, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); + } - /// Creates a listener block from a Dart function. - /// - /// This is based on FFI's NativeCallable.listener, and has the same - /// capabilities and limitations. This block can be invoked from any thread, - /// but only supports void functions, and is not run synchronously. See - /// NativeCallable.listener for more details. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - > - listener( - void Function( - ffi.Pointer, - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => fn( - arg0, - objc.NSString.castFromPointer(arg1, retain: false, release: true), - objc.ObjCObjectBase(arg2, retain: false, release: true), - objc.NSDictionary.castFromPointer(arg3, retain: false, release: true), - arg4, - ), - keepIsolateAlive, + /// allocWithZone: + static DartProtocolBuilder allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_DOBJCDartProtocolBuilder, + _sel_allocWithZone_, + zone, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, ); - final wrapper = _ObjectiveCBindings_wrapListenerBlock_1sr3ozv(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); } - /// Creates a blocking block from a Dart function. - /// - /// This callback can be invoked from any native thread, and will block the - /// caller until the callback is handled by the Dart isolate that created - /// the block. Async functions are not supported. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. If the owner isolate - /// has shut down, and the block is invoked by native code, it may block - /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - > - blocking( - void Function( - ffi.Pointer, - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => fn( - arg0, - objc.NSString.castFromPointer(arg1, retain: false, release: true), - objc.ObjCObjectBase(arg2, retain: false, release: true), - objc.NSDictionary.castFromPointer(arg3, retain: false, release: true), - arg4, - ), - keepIsolateAlive, + /// new + static DartProtocolBuilder new$() { + final _ret = _objc_msgSend_151sglz( + _class_DOBJCDartProtocolBuilder, + _sel_new, ); - final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingListenerCallable - .nativeFunction - .cast(), - ( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) => fn( - arg0, - objc.NSString.castFromPointer(arg1, retain: false, release: true), - objc.ObjCObjectBase(arg2, retain: false, release: true), - objc.NSDictionary.castFromPointer(arg3, retain: false, release: true), - arg4, - ), - keepIsolateAlive, + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, ); - final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( - raw, - rawListener, - objc.objCContext, + } + + /// addProtocol: + void addProtocol(Protocol protocol) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addProtocol_, + protocol.ref.pointer, ); - objc.objectRelease(raw.cast()); - objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - >(wrapper, retain: false, release: true); } -} -/// Call operator for `objc.ObjCBlock, objc.NSString, ffi.Pointer, objc.NSDictionary, ffi.Pointer)>`. -extension ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_CallExtension - on - objc.ObjCBlock< - ffi.Void Function( - ffi.Pointer, - objc.NSString, - ffi.Pointer, - objc.NSDictionary, - ffi.Pointer, - ) - > { - void call( - ffi.Pointer arg0, - objc.NSString arg1, - objc.ObjCObjectBase arg2, - objc.NSDictionary arg3, - ffi.Pointer arg4, - ) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2, - ffi.Pointer arg3, - ffi.Pointer arg4, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >()( - ref.pointer, - arg0, - arg1.ref.pointer, - arg2.ref.pointer, - arg3.ref.pointer, - arg4, - ); -} + /// autorelease + DartProtocolBuilder autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: true, + release: true, + ); + } -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) - .cast(); -ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); -ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) - .cast(); + /// buildInstance: + DartProtocol buildInstance(int port) { + final _ret = _objc_msgSend_1ya1kjn( + this.ref.pointer, + _sel_buildInstance_, + port, + ); + return DartProtocol.castFromPointer(_ret, retain: true, release: true); + } -/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. -abstract final class ObjCBlock_objcObjCObject_ffiVoid { - /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); + /// implementMethod:withBlock:withTrampoline:withSignature: + void implementMethod( + ffi.Pointer sel, { + required ffi.Pointer withBlock, + required ffi.Pointer withTrampoline, + required ffi.Pointer withSignature, + }) { + _objc_msgSend_1s2gdyk( + this.ref.pointer, + _sel_implementMethod_withBlock_withTrampoline_withSignature_, + sel, + withBlock, + withTrampoline, + withSignature, + ); + } - /// 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. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + /// init + DartProtocolBuilder init() { + objc.checkOsVersionInternal( + 'DOBJCDartProtocolBuilder.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); + } - /// Creates a block from a Dart function. - /// - /// 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. - /// - /// If `keepIsolateAlive` is true, this block will keep this isolate alive - /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - objc.ObjCObjectBase Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + /// initWithClassName: + DartProtocolBuilder initWithClassName(ffi.Pointer name) { + final _ret = _objc_msgSend_56zxyn( + this.ref.retainAndReturnPointer(), + _sel_initWithClassName_, + name, + ); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// registerClass + void registerClass() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_registerClass); + } + + /// retain + DartProtocolBuilder retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// self + DartProtocolBuilder self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return DartProtocolBuilder.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// Returns a new instance of DartProtocolBuilder constructed with the default `new` method. + factory DartProtocolBuilder() => new$(); } -/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { - objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); +/// iOS: unavailable +/// macOS: introduced 10.11.0 +enum NSAppleEventSendOptions { + NSAppleEventSendNoReply(1), + NSAppleEventSendQueueReply(2), + NSAppleEventSendWaitForReply(3), + NSAppleEventSendNeverInteract(16), + NSAppleEventSendCanInteract(32), + NSAppleEventSendAlwaysInteract(48), + NSAppleEventSendCanSwitchLayer(64), + NSAppleEventSendDontRecord(4096), + NSAppleEventSendDontExecute(8192), + NSAppleEventSendDontAnnotate(65536), + NSAppleEventSendDefaultOptions(35); + + final int value; + const NSAppleEventSendOptions(this.value); + + static NSAppleEventSendOptions fromValue(int value) => switch (value) { + 1 => NSAppleEventSendNoReply, + 2 => NSAppleEventSendQueueReply, + 3 => NSAppleEventSendWaitForReply, + 16 => NSAppleEventSendNeverInteract, + 32 => NSAppleEventSendCanInteract, + 48 => NSAppleEventSendAlwaysInteract, + 64 => NSAppleEventSendCanSwitchLayer, + 4096 => NSAppleEventSendDontRecord, + 8192 => NSAppleEventSendDontExecute, + 65536 => NSAppleEventSendDontAnnotate, + 35 => NSAppleEventSendDefaultOptions, + _ => throw ArgumentError( + 'Unknown value for NSAppleEventSendOptions: $value', + ), + }; } -/// Protocol for observing changes to values of objects. -interface class Observer extends objc.ObjCProtocolBase - implements objc.NSObjectProtocol { - Observer._( +/// NSArray +class NSArray extends NSObject + with Iterable + implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { + /// Creates a [NSArray] of the given length with [fill] at each position. + /// + /// The [length] must be a non-negative integer. + static NSArray filled(int length, objc.ObjCObjectBase fill) => + NSMutableArray.filled(length, fill); + + /// Creates a [NSArray] from [elements]. + static NSArray of(Iterable elements) => + NSMutableArray.of(elements); + + @override + int get length => count; + + @override + objc.ObjCObjectBase elementAt(int index) => objectAtIndex(index); + + @override + Iterator get iterator => _NSArrayIterator(this); + + objc.ObjCObjectBase operator [](int index) => objectAtIndex(index); + + NSArray._( ffi.Pointer pointer, { bool retain = false, bool release = false, - }) : super(pointer, retain: retain, release: release); + }) : super.castFromPointer(pointer, retain: retain, release: release); - /// Constructs a [Observer] that points to the same underlying object as [other]. - Observer.castFrom(objc.ObjCObjectBase other) + /// Constructs a [NSArray] that points to the same underlying object as [other]. + NSArray.castFrom(objc.ObjCObjectBase other) : this._(other.ref.pointer, retain: true, release: true); - /// Constructs a [Observer] that wraps the given raw object pointer. - Observer.castFromPointer( + /// Constructs a [NSArray] that wraps the given raw object pointer. + NSArray.castFromPointer( ffi.Pointer other, { bool retain = false, bool release = false, }) : this._(other, retain: retain, release: release); - /// Returns whether [obj] is an instance of [Observer]. - static bool conformsTo(objc.ObjCObjectBase obj) { - return _objc_msgSend_e3qsqz( + /// Returns whether [obj] is an instance of [NSArray]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( obj.ref.pointer, - _sel_conformsToProtocol_, - _protocol_Observer, + _sel_isKindOfClass_, + _class_NSArray, ); } - /// Returns the [objc.Protocol] object for this protocol. - static objc.Protocol get $protocol => - objc.Protocol.castFromPointer(_protocol_Observer.cast()); + /// alloc + static NSArray alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_alloc); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } - /// Builds an object that implements the Observer protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static Observer implement({ - required void Function( - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); - Observer.observeValueForKeyPath_ofObject_change_context_.implement( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); - return Observer.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), + /// allocWithZone: + static NSArray allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSArray, + _sel_allocWithZone_, + zone, ); + return NSArray.castFromPointer(_ret, retain: false, release: true); } - /// Adds the implementation of the Observer protocol to an existing - /// [objc.ObjCProtocolBuilder]. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilder( - objc.ObjCProtocolBuilder builder, { - required void Function( - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, - }) { - Observer.observeValueForKeyPath_ofObject_change_context_.implement( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); + /// array + static NSArray array() { + final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_array); + return NSArray.castFromPointer(_ret, retain: true, release: true); } - /// Builds an object that implements the Observer protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static Observer implementAsListener({ - required void Function( - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, - }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); - Observer.observeValueForKeyPath_ofObject_change_context_ - .implementAsListener( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); - return Observer.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), + /// arrayWithArray: + static NSArray arrayWithArray(NSArray array$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithArray_, + array$1.ref.pointer, ); + return NSArray.castFromPointer(_ret, retain: true, release: true); } - /// Adds the implementation of the Observer protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will - /// be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsListener( - objc.ObjCProtocolBuilder builder, { - required void Function( - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, + /// arrayWithObject: + static NSArray arrayWithObject(objc.ObjCObjectBase anObject) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithObject_, + anObject.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObjects: + static NSArray arrayWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSArray, + _sel_arrayWithObjects_, + firstObj.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObjects:count: + static NSArray arrayWithObjects$1( + ffi.Pointer> objects, { + required int count, }) { - Observer.observeValueForKeyPath_ofObject_change_context_ - .implementAsListener( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); + final _ret = _objc_msgSend_zmbtbd( + _class_NSArray, + _sel_arrayWithObjects_count_, + objects, + count, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); } - /// Builds an object that implements the Observer protocol. To implement - /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All - /// methods that can be implemented as blocking listeners will be. - /// - /// If `$keepIsolateAlive` is true, this protocol will keep this isolate - /// alive until it is garbage collected by both Dart and ObjC. - static Observer implementAsBlocking({ - required void Function( - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, + /// new + static NSArray new$() { + final _ret = _objc_msgSend_151sglz(_class_NSArray, _sel_new); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSArray, _sel_supportsSecureCoding); + } + + /// count + int get count { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, }) { - final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); - Observer.observeValueForKeyPath_ofObject_change_context_ - .implementAsBlocking( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); - return Observer.castFrom( - builder.build(keepIsolateAlive: $keepIsolateAlive), + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, ); } - /// Adds the implementation of the Observer protocol to an existing - /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking - /// listeners will be. - /// - /// Note: You cannot call this method after you have called `builder.build`. - static void addToBuilderAsBlocking( - objc.ObjCProtocolBuilder builder, { - required void Function( - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - observeValueForKeyPath_ofObject_change_context_, - bool $keepIsolateAlive = true, + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSArray init() { + objc.checkOsVersionInternal( + 'NSArray.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray: + NSArray initWithArray(NSArray array$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array$1.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + NSArray initWithArray$1(NSArray array$1, {required bool copyItems}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + array$1.ref.pointer, + copyItems, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSArray? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects: + NSArray initWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:count: + NSArray initWithObjects$1( + ffi.Pointer> objects, { + required int count$1, }) { - Observer.observeValueForKeyPath_ofObject_change_context_ - .implementAsBlocking( - builder, - observeValueForKeyPath_ofObject_change_context_, - ); - builder.addProtocol($protocol); + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count$1, + ); + return NSArray.castFromPointer(_ret, retain: false, release: true); } - /// observeValueForKeyPath:ofObject:change:context: - static final observeValueForKeyPath_ofObject_change_context_ = - objc.ObjCProtocolListenableMethod< - void Function( - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, + /// objectAtIndex: + objc.ObjCObjectBase objectAtIndex(int index) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_objectAtIndex_, + index, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSArray constructed with the default `new` method. + factory NSArray() => new$(); +} + +enum NSBinarySearchingOptions { + NSBinarySearchingFirstEqual(256), + NSBinarySearchingLastEqual(512), + NSBinarySearchingInsertionIndex(1024); + + final int value; + const NSBinarySearchingOptions(this.value); + + static NSBinarySearchingOptions fromValue(int value) => switch (value) { + 256 => NSBinarySearchingFirstEqual, + 512 => NSBinarySearchingLastEqual, + 1024 => NSBinarySearchingInsertionIndex, + _ => throw ArgumentError( + 'Unknown value for NSBinarySearchingOptions: $value', + ), + }; +} + +/// NSCharacterSet +class NSCharacterSet extends NSObject + implements NSCopying, NSMutableCopying, NSSecureCoding { + NSCharacterSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSCharacterSet] that points to the same underlying object as [other]. + NSCharacterSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSCharacterSet] that wraps the given raw object pointer. + NSCharacterSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSCharacterSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSCharacterSet, + ); + } + + /// alloc + static NSCharacterSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_alloc); + return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSCharacterSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSCharacterSet, + _sel_allocWithZone_, + zone, + ); + return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); + } + + /// alphanumericCharacterSet + static NSCharacterSet getAlphanumericCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_alphanumericCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// capitalizedLetterCharacterSet + static NSCharacterSet getCapitalizedLetterCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_capitalizedLetterCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// characterSetWithBitmapRepresentation: + static NSCharacterSet characterSetWithBitmapRepresentation(NSData data) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSCharacterSet, + _sel_characterSetWithBitmapRepresentation_, + data.ref.pointer, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// characterSetWithCharactersInString: + static NSCharacterSet characterSetWithCharactersInString(NSString aString) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSCharacterSet, + _sel_characterSetWithCharactersInString_, + aString.ref.pointer, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// characterSetWithContentsOfFile: + static NSCharacterSet? characterSetWithContentsOfFile(NSString fName) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSCharacterSet, + _sel_characterSetWithContentsOfFile_, + fName.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// characterSetWithRange: + static NSCharacterSet characterSetWithRange(NSRange aRange) { + final _ret = _objc_msgSend_1k1o1s7( + _class_NSCharacterSet, + _sel_characterSetWithRange_, + aRange, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// controlCharacterSet + static NSCharacterSet getControlCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_controlCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// decimalDigitCharacterSet + static NSCharacterSet getDecimalDigitCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_decimalDigitCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// decomposableCharacterSet + static NSCharacterSet getDecomposableCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_decomposableCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// illegalCharacterSet + static NSCharacterSet getIllegalCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_illegalCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// letterCharacterSet + static NSCharacterSet getLetterCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_letterCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// lowercaseLetterCharacterSet + static NSCharacterSet getLowercaseLetterCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_lowercaseLetterCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSCharacterSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSCharacterSet, _sel_new); + return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); + } + + /// newlineCharacterSet + static NSCharacterSet getNewlineCharacterSet() { + objc.checkOsVersionInternal( + 'NSCharacterSet.newlineCharacterSet', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_newlineCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// nonBaseCharacterSet + static NSCharacterSet getNonBaseCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_nonBaseCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// punctuationCharacterSet + static NSCharacterSet getPunctuationCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_punctuationCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSCharacterSet, + _sel_supportsSecureCoding, + ); + } + + /// symbolCharacterSet + static NSCharacterSet getSymbolCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_symbolCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// uppercaseLetterCharacterSet + static NSCharacterSet getUppercaseLetterCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_uppercaseLetterCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// whitespaceAndNewlineCharacterSet + static NSCharacterSet getWhitespaceAndNewlineCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_whitespaceAndNewlineCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// whitespaceCharacterSet + static NSCharacterSet getWhitespaceCharacterSet() { + final _ret = _objc_msgSend_151sglz( + _class_NSCharacterSet, + _sel_whitespaceCharacterSet, + ); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// autorelease + NSCharacterSet autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// bitmapRepresentation + NSData get bitmapRepresentation { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_bitmapRepresentation, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// characterIsMember: + bool characterIsMember(int aCharacter) { + return _objc_msgSend_1co9mn4( + this.ref.pointer, + _sel_characterIsMember_, + aCharacter, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// hasMemberInPlane: + bool hasMemberInPlane(int thePlane) { + return _objc_msgSend_gerswc( + this.ref.pointer, + _sel_hasMemberInPlane_, + thePlane, + ); + } + + /// init + NSCharacterSet init() { + objc.checkOsVersionInternal( + 'NSCharacterSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSCharacterSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSCharacterSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSCharacterSet.castFromPointer(_ret, retain: false, release: true); + } + + /// invertedSet + NSCharacterSet get invertedSet { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_invertedSet); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// isSupersetOfSet: + bool isSupersetOfSet(NSCharacterSet theOtherSet) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isSupersetOfSet_, + theOtherSet.ref.pointer, + ); + } + + /// longCharacterIsMember: + bool longCharacterIsMember(int theLongChar) { + return _objc_msgSend_jsclrq( + this.ref.pointer, + _sel_longCharacterIsMember_, + theLongChar, + ); + } + + /// retain + NSCharacterSet retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSCharacterSet self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSCharacterSet.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSCharacterSet constructed with the default `new` method. + factory NSCharacterSet() => new$(); +} + +/// NSCoder +class NSCoder extends NSObject { + NSCoder._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSCoder] that points to the same underlying object as [other]. + NSCoder.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSCoder] that wraps the given raw object pointer. + NSCoder.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSCoder]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSCoder, + ); + } + + /// alloc + static NSCoder alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSCoder, _sel_alloc); + return NSCoder.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSCoder allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSCoder, + _sel_allocWithZone_, + zone, + ); + return NSCoder.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSCoder new$() { + final _ret = _objc_msgSend_151sglz(_class_NSCoder, _sel_new); + return NSCoder.castFromPointer(_ret, retain: false, release: true); + } + + /// decodeDataObject + NSData? decodeDataObject() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_decodeDataObject); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// decodeValueOfObjCType:at:size: + void decodeValueOfObjCType( + ffi.Pointer type, { + required ffi.Pointer at, + required int size, + }) { + objc.checkOsVersionInternal( + 'NSCoder.decodeValueOfObjCType:at:size:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_nc6uds( + this.ref.pointer, + _sel_decodeValueOfObjCType_at_size_, + type, + at, + size, + ); + } + + /// encodeDataObject: + void encodeDataObject(NSData data) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeDataObject_, + data.ref.pointer, + ); + } + + /// encodeValueOfObjCType:at: + void encodeValueOfObjCType( + ffi.Pointer type, { + required ffi.Pointer at, + }) { + _objc_msgSend_1flkydz( + this.ref.pointer, + _sel_encodeValueOfObjCType_at_, + type, + at, + ); + } + + /// init + NSCoder init() { + objc.checkOsVersionInternal( + 'NSCoder.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSCoder.castFromPointer(_ret, retain: false, release: true); + } + + /// versionForClassName: + int versionForClassName(NSString className) { + return _objc_msgSend_1r6ymhb( + this.ref.pointer, + _sel_versionForClassName_, + className.ref.pointer, + ); + } + + /// Returns a new instance of NSCoder constructed with the default `new` method. + factory NSCoder() => new$(); +} + +/// NSCoding +interface class NSCoding extends objc.ObjCProtocolBase { + NSCoding._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSCoding] that points to the same underlying object as [other]. + NSCoding.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSCoding] that wraps the given raw object pointer. + NSCoding.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSCoding]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSCoding, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSCoding.cast()); + + /// Builds an object that implements the NSCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCoding implement({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); + NSCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCoding implementAsListener({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); + NSCoding.encodeWithCoder_.implementAsListener(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSCoding.encodeWithCoder_.implementAsListener(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCoding implementAsBlocking({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCoding'); + NSCoding.encodeWithCoder_.implementAsBlocking(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSCoding.encodeWithCoder_.implementAsBlocking(builder, encodeWithCoder_); + NSCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// encodeWithCoder: + static final encodeWithCoder_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSCoding, + _sel_encodeWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCoding, + _sel_encodeWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); + + /// initWithCoder: + static final initWithCoder_ = + objc.ObjCProtocolMethod( + _protocol_NSCoding, + _sel_initWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCoding, + _sel_initWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (Dartinstancetype? Function(NSCoder) func) => + ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); +} + +/// iOS: introduced 13.0.0 +/// macOS: introduced 10.15.0 +enum NSCollectionChangeType { + NSCollectionChangeInsert(0), + NSCollectionChangeRemove(1); + + final int value; + const NSCollectionChangeType(this.value); + + static NSCollectionChangeType fromValue(int value) => switch (value) { + 0 => NSCollectionChangeInsert, + 1 => NSCollectionChangeRemove, + _ => throw ArgumentError( + 'Unknown value for NSCollectionChangeType: $value', + ), + }; +} + +enum NSComparisonResult { + NSOrderedAscending(-1), + NSOrderedSame(0), + NSOrderedDescending(1); + + final int value; + const NSComparisonResult(this.value); + + static NSComparisonResult fromValue(int value) => switch (value) { + -1 => NSOrderedAscending, + 0 => NSOrderedSame, + 1 => NSOrderedDescending, + _ => throw ArgumentError('Unknown value for NSComparisonResult: $value'), + }; +} + +/// NSCopying +interface class NSCopying extends objc.ObjCProtocolBase { + NSCopying._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSCopying] that points to the same underlying object as [other]. + NSCopying.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSCopying] that wraps the given raw object pointer. + NSCopying.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSCopying]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSCopying, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSCopying.cast()); + + /// Builds an object that implements the NSCopying protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSCopying implement({ + required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSCopying'); + NSCopying.copyWithZone_.implement(builder, copyWithZone_); + builder.addProtocol($protocol); + return NSCopying.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSCopying protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function(ffi.Pointer) copyWithZone_, + bool $keepIsolateAlive = true, + }) { + NSCopying.copyWithZone_.implement(builder, copyWithZone_); + builder.addProtocol($protocol); + } + + /// copyWithZone: + static final copyWithZone_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function(ffi.Pointer) + >( + _protocol_NSCopying, + _sel_copyWithZone_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18nsem0) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSCopying, + _sel_copyWithZone_, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function(ffi.Pointer) func) => + ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => func(arg1), + ), + ); +} + +/// NSData +class NSData extends NSObject + implements NSCopying, NSMutableCopying, NSSecureCoding { + NSData._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSData] that points to the same underlying object as [other]. + NSData.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSData] that wraps the given raw object pointer. + NSData.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSData]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSData, + ); + } + + /// alloc + static NSData alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_alloc); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSData allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSData, + _sel_allocWithZone_, + zone, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// data + static NSData data() { + final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_data); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytes:length: + static NSData dataWithBytes( + ffi.Pointer bytes, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + _class_NSData, + _sel_dataWithBytes_length_, + bytes, + length, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytesNoCopy:length: + static NSData dataWithBytesNoCopy( + ffi.Pointer bytes, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + _class_NSData, + _sel_dataWithBytesNoCopy_length_, + bytes, + length, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytesNoCopy:length:freeWhenDone: + static NSData dataWithBytesNoCopy$1( + ffi.Pointer bytes, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_161ne8y( + _class_NSData, + _sel_dataWithBytesNoCopy_length_freeWhenDone_, + bytes, + length, + freeWhenDone, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfFile: + static NSData? dataWithContentsOfFile(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSData, + _sel_dataWithContentsOfFile_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfFile:options:error: + static NSData? dataWithContentsOfFile$1( + NSString path, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + _class_NSData, + _sel_dataWithContentsOfFile_options_error_, + path.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfURL: + static NSData? dataWithContentsOfURL(NSURL url) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSData, + _sel_dataWithContentsOfURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfURL:options:error: + static NSData? dataWithContentsOfURL$1( + NSURL url, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + _class_NSData, + _sel_dataWithContentsOfURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithData: + static NSData dataWithData(NSData data$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSData, + _sel_dataWithData_, + data$1.ref.pointer, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSData new$() { + final _ret = _objc_msgSend_151sglz(_class_NSData, _sel_new); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSData, _sel_supportsSecureCoding); + } + + /// bytes + ffi.Pointer get bytes { + return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_bytes); + } + + /// compressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSData? compressedDataUsingAlgorithm( + NSDataCompressionAlgorithm algorithm, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSData.compressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_compressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// decompressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSData? decompressedDataUsingAlgorithm( + NSDataCompressionAlgorithm algorithm, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSData.decompressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_decompressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSData init() { + objc.checkOsVersionInternal( + 'NSData.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBase64EncodedData:options: + NSData? initWithBase64EncodedData( + NSData base64Data, { + required NSDataBase64DecodingOptions options, + }) { + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedData:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_7kpg7m( + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedData_options_, + base64Data.ref.pointer, + options.value, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBase64EncodedString:options: + NSData? initWithBase64EncodedString( + NSString base64String, { + required NSDataBase64DecodingOptions options, + }) { + objc.checkOsVersionInternal( + 'NSData.initWithBase64EncodedString:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_7kpg7m( + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedString_options_, + base64String.ref.pointer, + options.value, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:length: + NSData initWithBytes(ffi.Pointer bytes$1, {required int length}) { + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_, + bytes$1, + length, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length: + NSData initWithBytesNoCopy( + ffi.Pointer bytes$1, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_, + bytes$1, + length, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:deallocator: + NSData initWithBytesNoCopy$1( + ffi.Pointer bytes$1, { + required int length, + objc.ObjCBlock, ffi.UnsignedLong)>? + deallocator, + }) { + objc.checkOsVersionInternal( + 'NSData.initWithBytesNoCopy:length:deallocator:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_134vhyh( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_deallocator_, + bytes$1, + length, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:freeWhenDone: + NSData initWithBytesNoCopy$2( + ffi.Pointer bytes$1, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_161ne8y( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_freeWhenDone_, + bytes$1, + length, + freeWhenDone, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSData? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile: + NSData? initWithContentsOfFile(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:options:error: + NSData? initWithContentsOfFile$1( + NSString path, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_options_error_, + path.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + NSData? initWithContentsOfURL(NSURL url) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:options:error: + NSData? initWithContentsOfURL$1( + NSURL url, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithData: + NSData initWithData(NSData data$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data$1.ref.pointer, + ); + return NSData.castFromPointer(_ret, retain: false, release: true); + } + + /// length + int get length { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); + } + + /// Returns a new instance of NSData constructed with the default `new` method. + factory NSData() => new$(); +} + +enum NSDataBase64DecodingOptions { + NSDataBase64DecodingIgnoreUnknownCharacters(1); + + final int value; + const NSDataBase64DecodingOptions(this.value); + + static NSDataBase64DecodingOptions fromValue(int value) => switch (value) { + 1 => NSDataBase64DecodingIgnoreUnknownCharacters, + _ => throw ArgumentError( + 'Unknown value for NSDataBase64DecodingOptions: $value', + ), + }; +} + +enum NSDataBase64EncodingOptions { + NSDataBase64Encoding64CharacterLineLength(1), + NSDataBase64Encoding76CharacterLineLength(2), + NSDataBase64EncodingEndLineWithCarriageReturn(16), + NSDataBase64EncodingEndLineWithLineFeed(32); + + final int value; + const NSDataBase64EncodingOptions(this.value); + + static NSDataBase64EncodingOptions fromValue(int value) => switch (value) { + 1 => NSDataBase64Encoding64CharacterLineLength, + 2 => NSDataBase64Encoding76CharacterLineLength, + 16 => NSDataBase64EncodingEndLineWithCarriageReturn, + 32 => NSDataBase64EncodingEndLineWithLineFeed, + _ => throw ArgumentError( + 'Unknown value for NSDataBase64EncodingOptions: $value', + ), + }; +} + +/// iOS: introduced 13.0.0 +/// macOS: introduced 10.15.0 +enum NSDataCompressionAlgorithm { + NSDataCompressionAlgorithmLZFSE(0), + NSDataCompressionAlgorithmLZ4(1), + NSDataCompressionAlgorithmLZMA(2), + NSDataCompressionAlgorithmZlib(3); + + final int value; + const NSDataCompressionAlgorithm(this.value); + + static NSDataCompressionAlgorithm fromValue(int value) => switch (value) { + 0 => NSDataCompressionAlgorithmLZFSE, + 1 => NSDataCompressionAlgorithmLZ4, + 2 => NSDataCompressionAlgorithmLZMA, + 3 => NSDataCompressionAlgorithmZlib, + _ => throw ArgumentError( + 'Unknown value for NSDataCompressionAlgorithm: $value', + ), + }; +} + +/// NSDataCreation +extension NSDataCreation on NSData {} + +enum NSDataReadingOptions { + NSDataReadingMappedIfSafe(1), + NSDataReadingUncached(2), + NSDataReadingMappedAlways(8); + + static const NSDataReadingMapped = NSDataReadingMappedIfSafe; + static const NSMappedRead = NSDataReadingMappedIfSafe; + static const NSUncachedRead = NSDataReadingUncached; + + final int value; + const NSDataReadingOptions(this.value); + + static NSDataReadingOptions fromValue(int value) => switch (value) { + 1 => NSDataReadingMappedIfSafe, + 2 => NSDataReadingUncached, + 8 => NSDataReadingMappedAlways, + _ => throw ArgumentError('Unknown value for NSDataReadingOptions: $value'), + }; + + @override + String toString() { + if (this == NSDataReadingMappedIfSafe) + return "NSDataReadingOptions.NSDataReadingMappedIfSafe, NSDataReadingOptions.NSDataReadingMapped, NSDataReadingOptions.NSMappedRead"; + if (this == NSDataReadingUncached) + return "NSDataReadingOptions.NSDataReadingUncached, NSDataReadingOptions.NSUncachedRead"; + return super.toString(); + } +} + +enum NSDataSearchOptions { + NSDataSearchBackwards(1), + NSDataSearchAnchored(2); + + final int value; + const NSDataSearchOptions(this.value); + + static NSDataSearchOptions fromValue(int value) => switch (value) { + 1 => NSDataSearchBackwards, + 2 => NSDataSearchAnchored, + _ => throw ArgumentError('Unknown value for NSDataSearchOptions: $value'), + }; +} + +enum NSDataWritingOptions { + NSDataWritingAtomic(1), + NSDataWritingWithoutOverwriting(2), + NSDataWritingFileProtectionNone(268435456), + NSDataWritingFileProtectionComplete(536870912), + NSDataWritingFileProtectionCompleteUnlessOpen(805306368), + NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication(1073741824), + NSDataWritingFileProtectionCompleteWhenUserInactive(1342177280), + NSDataWritingFileProtectionMask(4026531840); + + static const NSAtomicWrite = NSDataWritingAtomic; + + final int value; + const NSDataWritingOptions(this.value); + + static NSDataWritingOptions fromValue(int value) => switch (value) { + 1 => NSDataWritingAtomic, + 2 => NSDataWritingWithoutOverwriting, + 268435456 => NSDataWritingFileProtectionNone, + 536870912 => NSDataWritingFileProtectionComplete, + 805306368 => NSDataWritingFileProtectionCompleteUnlessOpen, + 1073741824 => + NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication, + 1342177280 => NSDataWritingFileProtectionCompleteWhenUserInactive, + 4026531840 => NSDataWritingFileProtectionMask, + _ => throw ArgumentError('Unknown value for NSDataWritingOptions: $value'), + }; + + @override + String toString() { + if (this == NSDataWritingAtomic) + return "NSDataWritingOptions.NSDataWritingAtomic, NSDataWritingOptions.NSAtomicWrite"; + return super.toString(); + } +} + +/// NSDate +class NSDate extends NSObject implements NSCopying, NSSecureCoding { + NSDate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSDate] that points to the same underlying object as [other]. + NSDate.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSDate] that wraps the given raw object pointer. + NSDate.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSDate]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSDate, + ); + } + + /// alloc + static NSDate alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_alloc); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSDate allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSDate, + _sel_allocWithZone_, + zone, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// date + static NSDate date() { + final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_date); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// dateWithTimeInterval:sinceDate: + static NSDate dateWithTimeInterval( + double secsToBeAdded, { + required NSDate sinceDate, + }) { + final _ret = _objc_msgSend_1ozwf6k( + _class_NSDate, + _sel_dateWithTimeInterval_sinceDate_, + secsToBeAdded, + sinceDate.ref.pointer, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSince1970: + static NSDate dateWithTimeIntervalSince1970(double secs) { + final _ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSince1970_, + secs, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSinceNow: + static NSDate dateWithTimeIntervalSinceNow(double secs) { + final _ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSinceNow_, + secs, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// dateWithTimeIntervalSinceReferenceDate: + static NSDate dateWithTimeIntervalSinceReferenceDate(double ti) { + final _ret = _objc_msgSend_oa8mke( + _class_NSDate, + _sel_dateWithTimeIntervalSinceReferenceDate_, + ti, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSDate new$() { + final _ret = _objc_msgSend_151sglz(_class_NSDate, _sel_new); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSDate, _sel_supportsSecureCoding); + } + + /// dateByAddingTimeInterval: + NSDate dateByAddingTimeInterval(double ti) { + objc.checkOsVersionInternal( + 'NSDate.dateByAddingTimeInterval:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_oa8mke( + this.ref.pointer, + _sel_dateByAddingTimeInterval_, + ti, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSDate init() { + objc.checkOsVersionInternal( + 'NSDate.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSDate? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithTimeInterval:sinceDate: + NSDate initWithTimeInterval( + double secsToBeAdded, { + required NSDate sinceDate, + }) { + final _ret = _objc_msgSend_1ozwf6k( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeInterval_sinceDate_, + secsToBeAdded, + sinceDate.ref.pointer, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithTimeIntervalSince1970: + NSDate initWithTimeIntervalSince1970(double secs) { + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSince1970_, + secs, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithTimeIntervalSinceNow: + NSDate initWithTimeIntervalSinceNow(double secs) { + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSinceNow_, + secs, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithTimeIntervalSinceReferenceDate: + NSDate initWithTimeIntervalSinceReferenceDate(double ti) { + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithTimeIntervalSinceReferenceDate_, + ti, + ); + return NSDate.castFromPointer(_ret, retain: false, release: true); + } + + /// timeIntervalSinceReferenceDate + double get timeIntervalSinceReferenceDate { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + this.ref.pointer, + _sel_timeIntervalSinceReferenceDate, + ) + : _objc_msgSend_1ukqyt8( + this.ref.pointer, + _sel_timeIntervalSinceReferenceDate, + ); + } + + /// Returns a new instance of NSDate constructed with the default `new` method. + factory NSDate() => new$(); +} + +enum NSDecodingFailurePolicy { + NSDecodingFailurePolicyRaiseException(0), + NSDecodingFailurePolicySetErrorAndReturn(1); + + final int value; + const NSDecodingFailurePolicy(this.value); + + static NSDecodingFailurePolicy fromValue(int value) => switch (value) { + 0 => NSDecodingFailurePolicyRaiseException, + 1 => NSDecodingFailurePolicySetErrorAndReturn, + _ => throw ArgumentError( + 'Unknown value for NSDecodingFailurePolicy: $value', + ), + }; +} + +/// NSDictionary +class NSDictionary extends NSObject + with collection.MapBase + implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { + /// Creates a [NSDictionary] from [other]. + static NSDictionary of(Map other) => + NSMutableDictionary.of(other); + + /// Creates a [NSDictionary] from [entries]. + static NSDictionary fromEntries( + Iterable> entries, + ) => NSMutableDictionary.fromEntries(entries); + + @override + int get length => count; + + @override + objc.ObjCObjectBase? operator [](Object? key) => + key is NSCopying ? objectForKey(key) : null; + + @override + Iterable get keys => _NSDictionaryKeyIterable(this); + + @override + Iterable get values => _NSDictionaryValueIterable(this); + + @override + bool containsKey(Object? key) => this[key] != null; + + @override + void operator []=(NSCopying key, objc.ObjCObjectBase value) => + throw UnsupportedError("Cannot modify NSDictionary"); + + @override + void clear() => throw UnsupportedError("Cannot modify NSDictionary"); + + @override + objc.ObjCObjectBase? remove(Object? key) => + throw UnsupportedError("Cannot modify NSDictionary"); + + NSDictionary._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSDictionary] that points to the same underlying object as [other]. + NSDictionary.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSDictionary] that wraps the given raw object pointer. + NSDictionary.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSDictionary]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSDictionary, + ); + } + + /// alloc + static NSDictionary alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_alloc); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSDictionary allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSDictionary, + _sel_allocWithZone_, + zone, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// dictionary + static NSDictionary dictionary() { + final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_dictionary); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// dictionaryWithDictionary: + static NSDictionary dictionaryWithDictionary(NSDictionary dict) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithDictionary_, + dict.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// dictionaryWithObject:forKey: + static NSDictionary dictionaryWithObject( + objc.ObjCObjectBase object, { + required NSCopying forKey, + }) { + final _ret = _objc_msgSend_15qeuct( + _class_NSDictionary, + _sel_dictionaryWithObject_forKey_, + object.ref.pointer, + forKey.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// dictionaryWithObjects:forKeys: + static NSDictionary dictionaryWithObjects( + NSArray objects, { + required NSArray forKeys, + }) { + final _ret = _objc_msgSend_15qeuct( + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// dictionaryWithObjects:forKeys:count: + static NSDictionary dictionaryWithObjects$1( + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required int count, + }) { + final _ret = _objc_msgSend_1dydpdi( + _class_NSDictionary, + _sel_dictionaryWithObjects_forKeys_count_, + objects, + forKeys, + count, + ); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// dictionaryWithObjectsAndKeys: + static NSDictionary dictionaryWithObjectsAndKeys( + objc.ObjCObjectBase firstObject, + ) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSDictionary, + _sel_dictionaryWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSDictionary new$() { + final _ret = _objc_msgSend_151sglz(_class_NSDictionary, _sel_new); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSDictionary, _sel_supportsSecureCoding); + } + + /// count + int get count { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSDictionary init() { + objc.checkOsVersionInternal( + 'NSDictionary.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSDictionary? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithDictionary: + NSDictionary initWithDictionary(NSDictionary otherDictionary) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_, + otherDictionary.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithDictionary:copyItems: + NSDictionary initWithDictionary$1( + NSDictionary otherDictionary, { + required bool copyItems, + }) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_copyItems_, + otherDictionary.ref.pointer, + copyItems, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:forKeys: + NSDictionary initWithObjects(NSArray objects, {required NSArray forKeys}) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:forKeys:count: + NSDictionary initWithObjects$1( + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required int count$1, + }) { + final _ret = _objc_msgSend_1dydpdi( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_count_, + objects, + forKeys, + count$1, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjectsAndKeys: + NSDictionary initWithObjectsAndKeys(objc.ObjCObjectBase firstObject) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return NSDictionary.castFromPointer(_ret, retain: false, release: true); + } + + /// keyEnumerator + NSEnumerator keyEnumerator() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_keyEnumerator); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// objectForKey: + objc.ObjCObjectBase? objectForKey(objc.ObjCObjectBase aKey) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_objectForKey_, + aKey.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSDictionary constructed with the default `new` method. + factory NSDictionary() => new$(); +} + +final class NSEdgeInsets extends ffi.Struct { + @ffi.Double() + external double top; + + @ffi.Double() + external double left; + + @ffi.Double() + external double bottom; + + @ffi.Double() + external double right; +} + +enum NSEnumerationOptions { + NSEnumerationConcurrent(1), + NSEnumerationReverse(2); + + final int value; + const NSEnumerationOptions(this.value); + + static NSEnumerationOptions fromValue(int value) => switch (value) { + 1 => NSEnumerationConcurrent, + 2 => NSEnumerationReverse, + _ => throw ArgumentError('Unknown value for NSEnumerationOptions: $value'), + }; +} + +/// NSEnumerator +class NSEnumerator extends NSObject + implements NSFastEnumeration, Iterator { + objc.ObjCObjectBase? _current; + + @override + objc.ObjCObjectBase get current => _current!; + + @override + @pragma('vm:prefer-inline') + bool moveNext() { + _current = nextObject(); + return _current != null; + } + + NSEnumerator._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSEnumerator] that points to the same underlying object as [other]. + NSEnumerator.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSEnumerator] that wraps the given raw object pointer. + NSEnumerator.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSEnumerator]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSEnumerator, + ); + } + + /// alloc + static NSEnumerator alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSEnumerator, _sel_alloc); + return NSEnumerator.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSEnumerator allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSEnumerator, + _sel_allocWithZone_, + zone, + ); + return NSEnumerator.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSEnumerator new$() { + final _ret = _objc_msgSend_151sglz(_class_NSEnumerator, _sel_new); + return NSEnumerator.castFromPointer(_ret, retain: false, release: true); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// init + NSEnumerator init() { + objc.checkOsVersionInternal( + 'NSEnumerator.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSEnumerator.castFromPointer(_ret, retain: false, release: true); + } + + /// nextObject + objc.ObjCObjectBase? nextObject() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_nextObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSEnumerator constructed with the default `new` method. + factory NSEnumerator() => new$(); +} + +/// NSError +class NSError extends NSObject implements NSCopying, NSSecureCoding { + NSError._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSError] that points to the same underlying object as [other]. + NSError.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSError] that wraps the given raw object pointer. + NSError.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSError]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSError, + ); + } + + /// alloc + static NSError alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSError, _sel_alloc); + return NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSError allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSError, + _sel_allocWithZone_, + zone, + ); + return NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// errorWithDomain:code:userInfo: + static NSError errorWithDomain( + NSString domain, { + required int code, + NSDictionary? userInfo, + }) { + final _ret = _objc_msgSend_rc4ypv( + _class_NSError, + _sel_errorWithDomain_code_userInfo_, + domain.ref.pointer, + code, + userInfo?.ref.pointer ?? ffi.nullptr, + ); + return NSError.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSError new$() { + final _ret = _objc_msgSend_151sglz(_class_NSError, _sel_new); + return NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// setUserInfoValueProviderForDomain:provider: + static void setUserInfoValueProviderForDomain( + NSString errorDomain, { + objc.ObjCBlock? Function(NSError, NSString)>? + provider, + }) { + objc.checkOsVersionInternal( + 'NSError.setUserInfoValueProviderForDomain:provider:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + _objc_msgSend_o762yo( + _class_NSError, + _sel_setUserInfoValueProviderForDomain_provider_, + errorDomain.ref.pointer, + provider?.ref.pointer ?? ffi.nullptr, + ); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSError, _sel_supportsSecureCoding); + } + + /// userInfoValueProviderForDomain: + static objc.ObjCBlock< + ffi.Pointer? Function(NSError, NSString) + >? + userInfoValueProviderForDomain_( + NSError err, { + required NSString userInfoKey, + required NSString errorDomain, + }) { + objc.checkOsVersionInternal( + 'NSError.userInfoValueProviderForDomain:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_cnxxyq( + _class_NSError, + _sel_userInfoValueProviderForDomain_, + err.ref.pointer, + userInfoKey.ref.pointer, + errorDomain.ref.pointer, + ); + return _ret.address == 0 + ? null + : ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// code + int get code { + return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_code); + } + + /// domain + NSString get domain { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_domain); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// helpAnchor + NSString? get helpAnchor { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_helpAnchor); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSError init() { + objc.checkOsVersionInternal( + 'NSError.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSError? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithDomain:code:userInfo: + NSError initWithDomain( + NSString domain$1, { + required int code$1, + NSDictionary? userInfo, + }) { + final _ret = _objc_msgSend_rc4ypv( + this.ref.retainAndReturnPointer(), + _sel_initWithDomain_code_userInfo_, + domain$1.ref.pointer, + code$1, + userInfo?.ref.pointer ?? ffi.nullptr, + ); + return NSError.castFromPointer(_ret, retain: false, release: true); + } + + /// localizedDescription + NSString get localizedDescription { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedDescription, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedFailureReason + NSString? get localizedFailureReason { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedFailureReason, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedRecoveryOptions + NSArray? get localizedRecoveryOptions { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedRecoveryOptions, + ); + return _ret.address == 0 + ? null + : NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedRecoverySuggestion + NSString? get localizedRecoverySuggestion { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedRecoverySuggestion, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// recoveryAttempter + objc.ObjCObjectBase? get recoveryAttempter { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_recoveryAttempter, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// iOS: introduced 14.5.0 + /// macOS: introduced 11.3.0 + NSArray get underlyingErrors { + objc.checkOsVersionInternal( + 'NSError.underlyingErrors', + iOS: (false, (14, 5, 0)), + macOS: (false, (11, 3, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_underlyingErrors); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// userInfo + NSDictionary get userInfo { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSError constructed with the default `new` method. + factory NSError() => new$(); +} + +/// NSExtendedArray +extension NSExtendedArray on NSArray { + /// arrayByAddingObject: + NSArray arrayByAddingObject(objc.ObjCObjectBase anObject) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_arrayByAddingObject_, + anObject.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayByAddingObjectsFromArray: + NSArray arrayByAddingObjectsFromArray(NSArray otherArray) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_arrayByAddingObjectsFromArray_, + otherArray.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// componentsJoinedByString: + NSString componentsJoinedByString(NSString separator) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_componentsJoinedByString_, + separator.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// containsObject: + bool containsObject(objc.ObjCObjectBase anObject) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_containsObject_, + anObject.ref.pointer, + ); + } + + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale:indent: + NSString descriptionWithLocale$1( + objc.ObjCObjectBase? locale, { + required int indent, + }) { + final _ret = _objc_msgSend_1k4kd9s( + this.ref.pointer, + _sel_descriptionWithLocale_indent_, + locale?.ref.pointer ?? ffi.nullptr, + indent, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// enumerateObjectsAtIndexes:options:usingBlock: + void enumerateObjectsAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSArray.enumerateObjectsAtIndexes:options:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_a3wp08( + this.ref.pointer, + _sel_enumerateObjectsAtIndexes_options_usingBlock_, + s.ref.pointer, + options.value, + usingBlock.ref.pointer, + ); + } + + /// enumerateObjectsUsingBlock: + void enumerateObjectsUsingBlock( + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSArray.enumerateObjectsUsingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateObjectsUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateObjectsWithOptions:usingBlock: + void enumerateObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSArray.enumerateObjectsWithOptions:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateObjectsWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// firstObject + objc.ObjCObjectBase? get firstObject { + objc.checkOsVersionInternal( + 'NSArray.firstObject', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_firstObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// firstObjectCommonWithArray: + objc.ObjCObjectBase? firstObjectCommonWithArray(NSArray otherArray) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_firstObjectCommonWithArray_, + otherArray.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// getObjects:range: + void getObjects( + ffi.Pointer> objects, { + required NSRange range, + }) { + _objc_msgSend_o16d3k( + this.ref.pointer, + _sel_getObjects_range_, + objects, + range, + ); + } + + /// indexOfObject: + int indexOfObject(objc.ObjCObjectBase anObject) { + return _objc_msgSend_1vd1c5m( + this.ref.pointer, + _sel_indexOfObject_, + anObject.ref.pointer, + ); + } + + /// indexOfObject:inRange: + int indexOfObject$1( + objc.ObjCObjectBase anObject, { + required NSRange inRange, + }) { + return _objc_msgSend_zug4wi( + this.ref.pointer, + _sel_indexOfObject_inRange_, + anObject.ref.pointer, + inRange, + ); + } + + /// indexOfObject:inSortedRange:options:usingComparator: + int indexOfObject$2( + objc.ObjCObjectBase obj, { + required NSRange inSortedRange, + required NSBinarySearchingOptions options, + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSArray.indexOfObject:inSortedRange:options:usingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_kshx9d( + this.ref.pointer, + _sel_indexOfObject_inSortedRange_options_usingComparator_, + obj.ref.pointer, + inSortedRange, + options.value, + usingComparator.ref.pointer, + ); + } + + /// indexOfObjectAtIndexes:options:passingTest: + int indexOfObjectAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSArray.indexOfObjectAtIndexes:options:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_k1x6mt( + this.ref.pointer, + _sel_indexOfObjectAtIndexes_options_passingTest_, + s.ref.pointer, + options.value, + passingTest.ref.pointer, + ); + } + + /// indexOfObjectIdenticalTo: + int indexOfObjectIdenticalTo(objc.ObjCObjectBase anObject) { + return _objc_msgSend_1vd1c5m( + this.ref.pointer, + _sel_indexOfObjectIdenticalTo_, + anObject.ref.pointer, + ); + } + + /// indexOfObjectIdenticalTo:inRange: + int indexOfObjectIdenticalTo$1( + objc.ObjCObjectBase anObject, { + required NSRange inRange, + }) { + return _objc_msgSend_zug4wi( + this.ref.pointer, + _sel_indexOfObjectIdenticalTo_inRange_, + anObject.ref.pointer, + inRange, + ); + } + + /// indexOfObjectPassingTest: + int indexOfObjectPassingTest( + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSArray.indexOfObjectPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_10mlopr( + this.ref.pointer, + _sel_indexOfObjectPassingTest_, + predicate.ref.pointer, + ); + } + + /// indexOfObjectWithOptions:passingTest: + int indexOfObjectWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSArray.indexOfObjectWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1698hqz( + this.ref.pointer, + _sel_indexOfObjectWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + } + + /// indexesOfObjectsAtIndexes:options:passingTest: + NSIndexSet indexesOfObjectsAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSArray.indexesOfObjectsAtIndexes:options:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1i9v144( + this.ref.pointer, + _sel_indexesOfObjectsAtIndexes_options_passingTest_, + s.ref.pointer, + options.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesOfObjectsPassingTest: + NSIndexSet indexesOfObjectsPassingTest( + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSArray.indexesOfObjectsPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_indexesOfObjectsPassingTest_, + predicate.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesOfObjectsWithOptions:passingTest: + NSIndexSet indexesOfObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSArray.indexesOfObjectsWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_13x5boi( + this.ref.pointer, + _sel_indexesOfObjectsWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// isEqualToArray: + bool isEqualToArray(NSArray otherArray) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToArray_, + otherArray.ref.pointer, + ); + } + + /// lastObject + objc.ObjCObjectBase? get lastObject { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lastObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// makeObjectsPerformSelector: + void makeObjectsPerformSelector(ffi.Pointer aSelector) { + _objc_msgSend_1d9e4oe( + this.ref.pointer, + _sel_makeObjectsPerformSelector_, + aSelector, + ); + } + + /// makeObjectsPerformSelector:withObject: + void makeObjectsPerformSelector$1( + ffi.Pointer aSelector, { + objc.ObjCObjectBase? withObject, + }) { + _objc_msgSend_1qv0eq4( + this.ref.pointer, + _sel_makeObjectsPerformSelector_withObject_, + aSelector, + withObject?.ref.pointer ?? ffi.nullptr, + ); + } + + /// objectAtIndexedSubscript: + objc.ObjCObjectBase objectAtIndexedSubscript(int idx) { + objc.checkOsVersionInternal( + 'NSArray.objectAtIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_objectAtIndexedSubscript_, + idx, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// objectEnumerator + NSEnumerator objectEnumerator() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// objectsAtIndexes: + NSArray objectsAtIndexes(NSIndexSet indexes) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_objectsAtIndexes_, + indexes.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// reverseObjectEnumerator + NSEnumerator reverseObjectEnumerator() { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_reverseObjectEnumerator, + ); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayHint + NSData get sortedArrayHint { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_sortedArrayHint); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayUsingComparator: + NSArray sortedArrayUsingComparator( + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + cmptr, + ) { + objc.checkOsVersionInternal( + 'NSArray.sortedArrayUsingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_sortedArrayUsingComparator_, + cmptr.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayUsingFunction:context: + NSArray sortedArrayUsingFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + comparator, { + required ffi.Pointer context, + }) { + final _ret = _objc_msgSend_1ffoev1( + this.ref.pointer, + _sel_sortedArrayUsingFunction_context_, + comparator, + context, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayUsingFunction:context:hint: + NSArray sortedArrayUsingFunction$1( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + comparator, { + required ffi.Pointer context, + NSData? hint, + }) { + final _ret = _objc_msgSend_1i2r70j( + this.ref.pointer, + _sel_sortedArrayUsingFunction_context_hint_, + comparator, + context, + hint?.ref.pointer ?? ffi.nullptr, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayUsingSelector: + NSArray sortedArrayUsingSelector(ffi.Pointer comparator) { + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_sortedArrayUsingSelector_, + comparator, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayWithOptions:usingComparator: + NSArray sortedArrayWithOptions( + NSSortOptions opts, { + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSArray.sortedArrayWithOptions:usingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1x5ew3h( + this.ref.pointer, + _sel_sortedArrayWithOptions_usingComparator_, + opts.value, + usingComparator.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// subarrayWithRange: + NSArray subarrayWithRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + this.ref.pointer, + _sel_subarrayWithRange_, + range, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// writeToURL:error: + bool writeToURL( + NSURL url, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSArray.writeToURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + return _objc_msgSend_l9p60w( + this.ref.pointer, + _sel_writeToURL_error_, + url.ref.pointer, + error, + ); + } +} + +/// NSExtendedData +extension NSExtendedData on NSData { + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// enumerateByteRangesUsingBlock: + void enumerateByteRangesUsingBlock( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSData.enumerateByteRangesUsingBlock:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateByteRangesUsingBlock_, + block.ref.pointer, + ); + } + + /// getBytes:length: + void getBytes(ffi.Pointer buffer, {required int length}) { + _objc_msgSend_zuf90e( + this.ref.pointer, + _sel_getBytes_length_, + buffer, + length, + ); + } + + /// getBytes:range: + void getBytes$1(ffi.Pointer buffer, {required NSRange range}) { + _objc_msgSend_xpqfd7(this.ref.pointer, _sel_getBytes_range_, buffer, range); + } + + /// isEqualToData: + bool isEqualToData(NSData other) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToData_, + other.ref.pointer, + ); + } + + /// rangeOfData:options:range: + NSRange rangeOfData( + NSData dataToFind, { + required NSDataSearchOptions options, + required NSRange range, + }) { + objc.checkOsVersionInternal( + 'NSData.rangeOfData:options:range:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1d8s65wStret( + _ptr, + this.ref.pointer, + _sel_rangeOfData_options_range_, + dataToFind.ref.pointer, + options.value, + range, + ) + : _ptr.ref = _objc_msgSend_1d8s65w( + this.ref.pointer, + _sel_rangeOfData_options_range_, + dataToFind.ref.pointer, + options.value, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// subdataWithRange: + NSData subdataWithRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + this.ref.pointer, + _sel_subdataWithRange_, + range, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// writeToFile:atomically: + bool writeToFile(NSString path, {required bool atomically}) { + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToFile_atomically_, + path.ref.pointer, + atomically, + ); + } + + /// writeToFile:options:error: + bool writeToFile$1( + NSString path, { + required NSDataWritingOptions options, + required ffi.Pointer> error, + }) { + return _objc_msgSend_1xi08ar( + this.ref.pointer, + _sel_writeToFile_options_error_, + path.ref.pointer, + options.value, + error, + ); + } + + /// writeToURL:atomically: + bool writeToURL(NSURL url, {required bool atomically}) { + return _objc_msgSend_1iyq28l( + this.ref.pointer, + _sel_writeToURL_atomically_, + url.ref.pointer, + atomically, + ); + } + + /// writeToURL:options:error: + bool writeToURL$1( + NSURL url, { + required NSDataWritingOptions options, + required ffi.Pointer> error, + }) { + return _objc_msgSend_1xi08ar( + this.ref.pointer, + _sel_writeToURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + } +} + +/// NSExtendedDate +extension NSExtendedDate on NSDate { + /// timeIntervalSinceReferenceDate + static double getTimeIntervalSinceReferenceDate() { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + _class_NSDate, + _sel_timeIntervalSinceReferenceDate, + ) + : _objc_msgSend_1ukqyt8( + _class_NSDate, + _sel_timeIntervalSinceReferenceDate, + ); + } + + /// compare: + NSComparisonResult compare(NSDate other) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_compare_, + other.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// earlierDate: + NSDate earlierDate(NSDate anotherDate) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_earlierDate_, + anotherDate.ref.pointer, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// isEqualToDate: + bool isEqualToDate(NSDate otherDate) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToDate_, + otherDate.ref.pointer, + ); + } + + /// laterDate: + NSDate laterDate(NSDate anotherDate) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_laterDate_, + anotherDate.ref.pointer, + ); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// timeIntervalSince1970 + double get timeIntervalSince1970 { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + this.ref.pointer, + _sel_timeIntervalSince1970, + ) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeIntervalSince1970); + } + + /// timeIntervalSinceDate: + double timeIntervalSinceDate(NSDate anotherDate) { + return objc.useMsgSendVariants + ? _objc_msgSend_mabicuFpret( + this.ref.pointer, + _sel_timeIntervalSinceDate_, + anotherDate.ref.pointer, + ) + : _objc_msgSend_mabicu( + this.ref.pointer, + _sel_timeIntervalSinceDate_, + anotherDate.ref.pointer, + ); + } + + /// timeIntervalSinceNow + double get timeIntervalSinceNow { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret( + this.ref.pointer, + _sel_timeIntervalSinceNow, + ) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeIntervalSinceNow); + } +} + +/// NSExtendedDictionary +extension NSExtendedDictionary on NSDictionary { + /// allKeys + NSArray get allKeys { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allKeys); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// allKeysForObject: + NSArray allKeysForObject(objc.ObjCObjectBase anObject) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_allKeysForObject_, + anObject.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// allValues + NSArray get allValues { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allValues); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionInStringsFileFormat + NSString get descriptionInStringsFileFormat { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_descriptionInStringsFileFormat, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale:indent: + NSString descriptionWithLocale$1( + objc.ObjCObjectBase? locale, { + required int indent, + }) { + final _ret = _objc_msgSend_1k4kd9s( + this.ref.pointer, + _sel_descriptionWithLocale_indent_, + locale?.ref.pointer ?? ffi.nullptr, + indent, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// enumerateKeysAndObjectsUsingBlock: + void enumerateKeysAndObjectsUsingBlock( + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSDictionary.enumerateKeysAndObjectsUsingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateKeysAndObjectsUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateKeysAndObjectsWithOptions:usingBlock: + void enumerateKeysAndObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.enumerateKeysAndObjectsWithOptions:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateKeysAndObjectsWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// getObjects:andKeys:count: + void getObjects( + ffi.Pointer> objects, { + required ffi.Pointer> andKeys, + required int count, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.getObjects:andKeys:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_n2svg2( + this.ref.pointer, + _sel_getObjects_andKeys_count_, + objects, + andKeys, + count, + ); + } + + /// isEqualToDictionary: + bool isEqualToDictionary(NSDictionary otherDictionary) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToDictionary_, + otherDictionary.ref.pointer, + ); + } + + /// keysOfEntriesPassingTest: + NSSet keysOfEntriesPassingTest( + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSDictionary.keysOfEntriesPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_keysOfEntriesPassingTest_, + predicate.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// keysOfEntriesWithOptions:passingTest: + NSSet keysOfEntriesWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.keysOfEntriesWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_13x5boi( + this.ref.pointer, + _sel_keysOfEntriesWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// keysSortedByValueUsingComparator: + NSArray keysSortedByValueUsingComparator( + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + cmptr, + ) { + objc.checkOsVersionInternal( + 'NSDictionary.keysSortedByValueUsingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_keysSortedByValueUsingComparator_, + cmptr.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// keysSortedByValueUsingSelector: + NSArray keysSortedByValueUsingSelector( + ffi.Pointer comparator, + ) { + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_keysSortedByValueUsingSelector_, + comparator, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// keysSortedByValueWithOptions:usingComparator: + NSArray keysSortedByValueWithOptions( + NSSortOptions opts, { + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.keysSortedByValueWithOptions:usingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1x5ew3h( + this.ref.pointer, + _sel_keysSortedByValueWithOptions_usingComparator_, + opts.value, + usingComparator.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// objectEnumerator + NSEnumerator objectEnumerator() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// objectForKeyedSubscript: + objc.ObjCObjectBase? objectForKeyedSubscript(objc.ObjCObjectBase key) { + objc.checkOsVersionInternal( + 'NSDictionary.objectForKeyedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_objectForKeyedSubscript_, + key.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// objectsForKeys:notFoundMarker: + NSArray objectsForKeys( + NSArray keys, { + required objc.ObjCObjectBase notFoundMarker, + }) { + final _ret = _objc_msgSend_15qeuct( + this.ref.pointer, + _sel_objectsForKeys_notFoundMarker_, + keys.ref.pointer, + notFoundMarker.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// writeToURL:error: + bool writeToURL( + NSURL url, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSDictionary.writeToURL:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + return _objc_msgSend_l9p60w( + this.ref.pointer, + _sel_writeToURL_error_, + url.ref.pointer, + error, + ); + } +} + +/// NSExtendedEnumerator +extension NSExtendedEnumerator on NSEnumerator { + /// allObjects + NSArray get allObjects { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allObjects); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } +} + +/// NSExtendedMutableArray +extension NSExtendedMutableArray on NSMutableArray { + /// addObjectsFromArray: + void addObjectsFromArray(NSArray otherArray) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addObjectsFromArray_, + otherArray.ref.pointer, + ); + } + + /// exchangeObjectAtIndex:withObjectAtIndex: + void exchangeObjectAtIndex(int idx1, {required int withObjectAtIndex}) { + _objc_msgSend_bfp043( + this.ref.pointer, + _sel_exchangeObjectAtIndex_withObjectAtIndex_, + idx1, + withObjectAtIndex, + ); + } + + /// insertObjects:atIndexes: + void insertObjects(NSArray objects, {required NSIndexSet atIndexes}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_insertObjects_atIndexes_, + objects.ref.pointer, + atIndexes.ref.pointer, + ); + } + + /// removeAllObjects + void removeAllObjects() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); + } + + /// removeObject: + void removeObject(objc.ObjCObjectBase anObject) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObject_, + anObject.ref.pointer, + ); + } + + /// removeObject:inRange: + void removeObject$1( + objc.ObjCObjectBase anObject, { + required NSRange inRange, + }) { + _objc_msgSend_1oteutl( + this.ref.pointer, + _sel_removeObject_inRange_, + anObject.ref.pointer, + inRange, + ); + } + + /// removeObjectIdenticalTo: + void removeObjectIdenticalTo(objc.ObjCObjectBase anObject) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectIdenticalTo_, + anObject.ref.pointer, + ); + } + + /// removeObjectIdenticalTo:inRange: + void removeObjectIdenticalTo$1( + objc.ObjCObjectBase anObject, { + required NSRange inRange, + }) { + _objc_msgSend_1oteutl( + this.ref.pointer, + _sel_removeObjectIdenticalTo_inRange_, + anObject.ref.pointer, + inRange, + ); + } + + /// removeObjectsAtIndexes: + void removeObjectsAtIndexes(NSIndexSet indexes) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectsAtIndexes_, + indexes.ref.pointer, + ); + } + + /// removeObjectsInArray: + void removeObjectsInArray(NSArray otherArray) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectsInArray_, + otherArray.ref.pointer, + ); + } + + /// removeObjectsInRange: + void removeObjectsInRange(NSRange range) { + _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeObjectsInRange_, range); + } + + /// replaceObjectsAtIndexes:withObjects: + void replaceObjectsAtIndexes( + NSIndexSet indexes, { + required NSArray withObjects, + }) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_replaceObjectsAtIndexes_withObjects_, + indexes.ref.pointer, + withObjects.ref.pointer, + ); + } + + /// replaceObjectsInRange:withObjectsFromArray: + void replaceObjectsInRange( + NSRange range, { + required NSArray withObjectsFromArray, + }) { + _objc_msgSend_1tv4uax( + this.ref.pointer, + _sel_replaceObjectsInRange_withObjectsFromArray_, + range, + withObjectsFromArray.ref.pointer, + ); + } + + /// replaceObjectsInRange:withObjectsFromArray:range: + void replaceObjectsInRange$1( + NSRange range, { + required NSArray withObjectsFromArray, + required NSRange range$1, + }) { + _objc_msgSend_15bolr3( + this.ref.pointer, + _sel_replaceObjectsInRange_withObjectsFromArray_range_, + range, + withObjectsFromArray.ref.pointer, + range$1, + ); + } + + /// setArray: + void setArray(NSArray otherArray) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setArray_, + otherArray.ref.pointer, + ); + } + + /// setObject:atIndexedSubscript: + void setObject(objc.ObjCObjectBase obj, {required int atIndexedSubscript}) { + objc.checkOsVersionInternal( + 'NSMutableArray.setObject:atIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_setObject_atIndexedSubscript_, + obj.ref.pointer, + atIndexedSubscript, + ); + } + + /// sortUsingComparator: + void sortUsingComparator( + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + cmptr, + ) { + objc.checkOsVersionInternal( + 'NSMutableArray.sortUsingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_sortUsingComparator_, + cmptr.ref.pointer, + ); + } + + /// sortUsingFunction:context: + void sortUsingFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + compare, { + required ffi.Pointer context, + }) { + _objc_msgSend_1bvics1( + this.ref.pointer, + _sel_sortUsingFunction_context_, + compare, + context, + ); + } + + /// sortUsingSelector: + void sortUsingSelector(ffi.Pointer comparator) { + _objc_msgSend_1d9e4oe( + this.ref.pointer, + _sel_sortUsingSelector_, + comparator, + ); + } + + /// sortWithOptions:usingComparator: + void sortWithOptions( + NSSortOptions opts, { + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSMutableArray.sortWithOptions:usingComparator:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_jjgvjt( + this.ref.pointer, + _sel_sortWithOptions_usingComparator_, + opts.value, + usingComparator.ref.pointer, + ); + } +} + +/// NSExtendedMutableData +extension NSExtendedMutableData on NSMutableData { + /// appendBytes:length: + void appendBytes(ffi.Pointer bytes, {required int length}) { + _objc_msgSend_zuf90e( + this.ref.pointer, + _sel_appendBytes_length_, + bytes, + length, + ); + } + + /// appendData: + void appendData(NSData other) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_appendData_, other.ref.pointer); + } + + /// increaseLengthBy: + void increaseLengthBy(int extraLength) { + _objc_msgSend_1i9r4xy( + this.ref.pointer, + _sel_increaseLengthBy_, + extraLength, + ); + } + + /// replaceBytesInRange:withBytes: + void replaceBytesInRange( + NSRange range, { + required ffi.Pointer withBytes, + }) { + _objc_msgSend_eh32gn( + this.ref.pointer, + _sel_replaceBytesInRange_withBytes_, + range, + withBytes, + ); + } + + /// replaceBytesInRange:withBytes:length: + void replaceBytesInRange$1( + NSRange range, { + required ffi.Pointer withBytes, + required int length, + }) { + _objc_msgSend_c0vg4w( + this.ref.pointer, + _sel_replaceBytesInRange_withBytes_length_, + range, + withBytes, + length, + ); + } + + /// resetBytesInRange: + void resetBytesInRange(NSRange range) { + _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_resetBytesInRange_, range); + } + + /// setData: + void setData(NSData data) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setData_, data.ref.pointer); + } +} + +/// NSExtendedMutableDictionary +extension NSExtendedMutableDictionary on NSMutableDictionary { + /// addEntriesFromDictionary: + void addEntriesFromDictionary(NSDictionary otherDictionary) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addEntriesFromDictionary_, + otherDictionary.ref.pointer, + ); + } + + /// removeAllObjects + void removeAllObjects() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); + } + + /// removeObjectsForKeys: + void removeObjectsForKeys(NSArray keyArray) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectsForKeys_, + keyArray.ref.pointer, + ); + } + + /// setDictionary: + void setDictionary(NSDictionary otherDictionary) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setDictionary_, + otherDictionary.ref.pointer, + ); + } + + /// setObject:forKeyedSubscript: + void setObject( + objc.ObjCObjectBase? obj, { + required NSCopying forKeyedSubscript, + }) { + objc.checkOsVersionInternal( + 'NSMutableDictionary.setObject:forKeyedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_setObject_forKeyedSubscript_, + obj?.ref.pointer ?? ffi.nullptr, + forKeyedSubscript.ref.pointer, + ); + } +} + +/// NSExtendedMutableOrderedSet +extension NSExtendedMutableOrderedSet on NSMutableOrderedSet { + /// addObject: + void addObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.addObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addObject_, object.ref.pointer); + } + + /// addObjects:count: + void addObjects( + ffi.Pointer> objects, { + required int count, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.addObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_gcjqkl( + this.ref.pointer, + _sel_addObjects_count_, + objects, + count, + ); + } + + /// addObjectsFromArray: + void addObjectsFromArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.addObjectsFromArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addObjectsFromArray_, + array.ref.pointer, + ); + } + + /// exchangeObjectAtIndex:withObjectAtIndex: + void exchangeObjectAtIndex(int idx1, {required int withObjectAtIndex}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.exchangeObjectAtIndex:withObjectAtIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_bfp043( + this.ref.pointer, + _sel_exchangeObjectAtIndex_withObjectAtIndex_, + idx1, + withObjectAtIndex, + ); + } + + /// insertObjects:atIndexes: + void insertObjects(NSArray objects, {required NSIndexSet atIndexes}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.insertObjects:atIndexes:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_insertObjects_atIndexes_, + objects.ref.pointer, + atIndexes.ref.pointer, + ); + } + + /// intersectOrderedSet: + void intersectOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.intersectOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_intersectOrderedSet_, + other.ref.pointer, + ); + } + + /// intersectSet: + void intersectSet(NSSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.intersectSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_intersectSet_, + other.ref.pointer, + ); + } + + /// minusOrderedSet: + void minusOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.minusOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_minusOrderedSet_, + other.ref.pointer, + ); + } + + /// minusSet: + void minusSet(NSSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.minusSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_minusSet_, other.ref.pointer); + } + + /// moveObjectsAtIndexes:toIndex: + void moveObjectsAtIndexes(NSIndexSet indexes, {required int toIndex}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.moveObjectsAtIndexes:toIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_moveObjectsAtIndexes_toIndex_, + indexes.ref.pointer, + toIndex, + ); + } + + /// removeAllObjects + void removeAllObjects() { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeAllObjects', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); + } + + /// removeObject: + void removeObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObject_, + object.ref.pointer, + ); + } + + /// removeObjectsAtIndexes: + void removeObjectsAtIndexes(NSIndexSet indexes) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectsAtIndexes:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectsAtIndexes_, + indexes.ref.pointer, + ); + } + + /// removeObjectsInArray: + void removeObjectsInArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectsInArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectsInArray_, + array.ref.pointer, + ); + } + + /// removeObjectsInRange: + void removeObjectsInRange(NSRange range) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectsInRange:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeObjectsInRange_, range); + } + + /// replaceObjectsAtIndexes:withObjects: + void replaceObjectsAtIndexes( + NSIndexSet indexes, { + required NSArray withObjects, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.replaceObjectsAtIndexes:withObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_replaceObjectsAtIndexes_withObjects_, + indexes.ref.pointer, + withObjects.ref.pointer, + ); + } + + /// replaceObjectsInRange:withObjects:count: + void replaceObjectsInRange( + NSRange range, { + required ffi.Pointer> withObjects, + required int count, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.replaceObjectsInRange:withObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_122v0cv( + this.ref.pointer, + _sel_replaceObjectsInRange_withObjects_count_, + range, + withObjects, + count, + ); + } + + /// setObject:atIndex: + void setObject(objc.ObjCObjectBase obj, {required int atIndex}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.setObject:atIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_setObject_atIndex_, + obj.ref.pointer, + atIndex, + ); + } + + /// setObject:atIndexedSubscript: + void setObject$1(objc.ObjCObjectBase obj, {required int atIndexedSubscript}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.setObject:atIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_setObject_atIndexedSubscript_, + obj.ref.pointer, + atIndexedSubscript, + ); + } + + /// sortRange:options:usingComparator: + void sortRange( + NSRange range, { + required NSSortOptions options, + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.sortRange:options:usingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_arew0j( + this.ref.pointer, + _sel_sortRange_options_usingComparator_, + range, + options.value, + usingComparator.ref.pointer, + ); + } + + /// sortUsingComparator: + void sortUsingComparator( + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + cmptr, + ) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.sortUsingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_sortUsingComparator_, + cmptr.ref.pointer, + ); + } + + /// sortWithOptions:usingComparator: + void sortWithOptions( + NSSortOptions opts, { + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.sortWithOptions:usingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_jjgvjt( + this.ref.pointer, + _sel_sortWithOptions_usingComparator_, + opts.value, + usingComparator.ref.pointer, + ); + } + + /// unionOrderedSet: + void unionOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.unionOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_unionOrderedSet_, + other.ref.pointer, + ); + } + + /// unionSet: + void unionSet(NSSet other) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.unionSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_unionSet_, other.ref.pointer); + } +} + +/// NSExtendedMutableSet +extension NSExtendedMutableSet on NSMutableSet { + /// addObjectsFromArray: + void addObjectsFromArray(NSArray array) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addObjectsFromArray_, + array.ref.pointer, + ); + } + + /// intersectSet: + void intersectSet(NSSet otherSet) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_intersectSet_, + otherSet.ref.pointer, + ); + } + + /// minusSet: + void minusSet(NSSet otherSet) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_minusSet_, + otherSet.ref.pointer, + ); + } + + /// removeAllObjects + void removeAllObjects() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllObjects); + } + + /// setSet: + void setSet(NSSet otherSet) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setSet_, otherSet.ref.pointer); + } + + /// unionSet: + void unionSet(NSSet otherSet) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_unionSet_, + otherSet.ref.pointer, + ); + } +} + +/// NSExtendedOrderedSet +extension NSExtendedOrderedSet on NSOrderedSet { + /// array + NSArray get array { + objc.checkOsVersionInternal( + 'NSOrderedSet.array', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_array); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// containsObject: + bool containsObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSOrderedSet.containsObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_containsObject_, + object.ref.pointer, + ); + } + + /// description + NSString get description { + objc.checkOsVersionInternal( + 'NSOrderedSet.description', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + objc.checkOsVersionInternal( + 'NSOrderedSet.descriptionWithLocale:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale:indent: + NSString descriptionWithLocale$1( + objc.ObjCObjectBase? locale, { + required int indent, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.descriptionWithLocale:indent:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1k4kd9s( + this.ref.pointer, + _sel_descriptionWithLocale_indent_, + locale?.ref.pointer ?? ffi.nullptr, + indent, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// enumerateObjectsAtIndexes:options:usingBlock: + void enumerateObjectsAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.enumerateObjectsAtIndexes:options:usingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_a3wp08( + this.ref.pointer, + _sel_enumerateObjectsAtIndexes_options_usingBlock_, + s.ref.pointer, + options.value, + usingBlock.ref.pointer, + ); + } + + /// enumerateObjectsUsingBlock: + void enumerateObjectsUsingBlock( + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.enumerateObjectsUsingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateObjectsUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateObjectsWithOptions:usingBlock: + void enumerateObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.enumerateObjectsWithOptions:usingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateObjectsWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// firstObject + objc.ObjCObjectBase? get firstObject { + objc.checkOsVersionInternal( + 'NSOrderedSet.firstObject', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_firstObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// getObjects:range: + void getObjects( + ffi.Pointer> objects, { + required NSRange range, + }) { + _objc_msgSend_o16d3k( + this.ref.pointer, + _sel_getObjects_range_, + objects, + range, + ); + } + + /// indexOfObject:inSortedRange:options:usingComparator: + int indexOfObject( + objc.ObjCObjectBase object, { + required NSRange inSortedRange, + required NSBinarySearchingOptions options, + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObject:inSortedRange:options:usingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_kshx9d( + this.ref.pointer, + _sel_indexOfObject_inSortedRange_options_usingComparator_, + object.ref.pointer, + inSortedRange, + options.value, + usingComparator.ref.pointer, + ); + } + + /// indexOfObjectAtIndexes:options:passingTest: + int indexOfObjectAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObjectAtIndexes:options:passingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_k1x6mt( + this.ref.pointer, + _sel_indexOfObjectAtIndexes_options_passingTest_, + s.ref.pointer, + options.value, + passingTest.ref.pointer, + ); + } + + /// indexOfObjectPassingTest: + int indexOfObjectPassingTest( + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObjectPassingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_10mlopr( + this.ref.pointer, + _sel_indexOfObjectPassingTest_, + predicate.ref.pointer, + ); + } + + /// indexOfObjectWithOptions:passingTest: + int indexOfObjectWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObjectWithOptions:passingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_1698hqz( + this.ref.pointer, + _sel_indexOfObjectWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + } + + /// indexesOfObjectsAtIndexes:options:passingTest: + NSIndexSet indexesOfObjectsAtIndexes( + NSIndexSet s, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexesOfObjectsAtIndexes:options:passingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1i9v144( + this.ref.pointer, + _sel_indexesOfObjectsAtIndexes_options_passingTest_, + s.ref.pointer, + options.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesOfObjectsPassingTest: + NSIndexSet indexesOfObjectsPassingTest( + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexesOfObjectsPassingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_indexesOfObjectsPassingTest_, + predicate.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesOfObjectsWithOptions:passingTest: + NSIndexSet indexesOfObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexesOfObjectsWithOptions:passingTest:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_13x5boi( + this.ref.pointer, + _sel_indexesOfObjectsWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// intersectsOrderedSet: + bool intersectsOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSOrderedSet.intersectsOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_intersectsOrderedSet_, + other.ref.pointer, + ); + } + + /// intersectsSet: + bool intersectsSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.intersectsSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_intersectsSet_, + set$.ref.pointer, + ); + } + + /// isEqualToOrderedSet: + bool isEqualToOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSOrderedSet.isEqualToOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToOrderedSet_, + other.ref.pointer, + ); + } + + /// isSubsetOfOrderedSet: + bool isSubsetOfOrderedSet(NSOrderedSet other) { + objc.checkOsVersionInternal( + 'NSOrderedSet.isSubsetOfOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isSubsetOfOrderedSet_, + other.ref.pointer, + ); + } + + /// isSubsetOfSet: + bool isSubsetOfSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.isSubsetOfSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isSubsetOfSet_, + set$.ref.pointer, + ); + } + + /// lastObject + objc.ObjCObjectBase? get lastObject { + objc.checkOsVersionInternal( + 'NSOrderedSet.lastObject', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lastObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// objectAtIndexedSubscript: + objc.ObjCObjectBase objectAtIndexedSubscript(int idx) { + objc.checkOsVersionInternal( + 'NSOrderedSet.objectAtIndexedSubscript:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_objectAtIndexedSubscript_, + idx, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// objectEnumerator + NSEnumerator objectEnumerator() { + objc.checkOsVersionInternal( + 'NSOrderedSet.objectEnumerator', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// objectsAtIndexes: + NSArray objectsAtIndexes(NSIndexSet indexes) { + objc.checkOsVersionInternal( + 'NSOrderedSet.objectsAtIndexes:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_objectsAtIndexes_, + indexes.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// reverseObjectEnumerator + NSEnumerator reverseObjectEnumerator() { + objc.checkOsVersionInternal( + 'NSOrderedSet.reverseObjectEnumerator', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_reverseObjectEnumerator, + ); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// reversedOrderedSet + NSOrderedSet get reversedOrderedSet { + objc.checkOsVersionInternal( + 'NSOrderedSet.reversedOrderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_reversedOrderedSet, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// set + NSSet get set$ { + objc.checkOsVersionInternal( + 'NSOrderedSet.set', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_set); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayUsingComparator: + NSArray sortedArrayUsingComparator( + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + cmptr, + ) { + objc.checkOsVersionInternal( + 'NSOrderedSet.sortedArrayUsingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_sortedArrayUsingComparator_, + cmptr.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// sortedArrayWithOptions:usingComparator: + NSArray sortedArrayWithOptions( + NSSortOptions opts, { + required objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + usingComparator, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.sortedArrayWithOptions:usingComparator:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1x5ew3h( + this.ref.pointer, + _sel_sortedArrayWithOptions_usingComparator_, + opts.value, + usingComparator.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } +} + +/// NSExtendedSet +extension NSExtendedSet on NSSet { + /// allObjects + NSArray get allObjects { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_allObjects); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// anyObject + objc.ObjCObjectBase? anyObject() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_anyObject); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// containsObject: + bool containsObject(objc.ObjCObjectBase anObject) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_containsObject_, + anObject.ref.pointer, + ); + } + + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// enumerateObjectsUsingBlock: + void enumerateObjectsUsingBlock( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSSet.enumerateObjectsUsingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateObjectsUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateObjectsWithOptions:usingBlock: + void enumerateObjectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSSet.enumerateObjectsWithOptions:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateObjectsWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// intersectsSet: + bool intersectsSet(NSSet otherSet) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_intersectsSet_, + otherSet.ref.pointer, + ); + } + + /// isEqualToSet: + bool isEqualToSet(NSSet otherSet) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToSet_, + otherSet.ref.pointer, + ); + } + + /// isSubsetOfSet: + bool isSubsetOfSet(NSSet otherSet) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isSubsetOfSet_, + otherSet.ref.pointer, + ); + } + + /// makeObjectsPerformSelector: + void makeObjectsPerformSelector(ffi.Pointer aSelector) { + _objc_msgSend_1d9e4oe( + this.ref.pointer, + _sel_makeObjectsPerformSelector_, + aSelector, + ); + } + + /// makeObjectsPerformSelector:withObject: + void makeObjectsPerformSelector$1( + ffi.Pointer aSelector, { + objc.ObjCObjectBase? withObject, + }) { + _objc_msgSend_1qv0eq4( + this.ref.pointer, + _sel_makeObjectsPerformSelector_withObject_, + aSelector, + withObject?.ref.pointer ?? ffi.nullptr, + ); + } + + /// objectsPassingTest: + NSSet objectsPassingTest( + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + predicate, + ) { + objc.checkOsVersionInternal( + 'NSSet.objectsPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_objectsPassingTest_, + predicate.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// objectsWithOptions:passingTest: + NSSet objectsWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSSet.objectsWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_13x5boi( + this.ref.pointer, + _sel_objectsWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setByAddingObject: + NSSet setByAddingObject(objc.ObjCObjectBase anObject) { + objc.checkOsVersionInternal( + 'NSSet.setByAddingObject:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_setByAddingObject_, + anObject.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setByAddingObjectsFromArray: + NSSet setByAddingObjectsFromArray(NSArray other) { + objc.checkOsVersionInternal( + 'NSSet.setByAddingObjectsFromArray:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_setByAddingObjectsFromArray_, + other.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setByAddingObjectsFromSet: + NSSet setByAddingObjectsFromSet(NSSet other) { + objc.checkOsVersionInternal( + 'NSSet.setByAddingObjectsFromSet:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_setByAddingObjectsFromSet_, + other.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } +} + +/// NSFastEnumeration +interface class NSFastEnumeration extends objc.ObjCProtocolBase { + NSFastEnumeration._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSFastEnumeration] that points to the same underlying object as [other]. + NSFastEnumeration.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSFastEnumeration] that wraps the given raw object pointer. + NSFastEnumeration.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSFastEnumeration]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSFastEnumeration, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSFastEnumeration.cast()); + + /// Builds an object that implements the NSFastEnumeration protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSFastEnumeration implement({ + required int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + countByEnumeratingWithState_objects_count_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSFastEnumeration'); + NSFastEnumeration.countByEnumeratingWithState_objects_count_.implement( + builder, + countByEnumeratingWithState_objects_count_, + ); + builder.addProtocol($protocol); + return NSFastEnumeration.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSFastEnumeration protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + countByEnumeratingWithState_objects_count_, + bool $keepIsolateAlive = true, + }) { + NSFastEnumeration.countByEnumeratingWithState_objects_count_.implement( + builder, + countByEnumeratingWithState_objects_count_, + ); + builder.addProtocol($protocol); + } + + /// countByEnumeratingWithState:objects:count: + static final countByEnumeratingWithState_objects_count_ = + objc.ObjCProtocolMethod< + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + >( + _protocol_NSFastEnumeration, + _sel_countByEnumeratingWithState_objects_count_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_17ap02x) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSFastEnumeration, + _sel_countByEnumeratingWithState_objects_count_, + isRequired: true, + isInstanceMethod: true, + ), + ( + int Function( + ffi.Pointer, + ffi.Pointer>, + int, + ) + func, + ) => + ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, + ) => func(arg1, arg2, arg3), + ), + ); +} + +final class NSFastEnumerationState extends ffi.Struct { + @ffi.UnsignedLong() + external int state; + + external ffi.Pointer> itemsPtr; + + external ffi.Pointer mutationsPtr; + + @ffi.Array.multi([5]) + external ffi.Array extra; +} + +/// NSIndexSet +class NSIndexSet extends NSObject + implements NSCopying, NSMutableCopying, NSSecureCoding { + NSIndexSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSIndexSet] that points to the same underlying object as [other]. + NSIndexSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSIndexSet] that wraps the given raw object pointer. + NSIndexSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSIndexSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSIndexSet, + ); + } + + /// alloc + static NSIndexSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_alloc); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSIndexSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSIndexSet, + _sel_allocWithZone_, + zone, + ); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// indexSet + static NSIndexSet indexSet() { + final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_indexSet); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexSetWithIndex: + static NSIndexSet indexSetWithIndex(int value) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSIndexSet, + _sel_indexSetWithIndex_, + value, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexSetWithIndexesInRange: + static NSIndexSet indexSetWithIndexesInRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + _class_NSIndexSet, + _sel_indexSetWithIndexesInRange_, + range, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSIndexSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSIndexSet, _sel_new); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSIndexSet, _sel_supportsSecureCoding); + } + + /// containsIndex: + bool containsIndex(int value) { + return _objc_msgSend_6peh6o(this.ref.pointer, _sel_containsIndex_, value); + } + + /// containsIndexes: + bool containsIndexes(NSIndexSet indexSet$1) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_containsIndexes_, + indexSet$1.ref.pointer, + ); + } + + /// containsIndexesInRange: + bool containsIndexesInRange(NSRange range) { + return _objc_msgSend_p4nurx( + this.ref.pointer, + _sel_containsIndexesInRange_, + range, + ); + } + + /// count + int get count { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); + } + + /// countOfIndexesInRange: + int countOfIndexesInRange(NSRange range) { + objc.checkOsVersionInternal( + 'NSIndexSet.countOfIndexesInRange:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_qm9f5w( + this.ref.pointer, + _sel_countOfIndexesInRange_, + range, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// enumerateIndexesInRange:options:usingBlock: + void enumerateIndexesInRange( + NSRange range, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateIndexesInRange:options:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_177cajs( + this.ref.pointer, + _sel_enumerateIndexesInRange_options_usingBlock_, + range, + options.value, + usingBlock.ref.pointer, + ); + } + + /// enumerateIndexesUsingBlock: + void enumerateIndexesUsingBlock( + objc.ObjCBlock)> + block, + ) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateIndexesUsingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateIndexesUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateIndexesWithOptions:usingBlock: + void enumerateIndexesWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateIndexesWithOptions:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateIndexesWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// enumerateRangesInRange:options:usingBlock: + void enumerateRangesInRange( + NSRange range, { + required NSEnumerationOptions options, + required objc.ObjCBlock)> + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateRangesInRange:options:usingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_177cajs( + this.ref.pointer, + _sel_enumerateRangesInRange_options_usingBlock_, + range, + options.value, + usingBlock.ref.pointer, + ); + } + + /// enumerateRangesUsingBlock: + void enumerateRangesUsingBlock( + objc.ObjCBlock)> block, + ) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateRangesUsingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateRangesUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateRangesWithOptions:usingBlock: + void enumerateRangesWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock)> + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.enumerateRangesWithOptions:usingBlock:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_yx8yc6( + this.ref.pointer, + _sel_enumerateRangesWithOptions_usingBlock_, + opts.value, + usingBlock.ref.pointer, + ); + } + + /// firstIndex + int get firstIndex { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_firstIndex); + } + + /// getIndexes:maxCount:inIndexRange: + int getIndexes( + ffi.Pointer indexBuffer, { + required int maxCount, + required ffi.Pointer inIndexRange, + }) { + return _objc_msgSend_89xgla( + this.ref.pointer, + _sel_getIndexes_maxCount_inIndexRange_, + indexBuffer, + maxCount, + inIndexRange, + ); + } + + /// indexGreaterThanIndex: + int indexGreaterThanIndex(int value) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_indexGreaterThanIndex_, + value, + ); + } + + /// indexGreaterThanOrEqualToIndex: + int indexGreaterThanOrEqualToIndex(int value) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_indexGreaterThanOrEqualToIndex_, + value, + ); + } + + /// indexInRange:options:passingTest: + int indexInRange( + NSRange range, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexInRange:options:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_6jmuyz( + this.ref.pointer, + _sel_indexInRange_options_passingTest_, + range, + options.value, + passingTest.ref.pointer, + ); + } + + /// indexLessThanIndex: + int indexLessThanIndex(int value) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_indexLessThanIndex_, + value, + ); + } + + /// indexLessThanOrEqualToIndex: + int indexLessThanOrEqualToIndex(int value) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_indexLessThanOrEqualToIndex_, + value, + ); + } + + /// indexPassingTest: + int indexPassingTest( + objc.ObjCBlock)> + predicate, + ) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_10mlopr( + this.ref.pointer, + _sel_indexPassingTest_, + predicate.ref.pointer, + ); + } + + /// indexWithOptions:passingTest: + int indexWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1698hqz( + this.ref.pointer, + _sel_indexWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + } + + /// indexesInRange:options:passingTest: + NSIndexSet indexesInRange( + NSRange range, { + required NSEnumerationOptions options, + required objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexesInRange:options:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1q30cs4( + this.ref.pointer, + _sel_indexesInRange_options_passingTest_, + range, + options.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesPassingTest: + NSIndexSet indexesPassingTest( + objc.ObjCBlock)> + predicate, + ) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexesPassingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_indexesPassingTest_, + predicate.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexesWithOptions:passingTest: + NSIndexSet indexesWithOptions( + NSEnumerationOptions opts, { + required objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + passingTest, + }) { + objc.checkOsVersionInternal( + 'NSIndexSet.indexesWithOptions:passingTest:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_13x5boi( + this.ref.pointer, + _sel_indexesWithOptions_passingTest_, + opts.value, + passingTest.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSIndexSet init() { + objc.checkOsVersionInternal( + 'NSIndexSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSIndexSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithIndex: + NSIndexSet initWithIndex(int value) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithIndex_, + value, + ); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithIndexSet: + NSIndexSet initWithIndexSet(NSIndexSet indexSet$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithIndexSet_, + indexSet$1.ref.pointer, + ); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithIndexesInRange: + NSIndexSet initWithIndexesInRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + this.ref.retainAndReturnPointer(), + _sel_initWithIndexesInRange_, + range, + ); + return NSIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// intersectsIndexesInRange: + bool intersectsIndexesInRange(NSRange range) { + return _objc_msgSend_p4nurx( + this.ref.pointer, + _sel_intersectsIndexesInRange_, + range, + ); + } + + /// isEqualToIndexSet: + bool isEqualToIndexSet(NSIndexSet indexSet$1) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToIndexSet_, + indexSet$1.ref.pointer, + ); + } + + /// lastIndex + int get lastIndex { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_lastIndex); + } + + /// Returns a new instance of NSIndexSet constructed with the default `new` method. + factory NSIndexSet() => new$(); +} + +/// NSInputStream +class NSInputStream extends NSStream { + NSInputStream._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSInputStream] that points to the same underlying object as [other]. + NSInputStream.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSInputStream] that wraps the given raw object pointer. + NSInputStream.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSInputStream]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSInputStream, + ); + } + + /// inputStreamWithData: + static NSInputStream? inputStreamWithData(NSData data) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithData_, + data.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSInputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// inputStreamWithFileAtPath: + static NSInputStream? inputStreamWithFileAtPath(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithFileAtPath_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSInputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// inputStreamWithURL: + static NSInputStream? inputStreamWithURL(NSURL url) { + objc.checkOsVersionInternal( + 'NSInputStream.inputStreamWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSInputStream, + _sel_inputStreamWithURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSInputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// getBuffer:length: + bool getBuffer( + ffi.Pointer> buffer, { + required ffi.Pointer length, + }) { + return _objc_msgSend_19lrthf( + this.ref.pointer, + _sel_getBuffer_length_, + buffer, + length, + ); + } + + /// hasBytesAvailable + bool get hasBytesAvailable { + return _objc_msgSend_91o635(this.ref.pointer, _sel_hasBytesAvailable); + } + + /// initWithData: + NSInputStream initWithData(NSData data) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data.ref.pointer, + ); + return NSInputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFileAtPath: + NSInputStream? initWithFileAtPath(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithFileAtPath_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSInputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithURL: + NSInputStream? initWithURL(NSURL url) { + objc.checkOsVersionInternal( + 'NSInputStream.initWithURL:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSInputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// read:maxLength: + int read(ffi.Pointer buffer, {required int maxLength}) { + return _objc_msgSend_11e9f5x( + this.ref.pointer, + _sel_read_maxLength_, + buffer, + maxLength, + ); + } +} + +/// NSInvocation +class NSInvocation extends NSObject { + NSInvocation._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSInvocation] that points to the same underlying object as [other]. + NSInvocation.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSInvocation] that wraps the given raw object pointer. + NSInvocation.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSInvocation]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSInvocation, + ); + } + + /// alloc + static NSInvocation alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSInvocation, _sel_alloc); + return NSInvocation.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSInvocation allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSInvocation, + _sel_allocWithZone_, + zone, + ); + return NSInvocation.castFromPointer(_ret, retain: false, release: true); + } + + /// invocationWithMethodSignature: + static NSInvocation invocationWithMethodSignature(NSMethodSignature sig) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSInvocation, + _sel_invocationWithMethodSignature_, + sig.ref.pointer, + ); + return NSInvocation.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSInvocation new$() { + final _ret = _objc_msgSend_151sglz(_class_NSInvocation, _sel_new); + return NSInvocation.castFromPointer(_ret, retain: false, release: true); + } + + /// argumentsRetained + bool get argumentsRetained { + return _objc_msgSend_91o635(this.ref.pointer, _sel_argumentsRetained); + } + + /// getArgument:atIndex: + void getArgument( + ffi.Pointer argumentLocation, { + required int atIndex, + }) { + _objc_msgSend_unr2j3( + this.ref.pointer, + _sel_getArgument_atIndex_, + argumentLocation, + atIndex, + ); + } + + /// getReturnValue: + void getReturnValue(ffi.Pointer retLoc) { + _objc_msgSend_ovsamd(this.ref.pointer, _sel_getReturnValue_, retLoc); + } + + /// init + NSInvocation init() { + objc.checkOsVersionInternal( + 'NSInvocation.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSInvocation.castFromPointer(_ret, retain: false, release: true); + } + + /// invoke + void invoke() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_invoke); + } + + /// invokeUsingIMP: + void invokeUsingIMP( + ffi.Pointer> imp, + ) { + _objc_msgSend_hk6irj(this.ref.pointer, _sel_invokeUsingIMP_, imp); + } + + /// invokeWithTarget: + void invokeWithTarget(objc.ObjCObjectBase target) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_invokeWithTarget_, + target.ref.pointer, + ); + } + + /// methodSignature + NSMethodSignature get methodSignature { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_methodSignature); + return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); + } + + /// retainArguments + void retainArguments() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_retainArguments); + } + + /// selector + ffi.Pointer get selector { + return _objc_msgSend_1ovaulg(this.ref.pointer, _sel_selector); + } + + /// setArgument:atIndex: + void setArgument( + ffi.Pointer argumentLocation, { + required int atIndex, + }) { + _objc_msgSend_unr2j3( + this.ref.pointer, + _sel_setArgument_atIndex_, + argumentLocation, + atIndex, + ); + } + + /// setReturnValue: + void setReturnValue(ffi.Pointer retLoc) { + _objc_msgSend_ovsamd(this.ref.pointer, _sel_setReturnValue_, retLoc); + } + + /// setSelector: + set selector(ffi.Pointer value) { + _objc_msgSend_1d9e4oe(this.ref.pointer, _sel_setSelector_, value); + } + + /// setTarget: + set target(objc.ObjCObjectBase? value) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setTarget_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// target + objc.ObjCObjectBase? get target { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_target); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSInvocation constructed with the default `new` method. + factory NSInvocation() => new$(); +} + +/// NSItemProvider +class NSItemProvider extends NSObject implements NSCopying { + NSItemProvider._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSItemProvider', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + } + + /// Constructs a [NSItemProvider] that points to the same underlying object as [other]. + NSItemProvider.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSItemProvider] that wraps the given raw object pointer. + NSItemProvider.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSItemProvider]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSItemProvider, + ); + } + + /// alloc + static NSItemProvider alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSItemProvider, _sel_alloc); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSItemProvider allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSItemProvider, + _sel_allocWithZone_, + zone, + ); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSItemProvider new$() { + final _ret = _objc_msgSend_151sglz(_class_NSItemProvider, _sel_new); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// autorelease + NSItemProvider autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSItemProvider.castFromPointer(_ret, retain: true, release: true); + } + + /// canLoadObjectOfClass: + bool canLoadObjectOfClass(NSItemProviderReading aClass) { + objc.checkOsVersionInternal( + 'NSItemProvider.canLoadObjectOfClass:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_canLoadObjectOfClass_, + aClass.ref.pointer, + ); + } + + /// hasItemConformingToTypeIdentifier: + bool hasItemConformingToTypeIdentifier(NSString typeIdentifier) { + objc.checkOsVersionInternal( + 'NSItemProvider.hasItemConformingToTypeIdentifier:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_hasItemConformingToTypeIdentifier_, + typeIdentifier.ref.pointer, + ); + } + + /// hasRepresentationConformingToTypeIdentifier:fileOptions: + bool hasRepresentationConformingToTypeIdentifier( + NSString typeIdentifier, { + required NSItemProviderFileOptions fileOptions, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.hasRepresentationConformingToTypeIdentifier:fileOptions:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + return _objc_msgSend_1wdb8ji( + this.ref.pointer, + _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_, + typeIdentifier.ref.pointer, + fileOptions.value, + ); + } + + /// init + NSItemProvider init() { + objc.checkOsVersionInternal( + 'NSItemProvider.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + NSItemProvider? initWithContentsOfURL(NSURL fileURL) { + objc.checkOsVersionInternal( + 'NSItemProvider.initWithContentsOfURL:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + fileURL.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithItem:typeIdentifier: + NSItemProvider initWithItem( + NSSecureCoding? item, { + NSString? typeIdentifier, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.initWithItem:typeIdentifier:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithItem_typeIdentifier_, + item?.ref.pointer ?? ffi.nullptr, + typeIdentifier?.ref.pointer ?? ffi.nullptr, + ); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObject: + NSItemProvider initWithObject(NSItemProviderWriting object) { + objc.checkOsVersionInternal( + 'NSItemProvider.initWithObject:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_, + object.ref.pointer, + ); + return NSItemProvider.castFromPointer(_ret, retain: false, release: true); + } + + /// loadDataRepresentationForTypeIdentifier:completionHandler: + NSProgress loadDataRepresentationForTypeIdentifier( + NSString typeIdentifier, { + required objc.ObjCBlock + completionHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadDataRepresentationForTypeIdentifier:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_r0bo0s( + this.ref.pointer, + _sel_loadDataRepresentationForTypeIdentifier_completionHandler_, + typeIdentifier.ref.pointer, + completionHandler.ref.pointer, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// loadFileRepresentationForTypeIdentifier:completionHandler: + NSProgress loadFileRepresentationForTypeIdentifier( + NSString typeIdentifier, { + required objc.ObjCBlock + completionHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadFileRepresentationForTypeIdentifier:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_r0bo0s( + this.ref.pointer, + _sel_loadFileRepresentationForTypeIdentifier_completionHandler_, + typeIdentifier.ref.pointer, + completionHandler.ref.pointer, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// loadInPlaceFileRepresentationForTypeIdentifier:completionHandler: + NSProgress loadInPlaceFileRepresentationForTypeIdentifier( + NSString typeIdentifier, { + required objc.ObjCBlock + completionHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_r0bo0s( + this.ref.pointer, + _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_, + typeIdentifier.ref.pointer, + completionHandler.ref.pointer, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// loadItemForTypeIdentifier:options:completionHandler: + void loadItemForTypeIdentifier( + NSString typeIdentifier, { + NSDictionary? options, + objc.ObjCBlock?, NSError)>? + completionHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadItemForTypeIdentifier:options:completionHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_18qun1e( + this.ref.pointer, + _sel_loadItemForTypeIdentifier_options_completionHandler_, + typeIdentifier.ref.pointer, + options?.ref.pointer ?? ffi.nullptr, + completionHandler?.ref.pointer ?? ffi.nullptr, + ); + } + + /// loadObjectOfClass:completionHandler: + NSProgress loadObjectOfClass( + NSItemProviderReading aClass, { + required objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + completionHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.loadObjectOfClass:completionHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_r0bo0s( + this.ref.pointer, + _sel_loadObjectOfClass_completionHandler_, + aClass.ref.pointer, + completionHandler.ref.pointer, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// registerDataRepresentationForTypeIdentifier:visibility:loadHandler: + void registerDataRepresentationForTypeIdentifier( + NSString typeIdentifier, { + required NSItemProviderRepresentationVisibility visibility, + required objc.ObjCBlock< + NSProgress? Function(objc.ObjCBlock) + > + loadHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerDataRepresentationForTypeIdentifier:visibility:loadHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_1pl40xc( + this.ref.pointer, + _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_, + typeIdentifier.ref.pointer, + visibility.value, + loadHandler.ref.pointer, + ); + } + + /// registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler: + void registerFileRepresentationForTypeIdentifier( + NSString typeIdentifier, { + required NSItemProviderFileOptions fileOptions, + required NSItemProviderRepresentationVisibility visibility, + required objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > + loadHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_t7arir( + this.ref.pointer, + _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_, + typeIdentifier.ref.pointer, + fileOptions.value, + visibility.value, + loadHandler.ref.pointer, + ); + } + + /// registerItemForTypeIdentifier:loadHandler: + void registerItemForTypeIdentifier( + NSString typeIdentifier, { + required objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + > + loadHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerItemForTypeIdentifier:loadHandler:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + _objc_msgSend_o762yo( + this.ref.pointer, + _sel_registerItemForTypeIdentifier_loadHandler_, + typeIdentifier.ref.pointer, + loadHandler.ref.pointer, + ); + } + + /// registerObject:visibility: + void registerObject( + NSItemProviderWriting object, { + required NSItemProviderRepresentationVisibility visibility, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerObject:visibility:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_1k745tv( + this.ref.pointer, + _sel_registerObject_visibility_, + object.ref.pointer, + visibility.value, + ); + } + + /// registerObjectOfClass:visibility:loadHandler: + void registerObjectOfClass( + NSItemProviderWriting aClass, { + required NSItemProviderRepresentationVisibility visibility, + required objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + > + loadHandler, + }) { + objc.checkOsVersionInternal( + 'NSItemProvider.registerObjectOfClass:visibility:loadHandler:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_1pl40xc( + this.ref.pointer, + _sel_registerObjectOfClass_visibility_loadHandler_, + aClass.ref.pointer, + visibility.value, + loadHandler.ref.pointer, + ); + } + + /// registeredTypeIdentifiers + NSArray get registeredTypeIdentifiers { + objc.checkOsVersionInternal( + 'NSItemProvider.registeredTypeIdentifiers', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_registeredTypeIdentifiers, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// registeredTypeIdentifiersWithFileOptions: + NSArray registeredTypeIdentifiersWithFileOptions( + NSItemProviderFileOptions fileOptions, + ) { + objc.checkOsVersionInternal( + 'NSItemProvider.registeredTypeIdentifiersWithFileOptions:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_7g3u2y( + this.ref.pointer, + _sel_registeredTypeIdentifiersWithFileOptions_, + fileOptions.value, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// retain + NSItemProvider retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSItemProvider.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSItemProvider self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSItemProvider.castFromPointer(_ret, retain: true, release: true); + } + + /// setSuggestedName: + set suggestedName(NSString? value) { + objc.checkOsVersionInternal( + 'NSItemProvider.setSuggestedName:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 14, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setSuggestedName_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// suggestedName + NSString? get suggestedName { + objc.checkOsVersionInternal( + 'NSItemProvider.suggestedName', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 14, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_suggestedName); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSItemProvider constructed with the default `new` method. + factory NSItemProvider() => new$(); +} + +enum NSItemProviderFileOptions { + NSItemProviderFileOptionOpenInPlace(1); + + final int value; + const NSItemProviderFileOptions(this.value); + + static NSItemProviderFileOptions fromValue(int value) => switch (value) { + 1 => NSItemProviderFileOptionOpenInPlace, + _ => throw ArgumentError( + 'Unknown value for NSItemProviderFileOptions: $value', + ), + }; +} + +/// NSItemProviderReading +interface class NSItemProviderReading extends objc.ObjCProtocolBase + implements NSObjectProtocol { + NSItemProviderReading._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSItemProviderReading] that points to the same underlying object as [other]. + NSItemProviderReading.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSItemProviderReading] that wraps the given raw object pointer. + NSItemProviderReading.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSItemProviderReading]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSItemProviderReading, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSItemProviderReading.cast()); + + /// Builds an object that implements the NSItemProviderReading protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSItemProviderReading implement({bool $keepIsolateAlive = true}) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSItemProviderReading', + ); + + builder.addProtocol($protocol); + return NSItemProviderReading.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSItemProviderReading protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + bool $keepIsolateAlive = true, + }) { + builder.addProtocol($protocol); + } +} + +enum NSItemProviderRepresentationVisibility { + NSItemProviderRepresentationVisibilityAll(0), + NSItemProviderRepresentationVisibilityTeam(1), + NSItemProviderRepresentationVisibilityGroup(2), + NSItemProviderRepresentationVisibilityOwnProcess(3); + + final int value; + const NSItemProviderRepresentationVisibility(this.value); + + static NSItemProviderRepresentationVisibility fromValue(int value) => + switch (value) { + 0 => NSItemProviderRepresentationVisibilityAll, + 1 => NSItemProviderRepresentationVisibilityTeam, + 2 => NSItemProviderRepresentationVisibilityGroup, + 3 => NSItemProviderRepresentationVisibilityOwnProcess, + _ => throw ArgumentError( + 'Unknown value for NSItemProviderRepresentationVisibility: $value', + ), + }; +} + +/// NSItemProviderWriting +interface class NSItemProviderWriting extends objc.ObjCProtocolBase + implements NSObjectProtocol { + NSItemProviderWriting._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSItemProviderWriting] that points to the same underlying object as [other]. + NSItemProviderWriting.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSItemProviderWriting] that wraps the given raw object pointer. + NSItemProviderWriting.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSItemProviderWriting]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSItemProviderWriting, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSItemProviderWriting.cast()); + + /// Builds an object that implements the NSItemProviderWriting protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSItemProviderWriting implement({ + NSItemProviderRepresentationVisibility Function(NSString)? + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + required NSProgress? Function( + NSString, + objc.ObjCBlock, + ) + loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + NSArray Function()? writableTypeIdentifiersForItemProvider, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder( + debugName: 'NSItemProviderWriting', + ); + NSItemProviderWriting + .itemProviderVisibilityForRepresentationWithTypeIdentifier_ + .implement( + builder, + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + ); + NSItemProviderWriting + .loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ + .implement( + builder, + loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + ); + NSItemProviderWriting.writableTypeIdentifiersForItemProvider.implement( + builder, + writableTypeIdentifiersForItemProvider, + ); + builder.addProtocol($protocol); + return NSItemProviderWriting.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSItemProviderWriting protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + NSItemProviderRepresentationVisibility Function(NSString)? + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + required NSProgress? Function( + NSString, + objc.ObjCBlock, + ) + loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + NSArray Function()? writableTypeIdentifiersForItemProvider, + bool $keepIsolateAlive = true, + }) { + NSItemProviderWriting + .itemProviderVisibilityForRepresentationWithTypeIdentifier_ + .implement( + builder, + itemProviderVisibilityForRepresentationWithTypeIdentifier_, + ); + NSItemProviderWriting + .loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ + .implement( + builder, + loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + ); + NSItemProviderWriting.writableTypeIdentifiersForItemProvider.implement( + builder, + writableTypeIdentifiersForItemProvider, + ); + builder.addProtocol($protocol); + } + + /// itemProviderVisibilityForRepresentationWithTypeIdentifier: + static final itemProviderVisibilityForRepresentationWithTypeIdentifier_ = + objc.ObjCProtocolMethod< + NSItemProviderRepresentationVisibility Function(NSString) + >( + _protocol_NSItemProviderWriting, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1ldqghh) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSItemProviderWriting, + _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_, + isRequired: false, + isInstanceMethod: true, + ), + (NSItemProviderRepresentationVisibility Function(NSString) func) => + ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString.fromFunction( + (ffi.Pointer _, NSString arg1) => func(arg1), + ), + ); + + /// loadDataWithTypeIdentifier:forItemProviderCompletionHandler: + static final loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = + objc.ObjCProtocolMethod< + NSProgress? Function( + NSString, + objc.ObjCBlock, + ) + >( + _protocol_NSItemProviderWriting, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1q0i84) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSItemProviderWriting, + _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_, + isRequired: true, + isInstanceMethod: true, + ), + ( + NSProgress? Function( + NSString, + objc.ObjCBlock, + ) + func, + ) => + ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError.fromFunction( + ( + ffi.Pointer _, + NSString arg1, + objc.ObjCBlock arg2, + ) => func(arg1, arg2), + ), + ); + + /// writableTypeIdentifiersForItemProvider + static final writableTypeIdentifiersForItemProvider = + objc.ObjCProtocolMethod( + _protocol_NSItemProviderWriting, + _sel_writableTypeIdentifiersForItemProvider, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSItemProviderWriting, + _sel_writableTypeIdentifiersForItemProvider, + isRequired: false, + isInstanceMethod: true, + ), + (NSArray Function() func) => ObjCBlock_NSArray_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); +} + +enum NSKeyValueChange { + NSKeyValueChangeSetting(1), + NSKeyValueChangeInsertion(2), + NSKeyValueChangeRemoval(3), + NSKeyValueChangeReplacement(4); + + final int value; + const NSKeyValueChange(this.value); + + static NSKeyValueChange fromValue(int value) => switch (value) { + 1 => NSKeyValueChangeSetting, + 2 => NSKeyValueChangeInsertion, + 3 => NSKeyValueChangeRemoval, + 4 => NSKeyValueChangeReplacement, + _ => throw ArgumentError('Unknown value for NSKeyValueChange: $value'), + }; +} + +enum NSKeyValueObservingOptions { + NSKeyValueObservingOptionNew(1), + NSKeyValueObservingOptionOld(2), + NSKeyValueObservingOptionInitial(4), + NSKeyValueObservingOptionPrior(8); + + final int value; + const NSKeyValueObservingOptions(this.value); + + static NSKeyValueObservingOptions fromValue(int value) => switch (value) { + 1 => NSKeyValueObservingOptionNew, + 2 => NSKeyValueObservingOptionOld, + 4 => NSKeyValueObservingOptionInitial, + 8 => NSKeyValueObservingOptionPrior, + _ => throw ArgumentError( + 'Unknown value for NSKeyValueObservingOptions: $value', + ), + }; +} + +enum NSKeyValueSetMutationKind { + NSKeyValueUnionSetMutation(1), + NSKeyValueMinusSetMutation(2), + NSKeyValueIntersectSetMutation(3), + NSKeyValueSetSetMutation(4); + + final int value; + const NSKeyValueSetMutationKind(this.value); + + static NSKeyValueSetMutationKind fromValue(int value) => switch (value) { + 1 => NSKeyValueUnionSetMutation, + 2 => NSKeyValueMinusSetMutation, + 3 => NSKeyValueIntersectSetMutation, + 4 => NSKeyValueSetSetMutation, + _ => throw ArgumentError( + 'Unknown value for NSKeyValueSetMutationKind: $value', + ), + }; +} + +enum NSLinguisticTaggerOptions { + NSLinguisticTaggerOmitWords(1), + NSLinguisticTaggerOmitPunctuation(2), + NSLinguisticTaggerOmitWhitespace(4), + NSLinguisticTaggerOmitOther(8), + NSLinguisticTaggerJoinNames(16); + + final int value; + const NSLinguisticTaggerOptions(this.value); + + static NSLinguisticTaggerOptions fromValue(int value) => switch (value) { + 1 => NSLinguisticTaggerOmitWords, + 2 => NSLinguisticTaggerOmitPunctuation, + 4 => NSLinguisticTaggerOmitWhitespace, + 8 => NSLinguisticTaggerOmitOther, + 16 => NSLinguisticTaggerJoinNames, + _ => throw ArgumentError( + 'Unknown value for NSLinguisticTaggerOptions: $value', + ), + }; +} + +/// NSLocale +class NSLocale extends NSObject implements NSCopying, NSSecureCoding { + NSLocale._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSLocale] that points to the same underlying object as [other]. + NSLocale.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSLocale] that wraps the given raw object pointer. + NSLocale.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSLocale]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSLocale, + ); + } + + /// alloc + static NSLocale alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_alloc); + return NSLocale.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSLocale allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSLocale, + _sel_allocWithZone_, + zone, + ); + return NSLocale.castFromPointer(_ret, retain: false, release: true); + } + + /// localeWithLocaleIdentifier: + static NSLocale localeWithLocaleIdentifier(NSString ident) { + objc.checkOsVersionInternal( + 'NSLocale.localeWithLocaleIdentifier:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSLocale, + _sel_localeWithLocaleIdentifier_, + ident.ref.pointer, + ); + return NSLocale.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSLocale new$() { + final _ret = _objc_msgSend_151sglz(_class_NSLocale, _sel_new); + return NSLocale.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSLocale, _sel_supportsSecureCoding); + } + + /// autorelease + NSLocale autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSLocale.castFromPointer(_ret, retain: true, release: true); + } + + /// displayNameForKey:value: + NSString? displayNameForKey( + NSString key, { + required objc.ObjCObjectBase value, + }) { + final _ret = _objc_msgSend_15qeuct( + this.ref.pointer, + _sel_displayNameForKey_value_, + key.ref.pointer, + value.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSLocale init() { + objc.checkOsVersionInternal( + 'NSLocale.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSLocale.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSLocale? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSLocale.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithLocaleIdentifier: + NSLocale initWithLocaleIdentifier(NSString string) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithLocaleIdentifier_, + string.ref.pointer, + ); + return NSLocale.castFromPointer(_ret, retain: false, release: true); + } + + /// objectForKey: + objc.ObjCObjectBase? objectForKey(NSString key) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_objectForKey_, + key.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// retain + NSLocale retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSLocale.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSLocale self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSLocale.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSLocale constructed with the default `new` method. + factory NSLocale() => new$(); +} + +enum NSLocaleLanguageDirection { + NSLocaleLanguageDirectionUnknown(0), + NSLocaleLanguageDirectionLeftToRight(1), + NSLocaleLanguageDirectionRightToLeft(2), + NSLocaleLanguageDirectionTopToBottom(3), + NSLocaleLanguageDirectionBottomToTop(4); + + final int value; + const NSLocaleLanguageDirection(this.value); + + static NSLocaleLanguageDirection fromValue(int value) => switch (value) { + 0 => NSLocaleLanguageDirectionUnknown, + 1 => NSLocaleLanguageDirectionLeftToRight, + 2 => NSLocaleLanguageDirectionRightToLeft, + 3 => NSLocaleLanguageDirectionTopToBottom, + 4 => NSLocaleLanguageDirectionBottomToTop, + _ => throw ArgumentError( + 'Unknown value for NSLocaleLanguageDirection: $value', + ), + }; +} + +/// NSMethodSignature +class NSMethodSignature extends NSObject { + NSMethodSignature._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMethodSignature] that points to the same underlying object as [other]. + NSMethodSignature.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMethodSignature] that wraps the given raw object pointer. + NSMethodSignature.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMethodSignature]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMethodSignature, + ); + } + + /// alloc + static NSMethodSignature alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_alloc); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSMethodSignature allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMethodSignature, + _sel_allocWithZone_, + zone, + ); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// new + static NSMethodSignature new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMethodSignature, _sel_new); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// signatureWithObjCTypes: + static NSMethodSignature? signatureWithObjCTypes( + ffi.Pointer types, + ) { + final _ret = _objc_msgSend_56zxyn( + _class_NSMethodSignature, + _sel_signatureWithObjCTypes_, + types, + ); + return _ret.address == 0 + ? null + : NSMethodSignature.castFromPointer(_ret, retain: true, release: true); + } + + /// frameLength + int get frameLength { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_frameLength); + } + + /// getArgumentTypeAtIndex: + ffi.Pointer getArgumentTypeAtIndex(int idx) { + return _objc_msgSend_1jtxufi( + this.ref.pointer, + _sel_getArgumentTypeAtIndex_, + idx, + ); + } + + /// init + NSMethodSignature init() { + objc.checkOsVersionInternal( + 'NSMethodSignature.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMethodSignature.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// isOneway + bool isOneway() { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isOneway); + } + + /// methodReturnLength + int get methodReturnLength { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_methodReturnLength); + } + + /// methodReturnType + ffi.Pointer get methodReturnType { + return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_methodReturnType); + } + + /// numberOfArguments + int get numberOfArguments { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_numberOfArguments); + } + + /// Returns a new instance of NSMethodSignature constructed with the default `new` method. + factory NSMethodSignature() => new$(); +} + +/// NSMutableArray +class NSMutableArray extends NSArray + with collection.ListBase { + /// Creates a [NSMutableArray] of the given length with [fill] at each + /// position. + /// + /// The [length] must be a non-negative integer. + static NSMutableArray filled(int length, objc.ObjCObjectBase fill) { + final a = arrayWithCapacity(length); + for (var i = 0; i < length; ++i) a.add(fill); + return a; + } + + /// Creates a [NSMutableArray] from [elements]. + static NSMutableArray of(Iterable elements) => + arrayWithCapacity(elements.length)..addAll(elements); + + @override + set length(int newLength) { + var len = length; + RangeError.checkValueInInterval(newLength, 0, len); + for (; len > newLength; --len) removeLastObject(); + } + + @override + Iterator get iterator => _NSArrayIterator(this); + + @override + objc.ObjCObjectBase operator [](int index) => objectAtIndex(index); + + @override + void operator []=(int index, objc.ObjCObjectBase value) => + replaceObjectAtIndex(index, withObject: value); + + @override + void add(objc.ObjCObjectBase value) => addObject(value); + + NSMutableArray._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableArray] that points to the same underlying object as [other]. + NSMutableArray.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableArray] that wraps the given raw object pointer. + NSMutableArray.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableArray]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableArray, + ); + } + + /// alloc + static NSMutableArray alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_alloc); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSMutableArray allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableArray, + _sel_allocWithZone_, + zone, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// array + static NSMutableArray array() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_array); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithArray: + static NSMutableArray arrayWithArray(NSArray array$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithArray_, + array$1.ref.pointer, + ); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithCapacity: + static NSMutableArray arrayWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableArray, + _sel_arrayWithCapacity_, + numItems, + ); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObject: + static NSMutableArray arrayWithObject(objc.ObjCObjectBase anObject) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithObject_, + anObject.ref.pointer, + ); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObjects: + static NSMutableArray arrayWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableArray, + _sel_arrayWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// arrayWithObjects:count: + static NSMutableArray arrayWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + _class_NSMutableArray, + _sel_arrayWithObjects_count_, + objects, + count, + ); + return NSMutableArray.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSMutableArray new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableArray, _sel_new); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableArray, + _sel_supportsSecureCoding, + ); + } + + /// addObject: + void addObject(objc.ObjCObjectBase anObject) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addObject_, + anObject.ref.pointer, + ); + } + + /// init + NSMutableArray init() { + objc.checkOsVersionInternal( + 'NSMutableArray.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray: + NSMutableArray initWithArray(NSArray array$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array$1.ref.pointer, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + NSMutableArray initWithArray$1(NSArray array$1, {required bool copyItems}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + array$1.ref.pointer, + copyItems, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCapacity: + NSMutableArray initWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSMutableArray? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects: + NSMutableArray initWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:count: + NSMutableArray initWithObjects$1( + ffi.Pointer> objects, { + required int count$1, + }) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count$1, + ); + return NSMutableArray.castFromPointer(_ret, retain: false, release: true); + } + + /// insertObject:atIndex: + void insertObject(objc.ObjCObjectBase anObject, {required int atIndex}) { + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_insertObject_atIndex_, + anObject.ref.pointer, + atIndex, + ); + } + + /// removeLastObject + void removeLastObject() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeLastObject); + } + + /// removeObjectAtIndex: + void removeObjectAtIndex(int index) { + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeObjectAtIndex_, index); + } + + /// replaceObjectAtIndex:withObject: + void replaceObjectAtIndex( + int index, { + required objc.ObjCObjectBase withObject, + }) { + _objc_msgSend_1gypgok( + this.ref.pointer, + _sel_replaceObjectAtIndex_withObject_, + index, + withObject.ref.pointer, + ); + } + + /// Returns a new instance of NSMutableArray constructed with the default `new` method. + factory NSMutableArray() => new$(); +} + +/// NSMutableCopying +interface class NSMutableCopying extends objc.ObjCProtocolBase { + NSMutableCopying._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableCopying] that points to the same underlying object as [other]. + NSMutableCopying.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableCopying] that wraps the given raw object pointer. + NSMutableCopying.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableCopying]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSMutableCopying, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSMutableCopying.cast()); + + /// Builds an object that implements the NSMutableCopying protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSMutableCopying implement({ + required objc.ObjCObjectBase Function(ffi.Pointer) + mutableCopyWithZone_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSMutableCopying'); + NSMutableCopying.mutableCopyWithZone_.implement( + builder, + mutableCopyWithZone_, + ); + builder.addProtocol($protocol); + return NSMutableCopying.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSMutableCopying protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function(ffi.Pointer) + mutableCopyWithZone_, + bool $keepIsolateAlive = true, + }) { + NSMutableCopying.mutableCopyWithZone_.implement( + builder, + mutableCopyWithZone_, + ); + builder.addProtocol($protocol); + } + + /// mutableCopyWithZone: + static final mutableCopyWithZone_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function(ffi.Pointer) + >( + _protocol_NSMutableCopying, + _sel_mutableCopyWithZone_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18nsem0) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSMutableCopying, + _sel_mutableCopyWithZone_, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function(ffi.Pointer) func) => + ObjCBlock_objcObjCObject_ffiVoid_NSZone.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => func(arg1), + ), + ); +} + +/// NSMutableData +class NSMutableData extends NSData { + NSMutableData._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableData] that points to the same underlying object as [other]. + NSMutableData.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableData] that wraps the given raw object pointer. + NSMutableData.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableData]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableData, + ); + } + + /// alloc + static NSMutableData alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_alloc); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSMutableData allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableData, + _sel_allocWithZone_, + zone, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// data + static NSMutableData data() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_data); + return NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytes:length: + static NSMutableData dataWithBytes( + ffi.Pointer bytes, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + _class_NSMutableData, + _sel_dataWithBytes_length_, + bytes, + length, + ); + return NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytesNoCopy:length: + static NSMutableData dataWithBytesNoCopy( + ffi.Pointer bytes, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + _class_NSMutableData, + _sel_dataWithBytesNoCopy_length_, + bytes, + length, + ); + return NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithBytesNoCopy:length:freeWhenDone: + static NSMutableData dataWithBytesNoCopy$1( + ffi.Pointer bytes, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_161ne8y( + _class_NSMutableData, + _sel_dataWithBytesNoCopy_length_freeWhenDone_, + bytes, + length, + freeWhenDone, + ); + return NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithCapacity: + static NSMutableData? dataWithCapacity(int aNumItems) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableData, + _sel_dataWithCapacity_, + aNumItems, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfFile: + static NSMutableData? dataWithContentsOfFile(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableData, + _sel_dataWithContentsOfFile_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfFile:options:error: + static NSMutableData? dataWithContentsOfFile$1( + NSString path, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + _class_NSMutableData, + _sel_dataWithContentsOfFile_options_error_, + path.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfURL: + static NSMutableData? dataWithContentsOfURL(NSURL url) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableData, + _sel_dataWithContentsOfURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithContentsOfURL:options:error: + static NSMutableData? dataWithContentsOfURL$1( + NSURL url, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + _class_NSMutableData, + _sel_dataWithContentsOfURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithData: + static NSMutableData dataWithData(NSData data$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableData, + _sel_dataWithData_, + data$1.ref.pointer, + ); + return NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataWithLength: + static NSMutableData? dataWithLength(int length) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableData, + _sel_dataWithLength_, + length, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSMutableData new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableData, _sel_new); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableData, + _sel_supportsSecureCoding, + ); + } + + /// compressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSMutableData? compressedDataUsingAlgorithm( + NSDataCompressionAlgorithm algorithm, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableData.compressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_compressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// decompressedDataUsingAlgorithm:error: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSMutableData? decompressedDataUsingAlgorithm( + NSDataCompressionAlgorithm algorithm, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableData.decompressedDataUsingAlgorithm:error:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1vnlaqg( + this.ref.pointer, + _sel_decompressedDataUsingAlgorithm_error_, + algorithm.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSMutableData init() { + objc.checkOsVersionInternal( + 'NSMutableData.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBase64EncodedData:options: + NSMutableData? initWithBase64EncodedData( + NSData base64Data, { + required NSDataBase64DecodingOptions options, + }) { + objc.checkOsVersionInternal( + 'NSMutableData.initWithBase64EncodedData:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_7kpg7m( + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedData_options_, + base64Data.ref.pointer, + options.value, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBase64EncodedString:options: + NSMutableData? initWithBase64EncodedString( + NSString base64String, { + required NSDataBase64DecodingOptions options, + }) { + objc.checkOsVersionInternal( + 'NSMutableData.initWithBase64EncodedString:options:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_7kpg7m( + this.ref.retainAndReturnPointer(), + _sel_initWithBase64EncodedString_options_, + base64String.ref.pointer, + options.value, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:length: + NSMutableData initWithBytes( + ffi.Pointer bytes$1, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_, + bytes$1, + length, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length: + NSMutableData initWithBytesNoCopy( + ffi.Pointer bytes$1, { + required int length, + }) { + final _ret = _objc_msgSend_3nbx5e( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_, + bytes$1, + length, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:deallocator: + NSMutableData initWithBytesNoCopy$1( + ffi.Pointer bytes$1, { + required int length, + objc.ObjCBlock, ffi.UnsignedLong)>? + deallocator, + }) { + objc.checkOsVersionInternal( + 'NSMutableData.initWithBytesNoCopy:length:deallocator:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_134vhyh( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_deallocator_, + bytes$1, + length, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:freeWhenDone: + NSMutableData initWithBytesNoCopy$2( + ffi.Pointer bytes$1, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_161ne8y( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_freeWhenDone_, + bytes$1, + length, + freeWhenDone, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCapacity: + NSMutableData? initWithCapacity(int capacity) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + capacity, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSMutableData? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile: + NSMutableData? initWithContentsOfFile(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_, + path.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:options:error: + NSMutableData? initWithContentsOfFile$1( + NSString path, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_options_error_, + path.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL: + NSMutableData? initWithContentsOfURL(NSURL url) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_, + url.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:options:error: + NSMutableData? initWithContentsOfURL$1( + NSURL url, { + required NSDataReadingOptions options, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_8321cp( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithData: + NSMutableData initWithData(NSData data$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithData_, + data$1.ref.pointer, + ); + return NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithLength: + NSMutableData? initWithLength(int length) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithLength_, + length, + ); + return _ret.address == 0 + ? null + : NSMutableData.castFromPointer(_ret, retain: false, release: true); + } + + /// length + int get length { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); + } + + /// mutableBytes + ffi.Pointer get mutableBytes { + return _objc_msgSend_6ex6p5(this.ref.pointer, _sel_mutableBytes); + } + + /// setLength: + set length(int value) { + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_setLength_, value); + } + + /// Returns a new instance of NSMutableData constructed with the default `new` method. + factory NSMutableData() => new$(); +} + +/// NSMutableDictionary +class NSMutableDictionary extends NSDictionary { + /// Creates a [NSMutableDictionary] from [other]. + static NSDictionary of(Map other) => + NSMutableDictionary.dictionaryWithCapacity(other.length)..addAll(other); + + /// Creates a [NSMutableDictionary] from [entries]. + static NSMutableDictionary fromEntries( + Iterable> entries, + ) => + NSMutableDictionary.dictionaryWithCapacity(entries.length) + ..addEntries(entries); + + @override + void clear() => removeAllObjects(); + + @override + objc.ObjCObjectBase? remove(Object? key) { + if (key is! NSCopying) return null; + final old = this[key]; + removeObjectForKey(key); + return old; + } + + @override + void operator []=(NSCopying key, objc.ObjCObjectBase value) => + setObject(value, forKey: NSCopying.castFrom(key)); + + NSMutableDictionary._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableDictionary] that points to the same underlying object as [other]. + NSMutableDictionary.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableDictionary] that wraps the given raw object pointer. + NSMutableDictionary.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableDictionary]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableDictionary, + ); + } + + /// alloc + static NSMutableDictionary alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_alloc); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSMutableDictionary allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableDictionary, + _sel_allocWithZone_, + zone, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// dictionary + static NSMutableDictionary dictionary() { + final _ret = _objc_msgSend_151sglz( + _class_NSMutableDictionary, + _sel_dictionary, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithCapacity: + static NSMutableDictionary dictionaryWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableDictionary, + _sel_dictionaryWithCapacity_, + numItems, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithDictionary: + static NSMutableDictionary dictionaryWithDictionary(NSDictionary dict) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithDictionary_, + dict.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithObject:forKey: + static NSMutableDictionary dictionaryWithObject( + objc.ObjCObjectBase object, { + required NSCopying forKey, + }) { + final _ret = _objc_msgSend_15qeuct( + _class_NSMutableDictionary, + _sel_dictionaryWithObject_forKey_, + object.ref.pointer, + forKey.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithObjects:forKeys: + static NSMutableDictionary dictionaryWithObjects( + NSArray objects, { + required NSArray forKeys, + }) { + final _ret = _objc_msgSend_15qeuct( + _class_NSMutableDictionary, + _sel_dictionaryWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithObjects:forKeys:count: + static NSMutableDictionary dictionaryWithObjects$1( + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required int count, + }) { + final _ret = _objc_msgSend_1dydpdi( + _class_NSMutableDictionary, + _sel_dictionaryWithObjects_forKeys_count_, + objects, + forKeys, + count, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// dictionaryWithObjectsAndKeys: + static NSMutableDictionary dictionaryWithObjectsAndKeys( + objc.ObjCObjectBase firstObject, + ) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableDictionary, + _sel_dictionaryWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// new + static NSMutableDictionary new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableDictionary, _sel_new); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableDictionary, + _sel_supportsSecureCoding, + ); + } + + /// init + NSMutableDictionary init() { + objc.checkOsVersionInternal( + 'NSMutableDictionary.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithCapacity: + NSMutableDictionary initWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithCoder: + NSMutableDictionary? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithDictionary: + NSMutableDictionary initWithDictionary(NSDictionary otherDictionary) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_, + otherDictionary.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithDictionary:copyItems: + NSMutableDictionary initWithDictionary$1( + NSDictionary otherDictionary, { + required bool copyItems, + }) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithDictionary_copyItems_, + otherDictionary.ref.pointer, + copyItems, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObjects:forKeys: + NSMutableDictionary initWithObjects( + NSArray objects, { + required NSArray forKeys, + }) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_, + objects.ref.pointer, + forKeys.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObjects:forKeys:count: + NSMutableDictionary initWithObjects$1( + ffi.Pointer> objects, { + required ffi.Pointer> forKeys, + required int count$1, + }) { + final _ret = _objc_msgSend_1dydpdi( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_forKeys_count_, + objects, + forKeys, + count$1, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObjectsAndKeys: + NSMutableDictionary initWithObjectsAndKeys(objc.ObjCObjectBase firstObject) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjectsAndKeys_, + firstObject.ref.pointer, + ); + return NSMutableDictionary.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// removeObjectForKey: + void removeObjectForKey(objc.ObjCObjectBase aKey) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObjectForKey_, + aKey.ref.pointer, + ); + } + + /// setObject:forKey: + void setObject(objc.ObjCObjectBase anObject, {required NSCopying forKey}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_setObject_forKey_, + anObject.ref.pointer, + forKey.ref.pointer, + ); + } + + /// Returns a new instance of NSMutableDictionary constructed with the default `new` method. + factory NSMutableDictionary() => new$(); +} + +/// NSMutableIndexSet +class NSMutableIndexSet extends NSIndexSet { + NSMutableIndexSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableIndexSet] that points to the same underlying object as [other]. + NSMutableIndexSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableIndexSet] that wraps the given raw object pointer. + NSMutableIndexSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableIndexSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableIndexSet, + ); + } + + /// alloc + static NSMutableIndexSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_alloc); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSMutableIndexSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableIndexSet, + _sel_allocWithZone_, + zone, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// indexSet + static NSMutableIndexSet indexSet() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_indexSet); + return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexSetWithIndex: + static NSMutableIndexSet indexSetWithIndex(int value) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableIndexSet, + _sel_indexSetWithIndex_, + value, + ); + return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// indexSetWithIndexesInRange: + static NSMutableIndexSet indexSetWithIndexesInRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + _class_NSMutableIndexSet, + _sel_indexSetWithIndexesInRange_, + range, + ); + return NSMutableIndexSet.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSMutableIndexSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableIndexSet, _sel_new); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableIndexSet, + _sel_supportsSecureCoding, + ); + } + + /// addIndex: + void addIndex(int value) { + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_addIndex_, value); + } + + /// addIndexes: + void addIndexes(NSIndexSet indexSet) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_addIndexes_, + indexSet.ref.pointer, + ); + } + + /// addIndexesInRange: + void addIndexesInRange(NSRange range) { + _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_addIndexesInRange_, range); + } + + /// init + NSMutableIndexSet init() { + objc.checkOsVersionInternal( + 'NSMutableIndexSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithCoder: + NSMutableIndexSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableIndexSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithIndex: + NSMutableIndexSet initWithIndex(int value) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithIndex_, + value, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithIndexSet: + NSMutableIndexSet initWithIndexSet(NSIndexSet indexSet$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithIndexSet_, + indexSet$1.ref.pointer, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithIndexesInRange: + NSMutableIndexSet initWithIndexesInRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + this.ref.retainAndReturnPointer(), + _sel_initWithIndexesInRange_, + range, + ); + return NSMutableIndexSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// removeAllIndexes + void removeAllIndexes() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllIndexes); + } + + /// removeIndex: + void removeIndex(int value) { + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeIndex_, value); + } + + /// removeIndexes: + void removeIndexes(NSIndexSet indexSet) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeIndexes_, + indexSet.ref.pointer, + ); + } + + /// removeIndexesInRange: + void removeIndexesInRange(NSRange range) { + _objc_msgSend_1e3pm0z(this.ref.pointer, _sel_removeIndexesInRange_, range); + } + + /// shiftIndexesStartingAtIndex:by: + void shiftIndexesStartingAtIndex(int index, {required int by}) { + _objc_msgSend_otx1t4( + this.ref.pointer, + _sel_shiftIndexesStartingAtIndex_by_, + index, + by, + ); + } + + /// Returns a new instance of NSMutableIndexSet constructed with the default `new` method. + factory NSMutableIndexSet() => new$(); +} + +/// NSMutableOrderedSet +class NSMutableOrderedSet extends NSOrderedSet { + NSMutableOrderedSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } + + /// Constructs a [NSMutableOrderedSet] that points to the same underlying object as [other]. + NSMutableOrderedSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableOrderedSet] that wraps the given raw object pointer. + NSMutableOrderedSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableOrderedSet, + ); + } + + /// alloc + static NSMutableOrderedSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_alloc); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSMutableOrderedSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableOrderedSet, + _sel_allocWithZone_, + zone, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// new + static NSMutableOrderedSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableOrderedSet, _sel_new); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// orderedSet + static NSMutableOrderedSet orderedSet() { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSMutableOrderedSet, + _sel_orderedSet, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithArray: + static NSMutableOrderedSet orderedSetWithArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithArray_, + array.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithArray:range:copyItems: + static NSMutableOrderedSet orderedSetWithArray$1( + NSArray array, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + _class_NSMutableOrderedSet, + _sel_orderedSetWithArray_range_copyItems_, + array.ref.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithCapacity: + static NSMutableOrderedSet orderedSetWithCapacity(int numItems) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithCapacity:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableOrderedSet, + _sel_orderedSetWithCapacity_, + numItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithObject: + static NSMutableOrderedSet orderedSetWithObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObject_, + object.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithObjects: + static NSMutableOrderedSet orderedSetWithObjects( + objc.ObjCObjectBase firstObj, + ) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithObjects:count: + static NSMutableOrderedSet orderedSetWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + _class_NSMutableOrderedSet, + _sel_orderedSetWithObjects_count_, + objects, + count, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithOrderedSet: + static NSMutableOrderedSet orderedSetWithOrderedSet(NSOrderedSet set$) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithOrderedSet_, + set$.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithOrderedSet:range:copyItems: + static NSMutableOrderedSet orderedSetWithOrderedSet$1( + NSOrderedSet set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + _class_NSMutableOrderedSet, + _sel_orderedSetWithOrderedSet_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithSet: + static NSMutableOrderedSet orderedSetWithSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableOrderedSet, + _sel_orderedSetWithSet_, + set$.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// orderedSetWithSet:copyItems: + static NSMutableOrderedSet orderedSetWithSet$1( + NSSet set$, { + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.orderedSetWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSMutableOrderedSet, + _sel_orderedSetWithSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableOrderedSet, + _sel_supportsSecureCoding, + ); + } + + /// init + NSMutableOrderedSet init() { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithArray: + NSMutableOrderedSet initWithArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithArray:copyItems: + NSMutableOrderedSet initWithArray$1(NSArray set$, {required bool copyItems}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithArray:range:copyItems: + NSMutableOrderedSet initWithArray$2( + NSArray set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithCapacity: + NSMutableOrderedSet initWithCapacity(int numItems) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithCapacity:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithCoder: + NSMutableOrderedSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObject: + NSMutableOrderedSet initWithObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_, + object.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObjects: + NSMutableOrderedSet initWithObjects(objc.ObjCObjectBase firstObj) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObjects:count: + NSMutableOrderedSet initWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithOrderedSet: + NSMutableOrderedSet initWithOrderedSet(NSOrderedSet set$) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_, + set$.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithOrderedSet:copyItems: + NSMutableOrderedSet initWithOrderedSet$1( + NSOrderedSet set$, { + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithOrderedSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithOrderedSet:range:copyItems: + NSMutableOrderedSet initWithOrderedSet$2( + NSOrderedSet set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithSet: + NSMutableOrderedSet initWithSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set$.ref.pointer, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithSet:copyItems: + NSMutableOrderedSet initWithSet$1(NSSet set$, {required bool copyItems}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.initWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSMutableOrderedSet.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// insertObject:atIndex: + void insertObject(objc.ObjCObjectBase object, {required int atIndex}) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.insertObject:atIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_djsa9o( + this.ref.pointer, + _sel_insertObject_atIndex_, + object.ref.pointer, + atIndex, + ); + } + + /// removeObjectAtIndex: + void removeObjectAtIndex(int idx) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.removeObjectAtIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_removeObjectAtIndex_, idx); + } + + /// replaceObjectAtIndex:withObject: + void replaceObjectAtIndex( + int idx, { + required objc.ObjCObjectBase withObject, + }) { + objc.checkOsVersionInternal( + 'NSMutableOrderedSet.replaceObjectAtIndex:withObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1gypgok( + this.ref.pointer, + _sel_replaceObjectAtIndex_withObject_, + idx, + withObject.ref.pointer, + ); + } + + /// Returns a new instance of NSMutableOrderedSet constructed with the default `new` method. + factory NSMutableOrderedSet() => new$(); +} + +/// NSMutableSet +class NSMutableSet extends NSSet { + /// Creates a [NSMutableSet] from [elements]. + static NSMutableSet of(Iterable elements) => + setWithCapacity(elements.length)..addAll(elements); + + @override + bool add(objc.ObjCObjectBase value) { + final alreadyContains = contains(value); + addObject(value); + return !alreadyContains; + } + + @override + bool remove(Object? value) { + if (value is! objc.ObjCObjectBase) return false; + final alreadyContains = contains(value); + removeObject(value); + return alreadyContains; + } + + @override + void clear() => removeAllObjects(); + + NSMutableSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableSet] that points to the same underlying object as [other]. + NSMutableSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableSet] that wraps the given raw object pointer. + NSMutableSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableSet, + ); + } + + /// alloc + static NSMutableSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_alloc); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSMutableSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableSet, + _sel_allocWithZone_, + zone, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSMutableSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_new); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// set + static NSMutableSet set$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableSet, _sel_set); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithArray: + static NSMutableSet setWithArray(NSArray array) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableSet, + _sel_setWithArray_, + array.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithCapacity: + static NSMutableSet setWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSMutableSet, + _sel_setWithCapacity_, + numItems, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObject: + static NSMutableSet setWithObject(objc.ObjCObjectBase object) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableSet, + _sel_setWithObject_, + object.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObjects: + static NSMutableSet setWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableSet, + _sel_setWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObjects:count: + static NSMutableSet setWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + _class_NSMutableSet, + _sel_setWithObjects_count_, + objects, + count, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithSet: + static NSMutableSet setWithSet(NSSet set$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableSet, + _sel_setWithSet_, + set$1.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSMutableSet, _sel_supportsSecureCoding); + } + + /// addObject: + void addObject(objc.ObjCObjectBase object) { + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_addObject_, object.ref.pointer); + } + + /// init + NSMutableSet init() { + objc.checkOsVersionInternal( + 'NSMutableSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray: + NSMutableSet initWithArray(NSArray array) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCapacity: + NSMutableSet initWithCapacity(int numItems) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithCapacity_, + numItems, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSMutableSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects: + NSMutableSet initWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:count: + NSMutableSet initWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet: + NSMutableSet initWithSet(NSSet set$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set$1.ref.pointer, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + NSMutableSet initWithSet$1(NSSet set$1, {required bool copyItems}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set$1.ref.pointer, + copyItems, + ); + return NSMutableSet.castFromPointer(_ret, retain: false, release: true); + } + + /// removeObject: + void removeObject(objc.ObjCObjectBase object) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeObject_, + object.ref.pointer, + ); + } + + /// Returns a new instance of NSMutableSet constructed with the default `new` method. + factory NSMutableSet() => new$(); +} + +/// NSMutableString +class NSMutableString extends NSString { + NSMutableString._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSMutableString] that points to the same underlying object as [other]. + NSMutableString.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSMutableString] that wraps the given raw object pointer. + NSMutableString.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSMutableString]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSMutableString, + ); + } + + /// alloc + static NSMutableString alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_alloc); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSMutableString allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSMutableString, + _sel_allocWithZone_, + zone, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// localizedStringWithFormat: + static NSMutableString localizedStringWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableString, + _sel_localizedStringWithFormat_, + format.ref.pointer, + ); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: + static NSMutableString? localizedStringWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSMutableString, + _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSMutableString new$() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_new); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static NSMutableString? objectWithItemProviderData( + NSData data, { + required NSString typeIdentifier, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableString.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSMutableString, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// string + static NSMutableString string() { + final _ret = _objc_msgSend_151sglz(_class_NSMutableString, _sel_string); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithCString:encoding: + static NSMutableString? stringWithCString( + ffi.Pointer cString, { + required int encoding, + }) { + final _ret = _objc_msgSend_erqryg( + _class_NSMutableString, + _sel_stringWithCString_encoding_, + cString, + encoding, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithCharacters:length: + static NSMutableString stringWithCharacters( + ffi.Pointer characters, { + required int length, + }) { + final _ret = _objc_msgSend_9x4k8x( + _class_NSMutableString, + _sel_stringWithCharacters_length_, + characters, + length, + ); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfFile:encoding:error: + static NSMutableString? stringWithContentsOfFile( + NSString path, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + _class_NSMutableString, + _sel_stringWithContentsOfFile_encoding_error_, + path.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfFile:usedEncoding:error: + static NSMutableString? stringWithContentsOfFile$1( + NSString path, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + _class_NSMutableString, + _sel_stringWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfURL:encoding:error: + static NSMutableString? stringWithContentsOfURL( + NSURL url, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + _class_NSMutableString, + _sel_stringWithContentsOfURL_encoding_error_, + url.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfURL:usedEncoding:error: + static NSMutableString? stringWithContentsOfURL$1( + NSURL url, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + _class_NSMutableString, + _sel_stringWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithFormat: + static NSMutableString stringWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableString, + _sel_stringWithFormat_, + format.ref.pointer, + ); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithString: + static NSMutableString stringWithString(NSString string$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSMutableString, + _sel_stringWithString_, + string$1.ref.pointer, + ); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithUTF8String: + static NSMutableString? stringWithUTF8String( + ffi.Pointer nullTerminatedCString, + ) { + final _ret = _objc_msgSend_56zxyn( + _class_NSMutableString, + _sel_stringWithUTF8String_, + nullTerminatedCString, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithValidatedFormat:validFormatSpecifiers:error: + static NSMutableString? stringWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableString.stringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSMutableString, + _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635( + _class_NSMutableString, + _sel_supportsSecureCoding, + ); + } + + /// autorelease + NSMutableString autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSMutableString init() { + objc.checkOsVersionInternal( + 'NSMutableString.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:length:encoding: + NSMutableString? initWithBytes( + ffi.Pointer bytes, { + required int length, + required int encoding, + }) { + final _ret = _objc_msgSend_9b3h4v( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_encoding_, + bytes, + length, + encoding, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:encoding:deallocator: + NSMutableString? initWithBytesNoCopy( + ffi.Pointer bytes, { + required int length, + required int encoding, + objc.ObjCBlock, ffi.UnsignedLong)>? + deallocator, + }) { + final _ret = _objc_msgSend_1lbgrac( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_encoding_deallocator_, + bytes, + length, + encoding, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:encoding:freeWhenDone: + NSMutableString? initWithBytesNoCopy$1( + ffi.Pointer bytes, { + required int length, + required int encoding, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_k4j8m3( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, + bytes, + length, + encoding, + freeWhenDone, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCString:encoding: + NSMutableString? initWithCString( + ffi.Pointer nullTerminatedCString, { + required int encoding, + }) { + final _ret = _objc_msgSend_erqryg( + this.ref.retainAndReturnPointer(), + _sel_initWithCString_encoding_, + nullTerminatedCString, + encoding, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharacters:length: + NSMutableString initWithCharacters( + ffi.Pointer characters, { + required int length, + }) { + final _ret = _objc_msgSend_9x4k8x( + this.ref.retainAndReturnPointer(), + _sel_initWithCharacters_length_, + characters, + length, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharactersNoCopy:length:deallocator: + NSMutableString initWithCharactersNoCopy( + ffi.Pointer chars, { + required int length, + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >? + deallocator, + }) { + final _ret = _objc_msgSend_talwei( + this.ref.retainAndReturnPointer(), + _sel_initWithCharactersNoCopy_length_deallocator_, + chars, + length, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharactersNoCopy:length:freeWhenDone: + NSMutableString initWithCharactersNoCopy$1( + ffi.Pointer characters, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_lh0jh5( + this.ref.retainAndReturnPointer(), + _sel_initWithCharactersNoCopy_length_freeWhenDone_, + characters, + length, + freeWhenDone, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSMutableString? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:encoding:error: + NSMutableString? initWithContentsOfFile( + NSString path, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_encoding_error_, + path.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:usedEncoding:error: + NSMutableString? initWithContentsOfFile$1( + NSString path, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:encoding:error: + NSMutableString? initWithContentsOfURL( + NSURL url, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_encoding_error_, + url.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:usedEncoding:error: + NSMutableString? initWithContentsOfURL$1( + NSURL url, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithData:encoding: + NSMutableString? initWithData(NSData data, {required int encoding}) { + final _ret = _objc_msgSend_1k4kd9s( + this.ref.retainAndReturnPointer(), + _sel_initWithData_encoding_, + data.ref.pointer, + encoding, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFormat: + NSMutableString initWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_, + format.ref.pointer, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFormat:locale: + NSMutableString initWithFormat$1( + NSString format, { + objc.ObjCObjectBase? locale, + }) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_locale_, + format.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithString: + NSMutableString initWithString(NSString aString) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithString_, + aString.ref.pointer, + ); + return NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUTF8String: + NSMutableString? initWithUTF8String( + ffi.Pointer nullTerminatedCString, + ) { + final _ret = _objc_msgSend_56zxyn( + this.ref.retainAndReturnPointer(), + _sel_initWithUTF8String_, + nullTerminatedCString, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithValidatedFormat:validFormatSpecifiers:error: + /// + /// iOS: introduced 16.0.0 + /// macOS: introduced 13.0.0 + NSMutableString? initWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithValidatedFormat:validFormatSpecifiers:locale:error: + /// + /// iOS: introduced 16.0.0 + /// macOS: introduced 13.0.0 + NSMutableString? initWithValidatedFormat$1( + NSString format, { + required NSString validFormatSpecifiers, + objc.ObjCObjectBase? locale, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSMutableString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + final _ret = _objc_msgSend_1k0ezzm( + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + error, + ); + return _ret.address == 0 + ? null + : NSMutableString.castFromPointer(_ret, retain: false, release: true); + } + + /// replaceCharactersInRange:withString: + void replaceCharactersInRange(NSRange range, {required NSString withString}) { + _objc_msgSend_1tv4uax( + this.ref.pointer, + _sel_replaceCharactersInRange_withString_, + range, + withString.ref.pointer, + ); + } + + /// retain + NSMutableString retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSMutableString self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSMutableString.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSMutableString constructed with the default `new` method. + factory NSMutableString() => new$(); +} + +/// NSNotification +class NSNotification extends NSObject implements NSCopying, NSCoding { + NSNotification._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSNotification] that points to the same underlying object as [other]. + NSNotification.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSNotification] that wraps the given raw object pointer. + NSNotification.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSNotification]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSNotification, + ); + } + + /// alloc + static NSNotification alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSNotification, _sel_alloc); + return NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSNotification allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSNotification, + _sel_allocWithZone_, + zone, + ); + return NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSNotification new$() { + final _ret = _objc_msgSend_151sglz(_class_NSNotification, _sel_new); + return NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// notificationWithName:object: + static NSNotification notificationWithName( + NSString aName, { + objc.ObjCObjectBase? object, + }) { + final _ret = _objc_msgSend_15qeuct( + _class_NSNotification, + _sel_notificationWithName_object_, + aName.ref.pointer, + object?.ref.pointer ?? ffi.nullptr, + ); + return NSNotification.castFromPointer(_ret, retain: true, release: true); + } + + /// notificationWithName:object:userInfo: + static NSNotification notificationWithName$1( + NSString aName, { + objc.ObjCObjectBase? object, + NSDictionary? userInfo, + }) { + final _ret = _objc_msgSend_11spmsz( + _class_NSNotification, + _sel_notificationWithName_object_userInfo_, + aName.ref.pointer, + object?.ref.pointer ?? ffi.nullptr, + userInfo?.ref.pointer ?? ffi.nullptr, + ); + return NSNotification.castFromPointer(_ret, retain: true, release: true); + } + + /// autorelease + NSNotification autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSNotification.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSNotification init() { + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSNotification? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithName:object:userInfo: + NSNotification initWithName( + NSString name, { + objc.ObjCObjectBase? object, + NSDictionary? userInfo, + }) { + objc.checkOsVersionInternal( + 'NSNotification.initWithName:object:userInfo:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_11spmsz( + this.ref.retainAndReturnPointer(), + _sel_initWithName_object_userInfo_, + name.ref.pointer, + object?.ref.pointer ?? ffi.nullptr, + userInfo?.ref.pointer ?? ffi.nullptr, + ); + return NSNotification.castFromPointer(_ret, retain: false, release: true); + } + + /// name + NSString get name { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_name); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// object + objc.ObjCObjectBase? get object { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_object); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// retain + NSNotification retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSNotification.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSNotification self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSNotification.castFromPointer(_ret, retain: true, release: true); + } + + /// userInfo + NSDictionary? get userInfo { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); + return _ret.address == 0 + ? null + : NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSNotification constructed with the default `new` method. + factory NSNotification() => new$(); +} + +/// NSNumber +class NSNumber extends NSValue { + NSNumber._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSNumber] that points to the same underlying object as [other]. + NSNumber.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSNumber] that wraps the given raw object pointer. + NSNumber.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSNumber]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSNumber, + ); + } + + /// alloc + static NSNumber alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSNumber, _sel_alloc); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSNumber allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSNumber, + _sel_allocWithZone_, + zone, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSNumber new$() { + final _ret = _objc_msgSend_151sglz(_class_NSNumber, _sel_new); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSNumber, _sel_supportsSecureCoding); + } + + /// boolValue + bool get boolValue { + return _objc_msgSend_91o635(this.ref.pointer, _sel_boolValue); + } + + /// charValue + int get charValue { + return _objc_msgSend_xmlz1t(this.ref.pointer, _sel_charValue); + } + + /// compare: + NSComparisonResult compare(NSNumber otherNumber) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_compare_, + otherNumber.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// descriptionWithLocale: + NSString descriptionWithLocale(objc.ObjCObjectBase? locale) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_descriptionWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// doubleValue + double get doubleValue { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_doubleValue) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_doubleValue); + } + + /// floatValue + double get floatValue { + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(this.ref.pointer, _sel_floatValue) + : _objc_msgSend_2cgrxl(this.ref.pointer, _sel_floatValue); + } + + /// init + NSNumber init() { + objc.checkOsVersionInternal( + 'NSNumber.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBool: + NSNumber initWithBool(bool value) { + final _ret = _objc_msgSend_1t6aok9( + this.ref.retainAndReturnPointer(), + _sel_initWithBool_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:objCType: + NSNumber initWithBytes( + ffi.Pointer value, { + required ffi.Pointer objCType, + }) { + final _ret = _objc_msgSend_e9mncn( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_objCType_, + value, + objCType, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithChar: + NSNumber initWithChar(int value) { + final _ret = _objc_msgSend_13mclwd( + this.ref.retainAndReturnPointer(), + _sel_initWithChar_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSNumber? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithDouble: + NSNumber initWithDouble(double value) { + final _ret = _objc_msgSend_oa8mke( + this.ref.retainAndReturnPointer(), + _sel_initWithDouble_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFloat: + NSNumber initWithFloat(double value) { + final _ret = _objc_msgSend_et8cuh( + this.ref.retainAndReturnPointer(), + _sel_initWithFloat_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithInt: + NSNumber initWithInt(int value) { + final _ret = _objc_msgSend_14hvw5k( + this.ref.retainAndReturnPointer(), + _sel_initWithInt_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithInteger: + NSNumber initWithInteger(int value) { + objc.checkOsVersionInternal( + 'NSNumber.initWithInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_qugqlf( + this.ref.retainAndReturnPointer(), + _sel_initWithInteger_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithLong: + NSNumber initWithLong(int value) { + final _ret = _objc_msgSend_qugqlf( + this.ref.retainAndReturnPointer(), + _sel_initWithLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithLongLong: + NSNumber initWithLongLong(int value) { + final _ret = _objc_msgSend_16f0drb( + this.ref.retainAndReturnPointer(), + _sel_initWithLongLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithShort: + NSNumber initWithShort(int value) { + final _ret = _objc_msgSend_68x6r1( + this.ref.retainAndReturnPointer(), + _sel_initWithShort_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedChar: + NSNumber initWithUnsignedChar(int value) { + final _ret = _objc_msgSend_7uautw( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedChar_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedInt: + NSNumber initWithUnsignedInt(int value) { + final _ret = _objc_msgSend_degb40( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedInt_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedInteger: + NSNumber initWithUnsignedInteger(int value) { + objc.checkOsVersionInternal( + 'NSNumber.initWithUnsignedInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedInteger_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedLong: + NSNumber initWithUnsignedLong(int value) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedLongLong: + NSNumber initWithUnsignedLongLong(int value) { + final _ret = _objc_msgSend_1x2hskc( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedLongLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUnsignedShort: + NSNumber initWithUnsignedShort(int value) { + final _ret = _objc_msgSend_1njucl2( + this.ref.retainAndReturnPointer(), + _sel_initWithUnsignedShort_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: false, release: true); + } + + /// intValue + int get intValue { + return _objc_msgSend_13yqbb6(this.ref.pointer, _sel_intValue); + } + + /// integerValue + int get integerValue { + objc.checkOsVersionInternal( + 'NSNumber.integerValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_integerValue); + } + + /// isEqualToNumber: + bool isEqualToNumber(NSNumber number) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToNumber_, + number.ref.pointer, + ); + } + + /// longLongValue + int get longLongValue { + return _objc_msgSend_1k101e3(this.ref.pointer, _sel_longLongValue); + } + + /// longValue + int get longValue { + return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_longValue); + } + + /// shortValue + int get shortValue { + return _objc_msgSend_1jwityx(this.ref.pointer, _sel_shortValue); + } + + /// stringValue + NSString get stringValue { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_stringValue); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// unsignedCharValue + int get unsignedCharValue { + return _objc_msgSend_1ko4qka(this.ref.pointer, _sel_unsignedCharValue); + } + + /// unsignedIntValue + int get unsignedIntValue { + return _objc_msgSend_3pyzne(this.ref.pointer, _sel_unsignedIntValue); + } + + /// unsignedIntegerValue + int get unsignedIntegerValue { + objc.checkOsVersionInternal( + 'NSNumber.unsignedIntegerValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_unsignedIntegerValue); + } + + /// unsignedLongLongValue + int get unsignedLongLongValue { + return _objc_msgSend_1p4gbjy(this.ref.pointer, _sel_unsignedLongLongValue); + } + + /// unsignedLongValue + int get unsignedLongValue { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_unsignedLongValue); + } + + /// unsignedShortValue + int get unsignedShortValue { + return _objc_msgSend_ud8gg(this.ref.pointer, _sel_unsignedShortValue); + } + + /// Returns a new instance of NSNumber constructed with the default `new` method. + factory NSNumber() => new$(); +} + +/// NSNumberCreation +extension NSNumberCreation on NSNumber { + /// numberWithBool: + static NSNumber numberWithBool(bool value) { + final _ret = _objc_msgSend_1t6aok9( + _class_NSNumber, + _sel_numberWithBool_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithChar: + static NSNumber numberWithChar(int value) { + final _ret = _objc_msgSend_13mclwd( + _class_NSNumber, + _sel_numberWithChar_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithDouble: + static NSNumber numberWithDouble(double value) { + final _ret = _objc_msgSend_oa8mke( + _class_NSNumber, + _sel_numberWithDouble_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithFloat: + static NSNumber numberWithFloat(double value) { + final _ret = _objc_msgSend_et8cuh( + _class_NSNumber, + _sel_numberWithFloat_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithInt: + static NSNumber numberWithInt(int value) { + final _ret = _objc_msgSend_14hvw5k( + _class_NSNumber, + _sel_numberWithInt_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithInteger: + static NSNumber numberWithInteger(int value) { + objc.checkOsVersionInternal( + 'NSNumber.numberWithInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_qugqlf( + _class_NSNumber, + _sel_numberWithInteger_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithLong: + static NSNumber numberWithLong(int value) { + final _ret = _objc_msgSend_qugqlf( + _class_NSNumber, + _sel_numberWithLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithLongLong: + static NSNumber numberWithLongLong(int value) { + final _ret = _objc_msgSend_16f0drb( + _class_NSNumber, + _sel_numberWithLongLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithShort: + static NSNumber numberWithShort(int value) { + final _ret = _objc_msgSend_68x6r1( + _class_NSNumber, + _sel_numberWithShort_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedChar: + static NSNumber numberWithUnsignedChar(int value) { + final _ret = _objc_msgSend_7uautw( + _class_NSNumber, + _sel_numberWithUnsignedChar_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedInt: + static NSNumber numberWithUnsignedInt(int value) { + final _ret = _objc_msgSend_degb40( + _class_NSNumber, + _sel_numberWithUnsignedInt_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedInteger: + static NSNumber numberWithUnsignedInteger(int value) { + objc.checkOsVersionInternal( + 'NSNumber.numberWithUnsignedInteger:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + _class_NSNumber, + _sel_numberWithUnsignedInteger_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedLong: + static NSNumber numberWithUnsignedLong(int value) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSNumber, + _sel_numberWithUnsignedLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedLongLong: + static NSNumber numberWithUnsignedLongLong(int value) { + final _ret = _objc_msgSend_1x2hskc( + _class_NSNumber, + _sel_numberWithUnsignedLongLong_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// numberWithUnsignedShort: + static NSNumber numberWithUnsignedShort(int value) { + final _ret = _objc_msgSend_1njucl2( + _class_NSNumber, + _sel_numberWithUnsignedShort_, + value, + ); + return NSNumber.castFromPointer(_ret, retain: true, release: true); + } +} + +/// NSNumberIsFloat +extension NSNumberIsFloat on NSNumber { + /// isFloat + bool get isFloat { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isFloat); + } +} + +/// NSObject +class NSObject extends objc.ObjCObjectBase implements NSObjectProtocol { + NSObject._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSObject', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + } + + /// Constructs a [NSObject] that points to the same underlying object as [other]. + NSObject.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSObject] that wraps the given raw object pointer. + NSObject.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSObject]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSObject, + ); + } + + /// alloc + static NSObject alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_alloc); + return NSObject.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSObject allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSObject, + _sel_allocWithZone_, + zone, + ); + return NSObject.castFromPointer(_ret, retain: false, release: true); + } + + /// class + static objc.ObjCObjectBase class$() { + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_class); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// conformsToProtocol: + static bool conformsToProtocol(Protocol protocol) { + objc.checkOsVersionInternal( + 'NSObject.conformsToProtocol:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _class_NSObject, + _sel_conformsToProtocol_, + protocol.ref.pointer, + ); + } + + /// copyWithZone: + static objc.ObjCObjectBase copyWithZone(ffi.Pointer zone) { + objc.checkOsVersionInternal( + 'NSObject.copyWithZone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1cwp428( + _class_NSObject, + _sel_copyWithZone_, + zone, + ); + return objc.ObjCObjectBase(_ret, retain: false, release: true); + } + + /// debugDescription + static NSString debugDescription() { + objc.checkOsVersionInternal( + 'NSObject.debugDescription', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_debugDescription); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// description + static NSString description() { + objc.checkOsVersionInternal( + 'NSObject.description', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// hash + static int hash() { + objc.checkOsVersionInternal( + 'NSObject.hash', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_xw2lbc(_class_NSObject, _sel_hash); + } + + /// initialize + static void initialize() { + objc.checkOsVersionInternal( + 'NSObject.initialize', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_class_NSObject, _sel_initialize); + } + + /// instanceMethodForSelector: + static ffi.Pointer> + instanceMethodForSelector(ffi.Pointer aSelector) { + objc.checkOsVersionInternal( + 'NSObject.instanceMethodForSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1pa9f4m( + _class_NSObject, + _sel_instanceMethodForSelector_, + aSelector, + ); + } + + /// instanceMethodSignatureForSelector: + static NSMethodSignature instanceMethodSignatureForSelector( + ffi.Pointer aSelector, + ) { + final _ret = _objc_msgSend_3ctkt6( + _class_NSObject, + _sel_instanceMethodSignatureForSelector_, + aSelector, + ); + return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); + } + + /// instancesRespondToSelector: + static bool instancesRespondToSelector( + ffi.Pointer aSelector, + ) { + objc.checkOsVersionInternal( + 'NSObject.instancesRespondToSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1srf6wk( + _class_NSObject, + _sel_instancesRespondToSelector_, + aSelector, + ); + } + + /// isSubclassOfClass: + static bool isSubclassOfClass(objc.ObjCObjectBase aClass) { + objc.checkOsVersionInternal( + 'NSObject.isSubclassOfClass:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_19nvye5( + _class_NSObject, + _sel_isSubclassOfClass_, + aClass.ref.pointer, + ); + } + + /// load + static void load() { + objc.checkOsVersionInternal( + 'NSObject.load', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1pl9qdv(_class_NSObject, _sel_load); + } + + /// mutableCopyWithZone: + static objc.ObjCObjectBase mutableCopyWithZone(ffi.Pointer zone) { + objc.checkOsVersionInternal( + 'NSObject.mutableCopyWithZone:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_1cwp428( + _class_NSObject, + _sel_mutableCopyWithZone_, + zone, + ); + return objc.ObjCObjectBase(_ret, retain: false, release: true); + } + + /// new + static NSObject new$() { + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_new); + return NSObject.castFromPointer(_ret, retain: false, release: true); + } + + /// resolveClassMethod: + static bool resolveClassMethod(ffi.Pointer sel) { + objc.checkOsVersionInternal( + 'NSObject.resolveClassMethod:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1srf6wk( + _class_NSObject, + _sel_resolveClassMethod_, + sel, + ); + } + + /// resolveInstanceMethod: + static bool resolveInstanceMethod(ffi.Pointer sel) { + objc.checkOsVersionInternal( + 'NSObject.resolveInstanceMethod:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1srf6wk( + _class_NSObject, + _sel_resolveInstanceMethod_, + sel, + ); + } + + /// superclass + static objc.ObjCObjectBase superclass() { + objc.checkOsVersionInternal( + 'NSObject.superclass', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz(_class_NSObject, _sel_superclass); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// autorelease + NSObject autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSObject.castFromPointer(_ret, retain: true, release: true); + } + + /// class + objc.ObjCObjectBase class$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_class); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// conformsToProtocol: + bool conformsToProtocol$1(Protocol aProtocol) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_conformsToProtocol_, + aProtocol.ref.pointer, + ); + } + + /// copy + objc.ObjCObjectBase copy() { + objc.checkOsVersionInternal( + 'NSObject.copy', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_copy); + return objc.ObjCObjectBase(_ret, retain: false, release: true); + } + + /// dealloc + void dealloc() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_dealloc); + } + + /// debugDescription + NSString get debugDescription$1 { + if (!objc.respondsToSelector(this.ref.pointer, _sel_debugDescription)) { + throw objc.UnimplementedOptionalMethodException( + 'NSObject', + 'debugDescription', + ); + } + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_debugDescription); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// description + NSString get description$1 { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// doesNotRecognizeSelector: + void doesNotRecognizeSelector(ffi.Pointer aSelector) { + objc.checkOsVersionInternal( + 'NSObject.doesNotRecognizeSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + _objc_msgSend_1d9e4oe( + this.ref.pointer, + _sel_doesNotRecognizeSelector_, + aSelector, + ); + } + + /// forwardInvocation: + void forwardInvocation(NSInvocation anInvocation) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_forwardInvocation_, + anInvocation.ref.pointer, + ); + } + + /// forwardingTargetForSelector: + objc.ObjCObjectBase forwardingTargetForSelector( + ffi.Pointer aSelector, + ) { + objc.checkOsVersionInternal( + 'NSObject.forwardingTargetForSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_forwardingTargetForSelector_, + aSelector, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// hash + int get hash$1 { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_hash); + } + + /// init + NSObject init() { + objc.checkOsVersionInternal( + 'NSObject.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSObject.castFromPointer(_ret, retain: false, release: true); + } + + /// isEqual: + bool isEqual(objc.ObjCObjectBase object) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqual_, + object.ref.pointer, + ); + } + + /// isKindOfClass: + bool isKindOfClass(objc.ObjCObjectBase aClass) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isKindOfClass_, + aClass.ref.pointer, + ); + } + + /// isMemberOfClass: + bool isMemberOfClass(objc.ObjCObjectBase aClass) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isMemberOfClass_, + aClass.ref.pointer, + ); + } + + /// isProxy + bool get isProxy { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isProxy); + } + + /// methodForSelector: + ffi.Pointer> methodForSelector( + ffi.Pointer aSelector, + ) { + objc.checkOsVersionInternal( + 'NSObject.methodForSelector:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + return _objc_msgSend_1pa9f4m( + this.ref.pointer, + _sel_methodForSelector_, + aSelector, + ); + } + + /// methodSignatureForSelector: + NSMethodSignature methodSignatureForSelector( + ffi.Pointer aSelector, + ) { + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_methodSignatureForSelector_, + aSelector, + ); + return NSMethodSignature.castFromPointer(_ret, retain: true, release: true); + } + + /// mutableCopy + objc.ObjCObjectBase mutableCopy() { + objc.checkOsVersionInternal( + 'NSObject.mutableCopy', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_mutableCopy); + return objc.ObjCObjectBase(_ret, retain: false, release: true); + } + + /// performSelector: + objc.ObjCObjectBase performSelector( + ffi.Pointer aSelector, + ) { + final _ret = _objc_msgSend_3ctkt6( + this.ref.pointer, + _sel_performSelector_, + aSelector, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// performSelector:withObject: + objc.ObjCObjectBase performSelector$1( + ffi.Pointer aSelector, { + required objc.ObjCObjectBase withObject, + }) { + final _ret = _objc_msgSend_gx50so( + this.ref.pointer, + _sel_performSelector_withObject_, + aSelector, + withObject.ref.pointer, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// performSelector:withObject:withObject: + objc.ObjCObjectBase performSelector$2( + ffi.Pointer aSelector, { + required objc.ObjCObjectBase withObject, + required objc.ObjCObjectBase withObject$1, + }) { + final _ret = _objc_msgSend_cfx8ce( + this.ref.pointer, + _sel_performSelector_withObject_withObject_, + aSelector, + withObject.ref.pointer, + withObject$1.ref.pointer, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// release + void release() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_release); + } + + /// respondsToSelector: + bool respondsToSelector(ffi.Pointer aSelector) { + return _objc_msgSend_1srf6wk( + this.ref.pointer, + _sel_respondsToSelector_, + aSelector, + ); + } + + /// retain + NSObject retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSObject.castFromPointer(_ret, retain: true, release: true); + } + + /// retainCount + int retainCount() { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_retainCount); + } + + /// self + NSObject self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSObject.castFromPointer(_ret, retain: true, release: true); + } + + /// superclass + objc.ObjCObjectBase get superclass$1 { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_superclass); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// zone + ffi.Pointer zone() { + return _objc_msgSend_sz90oi(this.ref.pointer, _sel_zone); + } + + /// Returns a new instance of NSObject constructed with the default `new` method. + factory NSObject() => new$(); +} + +/// NSObject +interface class NSObjectProtocol extends objc.ObjCProtocolBase { + NSObjectProtocol._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSObjectProtocol] that points to the same underlying object as [other]. + NSObjectProtocol.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSObjectProtocol] that wraps the given raw object pointer. + NSObjectProtocol.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSObjectProtocol]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSObject, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSObject.cast()); + + /// Builds an object that implements the NSObject protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSObjectProtocol implement({ + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implement(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + return NSObjectProtocol.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSObject protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implement(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSObject protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSObjectProtocol implementAsListener({ + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implementAsListener(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + return NSObjectProtocol.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSObject protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implementAsListener(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSObject protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSObjectProtocol implementAsBlocking({ + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSObject'); + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implementAsBlocking(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + return NSObjectProtocol.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSObject protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required objc.ObjCObjectBase Function() autorelease, + required objc.ObjCObjectBase Function() class$, + required bool Function(Protocol) conformsToProtocol_, + NSString Function()? debugDescription, + required NSString Function() description, + required int Function() hash, + required bool Function(objc.ObjCObjectBase) isEqual_, + required bool Function(objc.ObjCObjectBase) isKindOfClass_, + required bool Function(objc.ObjCObjectBase) isMemberOfClass_, + required bool Function() isProxy, + required objc.ObjCObjectBase Function(ffi.Pointer) + performSelector_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + performSelector_withObject_, + required objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + performSelector_withObject_withObject_, + required void Function() release, + required bool Function(ffi.Pointer) respondsToSelector_, + required objc.ObjCObjectBase Function() retain, + required int Function() retainCount, + required objc.ObjCObjectBase Function() self$1, + required objc.ObjCObjectBase Function() superclass, + required ffi.Pointer Function() zone, + bool $keepIsolateAlive = true, + }) { + NSObjectProtocol.autorelease.implement(builder, autorelease); + NSObjectProtocol.class$.implement(builder, class$); + NSObjectProtocol.conformsToProtocol_.implement( + builder, + conformsToProtocol_, + ); + NSObjectProtocol.debugDescription.implement(builder, debugDescription); + NSObjectProtocol.description.implement(builder, description); + NSObjectProtocol.hash.implement(builder, hash); + NSObjectProtocol.isEqual_.implement(builder, isEqual_); + NSObjectProtocol.isKindOfClass_.implement(builder, isKindOfClass_); + NSObjectProtocol.isMemberOfClass_.implement(builder, isMemberOfClass_); + NSObjectProtocol.isProxy.implement(builder, isProxy); + NSObjectProtocol.performSelector_.implement(builder, performSelector_); + NSObjectProtocol.performSelector_withObject_.implement( + builder, + performSelector_withObject_, + ); + NSObjectProtocol.performSelector_withObject_withObject_.implement( + builder, + performSelector_withObject_withObject_, + ); + NSObjectProtocol.release.implementAsBlocking(builder, release); + NSObjectProtocol.respondsToSelector_.implement( + builder, + respondsToSelector_, + ); + NSObjectProtocol.retain.implement(builder, retain); + NSObjectProtocol.retainCount.implement(builder, retainCount); + NSObjectProtocol.self$1.implement(builder, self$1); + NSObjectProtocol.superclass.implement(builder, superclass); + NSObjectProtocol.zone.implement(builder, zone); + builder.addProtocol($protocol); + } + + /// autorelease + static final autorelease = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_autorelease, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_autorelease, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// class + static final class$ = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_class, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_class, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// conformsToProtocol: + static final conformsToProtocol_ = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_conformsToProtocol_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_conformsToProtocol_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(Protocol) func) => + ObjCBlock_bool_ffiVoid_Protocol.fromFunction( + (ffi.Pointer _, Protocol arg1) => func(arg1), + ), + ); + + /// debugDescription + static final debugDescription = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_debugDescription, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_debugDescription, + isRequired: false, + isInstanceMethod: true, + ), + (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// description + static final description = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_description, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_description, + isRequired: true, + isInstanceMethod: true, + ), + (NSString Function() func) => ObjCBlock_NSString_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// hash + static final hash = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_hash, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1ckyi24) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_hash, + isRequired: true, + isInstanceMethod: true, + ), + (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// isEqual: + static final isEqual_ = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_isEqual_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isEqual_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.ObjCObjectBase) func) => + ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( + (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), + ), + ); + + /// isKindOfClass: + static final isKindOfClass_ = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_isKindOfClass_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isKindOfClass_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.ObjCObjectBase) func) => + ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( + (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), + ), + ); + + /// isMemberOfClass: + static final isMemberOfClass_ = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_isMemberOfClass_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_3su7tt) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isMemberOfClass_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(objc.ObjCObjectBase) func) => + ObjCBlock_bool_ffiVoid_objcObjCObject.fromFunction( + (ffi.Pointer _, objc.ObjCObjectBase arg1) => func(arg1), + ), + ); + + /// isProxy + static final isProxy = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_isProxy, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_e3qsqz) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_isProxy, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function() func) => ObjCBlock_bool_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// performSelector: + static final performSelector_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function(ffi.Pointer) + >( + _protocol_NSObject, + _sel_performSelector_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_50as9u) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_performSelector_, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function(ffi.Pointer) func) => + ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + ); + + /// performSelector:withObject: + static final performSelector_withObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + >( + _protocol_NSObject, + _sel_performSelector_withObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mllhpc) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_performSelector_withObject_, + isRequired: true, + isInstanceMethod: true, + ), + ( + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + ) + func, + ) => + ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + ) => func(arg1, arg2), + ), + ); + + /// performSelector:withObject:withObject: + static final performSelector_withObject_withObject_ = + objc.ObjCProtocolMethod< + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + >( + _protocol_NSObject, + _sel_performSelector_withObject_withObject_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_c7gk2u) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_performSelector_withObject_withObject_, + isRequired: true, + isInstanceMethod: true, + ), + ( + objc.ObjCObjectBase Function( + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + func, + ) => + ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject.fromFunction( + ( + ffi.Pointer _, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + objc.ObjCObjectBase arg3, + ) => func(arg1, arg2, arg3), + ), + ); + + /// release + static final release = objc.ObjCProtocolListenableMethod( + _protocol_NSObject, + _sel_release, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_ovsamd) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_release, + isRequired: true, + isInstanceMethod: true, + ), + (void Function() func) => ObjCBlock_ffiVoid_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + (void Function() func) => + ObjCBlock_ffiVoid_ffiVoid.listener((ffi.Pointer _) => func()), + (void Function() func) => + ObjCBlock_ffiVoid_ffiVoid.blocking((ffi.Pointer _) => func()), + ); + + /// respondsToSelector: + static final respondsToSelector_ = + objc.ObjCProtocolMethod)>( + _protocol_NSObject, + _sel_respondsToSelector_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_w1e3k0) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_respondsToSelector_, + isRequired: true, + isInstanceMethod: true, + ), + (bool Function(ffi.Pointer) func) => + ObjCBlock_bool_ffiVoid_objcObjCSelector.fromFunction( + (ffi.Pointer _, ffi.Pointer arg1) => + func(arg1), + ), + ); + + /// retain + static final retain = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_retain, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_retain, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// retainCount + static final retainCount = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_retainCount, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1ckyi24) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_retainCount, + isRequired: true, + isInstanceMethod: true, + ), + (int Function() func) => ObjCBlock_NSUInteger_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// self + static final self$1 = objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_self, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_self, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// superclass + static final superclass = + objc.ObjCProtocolMethod( + _protocol_NSObject, + _sel_superclass, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1mbt9g9) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_superclass, + isRequired: true, + isInstanceMethod: true, + ), + (objc.ObjCObjectBase Function() func) => + ObjCBlock_objcObjCObject_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); + + /// zone + static final zone = objc.ObjCProtocolMethod Function()>( + _protocol_NSObject, + _sel_zone, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1a8cl66) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSObject, + _sel_zone, + isRequired: true, + isInstanceMethod: true, + ), + (ffi.Pointer Function() func) => + ObjCBlock_NSZone_ffiVoid.fromFunction( + (ffi.Pointer _) => func(), + ), + ); +} + +/// NSOrderedCollectionChange +/// +/// iOS: introduced 13.0.0 +/// macOS: introduced 10.15.0 +class NSOrderedCollectionChange extends NSObject { + NSOrderedCollectionChange._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + } + + /// Constructs a [NSOrderedCollectionChange] that points to the same underlying object as [other]. + NSOrderedCollectionChange.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSOrderedCollectionChange] that wraps the given raw object pointer. + NSOrderedCollectionChange.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSOrderedCollectionChange]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOrderedCollectionChange, + ); + } + + /// alloc + static NSOrderedCollectionChange alloc() { + final _ret = _objc_msgSend_151sglz( + _class_NSOrderedCollectionChange, + _sel_alloc, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSOrderedCollectionChange allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSOrderedCollectionChange, + _sel_allocWithZone_, + zone, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// changeWithObject:type:index: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + static NSOrderedCollectionChange changeWithObject( + objc.ObjCObjectBase? anObject, { + required NSCollectionChangeType type, + required int index, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.changeWithObject:type:index:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_vbymrb( + _class_NSOrderedCollectionChange, + _sel_changeWithObject_type_index_, + anObject?.ref.pointer ?? ffi.nullptr, + type.value, + index, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// changeWithObject:type:index:associatedIndex: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + static NSOrderedCollectionChange changeWithObject$1( + objc.ObjCObjectBase? anObject, { + required NSCollectionChangeType type, + required int index, + required int associatedIndex, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.changeWithObject:type:index:associatedIndex:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1egc1c( + _class_NSOrderedCollectionChange, + _sel_changeWithObject_type_index_associatedIndex_, + anObject?.ref.pointer ?? ffi.nullptr, + type.value, + index, + associatedIndex, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// new + static NSOrderedCollectionChange new$() { + final _ret = _objc_msgSend_151sglz( + _class_NSOrderedCollectionChange, + _sel_new, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + int get associatedIndex { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.associatedIndex', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_associatedIndex); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSCollectionChangeType get changeType { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.changeType', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_hc8exi(this.ref.pointer, _sel_changeType); + return NSCollectionChangeType.fromValue(_ret); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + int get index { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.index', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_index); + } + + /// init + NSOrderedCollectionChange init() { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObject:type:index: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionChange initWithObject( + objc.ObjCObjectBase? anObject, { + required NSCollectionChangeType type, + required int index$1, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.initWithObject:type:index:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_vbymrb( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_type_index_, + anObject?.ref.pointer ?? ffi.nullptr, + type.value, + index$1, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithObject:type:index:associatedIndex: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionChange initWithObject$1( + objc.ObjCObjectBase? anObject, { + required NSCollectionChangeType type, + required int index$1, + required int associatedIndex$1, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.initWithObject:type:index:associatedIndex:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1egc1c( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_type_index_associatedIndex_, + anObject?.ref.pointer ?? ffi.nullptr, + type.value, + index$1, + associatedIndex$1, + ); + return NSOrderedCollectionChange.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + objc.ObjCObjectBase? get object { + objc.checkOsVersionInternal( + 'NSOrderedCollectionChange.object', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_object); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSOrderedCollectionChange constructed with the default `new` method. + factory NSOrderedCollectionChange() => new$(); +} + +/// NSOrderedCollectionDifference +/// +/// iOS: introduced 13.0.0 +/// macOS: introduced 10.15.0 +class NSOrderedCollectionDifference extends NSObject + implements NSFastEnumeration { + NSOrderedCollectionDifference._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + } + + /// Constructs a [NSOrderedCollectionDifference] that points to the same underlying object as [other]. + NSOrderedCollectionDifference.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSOrderedCollectionDifference] that wraps the given raw object pointer. + NSOrderedCollectionDifference.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSOrderedCollectionDifference]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOrderedCollectionDifference, + ); + } + + /// alloc + static NSOrderedCollectionDifference alloc() { + final _ret = _objc_msgSend_151sglz( + _class_NSOrderedCollectionDifference, + _sel_alloc, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// allocWithZone: + static NSOrderedCollectionDifference allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSOrderedCollectionDifference, + _sel_allocWithZone_, + zone, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// new + static NSOrderedCollectionDifference new$() { + final _ret = _objc_msgSend_151sglz( + _class_NSOrderedCollectionDifference, + _sel_new, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// differenceByTransformingChangesWithBlock: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionDifference differenceByTransformingChangesWithBlock( + objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + > + block, + ) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.differenceByTransformingChangesWithBlock:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.pointer, + _sel_differenceByTransformingChangesWithBlock_, + block.ref.pointer, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + bool get hasChanges { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.hasChanges', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_hasChanges); + } + + /// init + NSOrderedCollectionDifference init() { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithChanges: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionDifference initWithChanges(NSArray changes) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.initWithChanges:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithChanges_, + changes.ref.pointer, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionDifference initWithInsertIndexes( + NSIndexSet inserts, { + NSArray? insertedObjects, + required NSIndexSet removeIndexes, + NSArray? removedObjects, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_s92gih( + this.ref.retainAndReturnPointer(), + _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_, + inserts.ref.pointer, + insertedObjects?.ref.pointer ?? ffi.nullptr, + removeIndexes.ref.pointer, + removedObjects?.ref.pointer ?? ffi.nullptr, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges: + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionDifference initWithInsertIndexes$1( + NSIndexSet inserts, { + NSArray? insertedObjects, + required NSIndexSet removeIndexes, + NSArray? removedObjects, + required NSArray additionalChanges, + }) { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_3cbdpb( + this.ref.retainAndReturnPointer(), + _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_, + inserts.ref.pointer, + insertedObjects?.ref.pointer ?? ffi.nullptr, + removeIndexes.ref.pointer, + removedObjects?.ref.pointer ?? ffi.nullptr, + additionalChanges.ref.pointer, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: false, + release: true, + ); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSArray get insertions { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.insertions', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_insertions); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// inverseDifference + /// + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSOrderedCollectionDifference inverseDifference() { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.inverseDifference', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_inverseDifference, + ); + return NSOrderedCollectionDifference.castFromPointer( + _ret, + retain: true, + release: true, + ); + } + + /// iOS: introduced 13.0.0 + /// macOS: introduced 10.15.0 + NSArray get removals { + objc.checkOsVersionInternal( + 'NSOrderedCollectionDifference.removals', + iOS: (false, (13, 0, 0)), + macOS: (false, (10, 15, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_removals); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSOrderedCollectionDifference constructed with the default `new` method. + factory NSOrderedCollectionDifference() => new$(); +} + +/// iOS: introduced 13.0.0 +/// macOS: introduced 10.15.0 +enum NSOrderedCollectionDifferenceCalculationOptions { + NSOrderedCollectionDifferenceCalculationOmitInsertedObjects(1), + NSOrderedCollectionDifferenceCalculationOmitRemovedObjects(2), + NSOrderedCollectionDifferenceCalculationInferMoves(4); + + final int value; + const NSOrderedCollectionDifferenceCalculationOptions(this.value); + + static NSOrderedCollectionDifferenceCalculationOptions fromValue( + int value, + ) => switch (value) { + 1 => NSOrderedCollectionDifferenceCalculationOmitInsertedObjects, + 2 => NSOrderedCollectionDifferenceCalculationOmitRemovedObjects, + 4 => NSOrderedCollectionDifferenceCalculationInferMoves, + _ => throw ArgumentError( + 'Unknown value for NSOrderedCollectionDifferenceCalculationOptions: $value', + ), + }; +} + +/// NSOrderedSet +class NSOrderedSet extends NSObject + implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { + NSOrderedSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release) { + objc.checkOsVersionInternal( + 'NSOrderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + } + + /// Constructs a [NSOrderedSet] that points to the same underlying object as [other]. + NSOrderedSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSOrderedSet] that wraps the given raw object pointer. + NSOrderedSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSOrderedSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOrderedSet, + ); + } + + /// alloc + static NSOrderedSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_alloc); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSOrderedSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSOrderedSet, + _sel_allocWithZone_, + zone, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSOrderedSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_new); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// orderedSet + static NSOrderedSet orderedSet() { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSet', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_151sglz(_class_NSOrderedSet, _sel_orderedSet); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithArray: + static NSOrderedSet orderedSetWithArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithArray_, + array.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithArray:range:copyItems: + static NSOrderedSet orderedSetWithArray$1( + NSArray array, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + _class_NSOrderedSet, + _sel_orderedSetWithArray_range_copyItems_, + array.ref.pointer, + range, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithObject: + static NSOrderedSet orderedSetWithObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithObject_, + object.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithObjects: + static NSOrderedSet orderedSetWithObjects(objc.ObjCObjectBase firstObj) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithObjects_, + firstObj.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithObjects:count: + static NSOrderedSet orderedSetWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + _class_NSOrderedSet, + _sel_orderedSetWithObjects_count_, + objects, + count, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet: + static NSOrderedSet orderedSetWithOrderedSet(NSOrderedSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_, + set$.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithOrderedSet:range:copyItems: + static NSOrderedSet orderedSetWithOrderedSet$1( + NSOrderedSet set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + _class_NSOrderedSet, + _sel_orderedSetWithOrderedSet_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithSet: + static NSOrderedSet orderedSetWithSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + _class_NSOrderedSet, + _sel_orderedSetWithSet_, + set$.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// orderedSetWithSet:copyItems: + static NSOrderedSet orderedSetWithSet$1( + NSSet set$, { + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.orderedSetWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSOrderedSet, + _sel_orderedSetWithSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSOrderedSet, _sel_supportsSecureCoding); + } + + /// count + int get count { + objc.checkOsVersionInternal( + 'NSOrderedSet.count', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// indexOfObject: + int indexOfObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSOrderedSet.indexOfObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_1vd1c5m( + this.ref.pointer, + _sel_indexOfObject_, + object.ref.pointer, + ); + } + + /// init + NSOrderedSet init() { + objc.checkOsVersionInternal( + 'NSOrderedSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray: + NSOrderedSet initWithArray(NSArray array) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray:copyItems: + NSOrderedSet initWithArray$1(NSArray set$, {required bool copyItems}) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray:range:copyItems: + NSOrderedSet initWithArray$2( + NSArray set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithArray:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSOrderedSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObject: + NSOrderedSet initWithObject(objc.ObjCObjectBase object) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObject:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObject_, + object.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects: + NSOrderedSet initWithObjects(objc.ObjCObjectBase firstObj) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObjects:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:count: + NSOrderedSet initWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithObjects:count:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithOrderedSet: + NSOrderedSet initWithOrderedSet(NSOrderedSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_, + set$.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithOrderedSet:copyItems: + NSOrderedSet initWithOrderedSet$1( + NSOrderedSet set$, { + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithOrderedSet:range:copyItems: + NSOrderedSet initWithOrderedSet$2( + NSOrderedSet set$, { + required NSRange range, + required bool copyItems, + }) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithOrderedSet:range:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_w9bq5x( + this.ref.retainAndReturnPointer(), + _sel_initWithOrderedSet_range_copyItems_, + set$.ref.pointer, + range, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet: + NSOrderedSet initWithSet(NSSet set$) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set$.ref.pointer, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + NSOrderedSet initWithSet$1(NSSet set$, {required bool copyItems}) { + objc.checkOsVersionInternal( + 'NSOrderedSet.initWithSet:copyItems:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set$.ref.pointer, + copyItems, + ); + return NSOrderedSet.castFromPointer(_ret, retain: false, release: true); + } + + /// objectAtIndex: + objc.ObjCObjectBase objectAtIndex(int idx) { + objc.checkOsVersionInternal( + 'NSOrderedSet.objectAtIndex:', + iOS: (false, (5, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_objectAtIndex_, + idx, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSOrderedSet constructed with the default `new` method. + factory NSOrderedSet() => new$(); +} + +/// NSOutputStream +class NSOutputStream extends NSStream { + NSOutputStream._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSOutputStream] that points to the same underlying object as [other]. + NSOutputStream.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSOutputStream] that wraps the given raw object pointer. + NSOutputStream.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSOutputStream]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSOutputStream, + ); + } + + /// outputStreamToBuffer:capacity: + static NSOutputStream outputStreamToBuffer( + ffi.Pointer buffer, { + required int capacity, + }) { + final _ret = _objc_msgSend_158ju31( + _class_NSOutputStream, + _sel_outputStreamToBuffer_capacity_, + buffer, + capacity, + ); + return NSOutputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// outputStreamToFileAtPath:append: + static NSOutputStream outputStreamToFileAtPath( + NSString path, { + required bool append, + }) { + final _ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamToFileAtPath_append_, + path.ref.pointer, + append, + ); + return NSOutputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// outputStreamToMemory + static NSOutputStream outputStreamToMemory() { + final _ret = _objc_msgSend_151sglz( + _class_NSOutputStream, + _sel_outputStreamToMemory, + ); + return NSOutputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// outputStreamWithURL:append: + static NSOutputStream? outputStreamWithURL( + NSURL url, { + required bool append, + }) { + objc.checkOsVersionInternal( + 'NSOutputStream.outputStreamWithURL:append:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSOutputStream, + _sel_outputStreamWithURL_append_, + url.ref.pointer, + append, + ); + return _ret.address == 0 + ? null + : NSOutputStream.castFromPointer(_ret, retain: true, release: true); + } + + /// hasSpaceAvailable + bool get hasSpaceAvailable { + return _objc_msgSend_91o635(this.ref.pointer, _sel_hasSpaceAvailable); + } + + /// initToBuffer:capacity: + NSOutputStream initToBuffer( + ffi.Pointer buffer, { + required int capacity, + }) { + final _ret = _objc_msgSend_158ju31( + this.ref.retainAndReturnPointer(), + _sel_initToBuffer_capacity_, + buffer, + capacity, + ); + return NSOutputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// initToFileAtPath:append: + NSOutputStream? initToFileAtPath(NSString path, {required bool append}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initToFileAtPath_append_, + path.ref.pointer, + append, + ); + return _ret.address == 0 + ? null + : NSOutputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// initToMemory + NSOutputStream initToMemory() { + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_initToMemory, + ); + return NSOutputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithURL:append: + NSOutputStream? initWithURL(NSURL url, {required bool append}) { + objc.checkOsVersionInternal( + 'NSOutputStream.initWithURL:append:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithURL_append_, + url.ref.pointer, + append, + ); + return _ret.address == 0 + ? null + : NSOutputStream.castFromPointer(_ret, retain: false, release: true); + } + + /// write:maxLength: + int write(ffi.Pointer buffer, {required int maxLength}) { + return _objc_msgSend_11e9f5x( + this.ref.pointer, + _sel_write_maxLength_, + buffer, + maxLength, + ); + } +} + +/// NSPort +class NSPort extends NSObject implements NSCopying, NSCoding { + NSPort._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSPort] that points to the same underlying object as [other]. + NSPort.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSPort] that wraps the given raw object pointer. + NSPort.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSPort]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSPort, + ); + } + + /// alloc + static NSPort alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSPort, _sel_alloc); + return NSPort.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSPort allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSPort, + _sel_allocWithZone_, + zone, + ); + return NSPort.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSPort new$() { + final _ret = _objc_msgSend_151sglz(_class_NSPort, _sel_new); + return NSPort.castFromPointer(_ret, retain: false, release: true); + } + + /// port + static NSPort port() { + final _ret = _objc_msgSend_151sglz(_class_NSPort, _sel_port); + return NSPort.castFromPointer(_ret, retain: true, release: true); + } + + /// autorelease + NSPort autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSPort.castFromPointer(_ret, retain: true, release: true); + } + + /// delegate + NSPortDelegate? delegate() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_delegate); + return _ret.address == 0 + ? null + : NSPortDelegate.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSPort init() { + objc.checkOsVersionInternal( + 'NSPort.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSPort.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSPort? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSPort.castFromPointer(_ret, retain: false, release: true); + } + + /// invalidate + void invalidate() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_invalidate); + } + + /// isValid + bool get valid { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isValid); + } + + /// removeFromRunLoop:forMode: + void removeFromRunLoop(NSRunLoop runLoop, {required NSString forMode}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_removeFromRunLoop_forMode_, + runLoop.ref.pointer, + forMode.ref.pointer, + ); + } + + /// reservedSpaceLength + int get reservedSpaceLength { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_reservedSpaceLength); + } + + /// retain + NSPort retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSPort.castFromPointer(_ret, retain: true, release: true); + } + + /// scheduleInRunLoop:forMode: + void scheduleInRunLoop(NSRunLoop runLoop, {required NSString forMode}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_scheduleInRunLoop_forMode_, + runLoop.ref.pointer, + forMode.ref.pointer, + ); + } + + /// self + NSPort self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSPort.castFromPointer(_ret, retain: true, release: true); + } + + /// sendBeforeDate:components:from:reserved: + bool sendBeforeDate( + NSDate limitDate, { + NSMutableArray? components, + NSPort? from, + required int reserved, + }) { + return _objc_msgSend_1frfu5e( + this.ref.pointer, + _sel_sendBeforeDate_components_from_reserved_, + limitDate.ref.pointer, + components?.ref.pointer ?? ffi.nullptr, + from?.ref.pointer ?? ffi.nullptr, + reserved, + ); + } + + /// sendBeforeDate:msgid:components:from:reserved: + bool sendBeforeDate$1( + NSDate limitDate, { + required int msgid, + NSMutableArray? components, + NSPort? from, + required int reserved, + }) { + return _objc_msgSend_gupwtj( + this.ref.pointer, + _sel_sendBeforeDate_msgid_components_from_reserved_, + limitDate.ref.pointer, + msgid, + components?.ref.pointer ?? ffi.nullptr, + from?.ref.pointer ?? ffi.nullptr, + reserved, + ); + } + + /// setDelegate: + void setDelegate(NSPortDelegate? anObject) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setDelegate_, + anObject?.ref.pointer ?? ffi.nullptr, + ); + } + + /// Returns a new instance of NSPort constructed with the default `new` method. + factory NSPort() => new$(); +} + +/// NSPortDelegate +interface class NSPortDelegate extends objc.ObjCProtocolBase + implements NSObjectProtocol { + NSPortDelegate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSPortDelegate] that points to the same underlying object as [other]. + NSPortDelegate.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSPortDelegate] that wraps the given raw object pointer. + NSPortDelegate.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSPortDelegate]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSPortDelegate, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSPortDelegate.cast()); + + /// Builds an object that implements the NSPortDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSPortDelegate implement({ + void Function(NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSPortDelegate'); + NSPortDelegate.handlePortMessage_.implement(builder, handlePortMessage_); + builder.addProtocol($protocol); + return NSPortDelegate.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSPortDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + NSPortDelegate.handlePortMessage_.implement(builder, handlePortMessage_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSPortDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSPortDelegate implementAsListener({ + void Function(NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSPortDelegate'); + NSPortDelegate.handlePortMessage_.implementAsListener( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + return NSPortDelegate.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSPortDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + NSPortDelegate.handlePortMessage_.implementAsListener( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSPortDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSPortDelegate implementAsBlocking({ + void Function(NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSPortDelegate'); + NSPortDelegate.handlePortMessage_.implementAsBlocking( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + return NSPortDelegate.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSPortDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSPortMessage)? handlePortMessage_, + bool $keepIsolateAlive = true, + }) { + NSPortDelegate.handlePortMessage_.implementAsBlocking( + builder, + handlePortMessage_, + ); + builder.addProtocol($protocol); + } + + /// handlePortMessage: + static final handlePortMessage_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSPortDelegate, + _sel_handlePortMessage_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSPortDelegate, + _sel_handlePortMessage_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSPortMessage) func) => + ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.fromFunction( + (ffi.Pointer _, NSPortMessage arg1) => func(arg1), + ), + (void Function(NSPortMessage) func) => + ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.listener( + (ffi.Pointer _, NSPortMessage arg1) => func(arg1), + ), + (void Function(NSPortMessage) func) => + ObjCBlock_ffiVoid_ffiVoid_NSPortMessage.blocking( + (ffi.Pointer _, NSPortMessage arg1) => func(arg1), + ), + ); +} + +/// NSPortMessage +class NSPortMessage extends NSObject { + NSPortMessage._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSPortMessage] that points to the same underlying object as [other]. + NSPortMessage.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSPortMessage] that wraps the given raw object pointer. + NSPortMessage.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSPortMessage]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSPortMessage, + ); + } + + /// alloc + static NSPortMessage alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSPortMessage, _sel_alloc); + return NSPortMessage.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSPortMessage allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSPortMessage, + _sel_allocWithZone_, + zone, + ); + return NSPortMessage.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSPortMessage new$() { + final _ret = _objc_msgSend_151sglz(_class_NSPortMessage, _sel_new); + return NSPortMessage.castFromPointer(_ret, retain: false, release: true); + } + + /// autorelease + NSPortMessage autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSPortMessage.castFromPointer(_ret, retain: true, release: true); + } + + /// components + NSArray? get components { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_components); + return _ret.address == 0 + ? null + : NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSPortMessage init() { + objc.checkOsVersionInternal( + 'NSPortMessage.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSPortMessage.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSendPort:receivePort:components: + NSPortMessage initWithSendPort( + NSPort? sendPort, { + NSPort? receivePort, + NSArray? components$1, + }) { + final _ret = _objc_msgSend_11spmsz( + this.ref.retainAndReturnPointer(), + _sel_initWithSendPort_receivePort_components_, + sendPort?.ref.pointer ?? ffi.nullptr, + receivePort?.ref.pointer ?? ffi.nullptr, + components$1?.ref.pointer ?? ffi.nullptr, + ); + return NSPortMessage.castFromPointer(_ret, retain: false, release: true); + } + + /// msgid + int get msgid { + return _objc_msgSend_usggvf(this.ref.pointer, _sel_msgid); + } + + /// receivePort + NSPort? get receivePort { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_receivePort); + return _ret.address == 0 + ? null + : NSPort.castFromPointer(_ret, retain: true, release: true); + } + + /// retain + NSPortMessage retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSPortMessage.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSPortMessage self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSPortMessage.castFromPointer(_ret, retain: true, release: true); + } + + /// sendBeforeDate: + bool sendBeforeDate(NSDate date) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_sendBeforeDate_, + date.ref.pointer, + ); + } + + /// sendPort + NSPort? get sendPort { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_sendPort); + return _ret.address == 0 + ? null + : NSPort.castFromPointer(_ret, retain: true, release: true); + } + + /// setMsgid: + set msgid(int value) { + _objc_msgSend_1xpk2hb(this.ref.pointer, _sel_setMsgid_, value); + } + + /// Returns a new instance of NSPortMessage constructed with the default `new` method. + factory NSPortMessage() => new$(); +} + +/// NSProgress +class NSProgress extends NSObject { + NSProgress._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSProgress] that points to the same underlying object as [other]. + NSProgress.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSProgress] that wraps the given raw object pointer. + NSProgress.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSProgress]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSProgress, + ); + } + + /// addSubscriberForFileURL:withPublishingHandler: + /// + /// iOS: unavailable + /// macOS: introduced 10.9.0 + static objc.ObjCObjectBase addSubscriberForFileURL( + NSURL url, { + required objc.ObjCBlock< + objc.ObjCBlock? Function(NSProgress) + > + withPublishingHandler, + }) { + objc.checkOsVersionInternal( + 'NSProgress.addSubscriberForFileURL:withPublishingHandler:', + iOS: (true, null), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_r0bo0s( + _class_NSProgress, + _sel_addSubscriberForFileURL_withPublishingHandler_, + url.ref.pointer, + withPublishingHandler.ref.pointer, + ); + return objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// alloc + static NSProgress alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSProgress, _sel_alloc); + return NSProgress.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSProgress allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSProgress, + _sel_allocWithZone_, + zone, + ); + return NSProgress.castFromPointer(_ret, retain: false, release: true); + } + + /// currentProgress + static NSProgress? currentProgress() { + objc.checkOsVersionInternal( + 'NSProgress.currentProgress', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz(_class_NSProgress, _sel_currentProgress); + return _ret.address == 0 + ? null + : NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// discreteProgressWithTotalUnitCount: + static NSProgress discreteProgressWithTotalUnitCount(int unitCount) { + objc.checkOsVersionInternal( + 'NSProgress.discreteProgressWithTotalUnitCount:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_1ya1kjn( + _class_NSProgress, + _sel_discreteProgressWithTotalUnitCount_, + unitCount, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSProgress new$() { + final _ret = _objc_msgSend_151sglz(_class_NSProgress, _sel_new); + return NSProgress.castFromPointer(_ret, retain: false, release: true); + } + + /// progressWithTotalUnitCount: + static NSProgress progressWithTotalUnitCount(int unitCount) { + objc.checkOsVersionInternal( + 'NSProgress.progressWithTotalUnitCount:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_1ya1kjn( + _class_NSProgress, + _sel_progressWithTotalUnitCount_, + unitCount, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// progressWithTotalUnitCount:parent:pendingUnitCount: + static NSProgress progressWithTotalUnitCount$1( + int unitCount, { + required NSProgress parent, + required int pendingUnitCount, + }) { + objc.checkOsVersionInternal( + 'NSProgress.progressWithTotalUnitCount:parent:pendingUnitCount:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_553v( + _class_NSProgress, + _sel_progressWithTotalUnitCount_parent_pendingUnitCount_, + unitCount, + parent.ref.pointer, + pendingUnitCount, + ); + return NSProgress.castFromPointer(_ret, retain: true, release: true); + } + + /// removeSubscriber: + /// + /// iOS: unavailable + /// macOS: introduced 10.9.0 + static void removeSubscriber(objc.ObjCObjectBase subscriber) { + objc.checkOsVersionInternal( + 'NSProgress.removeSubscriber:', + iOS: (true, null), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + _class_NSProgress, + _sel_removeSubscriber_, + subscriber.ref.pointer, + ); + } + + /// addChild:withPendingUnitCount: + void addChild(NSProgress child, {required int withPendingUnitCount}) { + objc.checkOsVersionInternal( + 'NSProgress.addChild:withPendingUnitCount:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + _objc_msgSend_1m7prh1( + this.ref.pointer, + _sel_addChild_withPendingUnitCount_, + child.ref.pointer, + withPendingUnitCount, + ); + } + + /// becomeCurrentWithPendingUnitCount: + void becomeCurrentWithPendingUnitCount(int unitCount) { + objc.checkOsVersionInternal( + 'NSProgress.becomeCurrentWithPendingUnitCount:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_17gvxvj( + this.ref.pointer, + _sel_becomeCurrentWithPendingUnitCount_, + unitCount, + ); + } + + /// cancel + void cancel() { + objc.checkOsVersionInternal( + 'NSProgress.cancel', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_cancel); + } + + /// cancellationHandler + objc.ObjCBlock? get cancellationHandler { + objc.checkOsVersionInternal( + 'NSProgress.cancellationHandler', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_uwvaik( + this.ref.pointer, + _sel_cancellationHandler, + ); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid.castFromPointer(_ret, retain: true, release: true); + } + + /// completedUnitCount + int get completedUnitCount { + objc.checkOsVersionInternal( + 'NSProgress.completedUnitCount', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_pysgoz(this.ref.pointer, _sel_completedUnitCount); + } + + /// estimatedTimeRemaining + NSNumber? get estimatedTimeRemaining { + objc.checkOsVersionInternal( + 'NSProgress.estimatedTimeRemaining', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_estimatedTimeRemaining, + ); + return _ret.address == 0 + ? null + : NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// fileCompletedCount + NSNumber? get fileCompletedCount { + objc.checkOsVersionInternal( + 'NSProgress.fileCompletedCount', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_fileCompletedCount, + ); + return _ret.address == 0 + ? null + : NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// fileOperationKind + NSString? get fileOperationKind { + objc.checkOsVersionInternal( + 'NSProgress.fileOperationKind', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_fileOperationKind, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// fileTotalCount + NSNumber? get fileTotalCount { + objc.checkOsVersionInternal( + 'NSProgress.fileTotalCount', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fileTotalCount); + return _ret.address == 0 + ? null + : NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURL + NSURL? get fileURL { + objc.checkOsVersionInternal( + 'NSProgress.fileURL', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fileURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fractionCompleted + double get fractionCompleted { + objc.checkOsVersionInternal( + 'NSProgress.fractionCompleted', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_fractionCompleted) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_fractionCompleted); + } + + /// init + NSProgress init() { + objc.checkOsVersionInternal( + 'NSProgress.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSProgress.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithParent:userInfo: + NSProgress initWithParent( + NSProgress? parentProgressOrNil, { + NSDictionary? userInfo, + }) { + objc.checkOsVersionInternal( + 'NSProgress.initWithParent:userInfo:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithParent_userInfo_, + parentProgressOrNil?.ref.pointer ?? ffi.nullptr, + userInfo?.ref.pointer ?? ffi.nullptr, + ); + return NSProgress.castFromPointer(_ret, retain: false, release: true); + } + + /// isCancellable + bool get cancellable { + objc.checkOsVersionInternal( + 'NSProgress.isCancellable', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isCancellable); + } + + /// isCancelled + bool get cancelled { + objc.checkOsVersionInternal( + 'NSProgress.isCancelled', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isCancelled); + } + + /// isFinished + bool get finished { + objc.checkOsVersionInternal( + 'NSProgress.isFinished', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isFinished); + } + + /// isIndeterminate + bool get indeterminate { + objc.checkOsVersionInternal( + 'NSProgress.isIndeterminate', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isIndeterminate); + } + + /// iOS: unavailable + /// macOS: introduced 10.9.0 + bool get old { + objc.checkOsVersionInternal( + 'NSProgress.isOld', + iOS: (true, null), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isOld); + } + + /// isPausable + bool get pausable { + objc.checkOsVersionInternal( + 'NSProgress.isPausable', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isPausable); + } + + /// isPaused + bool get paused { + objc.checkOsVersionInternal( + 'NSProgress.isPaused', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isPaused); + } + + /// kind + NSString? get kind { + objc.checkOsVersionInternal( + 'NSProgress.kind', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_kind); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedAdditionalDescription + NSString get localizedAdditionalDescription { + objc.checkOsVersionInternal( + 'NSProgress.localizedAdditionalDescription', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedAdditionalDescription, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedDescription + NSString get localizedDescription { + objc.checkOsVersionInternal( + 'NSProgress.localizedDescription', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedDescription, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// pause + void pause() { + objc.checkOsVersionInternal( + 'NSProgress.pause', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_pause); + } + + /// pausingHandler + objc.ObjCBlock? get pausingHandler { + objc.checkOsVersionInternal( + 'NSProgress.pausingHandler', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_uwvaik(this.ref.pointer, _sel_pausingHandler); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid.castFromPointer(_ret, retain: true, release: true); + } + + /// performAsCurrentWithPendingUnitCount:usingBlock: + void performAsCurrentWithPendingUnitCount( + int unitCount, { + required objc.ObjCBlock usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSProgress.performAsCurrentWithPendingUnitCount:usingBlock:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_1i0cxyc( + this.ref.pointer, + _sel_performAsCurrentWithPendingUnitCount_usingBlock_, + unitCount, + usingBlock.ref.pointer, + ); + } + + /// publish + /// + /// iOS: unavailable + /// macOS: introduced 10.9.0 + void publish() { + objc.checkOsVersionInternal( + 'NSProgress.publish', + iOS: (true, null), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_publish); + } + + /// resignCurrent + void resignCurrent() { + objc.checkOsVersionInternal( + 'NSProgress.resignCurrent', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_resignCurrent); + } + + /// resume + void resume() { + objc.checkOsVersionInternal( + 'NSProgress.resume', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_resume); + } + + /// resumingHandler + objc.ObjCBlock? get resumingHandler { + objc.checkOsVersionInternal( + 'NSProgress.resumingHandler', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_uwvaik(this.ref.pointer, _sel_resumingHandler); + return _ret.address == 0 + ? null + : ObjCBlock_ffiVoid.castFromPointer(_ret, retain: true, release: true); + } + + /// setCancellable: + set cancellable(bool value) { + objc.checkOsVersionInternal( + 'NSProgress.setCancellable:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1s56lr9(this.ref.pointer, _sel_setCancellable_, value); + } + + /// setCancellationHandler: + set cancellationHandler(objc.ObjCBlock? value) { + objc.checkOsVersionInternal( + 'NSProgress.setCancellationHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_setCancellationHandler_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setCompletedUnitCount: + set completedUnitCount(int value) { + objc.checkOsVersionInternal( + 'NSProgress.setCompletedUnitCount:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_17gvxvj(this.ref.pointer, _sel_setCompletedUnitCount_, value); + } + + /// setEstimatedTimeRemaining: + set estimatedTimeRemaining(NSNumber? value) { + objc.checkOsVersionInternal( + 'NSProgress.setEstimatedTimeRemaining:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setEstimatedTimeRemaining_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setFileCompletedCount: + set fileCompletedCount(NSNumber? value) { + objc.checkOsVersionInternal( + 'NSProgress.setFileCompletedCount:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setFileCompletedCount_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setFileOperationKind: + set fileOperationKind(NSString? value) { + objc.checkOsVersionInternal( + 'NSProgress.setFileOperationKind:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setFileOperationKind_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setFileTotalCount: + set fileTotalCount(NSNumber? value) { + objc.checkOsVersionInternal( + 'NSProgress.setFileTotalCount:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setFileTotalCount_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setFileURL: + set fileURL(NSURL? value) { + objc.checkOsVersionInternal( + 'NSProgress.setFileURL:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setFileURL_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setKind: + set kind(NSString? value) { + objc.checkOsVersionInternal( + 'NSProgress.setKind:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setKind_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setLocalizedAdditionalDescription: + set localizedAdditionalDescription(NSString value) { + objc.checkOsVersionInternal( + 'NSProgress.setLocalizedAdditionalDescription:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setLocalizedAdditionalDescription_, + value.ref.pointer, + ); + } + + /// setLocalizedDescription: + set localizedDescription(NSString value) { + objc.checkOsVersionInternal( + 'NSProgress.setLocalizedDescription:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setLocalizedDescription_, + value.ref.pointer, + ); + } + + /// setPausable: + set pausable(bool value) { + objc.checkOsVersionInternal( + 'NSProgress.setPausable:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1s56lr9(this.ref.pointer, _sel_setPausable_, value); + } + + /// setPausingHandler: + set pausingHandler(objc.ObjCBlock? value) { + objc.checkOsVersionInternal( + 'NSProgress.setPausingHandler:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_setPausingHandler_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setResumingHandler: + set resumingHandler(objc.ObjCBlock? value) { + objc.checkOsVersionInternal( + 'NSProgress.setResumingHandler:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_setResumingHandler_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setThroughput: + set throughput(NSNumber? value) { + objc.checkOsVersionInternal( + 'NSProgress.setThroughput:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setThroughput_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setTotalUnitCount: + set totalUnitCount(int value) { + objc.checkOsVersionInternal( + 'NSProgress.setTotalUnitCount:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_17gvxvj(this.ref.pointer, _sel_setTotalUnitCount_, value); + } + + /// setUserInfoObject:forKey: + void setUserInfoObject( + objc.ObjCObjectBase? objectOrNil, { + required NSString forKey, + }) { + objc.checkOsVersionInternal( + 'NSProgress.setUserInfoObject:forKey:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_setUserInfoObject_forKey_, + objectOrNil?.ref.pointer ?? ffi.nullptr, + forKey.ref.pointer, + ); + } + + /// throughput + NSNumber? get throughput { + objc.checkOsVersionInternal( + 'NSProgress.throughput', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_throughput); + return _ret.address == 0 + ? null + : NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// totalUnitCount + int get totalUnitCount { + objc.checkOsVersionInternal( + 'NSProgress.totalUnitCount', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_pysgoz(this.ref.pointer, _sel_totalUnitCount); + } + + /// unpublish + /// + /// iOS: unavailable + /// macOS: introduced 10.9.0 + void unpublish() { + objc.checkOsVersionInternal( + 'NSProgress.unpublish', + iOS: (true, null), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_unpublish); + } + + /// userInfo + NSDictionary get userInfo { + objc.checkOsVersionInternal( + 'NSProgress.userInfo', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); + return NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSProgress constructed with the default `new` method. + factory NSProgress() => new$(); +} + +enum NSPropertyListFormat { + NSPropertyListOpenStepFormat(1), + NSPropertyListXMLFormat_v1_0(100), + NSPropertyListBinaryFormat_v1_0(200); + + final int value; + const NSPropertyListFormat(this.value); + + static NSPropertyListFormat fromValue(int value) => switch (value) { + 1 => NSPropertyListOpenStepFormat, + 100 => NSPropertyListXMLFormat_v1_0, + 200 => NSPropertyListBinaryFormat_v1_0, + _ => throw ArgumentError('Unknown value for NSPropertyListFormat: $value'), + }; +} + +enum NSQualityOfService { + NSQualityOfServiceUserInteractive(33), + NSQualityOfServiceUserInitiated(25), + NSQualityOfServiceUtility(17), + NSQualityOfServiceBackground(9), + NSQualityOfServiceDefault(-1); + + final int value; + const NSQualityOfService(this.value); + + static NSQualityOfService fromValue(int value) => switch (value) { + 33 => NSQualityOfServiceUserInteractive, + 25 => NSQualityOfServiceUserInitiated, + 17 => NSQualityOfServiceUtility, + 9 => NSQualityOfServiceBackground, + -1 => NSQualityOfServiceDefault, + _ => throw ArgumentError('Unknown value for NSQualityOfService: $value'), + }; +} + +final class NSRange extends ffi.Struct { + @ffi.UnsignedLong() + external int location; + + @ffi.UnsignedLong() + external int length; +} + +/// NSRunLoop +class NSRunLoop extends NSObject { + NSRunLoop._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSRunLoop] that points to the same underlying object as [other]. + NSRunLoop.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSRunLoop] that wraps the given raw object pointer. + NSRunLoop.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSRunLoop]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSRunLoop, + ); + } + + /// alloc + static NSRunLoop alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_alloc); + return NSRunLoop.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSRunLoop allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSRunLoop, + _sel_allocWithZone_, + zone, + ); + return NSRunLoop.castFromPointer(_ret, retain: false, release: true); + } + + /// currentRunLoop + static NSRunLoop getCurrentRunLoop() { + final _ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_currentRunLoop); + return NSRunLoop.castFromPointer(_ret, retain: true, release: true); + } + + /// mainRunLoop + static NSRunLoop getMainRunLoop() { + objc.checkOsVersionInternal( + 'NSRunLoop.mainRunLoop', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_mainRunLoop); + return NSRunLoop.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSRunLoop new$() { + final _ret = _objc_msgSend_151sglz(_class_NSRunLoop, _sel_new); + return NSRunLoop.castFromPointer(_ret, retain: false, release: true); + } + + /// acceptInputForMode:beforeDate: + void acceptInputForMode(NSString mode, {required NSDate beforeDate}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_acceptInputForMode_beforeDate_, + mode.ref.pointer, + beforeDate.ref.pointer, + ); + } + + /// addPort:forMode: + void addPort(NSPort aPort, {required NSString forMode}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_addPort_forMode_, + aPort.ref.pointer, + forMode.ref.pointer, + ); + } + + /// addTimer:forMode: + void addTimer(NSTimer timer, {required NSString forMode}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_addTimer_forMode_, + timer.ref.pointer, + forMode.ref.pointer, + ); + } + + /// autorelease + NSRunLoop autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSRunLoop.castFromPointer(_ret, retain: true, release: true); + } + + /// currentMode + NSString? get currentMode { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_currentMode); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// getCFRunLoop + ffi.Pointer getCFRunLoop() { + return _objc_msgSend_1bbja28(this.ref.pointer, _sel_getCFRunLoop); + } + + /// init + NSRunLoop init() { + objc.checkOsVersionInternal( + 'NSRunLoop.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSRunLoop.castFromPointer(_ret, retain: false, release: true); + } + + /// limitDateForMode: + NSDate? limitDateForMode(NSString mode) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_limitDateForMode_, + mode.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// removePort:forMode: + void removePort(NSPort aPort, {required NSString forMode}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_removePort_forMode_, + aPort.ref.pointer, + forMode.ref.pointer, + ); + } + + /// retain + NSRunLoop retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSRunLoop.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSRunLoop self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSRunLoop.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSRunLoop constructed with the default `new` method. + factory NSRunLoop() => new$(); +} + +/// NSSecureCoding +interface class NSSecureCoding extends objc.ObjCProtocolBase + implements NSCoding { + NSSecureCoding._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSSecureCoding] that points to the same underlying object as [other]. + NSSecureCoding.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSSecureCoding] that wraps the given raw object pointer. + NSSecureCoding.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSSecureCoding]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSSecureCoding, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSSecureCoding.cast()); + + /// Builds an object that implements the NSSecureCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSecureCoding implement({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); + NSSecureCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSSecureCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSecureCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSSecureCoding.encodeWithCoder_.implement(builder, encodeWithCoder_); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSSecureCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSecureCoding implementAsListener({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); + NSSecureCoding.encodeWithCoder_.implementAsListener( + builder, + encodeWithCoder_, + ); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSSecureCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSecureCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSSecureCoding.encodeWithCoder_.implementAsListener( + builder, + encodeWithCoder_, + ); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSSecureCoding protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSSecureCoding implementAsBlocking({ + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSSecureCoding'); + NSSecureCoding.encodeWithCoder_.implementAsBlocking( + builder, + encodeWithCoder_, + ); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + return NSSecureCoding.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSSecureCoding protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function(NSCoder) encodeWithCoder_, + required Dartinstancetype? Function(NSCoder) initWithCoder_, + bool $keepIsolateAlive = true, + }) { + NSSecureCoding.encodeWithCoder_.implementAsBlocking( + builder, + encodeWithCoder_, + ); + NSSecureCoding.initWithCoder_.implement(builder, initWithCoder_); + builder.addProtocol($protocol); + } + + /// encodeWithCoder: + static final encodeWithCoder_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSSecureCoding, + _sel_encodeWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_18v1jvf) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSecureCoding, + _sel_encodeWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.listener( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + (void Function(NSCoder) func) => + ObjCBlock_ffiVoid_ffiVoid_NSCoder.blocking( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); + + /// initWithCoder: + static final initWithCoder_ = + objc.ObjCProtocolMethod( + _protocol_NSSecureCoding, + _sel_initWithCoder_, + ffi.Native.addressOf< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_xr62hr) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSSecureCoding, + _sel_initWithCoder_, + isRequired: true, + isInstanceMethod: true, + ), + (Dartinstancetype? Function(NSCoder) func) => + ObjCBlock_instancetype_ffiVoid_NSCoder.fromFunction( + (ffi.Pointer _, NSCoder arg1) => func(arg1), + ), + ); +} + +/// NSSet +class NSSet extends NSObject + with collection.SetBase + implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration { + /// Creates a [NSSet] from [elements]. + static NSSet of(Iterable elements) => + NSMutableSet.of(elements); + + @override + int get length => count; + + @override + bool contains(Object? element) => + element is objc.ObjCObjectBase ? containsObject(element) : false; + + @override + objc.ObjCObjectBase? lookup(Object? element) => + element is objc.ObjCObjectBase ? member(element) : null; + + @override + Iterator get iterator => objectEnumerator(); + + @override + Set toSet() => {...this}; + + @override + bool add(objc.ObjCObjectBase value) => + throw UnsupportedError("Cannot modify NSSet"); + + @override + bool remove(Object? value) => throw UnsupportedError("Cannot modify NSSet"); + + @override + void clear() => throw UnsupportedError("Cannot modify NSSet"); + + NSSet._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSSet] that points to the same underlying object as [other]. + NSSet.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSSet] that wraps the given raw object pointer. + NSSet.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSSet]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSSet, + ); + } + + /// alloc + static NSSet alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_alloc); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSSet allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428(_class_NSSet, _sel_allocWithZone_, zone); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSSet new$() { + final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_new); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// set + static NSSet set$() { + final _ret = _objc_msgSend_151sglz(_class_NSSet, _sel_set); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithArray: + static NSSet setWithArray(NSArray array) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithArray_, + array.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObject: + static NSSet setWithObject(objc.ObjCObjectBase object) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithObject_, + object.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObjects: + static NSSet setWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithObjects_, + firstObj.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithObjects:count: + static NSSet setWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + _class_NSSet, + _sel_setWithObjects_count_, + objects, + count, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// setWithSet: + static NSSet setWithSet(NSSet set$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSSet, + _sel_setWithSet_, + set$1.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSSet, _sel_supportsSecureCoding); + } + + /// count + int get count { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_count); + } + + /// countByEnumeratingWithState:objects:count: + int countByEnumeratingWithState( + ffi.Pointer state, { + required ffi.Pointer> objects, + required int count$1, + }) { + return _objc_msgSend_1b5ysjl( + this.ref.pointer, + _sel_countByEnumeratingWithState_objects_count_, + state, + objects, + count$1, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSSet init() { + objc.checkOsVersionInternal( + 'NSSet.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithArray: + NSSet initWithArray(NSArray array) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithArray_, + array.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSSet? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects: + NSSet initWithObjects(objc.ObjCObjectBase firstObj) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_, + firstObj.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithObjects:count: + NSSet initWithObjects$1( + ffi.Pointer> objects, { + required int count, + }) { + final _ret = _objc_msgSend_zmbtbd( + this.ref.retainAndReturnPointer(), + _sel_initWithObjects_count_, + objects, + count, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet: + NSSet initWithSet(NSSet set$1) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_, + set$1.ref.pointer, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithSet:copyItems: + NSSet initWithSet$1(NSSet set$1, {required bool copyItems}) { + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithSet_copyItems_, + set$1.ref.pointer, + copyItems, + ); + return NSSet.castFromPointer(_ret, retain: false, release: true); + } + + /// member: + objc.ObjCObjectBase? member(objc.ObjCObjectBase object) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_member_, + object.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// objectEnumerator + NSEnumerator objectEnumerator() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_objectEnumerator); + return NSEnumerator.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSSet constructed with the default `new` method. + factory NSSet() => new$(); +} + +enum NSSortOptions { + NSSortConcurrent(1), + NSSortStable(16); + + final int value; + const NSSortOptions(this.value); + + static NSSortOptions fromValue(int value) => switch (value) { + 1 => NSSortConcurrent, + 16 => NSSortStable, + _ => throw ArgumentError('Unknown value for NSSortOptions: $value'), + }; +} + +/// NSStream +class NSStream extends NSObject { + NSStream._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSStream] that points to the same underlying object as [other]. + NSStream.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSStream] that wraps the given raw object pointer. + NSStream.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSStream]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSStream, + ); + } + + /// alloc + static NSStream alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSStream, _sel_alloc); + return NSStream.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSStream allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSStream, + _sel_allocWithZone_, + zone, + ); + return NSStream.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSStream new$() { + final _ret = _objc_msgSend_151sglz(_class_NSStream, _sel_new); + return NSStream.castFromPointer(_ret, retain: false, release: true); + } + + /// autorelease + NSStream autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSStream.castFromPointer(_ret, retain: true, release: true); + } + + /// close + void close() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_close); + } + + /// delegate + NSStreamDelegate? get delegate { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_delegate); + return _ret.address == 0 + ? null + : NSStreamDelegate.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSStream init() { + objc.checkOsVersionInternal( + 'NSStream.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSStream.castFromPointer(_ret, retain: false, release: true); + } + + /// open + void open() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_open); + } + + /// propertyForKey: + objc.ObjCObjectBase? propertyForKey(NSString key) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_propertyForKey_, + key.ref.pointer, + ); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// removeFromRunLoop:forMode: + void removeFromRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_removeFromRunLoop_forMode_, + aRunLoop.ref.pointer, + forMode.ref.pointer, + ); + } + + /// retain + NSStream retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSStream.castFromPointer(_ret, retain: true, release: true); + } + + /// scheduleInRunLoop:forMode: + void scheduleInRunLoop(NSRunLoop aRunLoop, {required NSString forMode}) { + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_scheduleInRunLoop_forMode_, + aRunLoop.ref.pointer, + forMode.ref.pointer, + ); + } + + /// self + NSStream self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSStream.castFromPointer(_ret, retain: true, release: true); + } + + /// setDelegate: + set delegate(NSStreamDelegate? value) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setDelegate_, + value?.ref.pointer ?? ffi.nullptr, + ); + } + + /// setProperty:forKey: + bool setProperty(objc.ObjCObjectBase? property, {required NSString forKey}) { + return _objc_msgSend_1lsax7n( + this.ref.pointer, + _sel_setProperty_forKey_, + property?.ref.pointer ?? ffi.nullptr, + forKey.ref.pointer, + ); + } + + /// streamError + NSError? get streamError { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_streamError); + return _ret.address == 0 + ? null + : NSError.castFromPointer(_ret, retain: true, release: true); + } + + /// streamStatus + NSStreamStatus get streamStatus { + final _ret = _objc_msgSend_1efxbd8(this.ref.pointer, _sel_streamStatus); + return NSStreamStatus.fromValue(_ret); + } + + /// Returns a new instance of NSStream constructed with the default `new` method. + factory NSStream() => new$(); +} + +/// NSStreamDelegate +interface class NSStreamDelegate extends objc.ObjCProtocolBase + implements NSObjectProtocol { + NSStreamDelegate._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [NSStreamDelegate] that points to the same underlying object as [other]. + NSStreamDelegate.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSStreamDelegate] that wraps the given raw object pointer. + NSStreamDelegate.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSStreamDelegate]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_NSStreamDelegate, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_NSStreamDelegate.cast()); + + /// Builds an object that implements the NSStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSStreamDelegate implement({ + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); + NSStreamDelegate.stream_handleEvent_.implement( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + return NSStreamDelegate.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + NSStreamDelegate.stream_handleEvent_.implement( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSStreamDelegate implementAsListener({ + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); + NSStreamDelegate.stream_handleEvent_.implementAsListener( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + return NSStreamDelegate.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + NSStreamDelegate.stream_handleEvent_.implementAsListener( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the NSStreamDelegate protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static NSStreamDelegate implementAsBlocking({ + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'NSStreamDelegate'); + NSStreamDelegate.stream_handleEvent_.implementAsBlocking( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + return NSStreamDelegate.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the NSStreamDelegate protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + void Function(NSStream, NSStreamEvent)? stream_handleEvent_, + bool $keepIsolateAlive = true, + }) { + NSStreamDelegate.stream_handleEvent_.implementAsBlocking( + builder, + stream_handleEvent_, + ); + builder.addProtocol($protocol); + } + + /// stream:handleEvent: + static final stream_handleEvent_ = + objc.ObjCProtocolListenableMethod( + _protocol_NSStreamDelegate, + _sel_stream_handleEvent_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_hoampi) + .cast(), + objc.getProtocolMethodSignature( + _protocol_NSStreamDelegate, + _sel_stream_handleEvent_, + isRequired: false, + isInstanceMethod: true, + ), + (void Function(NSStream, NSStreamEvent) func) => + ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.fromFunction( + (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => + func(arg1, arg2), + ), + (void Function(NSStream, NSStreamEvent) func) => + ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.listener( + (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => + func(arg1, arg2), + ), + (void Function(NSStream, NSStreamEvent) func) => + ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent.blocking( + (ffi.Pointer _, NSStream arg1, NSStreamEvent arg2) => + func(arg1, arg2), + ), + ); +} + +enum NSStreamEvent { + NSStreamEventNone(0), + NSStreamEventOpenCompleted(1), + NSStreamEventHasBytesAvailable(2), + NSStreamEventHasSpaceAvailable(4), + NSStreamEventErrorOccurred(8), + NSStreamEventEndEncountered(16); + + final int value; + const NSStreamEvent(this.value); + + static NSStreamEvent fromValue(int value) => switch (value) { + 0 => NSStreamEventNone, + 1 => NSStreamEventOpenCompleted, + 2 => NSStreamEventHasBytesAvailable, + 4 => NSStreamEventHasSpaceAvailable, + 8 => NSStreamEventErrorOccurred, + 16 => NSStreamEventEndEncountered, + _ => throw ArgumentError('Unknown value for NSStreamEvent: $value'), + }; +} + +enum NSStreamStatus { + NSStreamStatusNotOpen(0), + NSStreamStatusOpening(1), + NSStreamStatusOpen(2), + NSStreamStatusReading(3), + NSStreamStatusWriting(4), + NSStreamStatusAtEnd(5), + NSStreamStatusClosed(6), + NSStreamStatusError(7); + + final int value; + const NSStreamStatus(this.value); + + static NSStreamStatus fromValue(int value) => switch (value) { + 0 => NSStreamStatusNotOpen, + 1 => NSStreamStatusOpening, + 2 => NSStreamStatusOpen, + 3 => NSStreamStatusReading, + 4 => NSStreamStatusWriting, + 5 => NSStreamStatusAtEnd, + 6 => NSStreamStatusClosed, + 7 => NSStreamStatusError, + _ => throw ArgumentError('Unknown value for NSStreamStatus: $value'), + }; +} + +/// NSString +class NSString extends NSObject + implements NSCopying, NSMutableCopying, NSSecureCoding { + factory NSString(String str) { + final cstr = str.toNativeUtf16(); + final nsstr = stringWithCharacters(cstr.cast(), length: str.length); + pkg_ffi.calloc.free(cstr); + return nsstr; + } + + NSString._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSString] that points to the same underlying object as [other]. + NSString.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSString] that wraps the given raw object pointer. + NSString.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSString]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSString, + ); + } + + /// alloc + static NSString alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_alloc); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSString allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSString, + _sel_allocWithZone_, + zone, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// localizedStringWithFormat: + static NSString localizedStringWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_localizedStringWithFormat_, + format.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedStringWithValidatedFormat:validFormatSpecifiers:error: + static NSString? localizedStringWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSString.localizedStringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSString, + _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSString new$() { + final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_new); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static NSString? objectWithItemProviderData( + NSData data, { + required NSString typeIdentifier, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSString.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSString, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// string + static NSString string() { + final _ret = _objc_msgSend_151sglz(_class_NSString, _sel_string); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithCString:encoding: + static NSString? stringWithCString( + ffi.Pointer cString, { + required int encoding, + }) { + final _ret = _objc_msgSend_erqryg( + _class_NSString, + _sel_stringWithCString_encoding_, + cString, + encoding, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithCharacters:length: + static NSString stringWithCharacters( + ffi.Pointer characters, { + required int length, + }) { + final _ret = _objc_msgSend_9x4k8x( + _class_NSString, + _sel_stringWithCharacters_length_, + characters, + length, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfFile:encoding:error: + static NSString? stringWithContentsOfFile( + NSString path, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + _class_NSString, + _sel_stringWithContentsOfFile_encoding_error_, + path.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfFile:usedEncoding:error: + static NSString? stringWithContentsOfFile$1( + NSString path, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + _class_NSString, + _sel_stringWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfURL:encoding:error: + static NSString? stringWithContentsOfURL( + NSURL url, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + _class_NSString, + _sel_stringWithContentsOfURL_encoding_error_, + url.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithContentsOfURL:usedEncoding:error: + static NSString? stringWithContentsOfURL$1( + NSURL url, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + _class_NSString, + _sel_stringWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithFormat: + static NSString stringWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_stringWithFormat_, + format.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithString: + static NSString stringWithString(NSString string$1) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSString, + _sel_stringWithString_, + string$1.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithUTF8String: + static NSString? stringWithUTF8String( + ffi.Pointer nullTerminatedCString, + ) { + final _ret = _objc_msgSend_56zxyn( + _class_NSString, + _sel_stringWithUTF8String_, + nullTerminatedCString, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringWithValidatedFormat:validFormatSpecifiers:error: + static NSString? stringWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSString.stringWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSString, + _sel_stringWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSString, _sel_supportsSecureCoding); + } + + /// autorelease + NSString autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// characterAtIndex: + int characterAtIndex(int index) { + return _objc_msgSend_1deg8x( + this.ref.pointer, + _sel_characterAtIndex_, + index, + ); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// init + NSString init() { + objc.checkOsVersionInternal( + 'NSString.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:length:encoding: + NSString? initWithBytes( + ffi.Pointer bytes, { + required int length, + required int encoding, + }) { + final _ret = _objc_msgSend_9b3h4v( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_length_encoding_, + bytes, + length, + encoding, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:encoding:deallocator: + NSString? initWithBytesNoCopy( + ffi.Pointer bytes, { + required int length, + required int encoding, + objc.ObjCBlock, ffi.UnsignedLong)>? + deallocator, + }) { + final _ret = _objc_msgSend_1lbgrac( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_encoding_deallocator_, + bytes, + length, + encoding, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytesNoCopy:length:encoding:freeWhenDone: + NSString? initWithBytesNoCopy$1( + ffi.Pointer bytes, { + required int length, + required int encoding, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_k4j8m3( + this.ref.retainAndReturnPointer(), + _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_, + bytes, + length, + encoding, + freeWhenDone, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCString:encoding: + NSString? initWithCString( + ffi.Pointer nullTerminatedCString, { + required int encoding, + }) { + final _ret = _objc_msgSend_erqryg( + this.ref.retainAndReturnPointer(), + _sel_initWithCString_encoding_, + nullTerminatedCString, + encoding, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharacters:length: + NSString initWithCharacters( + ffi.Pointer characters, { + required int length, + }) { + final _ret = _objc_msgSend_9x4k8x( + this.ref.retainAndReturnPointer(), + _sel_initWithCharacters_length_, + characters, + length, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharactersNoCopy:length:deallocator: + NSString initWithCharactersNoCopy( + ffi.Pointer chars, { + required int length, + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >? + deallocator, + }) { + final _ret = _objc_msgSend_talwei( + this.ref.retainAndReturnPointer(), + _sel_initWithCharactersNoCopy_length_deallocator_, + chars, + length, + deallocator?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCharactersNoCopy:length:freeWhenDone: + NSString initWithCharactersNoCopy$1( + ffi.Pointer characters, { + required int length, + required bool freeWhenDone, + }) { + final _ret = _objc_msgSend_lh0jh5( + this.ref.retainAndReturnPointer(), + _sel_initWithCharactersNoCopy_length_freeWhenDone_, + characters, + length, + freeWhenDone, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSString? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:encoding:error: + NSString? initWithContentsOfFile( + NSString path, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_encoding_error_, + path.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfFile:usedEncoding:error: + NSString? initWithContentsOfFile$1( + NSString path, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfFile_usedEncoding_error_, + path.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:encoding:error: + NSString? initWithContentsOfURL( + NSURL url, { + required int encoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1nomli1( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_encoding_error_, + url.ref.pointer, + encoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithContentsOfURL:usedEncoding:error: + NSString? initWithContentsOfURL$1( + NSURL url, { + required ffi.Pointer usedEncoding, + required ffi.Pointer> error, + }) { + final _ret = _objc_msgSend_1alewu7( + this.ref.retainAndReturnPointer(), + _sel_initWithContentsOfURL_usedEncoding_error_, + url.ref.pointer, + usedEncoding, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithData:encoding: + NSString? initWithData(NSData data, {required int encoding}) { + final _ret = _objc_msgSend_1k4kd9s( + this.ref.retainAndReturnPointer(), + _sel_initWithData_encoding_, + data.ref.pointer, + encoding, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFormat: + NSString initWithFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_, + format.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFormat:locale: + NSString initWithFormat$1(NSString format, {objc.ObjCObjectBase? locale}) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithFormat_locale_, + format.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithString: + NSString initWithString(NSString aString) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithString_, + aString.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithUTF8String: + NSString? initWithUTF8String(ffi.Pointer nullTerminatedCString) { + final _ret = _objc_msgSend_56zxyn( + this.ref.retainAndReturnPointer(), + _sel_initWithUTF8String_, + nullTerminatedCString, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithValidatedFormat:validFormatSpecifiers:error: + /// + /// iOS: introduced 16.0.0 + /// macOS: introduced 13.0.0 + NSString? initWithValidatedFormat( + NSString format, { + required NSString validFormatSpecifiers, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSString.initWithValidatedFormat:validFormatSpecifiers:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithValidatedFormat:validFormatSpecifiers:locale:error: + /// + /// iOS: introduced 16.0.0 + /// macOS: introduced 13.0.0 + NSString? initWithValidatedFormat$1( + NSString format, { + required NSString validFormatSpecifiers, + objc.ObjCObjectBase? locale, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSString.initWithValidatedFormat:validFormatSpecifiers:locale:error:', + iOS: (false, (16, 0, 0)), + macOS: (false, (13, 0, 0)), + ); + final _ret = _objc_msgSend_1k0ezzm( + this.ref.retainAndReturnPointer(), + _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_, + format.ref.pointer, + validFormatSpecifiers.ref.pointer, + locale?.ref.pointer ?? ffi.nullptr, + error, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: false, release: true); + } + + /// length + int get length { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_length); + } + + /// retain + NSString retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSString self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSString.castFromPointer(_ret, retain: true, release: true); + } +} + +enum NSStringCompareOptions { + NSCaseInsensitiveSearch(1), + NSLiteralSearch(2), + NSBackwardsSearch(4), + NSAnchoredSearch(8), + NSNumericSearch(64), + NSDiacriticInsensitiveSearch(128), + NSWidthInsensitiveSearch(256), + NSForcedOrderingSearch(512), + NSRegularExpressionSearch(1024); + + final int value; + const NSStringCompareOptions(this.value); + + static NSStringCompareOptions fromValue(int value) => switch (value) { + 1 => NSCaseInsensitiveSearch, + 2 => NSLiteralSearch, + 4 => NSBackwardsSearch, + 8 => NSAnchoredSearch, + 64 => NSNumericSearch, + 128 => NSDiacriticInsensitiveSearch, + 256 => NSWidthInsensitiveSearch, + 512 => NSForcedOrderingSearch, + 1024 => NSRegularExpressionSearch, + _ => throw ArgumentError( + 'Unknown value for NSStringCompareOptions: $value', + ), + }; +} + +enum NSStringEncodingConversionOptions { + NSStringEncodingConversionAllowLossy(1), + NSStringEncodingConversionExternalRepresentation(2); + + final int value; + const NSStringEncodingConversionOptions(this.value); + + static NSStringEncodingConversionOptions fromValue(int value) => + switch (value) { + 1 => NSStringEncodingConversionAllowLossy, + 2 => NSStringEncodingConversionExternalRepresentation, + _ => throw ArgumentError( + 'Unknown value for NSStringEncodingConversionOptions: $value', + ), + }; +} + +enum NSStringEnumerationOptions { + NSStringEnumerationByLines(0), + NSStringEnumerationByParagraphs(1), + NSStringEnumerationByComposedCharacterSequences(2), + NSStringEnumerationByWords(3), + NSStringEnumerationBySentences(4), + NSStringEnumerationByCaretPositions(5), + NSStringEnumerationByDeletionClusters(6), + NSStringEnumerationReverse(256), + NSStringEnumerationSubstringNotRequired(512), + NSStringEnumerationLocalized(1024); + + final int value; + const NSStringEnumerationOptions(this.value); + + static NSStringEnumerationOptions fromValue(int value) => switch (value) { + 0 => NSStringEnumerationByLines, + 1 => NSStringEnumerationByParagraphs, + 2 => NSStringEnumerationByComposedCharacterSequences, + 3 => NSStringEnumerationByWords, + 4 => NSStringEnumerationBySentences, + 5 => NSStringEnumerationByCaretPositions, + 6 => NSStringEnumerationByDeletionClusters, + 256 => NSStringEnumerationReverse, + 512 => NSStringEnumerationSubstringNotRequired, + 1024 => NSStringEnumerationLocalized, + _ => throw ArgumentError( + 'Unknown value for NSStringEnumerationOptions: $value', + ), + }; +} + +/// NSStringExtensionMethods +extension NSStringExtensionMethods on NSString { + /// availableStringEncodings + static ffi.Pointer getAvailableStringEncodings() { + return _objc_msgSend_1h2q612( + _class_NSString, + _sel_availableStringEncodings, + ); + } + + /// defaultCStringEncoding + static int getDefaultCStringEncoding() { + return _objc_msgSend_xw2lbc(_class_NSString, _sel_defaultCStringEncoding); + } + + /// localizedNameOfStringEncoding: + static NSString localizedNameOfStringEncoding(int encoding) { + final _ret = _objc_msgSend_14hpxwa( + _class_NSString, + _sel_localizedNameOfStringEncoding_, + encoding, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// UTF8String + ffi.Pointer get UTF8String { + return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_UTF8String); + } + + /// boolValue + bool get boolValue { + objc.checkOsVersionInternal( + 'NSString.boolValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_boolValue); + } + + /// cStringUsingEncoding: + ffi.Pointer cStringUsingEncoding(int encoding) { + return _objc_msgSend_1jtxufi( + this.ref.pointer, + _sel_cStringUsingEncoding_, + encoding, + ); + } + + /// canBeConvertedToEncoding: + bool canBeConvertedToEncoding(int encoding) { + return _objc_msgSend_6peh6o( + this.ref.pointer, + _sel_canBeConvertedToEncoding_, + encoding, + ); + } + + /// capitalizedString + NSString get capitalizedString { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_capitalizedString, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// capitalizedStringWithLocale: + NSString capitalizedStringWithLocale(NSLocale? locale) { + objc.checkOsVersionInternal( + 'NSString.capitalizedStringWithLocale:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_capitalizedStringWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// caseInsensitiveCompare: + NSComparisonResult caseInsensitiveCompare(NSString string) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_caseInsensitiveCompare_, + string.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// commonPrefixWithString:options: + NSString commonPrefixWithString( + NSString str, { + required NSStringCompareOptions options, + }) { + final _ret = _objc_msgSend_diypgk( + this.ref.pointer, + _sel_commonPrefixWithString_options_, + str.ref.pointer, + options.value, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// compare: + NSComparisonResult compare(NSString string) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_compare_, + string.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// compare:options: + NSComparisonResult compare$1( + NSString string, { + required NSStringCompareOptions options, + }) { + final _ret = _objc_msgSend_pg1fnv( + this.ref.pointer, + _sel_compare_options_, + string.ref.pointer, + options.value, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// compare:options:range: + NSComparisonResult compare$2( + NSString string, { + required NSStringCompareOptions options, + required NSRange range, + }) { + final _ret = _objc_msgSend_xrqic1( + this.ref.pointer, + _sel_compare_options_range_, + string.ref.pointer, + options.value, + range, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// compare:options:range:locale: + NSComparisonResult compare$3( + NSString string, { + required NSStringCompareOptions options, + required NSRange range, + objc.ObjCObjectBase? locale, + }) { + final _ret = _objc_msgSend_1895u4n( + this.ref.pointer, + _sel_compare_options_range_locale_, + string.ref.pointer, + options.value, + range, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// componentsSeparatedByCharactersInSet: + NSArray componentsSeparatedByCharactersInSet(NSCharacterSet separator) { + objc.checkOsVersionInternal( + 'NSString.componentsSeparatedByCharactersInSet:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_componentsSeparatedByCharactersInSet_, + separator.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// componentsSeparatedByString: + NSArray componentsSeparatedByString(NSString separator) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_componentsSeparatedByString_, + separator.ref.pointer, + ); + return NSArray.castFromPointer(_ret, retain: true, release: true); + } + + /// containsString: + bool containsString(NSString str) { + objc.checkOsVersionInternal( + 'NSString.containsString:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_containsString_, + str.ref.pointer, + ); + } + + /// dataUsingEncoding: + NSData? dataUsingEncoding(int encoding) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_dataUsingEncoding_, + encoding, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataUsingEncoding:allowLossyConversion: + NSData? dataUsingEncoding$1( + int encoding, { + required bool allowLossyConversion, + }) { + final _ret = _objc_msgSend_hiwitm( + this.ref.pointer, + _sel_dataUsingEncoding_allowLossyConversion_, + encoding, + allowLossyConversion, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// decomposedStringWithCanonicalMapping + NSString get decomposedStringWithCanonicalMapping { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_decomposedStringWithCanonicalMapping, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// decomposedStringWithCompatibilityMapping + NSString get decomposedStringWithCompatibilityMapping { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_decomposedStringWithCompatibilityMapping, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// description + NSString get description { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_description); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// doubleValue + double get doubleValue { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_doubleValue) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_doubleValue); + } + + /// enumerateLinesUsingBlock: + void enumerateLinesUsingBlock( + objc.ObjCBlock)> block, + ) { + objc.checkOsVersionInternal( + 'NSString.enumerateLinesUsingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_f167m6( + this.ref.pointer, + _sel_enumerateLinesUsingBlock_, + block.ref.pointer, + ); + } + + /// enumerateSubstringsInRange:options:usingBlock: + void enumerateSubstringsInRange( + NSRange range, { + required NSStringEnumerationOptions options, + required objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + usingBlock, + }) { + objc.checkOsVersionInternal( + 'NSString.enumerateSubstringsInRange:options:usingBlock:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + _objc_msgSend_14ew8zr( + this.ref.pointer, + _sel_enumerateSubstringsInRange_options_usingBlock_, + range, + options.value, + usingBlock.ref.pointer, + ); + } + + /// fastestEncoding + int get fastestEncoding { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_fastestEncoding); + } + + /// floatValue + double get floatValue { + return objc.useMsgSendVariants + ? _objc_msgSend_2cgrxlFpret(this.ref.pointer, _sel_floatValue) + : _objc_msgSend_2cgrxl(this.ref.pointer, _sel_floatValue); + } + + /// getBytes:maxLength:usedLength:encoding:options:range:remainingRange: + bool getBytes( + ffi.Pointer buffer, { + required int maxLength, + required ffi.Pointer usedLength, + required int encoding, + required NSStringEncodingConversionOptions options, + required NSRange range, + required ffi.Pointer remainingRange, + }) { + return _objc_msgSend_i30zh3( + this.ref.pointer, + _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_, + buffer, + maxLength, + usedLength, + encoding, + options.value, + range, + remainingRange, + ); + } + + /// getCString:maxLength:encoding: + bool getCString( + ffi.Pointer buffer, { + required int maxLength, + required int encoding, + }) { + return _objc_msgSend_1lv8yz3( + this.ref.pointer, + _sel_getCString_maxLength_encoding_, + buffer, + maxLength, + encoding, + ); + } + + /// getCharacters:range: + void getCharacters( + ffi.Pointer buffer, { + required NSRange range, + }) { + _objc_msgSend_898fog( + this.ref.pointer, + _sel_getCharacters_range_, + buffer, + range, + ); + } + + /// getLineStart:end:contentsEnd:forRange: + void getLineStart( + ffi.Pointer startPtr, { + required ffi.Pointer end, + required ffi.Pointer contentsEnd, + required NSRange forRange, + }) { + _objc_msgSend_ourvf2( + this.ref.pointer, + _sel_getLineStart_end_contentsEnd_forRange_, + startPtr, + end, + contentsEnd, + forRange, + ); + } + + /// getParagraphStart:end:contentsEnd:forRange: + void getParagraphStart( + ffi.Pointer startPtr, { + required ffi.Pointer end, + required ffi.Pointer contentsEnd, + required NSRange forRange, + }) { + _objc_msgSend_ourvf2( + this.ref.pointer, + _sel_getParagraphStart_end_contentsEnd_forRange_, + startPtr, + end, + contentsEnd, + forRange, + ); + } + + /// hasPrefix: + bool hasPrefix(NSString str) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_hasPrefix_, + str.ref.pointer, + ); + } + + /// hasSuffix: + bool hasSuffix(NSString str) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_hasSuffix_, + str.ref.pointer, + ); + } + + /// hash + int get hash { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_hash); + } + + /// intValue + int get intValue { + return _objc_msgSend_13yqbb6(this.ref.pointer, _sel_intValue); + } + + /// integerValue + int get integerValue { + objc.checkOsVersionInternal( + 'NSString.integerValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1hz7y9r(this.ref.pointer, _sel_integerValue); + } + + /// isEqualToString: + bool isEqualToString(NSString aString) { + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_isEqualToString_, + aString.ref.pointer, + ); + } + + /// lengthOfBytesUsingEncoding: + int lengthOfBytesUsingEncoding(int enc) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_lengthOfBytesUsingEncoding_, + enc, + ); + } + + /// lineRangeForRange: + NSRange lineRangeForRange(NSRange range) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_uimyc7Stret( + _ptr, + this.ref.pointer, + _sel_lineRangeForRange_, + range, + ) + : _ptr.ref = _objc_msgSend_uimyc7( + this.ref.pointer, + _sel_lineRangeForRange_, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// localizedCapitalizedString + NSString get localizedCapitalizedString { + objc.checkOsVersionInternal( + 'NSString.localizedCapitalizedString', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedCapitalizedString, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedCaseInsensitiveCompare: + NSComparisonResult localizedCaseInsensitiveCompare(NSString string) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_localizedCaseInsensitiveCompare_, + string.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// localizedCaseInsensitiveContainsString: + bool localizedCaseInsensitiveContainsString(NSString str) { + objc.checkOsVersionInternal( + 'NSString.localizedCaseInsensitiveContainsString:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_localizedCaseInsensitiveContainsString_, + str.ref.pointer, + ); + } + + /// localizedCompare: + NSComparisonResult localizedCompare(NSString string) { + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_localizedCompare_, + string.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// localizedLowercaseString + NSString get localizedLowercaseString { + objc.checkOsVersionInternal( + 'NSString.localizedLowercaseString', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedLowercaseString, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// localizedStandardCompare: + NSComparisonResult localizedStandardCompare(NSString string) { + objc.checkOsVersionInternal( + 'NSString.localizedStandardCompare:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1ym6zyw( + this.ref.pointer, + _sel_localizedStandardCompare_, + string.ref.pointer, + ); + return NSComparisonResult.fromValue(_ret); + } + + /// localizedStandardContainsString: + bool localizedStandardContainsString(NSString str) { + objc.checkOsVersionInternal( + 'NSString.localizedStandardContainsString:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + return _objc_msgSend_19nvye5( + this.ref.pointer, + _sel_localizedStandardContainsString_, + str.ref.pointer, + ); + } + + /// localizedStandardRangeOfString: + NSRange localizedStandardRangeOfString(NSString str) { + objc.checkOsVersionInternal( + 'NSString.localizedStandardRangeOfString:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_182fzonStret( + _ptr, + this.ref.pointer, + _sel_localizedStandardRangeOfString_, + str.ref.pointer, + ) + : _ptr.ref = _objc_msgSend_182fzon( + this.ref.pointer, + _sel_localizedStandardRangeOfString_, + str.ref.pointer, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// localizedUppercaseString + NSString get localizedUppercaseString { + objc.checkOsVersionInternal( + 'NSString.localizedUppercaseString', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_localizedUppercaseString, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// longLongValue + int get longLongValue { + objc.checkOsVersionInternal( + 'NSString.longLongValue', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + return _objc_msgSend_1k101e3(this.ref.pointer, _sel_longLongValue); + } + + /// lowercaseString + NSString get lowercaseString { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_lowercaseString); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// lowercaseStringWithLocale: + NSString lowercaseStringWithLocale(NSLocale? locale) { + objc.checkOsVersionInternal( + 'NSString.lowercaseStringWithLocale:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_lowercaseStringWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// maximumLengthOfBytesUsingEncoding: + int maximumLengthOfBytesUsingEncoding(int enc) { + return _objc_msgSend_12py2ux( + this.ref.pointer, + _sel_maximumLengthOfBytesUsingEncoding_, + enc, + ); + } + + /// paragraphRangeForRange: + NSRange paragraphRangeForRange(NSRange range) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_uimyc7Stret( + _ptr, + this.ref.pointer, + _sel_paragraphRangeForRange_, + range, + ) + : _ptr.ref = _objc_msgSend_uimyc7( + this.ref.pointer, + _sel_paragraphRangeForRange_, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// precomposedStringWithCanonicalMapping + NSString get precomposedStringWithCanonicalMapping { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_precomposedStringWithCanonicalMapping, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// precomposedStringWithCompatibilityMapping + NSString get precomposedStringWithCompatibilityMapping { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_precomposedStringWithCompatibilityMapping, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// rangeOfCharacterFromSet: + NSRange rangeOfCharacterFromSet(NSCharacterSet searchSet) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_182fzonStret( + _ptr, + this.ref.pointer, + _sel_rangeOfCharacterFromSet_, + searchSet.ref.pointer, + ) + : _ptr.ref = _objc_msgSend_182fzon( + this.ref.pointer, + _sel_rangeOfCharacterFromSet_, + searchSet.ref.pointer, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfCharacterFromSet:options: + NSRange rangeOfCharacterFromSet$1( + NSCharacterSet searchSet, { + required NSStringCompareOptions options, + }) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_102xxo4Stret( + _ptr, + this.ref.pointer, + _sel_rangeOfCharacterFromSet_options_, + searchSet.ref.pointer, + options.value, + ) + : _ptr.ref = _objc_msgSend_102xxo4( + this.ref.pointer, + _sel_rangeOfCharacterFromSet_options_, + searchSet.ref.pointer, + options.value, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfCharacterFromSet:options:range: + NSRange rangeOfCharacterFromSet$2( + NSCharacterSet searchSet, { + required NSStringCompareOptions options, + required NSRange range, + }) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1nmlvqcStret( + _ptr, + this.ref.pointer, + _sel_rangeOfCharacterFromSet_options_range_, + searchSet.ref.pointer, + options.value, + range, + ) + : _ptr.ref = _objc_msgSend_1nmlvqc( + this.ref.pointer, + _sel_rangeOfCharacterFromSet_options_range_, + searchSet.ref.pointer, + options.value, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfComposedCharacterSequenceAtIndex: + NSRange rangeOfComposedCharacterSequenceAtIndex(int index) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_d3i1uyStret( + _ptr, + this.ref.pointer, + _sel_rangeOfComposedCharacterSequenceAtIndex_, + index, + ) + : _ptr.ref = _objc_msgSend_d3i1uy( + this.ref.pointer, + _sel_rangeOfComposedCharacterSequenceAtIndex_, + index, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfComposedCharacterSequencesForRange: + NSRange rangeOfComposedCharacterSequencesForRange(NSRange range) { + objc.checkOsVersionInternal( + 'NSString.rangeOfComposedCharacterSequencesForRange:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_uimyc7Stret( + _ptr, + this.ref.pointer, + _sel_rangeOfComposedCharacterSequencesForRange_, + range, + ) + : _ptr.ref = _objc_msgSend_uimyc7( + this.ref.pointer, + _sel_rangeOfComposedCharacterSequencesForRange_, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfString: + NSRange rangeOfString(NSString searchString) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_182fzonStret( + _ptr, + this.ref.pointer, + _sel_rangeOfString_, + searchString.ref.pointer, + ) + : _ptr.ref = _objc_msgSend_182fzon( + this.ref.pointer, + _sel_rangeOfString_, + searchString.ref.pointer, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfString:options: + NSRange rangeOfString$1( + NSString searchString, { + required NSStringCompareOptions options, + }) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_102xxo4Stret( + _ptr, + this.ref.pointer, + _sel_rangeOfString_options_, + searchString.ref.pointer, + options.value, + ) + : _ptr.ref = _objc_msgSend_102xxo4( + this.ref.pointer, + _sel_rangeOfString_options_, + searchString.ref.pointer, + options.value, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfString:options:range: + NSRange rangeOfString$2( + NSString searchString, { + required NSStringCompareOptions options, + required NSRange range, + }) { + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_1nmlvqcStret( + _ptr, + this.ref.pointer, + _sel_rangeOfString_options_range_, + searchString.ref.pointer, + options.value, + range, + ) + : _ptr.ref = _objc_msgSend_1nmlvqc( + this.ref.pointer, + _sel_rangeOfString_options_range_, + searchString.ref.pointer, + options.value, + range, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// rangeOfString:options:range:locale: + NSRange rangeOfString$3( + NSString searchString, { + required NSStringCompareOptions options, + required NSRange range, + NSLocale? locale, + }) { + objc.checkOsVersionInternal( + 'NSString.rangeOfString:options:range:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ptr = pkg_ffi.calloc(); + objc.useMsgSendVariants + ? _objc_msgSend_gg0462Stret( + _ptr, + this.ref.pointer, + _sel_rangeOfString_options_range_locale_, + searchString.ref.pointer, + options.value, + range, + locale?.ref.pointer ?? ffi.nullptr, + ) + : _ptr.ref = _objc_msgSend_gg0462( + this.ref.pointer, + _sel_rangeOfString_options_range_locale_, + searchString.ref.pointer, + options.value, + range, + locale?.ref.pointer ?? ffi.nullptr, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); + return ffi.Struct.create(_finalizable); + } + + /// smallestEncoding + int get smallestEncoding { + return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_smallestEncoding); + } + + /// stringByAppendingFormat: + NSString stringByAppendingFormat(NSString format) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_stringByAppendingFormat_, + format.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByAppendingString: + NSString stringByAppendingString(NSString aString) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_stringByAppendingString_, + aString.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByApplyingTransform:reverse: + NSString? stringByApplyingTransform( + NSString transform, { + required bool reverse, + }) { + objc.checkOsVersionInternal( + 'NSString.stringByApplyingTransform:reverse:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.pointer, + _sel_stringByApplyingTransform_reverse_, + transform.ref.pointer, + reverse, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByFoldingWithOptions:locale: + NSString stringByFoldingWithOptions( + NSStringCompareOptions options, { + NSLocale? locale, + }) { + objc.checkOsVersionInternal( + 'NSString.stringByFoldingWithOptions:locale:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_11cbyu0( + this.ref.pointer, + _sel_stringByFoldingWithOptions_locale_, + options.value, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByPaddingToLength:withString:startingAtIndex: + NSString stringByPaddingToLength( + int newLength, { + required NSString withString, + required int startingAtIndex, + }) { + final _ret = _objc_msgSend_1tfztp( + this.ref.pointer, + _sel_stringByPaddingToLength_withString_startingAtIndex_, + newLength, + withString.ref.pointer, + startingAtIndex, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByReplacingCharactersInRange:withString: + NSString stringByReplacingCharactersInRange( + NSRange range, { + required NSString withString, + }) { + objc.checkOsVersionInternal( + 'NSString.stringByReplacingCharactersInRange:withString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_bstjp9( + this.ref.pointer, + _sel_stringByReplacingCharactersInRange_withString_, + range, + withString.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByReplacingOccurrencesOfString:withString: + NSString stringByReplacingOccurrencesOfString( + NSString target, { + required NSString withString, + }) { + objc.checkOsVersionInternal( + 'NSString.stringByReplacingOccurrencesOfString:withString:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.pointer, + _sel_stringByReplacingOccurrencesOfString_withString_, + target.ref.pointer, + withString.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByReplacingOccurrencesOfString:withString:options:range: + NSString stringByReplacingOccurrencesOfString$1( + NSString target, { + required NSString withString, + required NSStringCompareOptions options, + required NSRange range, + }) { + objc.checkOsVersionInternal( + 'NSString.stringByReplacingOccurrencesOfString:withString:options:range:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_2u4jm6( + this.ref.pointer, + _sel_stringByReplacingOccurrencesOfString_withString_options_range_, + target.ref.pointer, + withString.ref.pointer, + options.value, + range, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// stringByTrimmingCharactersInSet: + NSString stringByTrimmingCharactersInSet(NSCharacterSet set$) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_stringByTrimmingCharactersInSet_, + set$.ref.pointer, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// substringFromIndex: + NSString substringFromIndex(int from) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_substringFromIndex_, + from, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// substringToIndex: + NSString substringToIndex(int to) { + final _ret = _objc_msgSend_14hpxwa( + this.ref.pointer, + _sel_substringToIndex_, + to, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// substringWithRange: + NSString substringWithRange(NSRange range) { + final _ret = _objc_msgSend_1k1o1s7( + this.ref.pointer, + _sel_substringWithRange_, + range, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// uppercaseString + NSString get uppercaseString { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_uppercaseString); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// uppercaseStringWithLocale: + NSString uppercaseStringWithLocale(NSLocale? locale) { + objc.checkOsVersionInternal( + 'NSString.uppercaseStringWithLocale:', + iOS: (false, (6, 0, 0)), + macOS: (false, (10, 8, 0)), + ); + final _ret = _objc_msgSend_1sotr3r( + this.ref.pointer, + _sel_uppercaseStringWithLocale_, + locale?.ref.pointer ?? ffi.nullptr, + ); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// writeToFile:atomically:encoding:error: + bool writeToFile( + NSString path, { + required bool atomically, + required int encoding, + required ffi.Pointer> error, + }) { + return _objc_msgSend_dv3z6r( + this.ref.pointer, + _sel_writeToFile_atomically_encoding_error_, + path.ref.pointer, + atomically, + encoding, + error, + ); + } + + /// writeToURL:atomically:encoding:error: + bool writeToURL( + NSURL url, { + required bool atomically, + required int encoding, + required ffi.Pointer> error, + }) { + return _objc_msgSend_dv3z6r( + this.ref.pointer, + _sel_writeToURL_atomically_encoding_error_, + url.ref.pointer, + atomically, + encoding, + error, + ); + } +} + +/// NSTimer +class NSTimer extends NSObject { + NSTimer._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSTimer] that points to the same underlying object as [other]. + NSTimer.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSTimer] that wraps the given raw object pointer. + NSTimer.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSTimer]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSTimer, + ); + } + + /// alloc + static NSTimer alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSTimer, _sel_alloc); + return NSTimer.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSTimer allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSTimer, + _sel_allocWithZone_, + zone, + ); + return NSTimer.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSTimer new$() { + final _ret = _objc_msgSend_151sglz(_class_NSTimer, _sel_new); + return NSTimer.castFromPointer(_ret, retain: false, release: true); + } + + /// scheduledTimerWithTimeInterval:invocation:repeats: + static NSTimer scheduledTimerWithTimeInterval( + double ti, { + required NSInvocation invocation, + required bool repeats, + }) { + final _ret = _objc_msgSend_r49ehc( + _class_NSTimer, + _sel_scheduledTimerWithTimeInterval_invocation_repeats_, + ti, + invocation.ref.pointer, + repeats, + ); + return NSTimer.castFromPointer(_ret, retain: true, release: true); + } + + /// scheduledTimerWithTimeInterval:repeats:block: + static NSTimer scheduledTimerWithTimeInterval$1( + double interval, { + required bool repeats, + required objc.ObjCBlock block, + }) { + objc.checkOsVersionInternal( + 'NSTimer.scheduledTimerWithTimeInterval:repeats:block:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final _ret = _objc_msgSend_9a64f1( + _class_NSTimer, + _sel_scheduledTimerWithTimeInterval_repeats_block_, + interval, + repeats, + block.ref.pointer, + ); + return NSTimer.castFromPointer(_ret, retain: true, release: true); + } + + /// scheduledTimerWithTimeInterval:target:selector:userInfo:repeats: + static NSTimer scheduledTimerWithTimeInterval$2( + double ti, { + required objc.ObjCObjectBase target, + required ffi.Pointer selector, + objc.ObjCObjectBase? userInfo, + required bool repeats, + }) { + final _ret = _objc_msgSend_ot6jdx( + _class_NSTimer, + _sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_, + ti, + target.ref.pointer, + selector, + userInfo?.ref.pointer ?? ffi.nullptr, + repeats, + ); + return NSTimer.castFromPointer(_ret, retain: true, release: true); + } + + /// timerWithTimeInterval:invocation:repeats: + static NSTimer timerWithTimeInterval( + double ti, { + required NSInvocation invocation, + required bool repeats, + }) { + final _ret = _objc_msgSend_r49ehc( + _class_NSTimer, + _sel_timerWithTimeInterval_invocation_repeats_, + ti, + invocation.ref.pointer, + repeats, + ); + return NSTimer.castFromPointer(_ret, retain: true, release: true); + } + + /// timerWithTimeInterval:repeats:block: + static NSTimer timerWithTimeInterval$1( + double interval, { + required bool repeats, + required objc.ObjCBlock block, + }) { + objc.checkOsVersionInternal( + 'NSTimer.timerWithTimeInterval:repeats:block:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final _ret = _objc_msgSend_9a64f1( + _class_NSTimer, + _sel_timerWithTimeInterval_repeats_block_, + interval, + repeats, + block.ref.pointer, + ); + return NSTimer.castFromPointer(_ret, retain: true, release: true); + } + + /// timerWithTimeInterval:target:selector:userInfo:repeats: + static NSTimer timerWithTimeInterval$2( + double ti, { + required objc.ObjCObjectBase target, + required ffi.Pointer selector, + objc.ObjCObjectBase? userInfo, + required bool repeats, + }) { + final _ret = _objc_msgSend_ot6jdx( + _class_NSTimer, + _sel_timerWithTimeInterval_target_selector_userInfo_repeats_, + ti, + target.ref.pointer, + selector, + userInfo?.ref.pointer ?? ffi.nullptr, + repeats, + ); + return NSTimer.castFromPointer(_ret, retain: true, release: true); + } + + /// autorelease + NSTimer autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSTimer.castFromPointer(_ret, retain: true, release: true); + } + + /// fire + void fire() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_fire); + } + + /// fireDate + NSDate get fireDate { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fireDate); + return NSDate.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSTimer init() { + objc.checkOsVersionInternal( + 'NSTimer.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSTimer.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFireDate:interval:repeats:block: + NSTimer initWithFireDate( + NSDate date, { + required double interval, + required bool repeats, + required objc.ObjCBlock block, + }) { + objc.checkOsVersionInternal( + 'NSTimer.initWithFireDate:interval:repeats:block:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final _ret = _objc_msgSend_1s0rfm3( + this.ref.retainAndReturnPointer(), + _sel_initWithFireDate_interval_repeats_block_, + date.ref.pointer, + interval, + repeats, + block.ref.pointer, + ); + return NSTimer.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithFireDate:interval:target:selector:userInfo:repeats: + NSTimer initWithFireDate$1( + NSDate date, { + required double interval, + required objc.ObjCObjectBase target, + required ffi.Pointer selector, + objc.ObjCObjectBase? userInfo, + required bool repeats, + }) { + final _ret = _objc_msgSend_14wwtbv( + this.ref.retainAndReturnPointer(), + _sel_initWithFireDate_interval_target_selector_userInfo_repeats_, + date.ref.pointer, + interval, + target.ref.pointer, + selector, + userInfo?.ref.pointer ?? ffi.nullptr, + repeats, + ); + return NSTimer.castFromPointer(_ret, retain: false, release: true); + } + + /// invalidate + void invalidate() { + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_invalidate); + } + + /// isValid + bool get valid { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isValid); + } + + /// retain + NSTimer retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSTimer.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSTimer self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSTimer.castFromPointer(_ret, retain: true, release: true); + } + + /// setFireDate: + set fireDate(NSDate value) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_setFireDate_, + value.ref.pointer, + ); + } + + /// setTolerance: + set tolerance(double value) { + objc.checkOsVersionInternal( + 'NSTimer.setTolerance:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_hwm8nu(this.ref.pointer, _sel_setTolerance_, value); + } + + /// timeInterval + double get timeInterval { + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_timeInterval) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_timeInterval); + } + + /// tolerance + double get tolerance { + objc.checkOsVersionInternal( + 'NSTimer.tolerance', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return objc.useMsgSendVariants + ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_tolerance) + : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_tolerance); + } + + /// userInfo + objc.ObjCObjectBase? get userInfo { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_userInfo); + return _ret.address == 0 + ? null + : objc.ObjCObjectBase(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSTimer constructed with the default `new` method. + factory NSTimer() => new$(); +} + +/// NSURL +class NSURL extends NSObject implements NSSecureCoding, NSCopying { + NSURL._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSURL] that points to the same underlying object as [other]. + NSURL.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSURL] that wraps the given raw object pointer. + NSURL.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURL]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURL, + ); + } + + /// URLByResolvingAliasFileAtURL:options:error: + static NSURL? URLByResolvingAliasFileAtURL( + NSURL url, { + required NSURLBookmarkResolutionOptions options, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.URLByResolvingAliasFileAtURL:options:error:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); + final _ret = _objc_msgSend_1tiux5i( + _class_NSURL, + _sel_URLByResolvingAliasFileAtURL_options_error_, + url.ref.pointer, + options.value, + error, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: + static NSURL? URLByResolvingBookmarkData( + NSData bookmarkData, { + required NSURLBookmarkResolutionOptions options, + NSURL? relativeToURL, + required ffi.Pointer bookmarkDataIsStale, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1ceswyu( + _class_NSURL, + _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, + bookmarkData.ref.pointer, + options.value, + relativeToURL?.ref.pointer ?? ffi.nullptr, + bookmarkDataIsStale, + error, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// URLWithDataRepresentation:relativeToURL: + static NSURL URLWithDataRepresentation(NSData data, {NSURL? relativeToURL}) { + objc.checkOsVersionInternal( + 'NSURL.URLWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + _class_NSURL, + _sel_URLWithDataRepresentation_relativeToURL_, + data.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// URLWithString: + static NSURL? URLWithString(NSString URLString) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSURL, + _sel_URLWithString_, + URLString.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// URLWithString:encodingInvalidCharacters: + /// + /// iOS: introduced 17.0.0 + /// macOS: introduced 14.0.0 + static NSURL? URLWithString$1( + NSString URLString, { + required bool encodingInvalidCharacters, + }) { + objc.checkOsVersionInternal( + 'NSURL.URLWithString:encodingInvalidCharacters:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSURL, + _sel_URLWithString_encodingInvalidCharacters_, + URLString.ref.pointer, + encodingInvalidCharacters, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// URLWithString:relativeToURL: + static NSURL? URLWithString$2(NSString URLString, {NSURL? relativeToURL}) { + final _ret = _objc_msgSend_15qeuct( + _class_NSURL, + _sel_URLWithString_relativeToURL_, + URLString.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// absoluteURLWithDataRepresentation:relativeToURL: + static NSURL absoluteURLWithDataRepresentation( + NSData data, { + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.absoluteURLWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + _class_NSURL, + _sel_absoluteURLWithDataRepresentation_relativeToURL_, + data.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// alloc + static NSURL alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSURL, _sel_alloc); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSURL allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428(_class_NSURL, _sel_allocWithZone_, zone); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// bookmarkDataWithContentsOfURL:error: + static NSData? bookmarkDataWithContentsOfURL( + NSURL bookmarkFileURL, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.bookmarkDataWithContentsOfURL:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1lhpu4m( + _class_NSURL, + _sel_bookmarkDataWithContentsOfURL_error_, + bookmarkFileURL.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURLWithFileSystemRepresentation:isDirectory:relativeToURL: + static NSURL fileURLWithFileSystemRepresentation( + ffi.Pointer path, { + required bool isDirectory, + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_1n40f6p( + _class_NSURL, + _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, + path, + isDirectory, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURLWithPath: + static NSURL fileURLWithPath(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + _class_NSURL, + _sel_fileURLWithPath_, + path.ref.pointer, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURLWithPath:isDirectory: + static NSURL fileURLWithPath$1(NSString path, {required bool isDirectory}) { + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPath:isDirectory:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + _class_NSURL, + _sel_fileURLWithPath_isDirectory_, + path.ref.pointer, + isDirectory, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURLWithPath:isDirectory:relativeToURL: + static NSURL fileURLWithPath$2( + NSString path, { + required bool isDirectory, + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPath:isDirectory:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_1ged0jd( + _class_NSURL, + _sel_fileURLWithPath_isDirectory_relativeToURL_, + path.ref.pointer, + isDirectory, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileURLWithPath:relativeToURL: + static NSURL fileURLWithPath$3(NSString path, {NSURL? relativeToURL}) { + objc.checkOsVersionInternal( + 'NSURL.fileURLWithPath:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + _class_NSURL, + _sel_fileURLWithPath_relativeToURL_, + path.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// new + static NSURL new$() { + final _ret = _objc_msgSend_151sglz(_class_NSURL, _sel_new); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// objectWithItemProviderData:typeIdentifier:error: + static NSURL? objectWithItemProviderData( + NSData data, { + required NSString typeIdentifier, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.objectWithItemProviderData:typeIdentifier:error:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + final _ret = _objc_msgSend_1pnyuds( + _class_NSURL, + _sel_objectWithItemProviderData_typeIdentifier_error_, + data.ref.pointer, + typeIdentifier.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// resourceValuesForKeys:fromBookmarkData: + static NSDictionary? resourceValuesForKeys( + NSArray keys, { + required NSData fromBookmarkData, + }) { + objc.checkOsVersionInternal( + 'NSURL.resourceValuesForKeys:fromBookmarkData:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + _class_NSURL, + _sel_resourceValuesForKeys_fromBookmarkData_, + keys.ref.pointer, + fromBookmarkData.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSURL, _sel_supportsSecureCoding); + } + + /// writeBookmarkData:toURL:options:error: + static bool writeBookmarkData( + NSData bookmarkData, { + required NSURL toURL, + required int options, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.writeBookmarkData:toURL:options:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1vxoo9h( + _class_NSURL, + _sel_writeBookmarkData_toURL_options_error_, + bookmarkData.ref.pointer, + toURL.ref.pointer, + options, + error, + ); + } + + /// absoluteString + NSString? get absoluteString { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_absoluteString); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// absoluteURL + NSURL? get absoluteURL { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_absoluteURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// baseURL + NSURL? get baseURL { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_baseURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error: + NSData? bookmarkDataWithOptions( + NSURLBookmarkCreationOptions options, { + NSArray? includingResourceValuesForKeys, + NSURL? relativeToURL, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1wt9a7r( + this.ref.pointer, + _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_, + options.value, + includingResourceValuesForKeys?.ref.pointer ?? ffi.nullptr, + relativeToURL?.ref.pointer ?? ffi.nullptr, + error, + ); + return _ret.address == 0 + ? null + : NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// dataRepresentation + NSData get dataRepresentation { + objc.checkOsVersionInternal( + 'NSURL.dataRepresentation', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_dataRepresentation, + ); + return NSData.castFromPointer(_ret, retain: true, release: true); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// filePathURL + NSURL? get filePathURL { + objc.checkOsVersionInternal( + 'NSURL.filePathURL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_filePathURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileReferenceURL + NSURL? fileReferenceURL() { + objc.checkOsVersionInternal( + 'NSURL.fileReferenceURL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fileReferenceURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// fileSystemRepresentation + ffi.Pointer get fileSystemRepresentation { + objc.checkOsVersionInternal( + 'NSURL.fileSystemRepresentation', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_1fuqfwb( + this.ref.pointer, + _sel_fileSystemRepresentation, + ); + } + + /// fragment + NSString? get fragment { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_fragment); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// getFileSystemRepresentation:maxLength: + bool getFileSystemRepresentation( + ffi.Pointer buffer, { + required int maxLength, + }) { + objc.checkOsVersionInternal( + 'NSURL.getFileSystemRepresentation:maxLength:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + return _objc_msgSend_8cymbm( + this.ref.pointer, + _sel_getFileSystemRepresentation_maxLength_, + buffer, + maxLength, + ); + } + + /// getResourceValue:forKey:error: + bool getResourceValue( + ffi.Pointer> value, { + required NSString forKey, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.getResourceValue:forKey:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_1j9bhml( + this.ref.pointer, + _sel_getResourceValue_forKey_error_, + value, + forKey.ref.pointer, + error, + ); + } + + /// hasDirectoryPath + bool get hasDirectoryPath { + objc.checkOsVersionInternal( + 'NSURL.hasDirectoryPath', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_hasDirectoryPath); + } + + /// host + NSString? get host { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_host); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSURL init() { + objc.checkOsVersionInternal( + 'NSURL.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initAbsoluteURLWithDataRepresentation:relativeToURL: + NSURL initAbsoluteURLWithDataRepresentation( + NSData data, { + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.initAbsoluteURLWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_, + data.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error: + NSURL? initByResolvingBookmarkData( + NSData bookmarkData, { + required NSURLBookmarkResolutionOptions options, + NSURL? relativeToURL, + required ffi.Pointer bookmarkDataIsStale, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1ceswyu( + this.ref.retainAndReturnPointer(), + _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_, + bookmarkData.ref.pointer, + options.value, + relativeToURL?.ref.pointer ?? ffi.nullptr, + bookmarkDataIsStale, + error, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL: + NSURL initFileURLWithFileSystemRepresentation( + ffi.Pointer path, { + required bool isDirectory, + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + final _ret = _objc_msgSend_1n40f6p( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_, + path, + isDirectory, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initFileURLWithPath: + NSURL initFileURLWithPath(NSString path) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_, + path.ref.pointer, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initFileURLWithPath:isDirectory: + NSURL initFileURLWithPath$1(NSString path, {required bool isDirectory}) { + objc.checkOsVersionInternal( + 'NSURL.initFileURLWithPath:isDirectory:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_isDirectory_, + path.ref.pointer, + isDirectory, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initFileURLWithPath:isDirectory:relativeToURL: + NSURL initFileURLWithPath$2( + NSString path, { + required bool isDirectory, + NSURL? relativeToURL, + }) { + objc.checkOsVersionInternal( + 'NSURL.initFileURLWithPath:isDirectory:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_1ged0jd( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_isDirectory_relativeToURL_, + path.ref.pointer, + isDirectory, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initFileURLWithPath:relativeToURL: + NSURL initFileURLWithPath$3(NSString path, {NSURL? relativeToURL}) { + objc.checkOsVersionInternal( + 'NSURL.initFileURLWithPath:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initFileURLWithPath_relativeToURL_, + path.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSURL? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithDataRepresentation:relativeToURL: + NSURL initWithDataRepresentation(NSData data, {NSURL? relativeToURL}) { + objc.checkOsVersionInternal( + 'NSURL.initWithDataRepresentation:relativeToURL:', + iOS: (false, (9, 0, 0)), + macOS: (false, (10, 11, 0)), + ); + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithDataRepresentation_relativeToURL_, + data.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithString: + NSURL? initWithString(NSString URLString) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithString_, + URLString.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithString:encodingInvalidCharacters: + /// + /// iOS: introduced 17.0.0 + /// macOS: introduced 14.0.0 + NSURL? initWithString$1( + NSString URLString, { + required bool encodingInvalidCharacters, + }) { + objc.checkOsVersionInternal( + 'NSURL.initWithString:encodingInvalidCharacters:', + iOS: (false, (17, 0, 0)), + macOS: (false, (14, 0, 0)), + ); + final _ret = _objc_msgSend_17amj0z( + this.ref.retainAndReturnPointer(), + _sel_initWithString_encodingInvalidCharacters_, + URLString.ref.pointer, + encodingInvalidCharacters, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithString:relativeToURL: + NSURL? initWithString$2(NSString URLString, {NSURL? relativeToURL}) { + final _ret = _objc_msgSend_15qeuct( + this.ref.retainAndReturnPointer(), + _sel_initWithString_relativeToURL_, + URLString.ref.pointer, + relativeToURL?.ref.pointer ?? ffi.nullptr, + ); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: false, release: true); + } + + /// isFileReferenceURL + bool isFileReferenceURL() { + objc.checkOsVersionInternal( + 'NSURL.isFileReferenceURL', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_91o635(this.ref.pointer, _sel_isFileReferenceURL); + } + + /// isFileURL + bool get fileURL { + return _objc_msgSend_91o635(this.ref.pointer, _sel_isFileURL); + } + + /// iOS: introduced 2.0.0, deprecated 13.0.0 + /// macOS: introduced 10.2.0, deprecated 10.15.0 + NSString? get parameterString { + objc.checkOsVersionInternal( + 'NSURL.parameterString', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 2, 0)), + ); + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_parameterString); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// password + NSString? get password { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_password); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// path + NSString? get path { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_path); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// port + NSNumber? get port { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_port); + return _ret.address == 0 + ? null + : NSNumber.castFromPointer(_ret, retain: true, release: true); + } + + /// query + NSString? get query { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_query); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// relativePath + NSString? get relativePath { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_relativePath); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// relativeString + NSString get relativeString { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_relativeString); + return NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// removeAllCachedResourceValues + void removeAllCachedResourceValues() { + objc.checkOsVersionInternal( + 'NSURL.removeAllCachedResourceValues', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_removeAllCachedResourceValues); + } + + /// removeCachedResourceValueForKey: + void removeCachedResourceValueForKey(NSString key) { + objc.checkOsVersionInternal( + 'NSURL.removeCachedResourceValueForKey:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_removeCachedResourceValueForKey_, + key.ref.pointer, + ); + } + + /// resourceSpecifier + NSString? get resourceSpecifier { + final _ret = _objc_msgSend_151sglz( + this.ref.pointer, + _sel_resourceSpecifier, + ); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// resourceValuesForKeys:error: + NSDictionary? resourceValuesForKeys$1( + NSArray keys, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.resourceValuesForKeys:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + final _ret = _objc_msgSend_1lhpu4m( + this.ref.pointer, + _sel_resourceValuesForKeys_error_, + keys.ref.pointer, + error, + ); + return _ret.address == 0 + ? null + : NSDictionary.castFromPointer(_ret, retain: true, release: true); + } + + /// scheme + NSString? get scheme { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_scheme); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// setResourceValue:forKey:error: + bool setResourceValue( + objc.ObjCObjectBase? value, { + required NSString forKey, + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.setResourceValue:forKey:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_6z4k82( + this.ref.pointer, + _sel_setResourceValue_forKey_error_, + value?.ref.pointer ?? ffi.nullptr, + forKey.ref.pointer, + error, + ); + } + + /// setResourceValues:error: + bool setResourceValues( + NSDictionary keyedValues, { + required ffi.Pointer> error, + }) { + objc.checkOsVersionInternal( + 'NSURL.setResourceValues:error:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); + return _objc_msgSend_l9p60w( + this.ref.pointer, + _sel_setResourceValues_error_, + keyedValues.ref.pointer, + error, + ); + } + + /// setTemporaryResourceValue:forKey: + void setTemporaryResourceValue( + objc.ObjCObjectBase? value, { + required NSString forKey, + }) { + objc.checkOsVersionInternal( + 'NSURL.setTemporaryResourceValue:forKey:', + iOS: (false, (7, 0, 0)), + macOS: (false, (10, 9, 0)), + ); + _objc_msgSend_pfv6jd( + this.ref.pointer, + _sel_setTemporaryResourceValue_forKey_, + value?.ref.pointer ?? ffi.nullptr, + forKey.ref.pointer, + ); + } + + /// standardizedURL + NSURL? get standardizedURL { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_standardizedURL); + return _ret.address == 0 + ? null + : NSURL.castFromPointer(_ret, retain: true, release: true); + } + + /// startAccessingSecurityScopedResource + bool startAccessingSecurityScopedResource() { + objc.checkOsVersionInternal( + 'NSURL.startAccessingSecurityScopedResource', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + return _objc_msgSend_91o635( + this.ref.pointer, + _sel_startAccessingSecurityScopedResource, + ); + } + + /// stopAccessingSecurityScopedResource + void stopAccessingSecurityScopedResource() { + objc.checkOsVersionInternal( + 'NSURL.stopAccessingSecurityScopedResource', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 7, 0)), + ); + _objc_msgSend_1pl9qdv( + this.ref.pointer, + _sel_stopAccessingSecurityScopedResource, + ); + } + + /// user + NSString? get user { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_user); + return _ret.address == 0 + ? null + : NSString.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSURL constructed with the default `new` method. + factory NSURL() => new$(); +} + +enum NSURLBookmarkCreationOptions { + NSURLBookmarkCreationPreferFileIDResolution(256), + NSURLBookmarkCreationMinimalBookmark(512), + NSURLBookmarkCreationSuitableForBookmarkFile(1024), + NSURLBookmarkCreationWithSecurityScope(2048), + NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess(4096), + NSURLBookmarkCreationWithoutImplicitSecurityScope(536870912); + + final int value; + const NSURLBookmarkCreationOptions(this.value); + + static NSURLBookmarkCreationOptions fromValue(int value) => switch (value) { + 256 => NSURLBookmarkCreationPreferFileIDResolution, + 512 => NSURLBookmarkCreationMinimalBookmark, + 1024 => NSURLBookmarkCreationSuitableForBookmarkFile, + 2048 => NSURLBookmarkCreationWithSecurityScope, + 4096 => NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess, + 536870912 => NSURLBookmarkCreationWithoutImplicitSecurityScope, + _ => throw ArgumentError( + 'Unknown value for NSURLBookmarkCreationOptions: $value', + ), + }; +} + +enum NSURLBookmarkResolutionOptions { + NSURLBookmarkResolutionWithoutUI(256), + NSURLBookmarkResolutionWithoutMounting(512), + NSURLBookmarkResolutionWithSecurityScope(1024), + NSURLBookmarkResolutionWithoutImplicitStartAccessing(32768); + + final int value; + const NSURLBookmarkResolutionOptions(this.value); + + static NSURLBookmarkResolutionOptions fromValue(int value) => switch (value) { + 256 => NSURLBookmarkResolutionWithoutUI, + 512 => NSURLBookmarkResolutionWithoutMounting, + 1024 => NSURLBookmarkResolutionWithSecurityScope, + 32768 => NSURLBookmarkResolutionWithoutImplicitStartAccessing, + _ => throw ArgumentError( + 'Unknown value for NSURLBookmarkResolutionOptions: $value', + ), + }; +} + +/// NSURLHandle +class NSURLHandle extends NSObject { + NSURLHandle._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSURLHandle] that points to the same underlying object as [other]. + NSURLHandle.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSURLHandle] that wraps the given raw object pointer. + NSURLHandle.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSURLHandle]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSURLHandle, + ); + } + + /// alloc + static NSURLHandle alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSURLHandle, _sel_alloc); + return NSURLHandle.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSURLHandle allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSURLHandle, + _sel_allocWithZone_, + zone, + ); + return NSURLHandle.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSURLHandle new$() { + final _ret = _objc_msgSend_151sglz(_class_NSURLHandle, _sel_new); + return NSURLHandle.castFromPointer(_ret, retain: false, release: true); + } + + /// autorelease + NSURLHandle autorelease() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_autorelease); + return NSURLHandle.castFromPointer(_ret, retain: true, release: true); + } + + /// init + NSURLHandle init() { + objc.checkOsVersionInternal( + 'NSURLHandle.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSURLHandle.castFromPointer(_ret, retain: false, release: true); + } + + /// retain + NSURLHandle retain() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_retain); + return NSURLHandle.castFromPointer(_ret, retain: true, release: true); + } + + /// self + NSURLHandle self$1() { + final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_self); + return NSURLHandle.castFromPointer(_ret, retain: true, release: true); + } + + /// Returns a new instance of NSURLHandle constructed with the default `new` method. + factory NSURLHandle() => new$(); +} + +enum NSURLHandleStatus { + NSURLHandleNotLoaded(0), + NSURLHandleLoadSucceeded(1), + NSURLHandleLoadInProgress(2), + NSURLHandleLoadFailed(3); + + final int value; + const NSURLHandleStatus(this.value); + + static NSURLHandleStatus fromValue(int value) => switch (value) { + 0 => NSURLHandleNotLoaded, + 1 => NSURLHandleLoadSucceeded, + 2 => NSURLHandleLoadInProgress, + 3 => NSURLHandleLoadFailed, + _ => throw ArgumentError('Unknown value for NSURLHandleStatus: $value'), + }; +} + +/// NSValue +class NSValue extends NSObject implements NSCopying, NSSecureCoding { + NSValue._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); + + /// Constructs a [NSValue] that points to the same underlying object as [other]. + NSValue.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [NSValue] that wraps the given raw object pointer. + NSValue.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [NSValue]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSValue, + ); + } + + /// alloc + static NSValue alloc() { + final _ret = _objc_msgSend_151sglz(_class_NSValue, _sel_alloc); + return NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// allocWithZone: + static NSValue allocWithZone(ffi.Pointer zone) { + final _ret = _objc_msgSend_1cwp428( + _class_NSValue, + _sel_allocWithZone_, + zone, + ); + return NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// new + static NSValue new$() { + final _ret = _objc_msgSend_151sglz(_class_NSValue, _sel_new); + return NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// supportsSecureCoding + static bool getSupportsSecureCoding() { + return _objc_msgSend_91o635(_class_NSValue, _sel_supportsSecureCoding); + } + + /// encodeWithCoder: + void encodeWithCoder(NSCoder coder) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_encodeWithCoder_, + coder.ref.pointer, + ); + } + + /// getValue:size: + void getValue(ffi.Pointer value, {required int size}) { + objc.checkOsVersionInternal( + 'NSValue.getValue:size:', + iOS: (false, (11, 0, 0)), + macOS: (false, (10, 13, 0)), + ); + _objc_msgSend_zuf90e(this.ref.pointer, _sel_getValue_size_, value, size); + } + + /// init + NSValue init() { + objc.checkOsVersionInternal( + 'NSValue.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); + return NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithBytes:objCType: + NSValue initWithBytes( + ffi.Pointer value, { + required ffi.Pointer objCType, + }) { + final _ret = _objc_msgSend_e9mncn( + this.ref.retainAndReturnPointer(), + _sel_initWithBytes_objCType_, + value, + objCType, + ); + return NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// initWithCoder: + NSValue? initWithCoder(NSCoder coder) { + final _ret = _objc_msgSend_1sotr3r( + this.ref.retainAndReturnPointer(), + _sel_initWithCoder_, + coder.ref.pointer, + ); + return _ret.address == 0 + ? null + : NSValue.castFromPointer(_ret, retain: false, release: true); + } + + /// objCType + ffi.Pointer get objCType { + return _objc_msgSend_1fuqfwb(this.ref.pointer, _sel_objCType); + } + + /// Returns a new instance of NSValue constructed with the default `new` method. + factory NSValue() => new$(); +} + +final class NSZone extends ffi.Opaque {} + +ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer _ObjCBlock_NSArray_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSArray_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_NSArray_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSArray_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSArray_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_NSArray_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + NSArray Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSArray_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSArray_ffiVoid_CallExtension + on objc.ObjCBlock)> { + NSArray call(ffi.Pointer arg0) => NSArray.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); +} + +int _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrTrampoline, + 0, + ) + .cast(); +int +_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as int Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureTrampoline, + 0, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + NSComparisonResult Function(objc.ObjCObjectBase, objc.ObjCObjectBase) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + objc.ObjCObjectBase(arg1, retain: true, release: true), + ).value, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_NSComparisonResult_objcObjCObject_objcObjCObject_CallExtension + on + objc.ObjCBlock< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + NSComparisonResult call(objc.ObjCObjectBase arg0, objc.ObjCObjectBase arg1) => + NSComparisonResult.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer), + ); +} + +int +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrTrampoline, + 0, + ) + .cast(); +int +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as int Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer +_ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable = + ffi.Pointer.fromFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureTrampoline, + 0, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock, NSString)>`. +abstract final class ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSString)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSString)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock, NSString)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSString)>( + objc.newPointerBlock( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSString)> + fromFunction( + NSItemProviderRepresentationVisibility Function( + ffi.Pointer, + NSString, + ) + fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSString)>( + objc.newClosureBlock( + _ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSString.castFromPointer(arg1, retain: true, release: true), + ).value, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, NSString)>`. +extension ObjCBlock_NSItemProviderRepresentationVisibility_ffiVoid_NSString_CallExtension + on objc.ObjCBlock, NSString)> { + NSItemProviderRepresentationVisibility call( + ffi.Pointer arg0, + NSString arg1, + ) => NSItemProviderRepresentationVisibility.fromValue( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer), + ); +} + +ffi.Pointer +_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer +_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrTrampoline, + ) + .cast(); +ffi.Pointer +_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); +ffi.Pointer +_ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureTrampoline, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + >( + objc.newPointerBlock( + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + > + fromFunction( + NSOrderedCollectionChange Function(NSOrderedCollectionChange) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + >( + objc.newClosureBlock( + _ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_closureCallable, + (ffi.Pointer arg0) => fn( + NSOrderedCollectionChange.castFromPointer( + arg0, + retain: true, + release: true, + ), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_NSOrderedCollectionChange_NSOrderedCollectionChange_CallExtension + on + objc.ObjCBlock< + NSOrderedCollectionChange Function(NSOrderedCollectionChange) + > { + NSOrderedCollectionChange call(NSOrderedCollectionChange arg0) => + NSOrderedCollectionChange.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer +_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ))(arg0); +ffi.Pointer +_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock? Function(NSProgress)>`. +abstract final class ObjCBlock_NSProgressUnpublishingHandler_NSProgress { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.ObjCBlock? Function(NSProgress) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock? Function(NSProgress)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock< + objc.ObjCBlock? Function(NSProgress) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + > + ptr, + ) => + objc.ObjCBlock? Function(NSProgress)>( + objc.newPointerBlock( + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.ObjCBlock? Function(NSProgress) + > + fromFunction( + objc.ObjCBlock? Function(NSProgress) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock? Function(NSProgress)>( + objc.newClosureBlock( + _ObjCBlock_NSProgressUnpublishingHandler_NSProgress_closureCallable, + (ffi.Pointer arg0) => + fn( + NSProgress.castFromPointer(arg0, retain: true, release: true), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock? Function(NSProgress)>`. +extension ObjCBlock_NSProgressUnpublishingHandler_NSProgress_CallExtension + on + objc.ObjCBlock< + objc.ObjCBlock? Function(NSProgress) + > { + objc.ObjCBlock? call(NSProgress arg0) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer) + .address == + 0 + ? null + : ObjCBlock_ffiVoid.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ))(arg0); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSProgress_ffiVoidNSDataNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSProgress? Function(objc.ObjCBlock) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + NSProgress? Function(objc.ObjCBlock) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSProgress? Function(objc.ObjCBlock) + > + fromFunction( + NSProgress? Function(objc.ObjCBlock) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureCallable, + (ffi.Pointer arg0) => + fn( + ObjCBlock_ffiVoid_NSData_NSError.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSProgress_ffiVoidNSDataNSError_CallExtension + on + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > { + NSProgress? call(objc.ObjCBlock arg0) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer) + .address == + 0 + ? null + : NSProgress.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ))(arg0); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > + fromFunction( + NSProgress? Function( + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureCallable, + (ffi.Pointer arg0) => + fn( + ObjCBlock_ffiVoid_NSURL_bool_NSError.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_CallExtension + on + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock, + ) + > { + NSProgress? call( + objc.ObjCBlock arg0, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer) + .address == + 0 + ? null + : NSProgress.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock, NSString, objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + > + fromFunction( + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => + fn( + arg0, + NSString.castFromPointer(arg1, retain: true, release: true), + ObjCBlock_ffiVoid_NSData_NSError.castFromPointer( + arg2, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, NSString, objc.ObjCBlock)>`. +extension ObjCBlock_NSProgress_ffiVoid_NSString_ffiVoidNSDataNSError_CallExtension + on + objc.ObjCBlock< + NSProgress? Function( + ffi.Pointer, + NSString, + objc.ObjCBlock, + ) + > { + NSProgress? call( + ffi.Pointer arg0, + NSString arg1, + objc.ObjCBlock arg2, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer) + .address == + 0 + ? null + : NSProgress.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ))(arg0); +ffi.Pointer +_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock?, NSError?)>)>`. +abstract final class ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + > + fromFunction( + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_closureCallable, + (ffi.Pointer arg0) => + fn( + ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock?, NSError?)>)>`. +extension ObjCBlock_NSProgress_ffiVoididNSItemProviderWritingNSError_CallExtension + on + objc.ObjCBlock< + NSProgress? Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >, + ) + > { + NSProgress? call( + objc.ObjCBlock?, NSError?)> + arg0, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer) + .address == + 0 + ? null + : NSProgress.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer _ObjCBlock_NSString_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer _ObjCBlock_NSString_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSString_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer _ObjCBlock_NSString_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_NSString_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSString_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSString_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_NSString_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + NSString Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSString_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSString_ffiVoid_CallExtension + on objc.ObjCBlock)> { + NSString call(ffi.Pointer arg0) => NSString.castFromPointer( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); +} + +int _ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSUInteger_ffiVoid_fnPtrTrampoline, 0) + .cast(); +int _ObjCBlock_NSUInteger_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => (objc.getBlockClosure(block) as int Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_NSUInteger_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSUInteger_ffiVoid_closureTrampoline, 0) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_NSUInteger_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_NSUInteger_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + int Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_NSUInteger_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_NSUInteger_ffiVoid_CallExtension + on objc.ObjCBlock)> { + int call(ffi.Pointer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); +} + +int +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + ffi.UnsignedLong arg3, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >()(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrTrampoline, + 0, + ) + .cast(); +int +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, +) => + (objc.getBlockClosure(block) + as int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ))(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable = + ffi.Pointer.fromFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureTrampoline, + 0, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + ffi.UnsignedLong arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + objc.newPointerBlock( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + fromFunction( + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + >( + objc.newClosureBlock( + _ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, + ) => fn(arg0, arg1, arg2, arg3), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>`. +extension ObjCBlock_NSUInteger_ffiVoid_NSFastEnumerationState_objcObjCObject_NSUInteger_CallExtension + on + objc.ObjCBlock< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > { + int call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + int arg3, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer> arg2, + ffi.UnsignedLong arg3, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >()(ref.pointer, arg0, arg1, arg2, arg3); +} + +ffi.Pointer _ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction Function(ffi.Pointer)>()(arg0); +ffi.Pointer _ObjCBlock_NSZone_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSZone_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer _ObjCBlock_NSZone_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_NSZone_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSZone_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_NSZone_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock Function(ffi.Pointer)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newPointerBlock(_ObjCBlock_NSZone_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunction( + ffi.Pointer Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock Function(ffi.Pointer)>( + objc.newClosureBlock( + _ObjCBlock_NSZone_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_NSZone_ffiVoid_CallExtension + on objc.ObjCBlock Function(ffi.Pointer)> { + ffi.Pointer call(ffi.Pointer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); +} + +bool _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_KeyType_ObjectType_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_bool_KeyType_ObjectType_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_KeyType_ObjectType_bool_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_KeyType_ObjectType_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_bool_KeyType_ObjectType_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + bool Function( + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_bool_KeyType_ObjectType_bool_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + objc.ObjCObjectBase(arg1, retain: true, release: true), + arg2, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_bool_KeyType_ObjectType_bool_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call( + objc.ObjCObjectBase arg0, + objc.ObjCObjectBase arg1, + ffi.Pointer arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2); +} + +bool _ObjCBlock_bool_NSUInteger_bool_fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + >() + .asFunction)>()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_NSUInteger_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_bool_NSUInteger_bool_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_NSUInteger_bool_closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => (objc.getBlockClosure(block) as bool Function(int, ffi.Pointer))( + arg0, + arg1, +); +ffi.Pointer _ObjCBlock_bool_NSUInteger_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_bool_NSUInteger_bool_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_bool_NSUInteger_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_bool_NSUInteger_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > + fromFunction( + bool Function(int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_bool_NSUInteger_bool_closureCallable, + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_bool_NSUInteger_bool_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.UnsignedLong, ffi.Pointer) + > { + bool call(int arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); +} + +bool _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, int, ffi.Pointer) + >()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ObjectType_NSUInteger_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_bool_ObjectType_NSUInteger_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ObjectType_NSUInteger_bool_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ObjectType_NSUInteger_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_bool_ObjectType_NSUInteger_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + fromFunction( + bool Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_bool_ObjectType_NSUInteger_bool_closureCallable, + ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + arg1, + arg2, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. +extension ObjCBlock_bool_ObjectType_NSUInteger_bool_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > { + bool call(objc.ObjCObjectBase arg0, int arg1, ffi.Pointer arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1, arg2); +} + +bool _ObjCBlock_bool_ObjectType_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ObjectType_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ObjectType_bool_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ObjectType_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_bool_ObjectType_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ObjectType_bool_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ObjectType_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_bool_ObjectType_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + bool Function(objc.ObjCObjectBase, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_bool_ObjectType_bool_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(objc.ObjCObjectBase(arg0, retain: true, release: true), arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_ObjectType_bool_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > { + bool call(objc.ObjCObjectBase arg0, ffi.Pointer arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1); +} + +bool _ObjCBlock_bool_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_bool_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) as bool Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_bool_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_bool_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_bool_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + bool Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_bool_ffiVoid_CallExtension + on objc.ObjCBlock)> { + bool call(ffi.Pointer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); +} + +bool _ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_Protocol_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_bool_ffiVoid_Protocol_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_Protocol_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, Protocol)>`. +abstract final class ObjCBlock_bool_ffiVoid_Protocol { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, Protocol)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, Protocol)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock, Protocol)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, Protocol)>( + objc.newPointerBlock( + _ObjCBlock_bool_ffiVoid_Protocol_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, Protocol)> + fromFunction( + bool Function(ffi.Pointer, Protocol) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, Protocol)>( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_Protocol_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, Protocol.castFromPointer(arg1, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, Protocol)>`. +extension ObjCBlock_bool_ffiVoid_Protocol_CallExtension + on objc.ObjCBlock, Protocol)> { + bool call(ffi.Pointer arg0, Protocol arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); +} + +bool _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCObject_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ffiVoid_objcObjCObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_bool_ffiVoid_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + bool Function(ffi.Pointer, objc.ObjCObjectBase) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_objcObjCObject_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, objc.ObjCObjectBase(arg1, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_ffiVoid_objcObjCObject_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > { + bool call(ffi.Pointer arg0, objc.ObjCObjectBase arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); +} + +bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrTrampoline, false) + .cast(); +bool _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as bool Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable = + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_bool_ffiVoid_objcObjCSelector_closureTrampoline, false) + .cast(); + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_bool_ffiVoid_objcObjCSelector { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_bool_ffiVoid_objcObjCSelector_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + bool Function(ffi.Pointer, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_bool_ffiVoid_objcObjCSelector_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_bool_ffiVoid_objcObjCSelector_CallExtension + on + objc.ObjCBlock< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + bool call(ffi.Pointer arg0, ffi.Pointer arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); +} + +void _ObjCBlock_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, +) => block.ref.target + .cast>() + .asFunction()(); +ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_ObjCBlock_ffiVoid_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_closureTrampoline( + ffi.Pointer block, +) => (objc.getBlockClosure(block) as void Function())(); +ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_ObjCBlock_ffiVoid_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_listenerTrampoline( + ffi.Pointer block, +) { + (objc.getBlockClosure(block) as void Function())(); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable)> +_ObjCBlock_ffiVoid_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer) + >.listener(_ObjCBlock_ffiVoid_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, +) { + try { + (objc.getBlockClosure(block) as void Function())(); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_closureCallable, + () => fn(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function() fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1pl9qdv(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function() fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1pl9qdv( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_CallExtension + on objc.ObjCBlock { + void call() => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block) + > + >() + .asFunction)>()( + ref.pointer, + ); +} + +void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_KeyType_ObjectType_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + void Function( + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + objc.ObjCObjectBase(arg1, retain: true, release: true), + arg2, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + listener( + void Function( + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_listenerCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + objc.ObjCObjectBase(arg1, retain: false, release: true), + arg2, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1o83rbn(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + blocking( + void Function( + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + objc.ObjCObjectBase(arg1, retain: false, release: true), + arg2, + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_KeyType_ObjectType_bool_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + objc.ObjCObjectBase(arg1, retain: false, release: true), + arg2, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1o83rbn( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_KeyType_ObjectType_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + void call( + objc.ObjCObjectBase arg0, + objc.ObjCObjectBase arg1, + ffi.Pointer arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2); +} + +void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSData_NSError_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSData_NSError_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSData_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSData_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSData?, NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_NSError_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSData.castFromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSData?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_NSError_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSData?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_NSError_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSData_NSError_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSData.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSData_NSError_CallExtension + on objc.ObjCBlock { + void call(NSData? arg0, NSError? arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + ); +} + +void +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>`. +abstract final class ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + fromFunction( + void Function( + objc.ObjCBlock?, NSError)>, + objc.ObjCObjectBase, + NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: true, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: true, release: true), + NSDictionary.castFromPointer(arg2, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + listener( + void Function( + objc.ObjCBlock?, NSError)>, + objc.ObjCObjectBase, + NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1b3bb6a(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock?, NSError)>, + ffi.Pointer, + NSDictionary, + ) + > + blocking( + void Function( + objc.ObjCBlock?, NSError)>, + objc.ObjCObjectBase, + NSDictionary, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + ObjCBlock_ffiVoid_idNSSecureCoding_NSError.castFromPointer( + arg0, + retain: false, + release: true, + ), + objc.ObjCObjectBase(arg1, retain: false, release: true), + NSDictionary.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock?, NSError)>, ffi.Pointer, NSDictionary)>`. +extension ObjCBlock_ffiVoid_NSItemProviderCompletionHandler_objcObjCObject_NSDictionary_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >, + ffi.Pointer, + NSDictionary, + ) + > { + void call( + objc.ObjCBlock?, NSError)> + arg0, + objc.ObjCObjectBase arg1, + NSDictionary arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer, arg2.ref.pointer); +} + +void _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline( + ffi.Pointer block, + NSRange arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(NSRange arg0, ffi.Pointer arg1) + > + >() + .asFunction)>()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer block, + NSRange arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(NSRange, ffi.Pointer))(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSRange_bool_listenerTrampoline( + ffi.Pointer block, + NSRange arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(NSRange, ffi.Pointer))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSRange_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSRange_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + NSRange arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(NSRange, ffi.Pointer))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSRange_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSRange_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSRange_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(NSRange arg0, ffi.Pointer arg1) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSRange_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + void Function(NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSRange_bool_closureCallable, + (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + listener( + void Function(NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSRange_bool_listenerCallable.nativeFunction.cast(), + (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_zkjmn1(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> + blocking( + void Function(NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSRange_bool_blockingCallable.nativeFunction.cast(), + (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSRange_bool_blockingListenerCallable.nativeFunction + .cast(), + (NSRange arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_zkjmn1( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSRange_bool_CallExtension + on objc.ObjCBlock)> { + void call(NSRange arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + NSRange arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); +} + +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + fromFunction( + void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureCallable, + ( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => fn( + arg0.address == 0 + ? null + : NSString.castFromPointer(arg0, retain: true, release: true), + arg1, + arg2, + arg3, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + listener( + void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => fn( + arg0.address == 0 + ? null + : NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2, + arg3, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_lmc3p5(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > + blocking( + void Function(NSString?, NSRange, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => fn( + arg0.address == 0 + ? null + : NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2, + arg3, + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => fn( + arg0.address == 0 + ? null + : NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2, + arg3, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_lmc3p5( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(NSString?, NSRange, NSRange, ffi.Pointer) + > { + void call( + NSString? arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + NSRange arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1, arg2, arg3); +} + +void _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSString_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSString_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSString_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSString_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSString_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + fromFunction( + void Function(NSString, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_bool_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(NSString.castFromPointer(arg0, retain: true, release: true), arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> + listener( + void Function(NSString, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_bool_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_t8l8el(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> + blocking( + void Function(NSString, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_bool_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_bool_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + NSString.castFromPointer(arg0, retain: false, release: true), + arg1, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_t8l8el( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSString_bool_CallExtension + on objc.ObjCBlock)> { + void call(NSString arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1); +} + +void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSTimer_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSTimer_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSTimer_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSTimer_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSTimer_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSTimer_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSTimer_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSTimer_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSTimer_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSTimer { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_NSTimer_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSTimer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSTimer_closureCallable, + (ffi.Pointer arg0) => + fn(NSTimer.castFromPointer(arg0, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSTimer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSTimer_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(NSTimer.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_xtuoz7(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSTimer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSTimer_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(NSTimer.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSTimer_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(NSTimer.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_xtuoz7( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSTimer_CallExtension + on objc.ObjCBlock { + void call(NSTimer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer); +} + +void _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + >() + .asFunction)>()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) => (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( + arg0, + arg1, +); +ffi.Pointer _ObjCBlock_ffiVoid_NSUInteger_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSUInteger_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSUInteger_bool_listenerTrampoline( + ffi.Pointer block, + int arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSUInteger_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSUInteger_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) as void Function(int, ffi.Pointer))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSUInteger_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSUInteger_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSUInteger_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_NSUInteger_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSUInteger_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + fromFunction( + void Function(int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSUInteger_bool_closureCallable, + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + listener( + void Function(int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSUInteger_bool_listenerCallable.nativeFunction.cast(), + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_q5jeyk(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > + blocking( + void Function(int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSUInteger_bool_blockingCallable.nativeFunction.cast(), + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSUInteger_bool_blockingListenerCallable.nativeFunction + .cast(), + (int arg0, ffi.Pointer arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_q5jeyk( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_NSUInteger_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.UnsignedLong, ffi.Pointer) + > { + void call(int arg0, ffi.Pointer arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1); +} + +void _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSURL_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSURL_NSError_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSURL_NSError_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURL_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock fromFunction( + void Function(NSURL?, NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_NSError_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: true, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURL?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_NSError_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURL?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_NSError_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_NSError_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURL_NSError_CallExtension + on objc.ObjCBlock { + void call(NSURL? arg0, NSError? arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + ); +} + +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + bool, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + bool, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + bool, + ffi.Pointer, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + bool, + ffi.Pointer, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock`. +abstract final class ObjCBlock_ffiVoid_NSURL_bool_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock + fromFunction( + void Function(NSURL?, bool, NSError?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureCallable, + ( + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: true, release: true), + arg1, + arg2.address == 0 + ? null + : NSError.castFromPointer(arg2, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock listener( + void Function(NSURL?, bool, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_listenerCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2.address == 0 + ? null + : NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_rnu2c5(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock blocking( + void Function(NSURL?, bool, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingCallable.nativeFunction + .cast(), + ( + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2.address == 0 + ? null + : NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSURL_bool_NSError_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) => fn( + arg0.address == 0 + ? null + : NSURL.castFromPointer(arg0, retain: false, release: true), + arg1, + arg2.address == 0 + ? null + : NSError.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_rnu2c5( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock`. +extension ObjCBlock_ffiVoid_NSURL_bool_NSError_CallExtension + on objc.ObjCBlock { + void call(NSURL? arg0, bool arg1, NSError? arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1, + arg2?.ref.pointer ?? ffi.nullptr, + ); +} + +void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, int, ffi.Pointer) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + int, + ffi.Pointer, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + fromFunction( + void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_closureCallable, + ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: true, release: true), + arg1, + arg2, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + listener( + void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + arg1, + arg2, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1p9ui4q(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + blocking( + void Function(objc.ObjCObjectBase, int, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + arg1, + arg2, + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) => fn( + objc.ObjCObjectBase(arg0, retain: false, release: true), + arg1, + arg2, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ObjectType_NSUInteger_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > { + void call(objc.ObjCObjectBase arg0, int arg1, ffi.Pointer arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1, arg2); +} + +void _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ObjectType_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ObjectType_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_ffiVoid_ObjectType_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ObjectType_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ObjectType_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ObjectType_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ObjectType_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ObjectType_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ObjectType_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ObjectType_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + fromFunction( + void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_bool_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(objc.ObjCObjectBase(arg0, retain: true, release: true), arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + listener( + void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_bool_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_t8l8el(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + blocking( + void Function(objc.ObjCObjectBase, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_bool_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ObjectType_bool_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(objc.ObjCObjectBase(arg0, retain: false, release: true), arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_t8l8el( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ObjectType_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > { + void call(objc.ObjCObjectBase arg0, ffi.Pointer arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1); +} + +void _ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_ffiVoid_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { + try { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_ffiVoid_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> fromFunction( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock)> listener( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_ovsamd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock)> blocking( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_ovsamd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock)>`. +extension ObjCBlock_ffiVoid_ffiVoid_CallExtension + on objc.ObjCBlock)> { + void call(ffi.Pointer arg0) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, NSCoder)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSCoder { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSCoder)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSCoder)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock, NSCoder)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSCoder)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSCoder)> + fromFunction( + void Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSCoder)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSCoder)> + listener( + void Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_18v1jvf(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock, NSCoder)>( + wrapper, + retain: false, + release: true, + ); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSCoder)> + blocking( + void Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSCoder_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, NSCoder.castFromPointer(arg1, retain: false, release: true)), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock, NSCoder)>( + wrapper, + retain: false, + release: true, + ); + } +} + +/// Call operator for `objc.ObjCBlock, NSCoder)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSCoder_CallExtension + on objc.ObjCBlock, NSCoder)> { + void call(ffi.Pointer arg0, NSCoder arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, ffi.Pointer))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, NSPortMessage)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSPortMessage { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock, NSPortMessage)> + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock, NSPortMessage)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock, NSPortMessage)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => objc.ObjCBlock, NSPortMessage)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSPortMessage)> + fromFunction( + void Function(ffi.Pointer, NSPortMessage) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock, NSPortMessage)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSPortMessage.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock, NSPortMessage)> + listener( + void Function(ffi.Pointer, NSPortMessage) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSPortMessage.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_18v1jvf(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSPortMessage) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock, NSPortMessage)> + blocking( + void Function(ffi.Pointer, NSPortMessage) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSPortMessage.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => fn( + arg0, + NSPortMessage.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSPortMessage) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, NSPortMessage)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSPortMessage_CallExtension + on objc.ObjCBlock, NSPortMessage)> { + void call(ffi.Pointer arg0, NSPortMessage arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer); +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, NSRange, ffi.Pointer) + >()(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, NSRange, ffi.Pointer))( + arg0, + arg1, + arg2, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, NSRange, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + fromFunction( + void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureCallable, + ( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => fn(arg0, arg1, arg2), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + listener( + void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1q8ia8l(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + > + blocking( + void Function(ffi.Pointer, NSRange, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, NSRange arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSRange, ffi.Pointer) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, NSRange, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > { + void call( + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + int, + ))(arg0, arg1, arg2); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, NSStream, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: true, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: false, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_hoampi(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, NSStream, NSStreamEvent) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: false, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + int arg2, + ) => fn( + arg0, + NSStream.castFromPointer(arg1, retain: false, release: true), + NSStreamEvent.fromValue(arg2), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_hoampi( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, NSStream, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSStream_NSStreamEvent_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, NSStream, ffi.UnsignedLong) + > { + void call(ffi.Pointer arg0, NSStream arg1, NSStreamEvent arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.UnsignedLong arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.value); +} + +void +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); +ffi.Pointer +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureTrampoline, + ) + .cast(); +void +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3, arg4); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, NSString, ffi.Pointer, NSDictionary, ffi.Pointer)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + > + fromFunction( + void Function( + ffi.Pointer, + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSString.castFromPointer(arg1, retain: true, release: true), + objc.ObjCObjectBase(arg2, retain: true, release: true), + NSDictionary.castFromPointer(arg3, retain: true, release: true), + arg4, + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + > + listener( + void Function( + ffi.Pointer, + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_listenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSString.castFromPointer(arg1, retain: false, release: true), + objc.ObjCObjectBase(arg2, retain: false, release: true), + NSDictionary.castFromPointer(arg3, retain: false, release: true), + arg4, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_1sr3ozv(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + > + blocking( + void Function( + ffi.Pointer, + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSString.castFromPointer(arg1, retain: false, release: true), + objc.ObjCObjectBase(arg2, retain: false, release: true), + NSDictionary.castFromPointer(arg3, retain: false, release: true), + arg4, + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_blockingListenerCallable + .nativeFunction + .cast(), + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) => fn( + arg0, + NSString.castFromPointer(arg1, retain: false, release: true), + objc.ObjCObjectBase(arg2, retain: false, release: true), + NSDictionary.castFromPointer(arg3, retain: false, release: true), + arg4, + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, NSString, ffi.Pointer, NSDictionary, ffi.Pointer)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Void Function( + ffi.Pointer, + NSString, + ffi.Pointer, + NSDictionary, + ffi.Pointer, + ) + > { + void call( + ffi.Pointer arg0, + NSString arg1, + objc.ObjCObjectBase arg2, + NSDictionary arg3, + ffi.Pointer arg4, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ffi.Pointer arg4, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0, + arg1.ref.pointer, + arg2.ref.pointer, + arg3.ref.pointer, + arg4, + ); +} + +void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.UnsignedLong arg1) + > + >() + .asFunction, int)>()(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) => (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( + arg0, + arg1, +); +ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( + arg0, + arg1, + ); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + int arg1, +) { + try { + (objc.getBlockClosure(block) as void Function(ffi.Pointer, int))( + arg0, + arg1, + ); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener(_ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_ffiVoid_NSUInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.UnsignedLong arg1) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_closureCallable, + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_zuf90e(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_ffiVoid_NSUInteger_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_zuf90e( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_ffiVoid_NSUInteger_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > { + void call(ffi.Pointer arg0, int arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, arg1); +} + +void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock?, NSError?)>`. +abstract final class ObjCBlock_ffiVoid_idNSItemProviderReading_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + fromFunction( + void Function(NSItemProviderReading?, NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : NSItemProviderReading.castFromPointer( + arg0, + retain: true, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + listener( + void Function(NSItemProviderReading?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_listenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderReading.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + blocking( + void Function(NSItemProviderReading?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderReading.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderReading.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock?, NSError?)>`. +extension ObjCBlock_ffiVoid_idNSItemProviderReading_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > { + void call(NSItemProviderReading? arg0, NSError? arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + ); +} + +void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerTrampoline, + ) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingTrampoline, + ) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock?, NSError?)>`. +abstract final class ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + fromFunction( + void Function(NSItemProviderWriting?, NSError?) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : NSItemProviderWriting.castFromPointer( + arg0, + retain: true, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + listener( + void Function(NSItemProviderWriting?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_listenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderWriting.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > + blocking( + void Function(NSItemProviderWriting?, NSError?) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderWriting.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSItemProviderWriting.castFromPointer( + arg0, + retain: false, + release: true, + ), + arg1.address == 0 + ? null + : NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock?, NSError?)>`. +extension ObjCBlock_ffiVoid_idNSItemProviderWriting_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError?) + > { + void call(NSItemProviderWriting? arg0, NSError? arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()( + ref.pointer, + arg0?.ref.pointer ?? ffi.nullptr, + arg1?.ref.pointer ?? ffi.nullptr, + ); +} + +void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline, + ) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock?, NSError)>`. +abstract final class ObjCBlock_ffiVoid_idNSSecureCoding_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock?, NSError)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock?, NSError)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + fromFunction( + void Function(NSSecureCoding?, NSError) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock?, NSError)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: true, + release: true, + ), + NSError.castFromPointer(arg1, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + listener( + void Function(NSSecureCoding?, NSError) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_listenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_pfv6jd(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > + blocking( + void Function(NSSecureCoding?, NSError) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_idNSSecureCoding_NSError_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0.address == 0 + ? null + : NSSecureCoding.castFromPointer( + arg0, + retain: false, + release: true, + ), + NSError.castFromPointer(arg1, retain: false, release: true), + ), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock?, NSError)>`. +extension ObjCBlock_ffiVoid_idNSSecureCoding_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer?, NSError) + > { + void call(NSSecureCoding? arg0, NSError arg1) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr, arg1.ref.pointer); +} + +void _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + >() + .asFunction, int)>()( + arg0, + arg1, + ); +ffi.Pointer _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, int))(arg0, arg1); +ffi.Pointer _ObjCBlock_ffiVoid_unichar_NSUInteger_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >(_ObjCBlock_ffiVoid_unichar_NSUInteger_closureTrampoline) + .cast(); +void _ObjCBlock_ffiVoid_unichar_NSUInteger_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + int arg1, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, int))(arg0, arg1); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_unichar_NSUInteger_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener(_ObjCBlock_ffiVoid_unichar_NSUInteger_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, + int arg1, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer, int))(arg0, arg1); + } catch (e) { + } finally { + objc.signalWaiter(waiter); + objc.objectRelease(block.cast()); + } +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline) + ..keepIsolateAlive = false; +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) +> +_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + >.listener(_ObjCBlock_ffiVoid_unichar_NSUInteger_blockingTrampoline) + ..keepIsolateAlive = false; + +/// Construction methods for `objc.ObjCBlock, ffi.UnsignedLong)>`. +abstract final class ObjCBlock_ffiVoid_unichar_NSUInteger { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_unichar_NSUInteger_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + fromFunction( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_unichar_NSUInteger_closureCallable, + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ), + retain: false, + release: true, + ); + + /// Creates a listener block from a Dart function. + /// + /// This is based on FFI's NativeCallable.listener, and has the same + /// capabilities and limitations. This block can be invoked from any thread, + /// but only supports void functions, and is not run synchronously. See + /// NativeCallable.listener for more details. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + listener( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_unichar_NSUInteger_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapListenerBlock_vhbh5h(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } + + /// Creates a blocking block from a Dart function. + /// + /// This callback can be invoked from any native thread, and will block the + /// caller until the callback is handled by the Dart isolate that created + /// the block. Async functions are not supported. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. If the owner isolate + /// has shut down, and the block is invoked by native code, it may block + /// indefinitely, or have other undefined behavior. + static objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > + blocking( + void Function(ffi.Pointer, int) fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final rawListener = objc.newClosureBlock( + _ObjCBlock_ffiVoid_unichar_NSUInteger_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0, int arg1) => fn(arg0, arg1), + keepIsolateAlive, + ); + final wrapper = _ObjectiveCBindings_wrapBlockingBlock_vhbh5h( + raw, + rawListener, + objc.objCContext, + ); + objc.objectRelease(raw.cast()); + objc.objectRelease(rawListener.cast()); + return objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + >(wrapper, retain: false, release: true); + } +} + +/// Call operator for `objc.ObjCBlock, ffi.UnsignedLong)>`. +extension ObjCBlock_ffiVoid_unichar_NSUInteger_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Pointer, ffi.UnsignedLong) + > { + void call(ffi.Pointer arg0, int arg1) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >()(ref.pointer, arg0, arg1); +} + +instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrTrampoline) + .cast(); +instancetype _ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as instancetype Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSCoder_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>`. +abstract final class ObjCBlock_instancetype_ffiVoid_NSCoder { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + >( + objc.newPointerBlock( + _ObjCBlock_instancetype_ffiVoid_NSCoder_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > + fromFunction( + Dartinstancetype? Function(ffi.Pointer, NSCoder) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + >( + objc.newClosureBlock( + _ObjCBlock_instancetype_ffiVoid_NSCoder_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn( + arg0, + NSCoder.castFromPointer(arg1, retain: true, release: true), + )?.ref.retainAndReturnPointer() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock?> Function(ffi.Pointer, NSCoder)>`. +extension ObjCBlock_instancetype_ffiVoid_NSCoder_CallExtension + on + objc.ObjCBlock< + objc.Retained?> Function( + ffi.Pointer, + NSCoder, + ) + > { + Dartinstancetype? call(ffi.Pointer arg0, NSCoder arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer) + .address == + 0 + ? null + : objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1.ref.pointer), + retain: false, + release: true, + ); +} + +instancetype +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrTrampoline) + .cast(); +instancetype +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, +) => + (objc.getBlockClosure(block) + as instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ))(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable = + ffi.Pointer.fromFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(_ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>`. +abstract final class ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + >( + objc.newPointerBlock( + _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > + fromFunction( + Dartinstancetype? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + >( + objc.newClosureBlock( + _ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) => + fn( + arg0, + NSData.castFromPointer(arg1, retain: true, release: true), + NSString.castFromPointer(arg2, retain: true, release: true), + arg3, + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock? Function(ffi.Pointer, NSData, NSString, ffi.Pointer>)>`. +extension ObjCBlock_instancetype_ffiVoid_NSData_NSString_NSError_CallExtension + on + objc.ObjCBlock< + ffi.Pointer? Function( + ffi.Pointer, + NSData, + NSString, + ffi.Pointer>, + ) + > { + Dartinstancetype? call( + ffi.Pointer arg0, + NSData arg1, + NSString arg2, + ffi.Pointer> arg3, + ) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3) + .address == + 0 + ? null + : objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer> arg3, + ) + > + >() + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer, arg3), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock? Function(NSError, NSString)>`. +abstract final class ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer? Function(NSError, NSString) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock? Function(NSError, NSString)>( + pointer, + retain: retain, + release: release, + ); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer? Function(NSError, NSString) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock? Function(NSError, NSString)>( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer? Function(NSError, NSString) + > + fromFunction( + objc.ObjCObjectBase? Function(NSError, NSString) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock? Function(NSError, NSString)>( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => + fn( + NSError.castFromPointer(arg0, retain: true, release: true), + NSString.castFromPointer(arg1, retain: true, release: true), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock? Function(NSError, NSString)>`. +extension ObjCBlock_objcObjCObject_NSError_NSErrorUserInfoKey_CallExtension + on + objc.ObjCBlock< + ffi.Pointer? Function(NSError, NSString) + > { + objc.ObjCObjectBase? call(NSError arg0, NSString arg1) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer) + .address == + 0 + ? null + : objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer, arg1.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { + objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid_NSZone { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_NSZone_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer, ffi.Pointer) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_NSZone_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1).ref.retainAndReturnPointer(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock> Function(ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_NSZone_CallExtension + on + objc.ObjCBlock< + objc.Retained> Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.ObjCObjectBase call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1), + retain: false, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrTrampoline) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureTrampoline) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function( + ffi.Pointer, + ffi.Pointer, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_closureCallable, + (ffi.Pointer arg0, ffi.Pointer arg1) => + fn(arg0, arg1).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.ObjCObjectBase call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrTrampoline, + ) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureTrampoline, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function( + ffi.Pointer, + ffi.Pointer, + objc.ObjCObjectBase, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) => fn( + arg0, + arg1, + objc.ObjCObjectBase(arg2, retain: true, release: true), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.ObjCObjectBase call( + ffi.Pointer arg0, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2.ref.pointer), + retain: true, + release: true, + ); +} + +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrTrampoline, + ) + .cast(); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ))(arg0, arg1, arg2, arg3); +ffi.Pointer +_ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable = + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureTrampoline, + ) + .cast(); + +/// Construction methods for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. +abstract final class ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject { + /// Returns a block that wraps the given raw block pointer. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(pointer, retain: retain, release: release); + + /// 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. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); + + /// Creates a block from a Dart function. + /// + /// 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. + /// + /// If `keepIsolateAlive` is true, this block will keep this isolate alive + /// until it is garbage collected by both Dart and ObjC. + static objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + fromFunction( + objc.ObjCObjectBase Function( + ffi.Pointer, + ffi.Pointer, + objc.ObjCObjectBase, + objc.ObjCObjectBase, + ) + fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_closureCallable, + ( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) => fn( + arg0, + arg1, + objc.ObjCObjectBase(arg2, retain: true, release: true), + objc.ObjCObjectBase(arg3, retain: true, release: true), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); +} + +/// Call operator for `objc.ObjCBlock Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>`. +extension ObjCBlock_objcObjCObject_ffiVoid_objcObjCSelector_objcObjCObject_objcObjCObject_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > { + objc.ObjCObjectBase call( + ffi.Pointer arg0, + ffi.Pointer arg1, + objc.ObjCObjectBase arg2, + objc.ObjCObjectBase arg3, + ) => objc.ObjCObjectBase( + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ffi.Pointer arg3, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2.ref.pointer, arg3.ref.pointer), + retain: true, + release: true, + ); +} + +/// Protocol for observing changes to values of objects. +interface class Observer extends objc.ObjCProtocolBase + implements NSObjectProtocol { + Observer._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [Observer] that points to the same underlying object as [other]. + Observer.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [Observer] that wraps the given raw object pointer. + Observer.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [Observer]. + static bool conformsTo(objc.ObjCObjectBase obj) { + return _objc_msgSend_e3qsqz( + obj.ref.pointer, + _sel_conformsToProtocol_, + _protocol_Observer, + ); + } + + /// Returns the [objc.Protocol] object for this protocol. + static objc.Protocol get $protocol => + objc.Protocol.castFromPointer(_protocol_Observer.cast()); + + /// Builds an object that implements the Observer protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static Observer implement({ + required void Function( + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); + Observer.observeValueForKeyPath_ofObject_change_context_.implement( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + return Observer.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the Observer protocol to an existing + /// [objc.ObjCProtocolBuilder]. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilder( + objc.ObjCProtocolBuilder builder, { + required void Function( + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + Observer.observeValueForKeyPath_ofObject_change_context_.implement( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the Observer protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static Observer implementAsListener({ + required void Function( + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); + Observer.observeValueForKeyPath_ofObject_change_context_ + .implementAsListener( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + return Observer.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the Observer protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as listeners will + /// be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsListener( + objc.ObjCProtocolBuilder builder, { + required void Function( + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + Observer.observeValueForKeyPath_ofObject_change_context_ + .implementAsListener( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + } + + /// Builds an object that implements the Observer protocol. To implement + /// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All + /// methods that can be implemented as blocking listeners will be. + /// + /// If `$keepIsolateAlive` is true, this protocol will keep this isolate + /// alive until it is garbage collected by both Dart and ObjC. + static Observer implementAsBlocking({ + required void Function( + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + final builder = objc.ObjCProtocolBuilder(debugName: 'Observer'); + Observer.observeValueForKeyPath_ofObject_change_context_ + .implementAsBlocking( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + return Observer.castFrom( + builder.build(keepIsolateAlive: $keepIsolateAlive), + ); + } + + /// Adds the implementation of the Observer protocol to an existing + /// [objc.ObjCProtocolBuilder]. All methods that can be implemented as blocking + /// listeners will be. + /// + /// Note: You cannot call this method after you have called `builder.build`. + static void addToBuilderAsBlocking( + objc.ObjCProtocolBuilder builder, { + required void Function( + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + observeValueForKeyPath_ofObject_change_context_, + bool $keepIsolateAlive = true, + }) { + Observer.observeValueForKeyPath_ofObject_change_context_ + .implementAsBlocking( + builder, + observeValueForKeyPath_ofObject_change_context_, + ); + builder.addProtocol($protocol); + } + + /// observeValueForKeyPath:ofObject:change:context: + static final observeValueForKeyPath_ofObject_change_context_ = + objc.ObjCProtocolListenableMethod< + void Function( + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + >( + _protocol_Observer, + _sel_observeValueForKeyPath_ofObject_change_context_, + ffi.Native.addressOf< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >(_ObjectiveCBindings_protocolTrampoline_1sr3ozv) + .cast(), + objc.getProtocolMethodSignature( + _protocol_Observer, + _sel_observeValueForKeyPath_ofObject_change_context_, + isRequired: true, + isInstanceMethod: true, + ), + ( + void Function( + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.fromFunction( + ( + ffi.Pointer _, + NSString arg1, + objc.ObjCObjectBase arg2, + NSDictionary arg3, + ffi.Pointer arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.listener( + ( + ffi.Pointer _, + NSString arg1, + objc.ObjCObjectBase arg2, + NSDictionary arg3, + ffi.Pointer arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ( + void Function( + NSString, + objc.ObjCObjectBase, + NSDictionary, + ffi.Pointer, + ) + func, + ) => + ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.blocking( + ( + ffi.Pointer _, + NSString arg1, + objc.ObjCObjectBase arg2, + NSDictionary arg3, + ffi.Pointer arg4, + ) => func(arg1, arg2, arg3, arg4), + ), + ); +} + +final class OpaqueAEDataStorageType extends ffi.Opaque {} + +/// Protocol +class Protocol extends objc.ObjCObjectBase { + Protocol._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super(pointer, retain: retain, release: release); + + /// Constructs a [Protocol] that points to the same underlying object as [other]. + Protocol.castFrom(objc.ObjCObjectBase other) + : this._(other.ref.pointer, retain: true, release: true); + + /// Constructs a [Protocol] that wraps the given raw object pointer. + Protocol.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); + + /// Returns whether [obj] is an instance of [Protocol]. + static bool isInstance(objc.ObjCObjectBase obj) { + return _objc_msgSend_19nvye5( + obj.ref.pointer, + _sel_isKindOfClass_, + _class_Protocol, + ); + } +} + +late final _class_DOBJCDartInputStreamAdapter = objc.getClass( + "DOBJCDartInputStreamAdapter", +); +late final _class_DOBJCDartProtocol = objc.getClass("DOBJCDartProtocol"); +late final _class_DOBJCDartProtocolBuilder = objc.getClass( + "DOBJCDartProtocolBuilder", +); +late final _class_DOBJCObservation = objc.getClass("DOBJCObservation"); +late final _class_NSArray = objc.getClass("NSArray"); +late final _class_NSCharacterSet = objc.getClass("NSCharacterSet"); +late final _class_NSCoder = objc.getClass("NSCoder"); +late final _class_NSData = objc.getClass("NSData"); +late final _class_NSDate = objc.getClass("NSDate"); +late final _class_NSDictionary = objc.getClass("NSDictionary"); +late final _class_NSEnumerator = objc.getClass("NSEnumerator"); +late final _class_NSError = objc.getClass("NSError"); +late final _class_NSIndexSet = objc.getClass("NSIndexSet"); +late final _class_NSInputStream = objc.getClass("NSInputStream"); +late final _class_NSInvocation = objc.getClass("NSInvocation"); +late final _class_NSItemProvider = objc.getClass("NSItemProvider"); +late final _class_NSLocale = objc.getClass("NSLocale"); +late final _class_NSMethodSignature = objc.getClass("NSMethodSignature"); +late final _class_NSMutableArray = objc.getClass("NSMutableArray"); +late final _class_NSMutableData = objc.getClass("NSMutableData"); +late final _class_NSMutableDictionary = objc.getClass("NSMutableDictionary"); +late final _class_NSMutableIndexSet = objc.getClass("NSMutableIndexSet"); +late final _class_NSMutableOrderedSet = objc.getClass("NSMutableOrderedSet"); +late final _class_NSMutableSet = objc.getClass("NSMutableSet"); +late final _class_NSMutableString = objc.getClass("NSMutableString"); +late final _class_NSNotification = objc.getClass("NSNotification"); +late final _class_NSNumber = objc.getClass("NSNumber"); +late final _class_NSObject = objc.getClass("NSObject"); +late final _class_NSOrderedCollectionChange = objc.getClass( + "NSOrderedCollectionChange", +); +late final _class_NSOrderedCollectionDifference = objc.getClass( + "NSOrderedCollectionDifference", +); +late final _class_NSOrderedSet = objc.getClass("NSOrderedSet"); +late final _class_NSOutputStream = objc.getClass("NSOutputStream"); +late final _class_NSPort = objc.getClass("NSPort"); +late final _class_NSPortMessage = objc.getClass("NSPortMessage"); +late final _class_NSProgress = objc.getClass("NSProgress"); +late final _class_NSRunLoop = objc.getClass("NSRunLoop"); +late final _class_NSSet = objc.getClass("NSSet"); +late final _class_NSStream = objc.getClass("NSStream"); +late final _class_NSString = objc.getClass("NSString"); +late final _class_NSTimer = objc.getClass("NSTimer"); +late final _class_NSURL = objc.getClass("NSURL"); +late final _class_NSURLHandle = objc.getClass("NSURLHandle"); +late final _class_NSValue = objc.getClass("NSValue"); +late final _class_Protocol = objc.getClass("Protocol"); +final _objc_msgSend_102xxo4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_102xxo4Stret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_10mlopr = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11cbyu0 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_11e9f5x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_11spmsz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_122v0cv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_12py2ux = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_134vhyh = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_13mclwd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Char, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_13x5boi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_13yqbb6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_14ew8zr = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_14hpxwa = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_14hvw5k = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_14wwtbv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_151sglz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_158ju31 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_15bolr3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_15qeuct = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_161ne8y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); +final _objc_msgSend_1698hqz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_16f0drb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_16fy0up = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_177cajs = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_17amj0z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_17gvxvj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_182fzon = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_182fzonStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1895u4n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_18qun1e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_19lrthf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + >(); +final _objc_msgSend_19nvye5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1alewu7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1b5ysjl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_1bbja28 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1bvics1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ceswyu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1co9mn4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedShort, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1cwp428 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1d8s65w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_1d8s65wStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_1d9e4oe = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1deg8x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedShort Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1dydpdi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_1e3pm0z = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_1efxbd8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1egc1c = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + ) + >(); +final _objc_msgSend_1ffoev1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1flkydz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1frfu5e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1fuqfwb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ged0jd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1gypgok = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1h2q612 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1hz7y9r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1i0cxyc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1i2r70j = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1i9r4xy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1i9v144 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1iyq28l = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1j9bhml = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1jiinfj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1jtxufi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1jwityx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Short Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1k0ezzm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1k101e3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1k1o1s7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_1k4kd9s = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1k745tv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1ko4qka = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedChar Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1lbgrac = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lhpu4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1lsax7n = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1lv8yz3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_1m7prh1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1n40f6p = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1njucl2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedShort, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1nmlvqc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_1nmlvqcStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_1nomli1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1oteutl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_1ovaulg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ozwf6k = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1p4gbjy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_1pa9f4m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pl40xc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pl9qdv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1pnyuds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1q30cs4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1qv0eq4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1r6ymhb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1s0rfm3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1s2gdyk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1s56lr9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1sotr3r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1srf6wk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1t6aok9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_1tfztp = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1tiux5i = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1tv4uax = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vd1c5m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1vnlaqg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1vxoo9h = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1wdb8ji = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1wt9a7r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1x2hskc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLongLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1x5ew3h = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_1xi08ar = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_1xpk2hb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1ya1kjn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_1ym6zyw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2cgrxlFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_2u4jm6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ) + >(); +final _objc_msgSend_3cbdpb = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3ctkt6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_3l8zum = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_3nbx5e = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_3pyzne = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_553v = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ffi.Int64, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_56zxyn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_68x6r1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Short, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_6ex6p5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_6jmuyz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_6peh6o = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_6z4k82 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_7g3u2y = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_7kpg7m = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_7uautw = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedChar, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_8321cp = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_898fog = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_89xgla = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_8cymbm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_91o635 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_9a64f1 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Bool, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + bool, + ffi.Pointer, + ) + >(); +final _objc_msgSend_9b3h4v = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_9x4k8x = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_a3wp08 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_arew0j = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_bfp043 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_bstjp9 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_c0vg4w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_cfx8ce = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_cnxxyq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_d3i1uy = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_d3i1uyStret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_dbvvll = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_degb40 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_diypgk = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_djsa9o = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_dv3z6r = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + int, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_e3qsqz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_e9mncn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_eh32gn = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_erqryg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_et8cuh = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_f167m6 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_gcjqkl = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_gerswc = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Uint8, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_gg0462 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_gg0462Stret = objc.msgSendStretPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_gupwtj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_gx50so = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_hc8exi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_hiwitm = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); +final _objc_msgSend_hk6irj = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_hwm8nu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_i30zh3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + NSRange, + ffi.Pointer, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + int, + int, + NSRange, + ffi.Pointer, + ) + >(); +final _objc_msgSend_jjgvjt = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_jsclrq = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_k1x6mt = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_k4j8m3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + bool, + ) + >(); +final _objc_msgSend_kshx9d = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_l9p60w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); +final _objc_msgSend_lh0jh5 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ) + >(); +final _objc_msgSend_mabicu = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_mabicuFpret = objc.msgSendFpretPointer + .cast< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_n2svg2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int, + ) + >(); +final _objc_msgSend_nc6uds = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_nnxkei = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_o16d3k = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + NSRange, + ) + >(); +final _objc_msgSend_o762yo = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_oa8mke = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); +final _objc_msgSend_ot6jdx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); +final _objc_msgSend_otx1t4 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); +final _objc_msgSend_ourvf2 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_ovsamd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_p4nurx = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_pfv6jd = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_pg1fnv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, ) - >( - _protocol_Observer, - _sel_observeValueForKeyPath_ofObject_change_context_, - ffi.Native.addressOf< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >(_ObjectiveCBindings_protocolTrampoline_1sr3ozv) - .cast(), - objc.getProtocolMethodSignature( - _protocol_Observer, - _sel_observeValueForKeyPath_ofObject_change_context_, - isRequired: true, - isInstanceMethod: true, - ), - ( - void Function( - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.fromFunction( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.ObjCObjectBase arg2, - objc.NSDictionary arg3, - ffi.Pointer arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.listener( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.ObjCObjectBase arg2, - objc.NSDictionary arg3, - ffi.Pointer arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ( - void Function( - objc.NSString, - objc.ObjCObjectBase, - objc.NSDictionary, - ffi.Pointer, - ) - func, - ) => - ObjCBlock_ffiVoid_ffiVoid_NSString_objcObjCObject_NSDictionary_ffiVoid.blocking( - ( - ffi.Pointer _, - objc.NSString arg1, - objc.ObjCObjectBase arg2, - objc.NSDictionary arg3, - ffi.Pointer arg4, - ) => func(arg1, arg2, arg3, arg4), - ), - ); -} - -late final _class_DOBJCDartInputStreamAdapter = objc.getClass( - "DOBJCDartInputStreamAdapter", -); -late final _class_DOBJCDartProtocol = objc.getClass("DOBJCDartProtocol"); -late final _class_DOBJCDartProtocolBuilder = objc.getClass( - "DOBJCDartProtocolBuilder", -); -late final _class_DOBJCObservation = objc.getClass("DOBJCObservation"); -late final _class_NSNumber = objc.getClass("NSNumber"); -final _objc_msgSend_151sglz = objc.msgSendPointer + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_pysgoz = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Int64 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_qm9f5w = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_qugqlf = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + ffi.Long, ) > >() @@ -1997,32 +38353,37 @@ final _objc_msgSend_151sglz = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, + int, ) >(); -final _objc_msgSend_19nvye5 = objc.msgSendPointer +final _objc_msgSend_r0bo0s = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1cwp428 = objc.msgSendPointer +final _objc_msgSend_r49ehc = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Double, + ffi.Pointer, + ffi.Bool, ) > >() @@ -2030,10 +38391,33 @@ final _objc_msgSend_1cwp428 = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + double, + ffi.Pointer, + bool, ) >(); -final _objc_msgSend_1jiinfj = objc.msgSendPointer +final _objc_msgSend_rc4ypv = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_s92gih = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( @@ -2042,8 +38426,7 @@ final _objc_msgSend_1jiinfj = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, + ffi.Pointer, ) > >() @@ -2054,16 +38437,34 @@ final _objc_msgSend_1jiinfj = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_1pl9qdv = objc.msgSendPointer +final _objc_msgSend_sz90oi = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); +final _objc_msgSend_t7arir = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Pointer, ) > >() @@ -2071,38 +38472,136 @@ final _objc_msgSend_1pl9qdv = objc.msgSendPointer void Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_1s2gdyk = objc.msgSendPointer +final _objc_msgSend_talwei = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); +final _objc_msgSend_ud8gg = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.UnsignedShort Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_uimyc7 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + NSRange Function( + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_uimyc7Stret = objc.msgSendStretPointer .cast< ffi.NativeFunction< ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, + NSRange, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + NSRange, + ) + >(); +final _objc_msgSend_unr2j3 = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Long, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +final _objc_msgSend_usggvf = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Uint32 Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); +final _objc_msgSend_uwvaik = objc.msgSendPointer + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, ) >(); -final _objc_msgSend_1sotr3r = objc.msgSendPointer +final _objc_msgSend_vbymrb = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Long, + ffi.UnsignedLong, ) > >() @@ -2111,133 +38610,139 @@ final _objc_msgSend_1sotr3r = objc.msgSendPointer ffi.Pointer, ffi.Pointer, ffi.Pointer, + int, + int, ) >(); -final _objc_msgSend_1vd1c5m = objc.msgSendPointer +final _objc_msgSend_w9bq5x = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + NSRange, + ffi.Bool, ) > >() .asFunction< - int Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + NSRange, + bool, ) >(); -final _objc_msgSend_1ya1kjn = objc.msgSendPointer +final _objc_msgSend_xmlz1t = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Char Function( ffi.Pointer, ffi.Pointer, - ffi.Int64, ) > >() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) + int Function(ffi.Pointer, ffi.Pointer) >(); -final _objc_msgSend_3ctkt6 = objc.msgSendPointer +final _objc_msgSend_xpqfd7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + NSRange, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + NSRange, ) >(); -final _objc_msgSend_3l8zum = objc.msgSendPointer +final _objc_msgSend_xrqic1 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.Long Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, + NSRange, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, + NSRange, ) >(); -final _objc_msgSend_56zxyn = objc.msgSendPointer +final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, ) >(); -final _objc_msgSend_6ex6p5 = objc.msgSendPointer +final _objc_msgSend_xw2lbc = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Pointer Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ) > >() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) + int Function(ffi.Pointer, ffi.Pointer) >(); -final _objc_msgSend_91o635 = objc.msgSendPointer +final _objc_msgSend_yx8yc6 = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, + int, + ffi.Pointer, ) >(); -final _objc_msgSend_dbvvll = objc.msgSendPointer +final _objc_msgSend_zmbtbd = objc.msgSendPointer .cast< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Int64, + ffi.Pointer>, + ffi.UnsignedLong, ) > >() @@ -2245,83 +38750,1723 @@ final _objc_msgSend_dbvvll = objc.msgSendPointer ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer>, int, ) >(); -final _objc_msgSend_e3qsqz = objc.msgSendPointer +final _objc_msgSend_zuf90e = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, ) > >() .asFunction< - bool Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + int, ) >(); -final _objc_msgSend_xtuoz7 = objc.msgSendPointer +final _objc_msgSend_zug4wi = objc.msgSendPointer .cast< ffi.NativeFunction< - ffi.Void Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + NSRange, ) > >() .asFunction< - void Function( + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + NSRange, ) >(); +late final _protocol_NSCoding = objc.getProtocol("NSCoding"); +late final _protocol_NSCopying = objc.getProtocol("NSCopying"); +late final _protocol_NSFastEnumeration = objc.getProtocol("NSFastEnumeration"); +late final _protocol_NSItemProviderReading = objc.getProtocol( + "NSItemProviderReading", +); +late final _protocol_NSItemProviderWriting = objc.getProtocol( + "NSItemProviderWriting", +); +late final _protocol_NSMutableCopying = objc.getProtocol("NSMutableCopying"); +late final _protocol_NSObject = objc.getProtocol("NSObject"); +late final _protocol_NSPortDelegate = objc.getProtocol("NSPortDelegate"); +late final _protocol_NSSecureCoding = objc.getProtocol("NSSecureCoding"); +late final _protocol_NSStreamDelegate = objc.getProtocol("NSStreamDelegate"); late final _protocol_Observer = objc.getProtocol("Observer"); +late final _sel_URLByResolvingAliasFileAtURL_options_error_ = objc.registerName( + "URLByResolvingAliasFileAtURL:options:error:", +); +late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = + objc.registerName( + "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", + ); +late final _sel_URLWithDataRepresentation_relativeToURL_ = objc.registerName( + "URLWithDataRepresentation:relativeToURL:", +); +late final _sel_URLWithString_ = objc.registerName("URLWithString:"); +late final _sel_URLWithString_encodingInvalidCharacters_ = objc.registerName( + "URLWithString:encodingInvalidCharacters:", +); +late final _sel_URLWithString_relativeToURL_ = objc.registerName( + "URLWithString:relativeToURL:", +); +late final _sel_UTF8String = objc.registerName("UTF8String"); +late final _sel_absoluteString = objc.registerName("absoluteString"); +late final _sel_absoluteURL = objc.registerName("absoluteURL"); +late final _sel_absoluteURLWithDataRepresentation_relativeToURL_ = objc + .registerName("absoluteURLWithDataRepresentation:relativeToURL:"); +late final _sel_acceptInputForMode_beforeDate_ = objc.registerName( + "acceptInputForMode:beforeDate:", +); +late final _sel_addChild_withPendingUnitCount_ = objc.registerName( + "addChild:withPendingUnitCount:", +); late final _sel_addData_ = objc.registerName("addData:"); +late final _sel_addEntriesFromDictionary_ = objc.registerName( + "addEntriesFromDictionary:", +); +late final _sel_addIndex_ = objc.registerName("addIndex:"); +late final _sel_addIndexesInRange_ = objc.registerName("addIndexesInRange:"); +late final _sel_addIndexes_ = objc.registerName("addIndexes:"); +late final _sel_addObject_ = objc.registerName("addObject:"); +late final _sel_addObjectsFromArray_ = objc.registerName( + "addObjectsFromArray:", +); +late final _sel_addObjects_count_ = objc.registerName("addObjects:count:"); +late final _sel_addPort_forMode_ = objc.registerName("addPort:forMode:"); late final _sel_addProtocol_ = objc.registerName("addProtocol:"); +late final _sel_addSubscriberForFileURL_withPublishingHandler_ = objc + .registerName("addSubscriberForFileURL:withPublishingHandler:"); +late final _sel_addTimer_forMode_ = objc.registerName("addTimer:forMode:"); +late final _sel_allKeys = objc.registerName("allKeys"); +late final _sel_allKeysForObject_ = objc.registerName("allKeysForObject:"); +late final _sel_allObjects = objc.registerName("allObjects"); +late final _sel_allValues = objc.registerName("allValues"); late final _sel_alloc = objc.registerName("alloc"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); +late final _sel_alphanumericCharacterSet = objc.registerName( + "alphanumericCharacterSet", +); +late final _sel_anyObject = objc.registerName("anyObject"); +late final _sel_appendBytes_length_ = objc.registerName("appendBytes:length:"); +late final _sel_appendData_ = objc.registerName("appendData:"); +late final _sel_argumentsRetained = objc.registerName("argumentsRetained"); +late final _sel_array = objc.registerName("array"); +late final _sel_arrayByAddingObject_ = objc.registerName( + "arrayByAddingObject:", +); +late final _sel_arrayByAddingObjectsFromArray_ = objc.registerName( + "arrayByAddingObjectsFromArray:", +); +late final _sel_arrayWithArray_ = objc.registerName("arrayWithArray:"); +late final _sel_arrayWithCapacity_ = objc.registerName("arrayWithCapacity:"); +late final _sel_arrayWithObject_ = objc.registerName("arrayWithObject:"); +late final _sel_arrayWithObjects_ = objc.registerName("arrayWithObjects:"); +late final _sel_arrayWithObjects_count_ = objc.registerName( + "arrayWithObjects:count:", +); +late final _sel_associatedIndex = objc.registerName("associatedIndex"); late final _sel_autorelease = objc.registerName("autorelease"); +late final _sel_availableStringEncodings = objc.registerName( + "availableStringEncodings", +); +late final _sel_baseURL = objc.registerName("baseURL"); +late final _sel_becomeCurrentWithPendingUnitCount_ = objc.registerName( + "becomeCurrentWithPendingUnitCount:", +); +late final _sel_bitmapRepresentation = objc.registerName( + "bitmapRepresentation", +); +late final _sel_bookmarkDataWithContentsOfURL_error_ = objc.registerName( + "bookmarkDataWithContentsOfURL:error:", +); +late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_ = + objc.registerName( + "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:", + ); +late final _sel_boolValue = objc.registerName("boolValue"); late final _sel_buildInstance_ = objc.registerName("buildInstance:"); +late final _sel_bytes = objc.registerName("bytes"); +late final _sel_cStringUsingEncoding_ = objc.registerName( + "cStringUsingEncoding:", +); +late final _sel_canBeConvertedToEncoding_ = objc.registerName( + "canBeConvertedToEncoding:", +); +late final _sel_canLoadObjectOfClass_ = objc.registerName( + "canLoadObjectOfClass:", +); +late final _sel_cancel = objc.registerName("cancel"); +late final _sel_cancellationHandler = objc.registerName("cancellationHandler"); +late final _sel_capitalizedLetterCharacterSet = objc.registerName( + "capitalizedLetterCharacterSet", +); +late final _sel_capitalizedString = objc.registerName("capitalizedString"); +late final _sel_capitalizedStringWithLocale_ = objc.registerName( + "capitalizedStringWithLocale:", +); +late final _sel_caseInsensitiveCompare_ = objc.registerName( + "caseInsensitiveCompare:", +); +late final _sel_changeType = objc.registerName("changeType"); +late final _sel_changeWithObject_type_index_ = objc.registerName( + "changeWithObject:type:index:", +); +late final _sel_changeWithObject_type_index_associatedIndex_ = objc + .registerName("changeWithObject:type:index:associatedIndex:"); +late final _sel_charValue = objc.registerName("charValue"); +late final _sel_characterAtIndex_ = objc.registerName("characterAtIndex:"); +late final _sel_characterIsMember_ = objc.registerName("characterIsMember:"); +late final _sel_characterSetWithBitmapRepresentation_ = objc.registerName( + "characterSetWithBitmapRepresentation:", +); +late final _sel_characterSetWithCharactersInString_ = objc.registerName( + "characterSetWithCharactersInString:", +); +late final _sel_characterSetWithContentsOfFile_ = objc.registerName( + "characterSetWithContentsOfFile:", +); +late final _sel_characterSetWithRange_ = objc.registerName( + "characterSetWithRange:", +); +late final _sel_class = objc.registerName("class"); +late final _sel_close = objc.registerName("close"); +late final _sel_code = objc.registerName("code"); +late final _sel_commonPrefixWithString_options_ = objc.registerName( + "commonPrefixWithString:options:", +); +late final _sel_compare_ = objc.registerName("compare:"); +late final _sel_compare_options_ = objc.registerName("compare:options:"); +late final _sel_compare_options_range_ = objc.registerName( + "compare:options:range:", +); +late final _sel_compare_options_range_locale_ = objc.registerName( + "compare:options:range:locale:", +); +late final _sel_completedUnitCount = objc.registerName("completedUnitCount"); +late final _sel_components = objc.registerName("components"); +late final _sel_componentsJoinedByString_ = objc.registerName( + "componentsJoinedByString:", +); +late final _sel_componentsSeparatedByCharactersInSet_ = objc.registerName( + "componentsSeparatedByCharactersInSet:", +); +late final _sel_componentsSeparatedByString_ = objc.registerName( + "componentsSeparatedByString:", +); +late final _sel_compressedDataUsingAlgorithm_error_ = objc.registerName( + "compressedDataUsingAlgorithm:error:", +); late final _sel_conformsToProtocol_ = objc.registerName("conformsToProtocol:"); +late final _sel_containsIndex_ = objc.registerName("containsIndex:"); +late final _sel_containsIndexesInRange_ = objc.registerName( + "containsIndexesInRange:", +); +late final _sel_containsIndexes_ = objc.registerName("containsIndexes:"); +late final _sel_containsObject_ = objc.registerName("containsObject:"); +late final _sel_containsString_ = objc.registerName("containsString:"); +late final _sel_controlCharacterSet = objc.registerName("controlCharacterSet"); +late final _sel_copy = objc.registerName("copy"); +late final _sel_copyWithZone_ = objc.registerName("copyWithZone:"); +late final _sel_count = objc.registerName("count"); +late final _sel_countByEnumeratingWithState_objects_count_ = objc.registerName( + "countByEnumeratingWithState:objects:count:", +); +late final _sel_countOfIndexesInRange_ = objc.registerName( + "countOfIndexesInRange:", +); +late final _sel_currentMode = objc.registerName("currentMode"); +late final _sel_currentProgress = objc.registerName("currentProgress"); +late final _sel_currentRunLoop = objc.registerName("currentRunLoop"); +late final _sel_data = objc.registerName("data"); +late final _sel_dataRepresentation = objc.registerName("dataRepresentation"); +late final _sel_dataUsingEncoding_ = objc.registerName("dataUsingEncoding:"); +late final _sel_dataUsingEncoding_allowLossyConversion_ = objc.registerName( + "dataUsingEncoding:allowLossyConversion:", +); +late final _sel_dataWithBytesNoCopy_length_ = objc.registerName( + "dataWithBytesNoCopy:length:", +); +late final _sel_dataWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( + "dataWithBytesNoCopy:length:freeWhenDone:", +); +late final _sel_dataWithBytes_length_ = objc.registerName( + "dataWithBytes:length:", +); +late final _sel_dataWithCapacity_ = objc.registerName("dataWithCapacity:"); +late final _sel_dataWithContentsOfFile_ = objc.registerName( + "dataWithContentsOfFile:", +); +late final _sel_dataWithContentsOfFile_options_error_ = objc.registerName( + "dataWithContentsOfFile:options:error:", +); +late final _sel_dataWithContentsOfURL_ = objc.registerName( + "dataWithContentsOfURL:", +); +late final _sel_dataWithContentsOfURL_options_error_ = objc.registerName( + "dataWithContentsOfURL:options:error:", +); +late final _sel_dataWithData_ = objc.registerName("dataWithData:"); +late final _sel_dataWithLength_ = objc.registerName("dataWithLength:"); +late final _sel_date = objc.registerName("date"); +late final _sel_dateByAddingTimeInterval_ = objc.registerName( + "dateByAddingTimeInterval:", +); +late final _sel_dateWithTimeIntervalSince1970_ = objc.registerName( + "dateWithTimeIntervalSince1970:", +); +late final _sel_dateWithTimeIntervalSinceNow_ = objc.registerName( + "dateWithTimeIntervalSinceNow:", +); +late final _sel_dateWithTimeIntervalSinceReferenceDate_ = objc.registerName( + "dateWithTimeIntervalSinceReferenceDate:", +); +late final _sel_dateWithTimeInterval_sinceDate_ = objc.registerName( + "dateWithTimeInterval:sinceDate:", +); late final _sel_dealloc = objc.registerName("dealloc"); +late final _sel_debugDescription = objc.registerName("debugDescription"); late final _sel_debugObserver = objc.registerName("debugObserver"); +late final _sel_decimalDigitCharacterSet = objc.registerName( + "decimalDigitCharacterSet", +); +late final _sel_decodeDataObject = objc.registerName("decodeDataObject"); +late final _sel_decodeValueOfObjCType_at_size_ = objc.registerName( + "decodeValueOfObjCType:at:size:", +); +late final _sel_decomposableCharacterSet = objc.registerName( + "decomposableCharacterSet", +); +late final _sel_decomposedStringWithCanonicalMapping = objc.registerName( + "decomposedStringWithCanonicalMapping", +); +late final _sel_decomposedStringWithCompatibilityMapping = objc.registerName( + "decomposedStringWithCompatibilityMapping", +); +late final _sel_decompressedDataUsingAlgorithm_error_ = objc.registerName( + "decompressedDataUsingAlgorithm:error:", +); +late final _sel_defaultCStringEncoding = objc.registerName( + "defaultCStringEncoding", +); +late final _sel_delegate = objc.registerName("delegate"); +late final _sel_description = objc.registerName("description"); +late final _sel_descriptionInStringsFileFormat = objc.registerName( + "descriptionInStringsFileFormat", +); +late final _sel_descriptionWithLocale_ = objc.registerName( + "descriptionWithLocale:", +); +late final _sel_descriptionWithLocale_indent_ = objc.registerName( + "descriptionWithLocale:indent:", +); +late final _sel_dictionary = objc.registerName("dictionary"); +late final _sel_dictionaryWithCapacity_ = objc.registerName( + "dictionaryWithCapacity:", +); +late final _sel_dictionaryWithDictionary_ = objc.registerName( + "dictionaryWithDictionary:", +); +late final _sel_dictionaryWithObject_forKey_ = objc.registerName( + "dictionaryWithObject:forKey:", +); +late final _sel_dictionaryWithObjectsAndKeys_ = objc.registerName( + "dictionaryWithObjectsAndKeys:", +); +late final _sel_dictionaryWithObjects_forKeys_ = objc.registerName( + "dictionaryWithObjects:forKeys:", +); +late final _sel_dictionaryWithObjects_forKeys_count_ = objc.registerName( + "dictionaryWithObjects:forKeys:count:", +); +late final _sel_differenceByTransformingChangesWithBlock_ = objc.registerName( + "differenceByTransformingChangesWithBlock:", +); +late final _sel_discreteProgressWithTotalUnitCount_ = objc.registerName( + "discreteProgressWithTotalUnitCount:", +); +late final _sel_displayNameForKey_value_ = objc.registerName( + "displayNameForKey:value:", +); +late final _sel_doesNotRecognizeSelector_ = objc.registerName( + "doesNotRecognizeSelector:", +); +late final _sel_domain = objc.registerName("domain"); +late final _sel_doubleValue = objc.registerName("doubleValue"); +late final _sel_earlierDate_ = objc.registerName("earlierDate:"); +late final _sel_encodeDataObject_ = objc.registerName("encodeDataObject:"); +late final _sel_encodeValueOfObjCType_at_ = objc.registerName( + "encodeValueOfObjCType:at:", +); +late final _sel_encodeWithCoder_ = objc.registerName("encodeWithCoder:"); +late final _sel_enumerateByteRangesUsingBlock_ = objc.registerName( + "enumerateByteRangesUsingBlock:", +); +late final _sel_enumerateIndexesInRange_options_usingBlock_ = objc.registerName( + "enumerateIndexesInRange:options:usingBlock:", +); +late final _sel_enumerateIndexesUsingBlock_ = objc.registerName( + "enumerateIndexesUsingBlock:", +); +late final _sel_enumerateIndexesWithOptions_usingBlock_ = objc.registerName( + "enumerateIndexesWithOptions:usingBlock:", +); +late final _sel_enumerateKeysAndObjectsUsingBlock_ = objc.registerName( + "enumerateKeysAndObjectsUsingBlock:", +); +late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_ = objc + .registerName("enumerateKeysAndObjectsWithOptions:usingBlock:"); +late final _sel_enumerateLinesUsingBlock_ = objc.registerName( + "enumerateLinesUsingBlock:", +); +late final _sel_enumerateObjectsAtIndexes_options_usingBlock_ = objc + .registerName("enumerateObjectsAtIndexes:options:usingBlock:"); +late final _sel_enumerateObjectsUsingBlock_ = objc.registerName( + "enumerateObjectsUsingBlock:", +); +late final _sel_enumerateObjectsWithOptions_usingBlock_ = objc.registerName( + "enumerateObjectsWithOptions:usingBlock:", +); +late final _sel_enumerateRangesInRange_options_usingBlock_ = objc.registerName( + "enumerateRangesInRange:options:usingBlock:", +); +late final _sel_enumerateRangesUsingBlock_ = objc.registerName( + "enumerateRangesUsingBlock:", +); +late final _sel_enumerateRangesWithOptions_usingBlock_ = objc.registerName( + "enumerateRangesWithOptions:usingBlock:", +); +late final _sel_enumerateSubstringsInRange_options_usingBlock_ = objc + .registerName("enumerateSubstringsInRange:options:usingBlock:"); +late final _sel_errorWithDomain_code_userInfo_ = objc.registerName( + "errorWithDomain:code:userInfo:", +); +late final _sel_estimatedTimeRemaining = objc.registerName( + "estimatedTimeRemaining", +); +late final _sel_exchangeObjectAtIndex_withObjectAtIndex_ = objc.registerName( + "exchangeObjectAtIndex:withObjectAtIndex:", +); +late final _sel_fastestEncoding = objc.registerName("fastestEncoding"); +late final _sel_fileCompletedCount = objc.registerName("fileCompletedCount"); +late final _sel_fileOperationKind = objc.registerName("fileOperationKind"); +late final _sel_filePathURL = objc.registerName("filePathURL"); +late final _sel_fileReferenceURL = objc.registerName("fileReferenceURL"); +late final _sel_fileSystemRepresentation = objc.registerName( + "fileSystemRepresentation", +); +late final _sel_fileTotalCount = objc.registerName("fileTotalCount"); +late final _sel_fileURL = objc.registerName("fileURL"); +late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = + objc.registerName( + "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", + ); +late final _sel_fileURLWithPath_ = objc.registerName("fileURLWithPath:"); +late final _sel_fileURLWithPath_isDirectory_ = objc.registerName( + "fileURLWithPath:isDirectory:", +); +late final _sel_fileURLWithPath_isDirectory_relativeToURL_ = objc.registerName( + "fileURLWithPath:isDirectory:relativeToURL:", +); +late final _sel_fileURLWithPath_relativeToURL_ = objc.registerName( + "fileURLWithPath:relativeToURL:", +); +late final _sel_fire = objc.registerName("fire"); +late final _sel_fireDate = objc.registerName("fireDate"); +late final _sel_firstIndex = objc.registerName("firstIndex"); +late final _sel_firstObject = objc.registerName("firstObject"); +late final _sel_firstObjectCommonWithArray_ = objc.registerName( + "firstObjectCommonWithArray:", +); +late final _sel_floatValue = objc.registerName("floatValue"); +late final _sel_forwardInvocation_ = objc.registerName("forwardInvocation:"); +late final _sel_forwardingTargetForSelector_ = objc.registerName( + "forwardingTargetForSelector:", +); +late final _sel_fractionCompleted = objc.registerName("fractionCompleted"); +late final _sel_fragment = objc.registerName("fragment"); +late final _sel_frameLength = objc.registerName("frameLength"); +late final _sel_getArgumentTypeAtIndex_ = objc.registerName( + "getArgumentTypeAtIndex:", +); +late final _sel_getArgument_atIndex_ = objc.registerName( + "getArgument:atIndex:", +); +late final _sel_getBuffer_length_ = objc.registerName("getBuffer:length:"); +late final _sel_getBytes_length_ = objc.registerName("getBytes:length:"); +late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_ = + objc.registerName( + "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:", + ); +late final _sel_getBytes_range_ = objc.registerName("getBytes:range:"); +late final _sel_getCFRunLoop = objc.registerName("getCFRunLoop"); +late final _sel_getCString_maxLength_encoding_ = objc.registerName( + "getCString:maxLength:encoding:", +); +late final _sel_getCharacters_range_ = objc.registerName( + "getCharacters:range:", +); late final _sel_getDOBJCDartProtocolMethodForSelector_ = objc.registerName( "getDOBJCDartProtocolMethodForSelector:", ); +late final _sel_getFileSystemRepresentation_maxLength_ = objc.registerName( + "getFileSystemRepresentation:maxLength:", +); +late final _sel_getIndexes_maxCount_inIndexRange_ = objc.registerName( + "getIndexes:maxCount:inIndexRange:", +); +late final _sel_getLineStart_end_contentsEnd_forRange_ = objc.registerName( + "getLineStart:end:contentsEnd:forRange:", +); +late final _sel_getObjects_andKeys_count_ = objc.registerName( + "getObjects:andKeys:count:", +); +late final _sel_getObjects_range_ = objc.registerName("getObjects:range:"); +late final _sel_getParagraphStart_end_contentsEnd_forRange_ = objc.registerName( + "getParagraphStart:end:contentsEnd:forRange:", +); +late final _sel_getResourceValue_forKey_error_ = objc.registerName( + "getResourceValue:forKey:error:", +); +late final _sel_getReturnValue_ = objc.registerName("getReturnValue:"); +late final _sel_getValue_size_ = objc.registerName("getValue:size:"); +late final _sel_handlePortMessage_ = objc.registerName("handlePortMessage:"); +late final _sel_hasBytesAvailable = objc.registerName("hasBytesAvailable"); +late final _sel_hasChanges = objc.registerName("hasChanges"); +late final _sel_hasDirectoryPath = objc.registerName("hasDirectoryPath"); +late final _sel_hasItemConformingToTypeIdentifier_ = objc.registerName( + "hasItemConformingToTypeIdentifier:", +); +late final _sel_hasMemberInPlane_ = objc.registerName("hasMemberInPlane:"); +late final _sel_hasPrefix_ = objc.registerName("hasPrefix:"); +late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_ = objc + .registerName("hasRepresentationConformingToTypeIdentifier:fileOptions:"); +late final _sel_hasSpaceAvailable = objc.registerName("hasSpaceAvailable"); +late final _sel_hasSuffix_ = objc.registerName("hasSuffix:"); +late final _sel_hash = objc.registerName("hash"); +late final _sel_helpAnchor = objc.registerName("helpAnchor"); +late final _sel_host = objc.registerName("host"); +late final _sel_illegalCharacterSet = objc.registerName("illegalCharacterSet"); late final _sel_implementMethod_withBlock_withTrampoline_withSignature_ = objc .registerName("implementMethod:withBlock:withTrampoline:withSignature:"); +late final _sel_increaseLengthBy_ = objc.registerName("increaseLengthBy:"); +late final _sel_index = objc.registerName("index"); +late final _sel_indexGreaterThanIndex_ = objc.registerName( + "indexGreaterThanIndex:", +); +late final _sel_indexGreaterThanOrEqualToIndex_ = objc.registerName( + "indexGreaterThanOrEqualToIndex:", +); +late final _sel_indexInRange_options_passingTest_ = objc.registerName( + "indexInRange:options:passingTest:", +); +late final _sel_indexLessThanIndex_ = objc.registerName("indexLessThanIndex:"); +late final _sel_indexLessThanOrEqualToIndex_ = objc.registerName( + "indexLessThanOrEqualToIndex:", +); +late final _sel_indexOfObjectAtIndexes_options_passingTest_ = objc.registerName( + "indexOfObjectAtIndexes:options:passingTest:", +); +late final _sel_indexOfObjectIdenticalTo_ = objc.registerName( + "indexOfObjectIdenticalTo:", +); +late final _sel_indexOfObjectIdenticalTo_inRange_ = objc.registerName( + "indexOfObjectIdenticalTo:inRange:", +); +late final _sel_indexOfObjectPassingTest_ = objc.registerName( + "indexOfObjectPassingTest:", +); +late final _sel_indexOfObjectWithOptions_passingTest_ = objc.registerName( + "indexOfObjectWithOptions:passingTest:", +); +late final _sel_indexOfObject_ = objc.registerName("indexOfObject:"); +late final _sel_indexOfObject_inRange_ = objc.registerName( + "indexOfObject:inRange:", +); +late final _sel_indexOfObject_inSortedRange_options_usingComparator_ = objc + .registerName("indexOfObject:inSortedRange:options:usingComparator:"); +late final _sel_indexPassingTest_ = objc.registerName("indexPassingTest:"); +late final _sel_indexSet = objc.registerName("indexSet"); +late final _sel_indexSetWithIndex_ = objc.registerName("indexSetWithIndex:"); +late final _sel_indexSetWithIndexesInRange_ = objc.registerName( + "indexSetWithIndexesInRange:", +); +late final _sel_indexWithOptions_passingTest_ = objc.registerName( + "indexWithOptions:passingTest:", +); +late final _sel_indexesInRange_options_passingTest_ = objc.registerName( + "indexesInRange:options:passingTest:", +); +late final _sel_indexesOfObjectsAtIndexes_options_passingTest_ = objc + .registerName("indexesOfObjectsAtIndexes:options:passingTest:"); +late final _sel_indexesOfObjectsPassingTest_ = objc.registerName( + "indexesOfObjectsPassingTest:", +); +late final _sel_indexesOfObjectsWithOptions_passingTest_ = objc.registerName( + "indexesOfObjectsWithOptions:passingTest:", +); +late final _sel_indexesPassingTest_ = objc.registerName("indexesPassingTest:"); +late final _sel_indexesWithOptions_passingTest_ = objc.registerName( + "indexesWithOptions:passingTest:", +); late final _sel_init = objc.registerName("init"); +late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_ = objc + .registerName("initAbsoluteURLWithDataRepresentation:relativeToURL:"); +late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_ = + objc.registerName( + "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:", + ); late final _sel_initDOBJCDartProtocolFromDartProtocolBuilder_withDisposePort_ = objc.registerName( - "initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort:", + "initDOBJCDartProtocolFromDartProtocolBuilder:withDisposePort:", + ); +late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_ = + objc.registerName( + "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:", + ); +late final _sel_initFileURLWithPath_ = objc.registerName( + "initFileURLWithPath:", +); +late final _sel_initFileURLWithPath_isDirectory_ = objc.registerName( + "initFileURLWithPath:isDirectory:", +); +late final _sel_initFileURLWithPath_isDirectory_relativeToURL_ = objc + .registerName("initFileURLWithPath:isDirectory:relativeToURL:"); +late final _sel_initFileURLWithPath_relativeToURL_ = objc.registerName( + "initFileURLWithPath:relativeToURL:", +); +late final _sel_initForKeyPath_ofObject_withObserver_options_context_ = objc + .registerName("initForKeyPath:ofObject:withObserver:options:context:"); +late final _sel_initToBuffer_capacity_ = objc.registerName( + "initToBuffer:capacity:", +); +late final _sel_initToFileAtPath_append_ = objc.registerName( + "initToFileAtPath:append:", +); +late final _sel_initToMemory = objc.registerName("initToMemory"); +late final _sel_initWithArray_ = objc.registerName("initWithArray:"); +late final _sel_initWithArray_copyItems_ = objc.registerName( + "initWithArray:copyItems:", +); +late final _sel_initWithArray_range_copyItems_ = objc.registerName( + "initWithArray:range:copyItems:", +); +late final _sel_initWithBase64EncodedData_options_ = objc.registerName( + "initWithBase64EncodedData:options:", +); +late final _sel_initWithBase64EncodedString_options_ = objc.registerName( + "initWithBase64EncodedString:options:", +); +late final _sel_initWithBool_ = objc.registerName("initWithBool:"); +late final _sel_initWithBytesNoCopy_length_ = objc.registerName( + "initWithBytesNoCopy:length:", +); +late final _sel_initWithBytesNoCopy_length_deallocator_ = objc.registerName( + "initWithBytesNoCopy:length:deallocator:", +); +late final _sel_initWithBytesNoCopy_length_encoding_deallocator_ = objc + .registerName("initWithBytesNoCopy:length:encoding:deallocator:"); +late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_ = objc + .registerName("initWithBytesNoCopy:length:encoding:freeWhenDone:"); +late final _sel_initWithBytesNoCopy_length_freeWhenDone_ = objc.registerName( + "initWithBytesNoCopy:length:freeWhenDone:", +); +late final _sel_initWithBytes_length_ = objc.registerName( + "initWithBytes:length:", +); +late final _sel_initWithBytes_length_encoding_ = objc.registerName( + "initWithBytes:length:encoding:", +); +late final _sel_initWithBytes_objCType_ = objc.registerName( + "initWithBytes:objCType:", +); +late final _sel_initWithCString_encoding_ = objc.registerName( + "initWithCString:encoding:", +); +late final _sel_initWithCapacity_ = objc.registerName("initWithCapacity:"); +late final _sel_initWithChanges_ = objc.registerName("initWithChanges:"); +late final _sel_initWithChar_ = objc.registerName("initWithChar:"); +late final _sel_initWithCharactersNoCopy_length_deallocator_ = objc + .registerName("initWithCharactersNoCopy:length:deallocator:"); +late final _sel_initWithCharactersNoCopy_length_freeWhenDone_ = objc + .registerName("initWithCharactersNoCopy:length:freeWhenDone:"); +late final _sel_initWithCharacters_length_ = objc.registerName( + "initWithCharacters:length:", +); +late final _sel_initWithClassName_ = objc.registerName("initWithClassName:"); +late final _sel_initWithCoder_ = objc.registerName("initWithCoder:"); +late final _sel_initWithContentsOfFile_ = objc.registerName( + "initWithContentsOfFile:", +); +late final _sel_initWithContentsOfFile_encoding_error_ = objc.registerName( + "initWithContentsOfFile:encoding:error:", +); +late final _sel_initWithContentsOfFile_options_error_ = objc.registerName( + "initWithContentsOfFile:options:error:", +); +late final _sel_initWithContentsOfFile_usedEncoding_error_ = objc.registerName( + "initWithContentsOfFile:usedEncoding:error:", +); +late final _sel_initWithContentsOfURL_ = objc.registerName( + "initWithContentsOfURL:", +); +late final _sel_initWithContentsOfURL_encoding_error_ = objc.registerName( + "initWithContentsOfURL:encoding:error:", +); +late final _sel_initWithContentsOfURL_options_error_ = objc.registerName( + "initWithContentsOfURL:options:error:", +); +late final _sel_initWithContentsOfURL_usedEncoding_error_ = objc.registerName( + "initWithContentsOfURL:usedEncoding:error:", +); +late final _sel_initWithDataRepresentation_relativeToURL_ = objc.registerName( + "initWithDataRepresentation:relativeToURL:", +); +late final _sel_initWithData_ = objc.registerName("initWithData:"); +late final _sel_initWithData_encoding_ = objc.registerName( + "initWithData:encoding:", +); +late final _sel_initWithDictionary_ = objc.registerName("initWithDictionary:"); +late final _sel_initWithDictionary_copyItems_ = objc.registerName( + "initWithDictionary:copyItems:", +); +late final _sel_initWithDomain_code_userInfo_ = objc.registerName( + "initWithDomain:code:userInfo:", +); +late final _sel_initWithDouble_ = objc.registerName("initWithDouble:"); +late final _sel_initWithFileAtPath_ = objc.registerName("initWithFileAtPath:"); +late final _sel_initWithFireDate_interval_repeats_block_ = objc.registerName( + "initWithFireDate:interval:repeats:block:", +); +late final _sel_initWithFireDate_interval_target_selector_userInfo_repeats_ = + objc.registerName( + "initWithFireDate:interval:target:selector:userInfo:repeats:", + ); +late final _sel_initWithFloat_ = objc.registerName("initWithFloat:"); +late final _sel_initWithFormat_ = objc.registerName("initWithFormat:"); +late final _sel_initWithFormat_locale_ = objc.registerName( + "initWithFormat:locale:", +); +late final _sel_initWithIndexSet_ = objc.registerName("initWithIndexSet:"); +late final _sel_initWithIndex_ = objc.registerName("initWithIndex:"); +late final _sel_initWithIndexesInRange_ = objc.registerName( + "initWithIndexesInRange:", +); +late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_ = + objc.registerName( + "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:", + ); +late final _sel_initWithInsertIndexes_insertedObjects_removeIndexes_removedObjects_additionalChanges_ = + objc.registerName( + "initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:additionalChanges:", ); -late final _sel_initForKeyPath_ofObject_withObserver_options_context_ = objc - .registerName("initForKeyPath:ofObject:withObserver:options:context:"); -late final _sel_initWithClassName_ = objc.registerName("initWithClassName:"); -late final _sel_initWithData_ = objc.registerName("initWithData:"); +late final _sel_initWithInt_ = objc.registerName("initWithInt:"); +late final _sel_initWithInteger_ = objc.registerName("initWithInteger:"); +late final _sel_initWithItem_typeIdentifier_ = objc.registerName( + "initWithItem:typeIdentifier:", +); +late final _sel_initWithLength_ = objc.registerName("initWithLength:"); +late final _sel_initWithLocaleIdentifier_ = objc.registerName( + "initWithLocaleIdentifier:", +); +late final _sel_initWithLongLong_ = objc.registerName("initWithLongLong:"); +late final _sel_initWithLong_ = objc.registerName("initWithLong:"); +late final _sel_initWithName_object_userInfo_ = objc.registerName( + "initWithName:object:userInfo:", +); +late final _sel_initWithObject_ = objc.registerName("initWithObject:"); +late final _sel_initWithObject_type_index_ = objc.registerName( + "initWithObject:type:index:", +); +late final _sel_initWithObject_type_index_associatedIndex_ = objc.registerName( + "initWithObject:type:index:associatedIndex:", +); +late final _sel_initWithObjectsAndKeys_ = objc.registerName( + "initWithObjectsAndKeys:", +); +late final _sel_initWithObjects_ = objc.registerName("initWithObjects:"); +late final _sel_initWithObjects_count_ = objc.registerName( + "initWithObjects:count:", +); +late final _sel_initWithObjects_forKeys_ = objc.registerName( + "initWithObjects:forKeys:", +); +late final _sel_initWithObjects_forKeys_count_ = objc.registerName( + "initWithObjects:forKeys:count:", +); +late final _sel_initWithOrderedSet_ = objc.registerName("initWithOrderedSet:"); +late final _sel_initWithOrderedSet_copyItems_ = objc.registerName( + "initWithOrderedSet:copyItems:", +); +late final _sel_initWithOrderedSet_range_copyItems_ = objc.registerName( + "initWithOrderedSet:range:copyItems:", +); +late final _sel_initWithParent_userInfo_ = objc.registerName( + "initWithParent:userInfo:", +); +late final _sel_initWithSendPort_receivePort_components_ = objc.registerName( + "initWithSendPort:receivePort:components:", +); +late final _sel_initWithSet_ = objc.registerName("initWithSet:"); +late final _sel_initWithSet_copyItems_ = objc.registerName( + "initWithSet:copyItems:", +); +late final _sel_initWithShort_ = objc.registerName("initWithShort:"); +late final _sel_initWithString_ = objc.registerName("initWithString:"); +late final _sel_initWithString_encodingInvalidCharacters_ = objc.registerName( + "initWithString:encodingInvalidCharacters:", +); +late final _sel_initWithString_relativeToURL_ = objc.registerName( + "initWithString:relativeToURL:", +); +late final _sel_initWithTimeIntervalSince1970_ = objc.registerName( + "initWithTimeIntervalSince1970:", +); +late final _sel_initWithTimeIntervalSinceNow_ = objc.registerName( + "initWithTimeIntervalSinceNow:", +); +late final _sel_initWithTimeIntervalSinceReferenceDate_ = objc.registerName( + "initWithTimeIntervalSinceReferenceDate:", +); +late final _sel_initWithTimeInterval_sinceDate_ = objc.registerName( + "initWithTimeInterval:sinceDate:", +); late final _sel_initWithURL_ = objc.registerName("initWithURL:"); +late final _sel_initWithURL_append_ = objc.registerName("initWithURL:append:"); +late final _sel_initWithUTF8String_ = objc.registerName("initWithUTF8String:"); +late final _sel_initWithUnsignedChar_ = objc.registerName( + "initWithUnsignedChar:", +); +late final _sel_initWithUnsignedInt_ = objc.registerName( + "initWithUnsignedInt:", +); +late final _sel_initWithUnsignedInteger_ = objc.registerName( + "initWithUnsignedInteger:", +); +late final _sel_initWithUnsignedLongLong_ = objc.registerName( + "initWithUnsignedLongLong:", +); +late final _sel_initWithUnsignedLong_ = objc.registerName( + "initWithUnsignedLong:", +); +late final _sel_initWithUnsignedShort_ = objc.registerName( + "initWithUnsignedShort:", +); +late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_ = objc + .registerName("initWithValidatedFormat:validFormatSpecifiers:error:"); +late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_ = + objc.registerName( + "initWithValidatedFormat:validFormatSpecifiers:locale:error:", + ); +late final _sel_initialize = objc.registerName("initialize"); +late final _sel_inputStreamWithData_ = objc.registerName( + "inputStreamWithData:", +); +late final _sel_inputStreamWithFileAtPath_ = objc.registerName( + "inputStreamWithFileAtPath:", +); late final _sel_inputStreamWithPort_ = objc.registerName( "inputStreamWithPort:", ); +late final _sel_inputStreamWithURL_ = objc.registerName("inputStreamWithURL:"); +late final _sel_insertObject_atIndex_ = objc.registerName( + "insertObject:atIndex:", +); +late final _sel_insertObjects_atIndexes_ = objc.registerName( + "insertObjects:atIndexes:", +); +late final _sel_insertions = objc.registerName("insertions"); +late final _sel_instanceMethodForSelector_ = objc.registerName( + "instanceMethodForSelector:", +); +late final _sel_instanceMethodSignatureForSelector_ = objc.registerName( + "instanceMethodSignatureForSelector:", +); +late final _sel_instancesRespondToSelector_ = objc.registerName( + "instancesRespondToSelector:", +); +late final _sel_intValue = objc.registerName("intValue"); +late final _sel_integerValue = objc.registerName("integerValue"); +late final _sel_intersectOrderedSet_ = objc.registerName( + "intersectOrderedSet:", +); +late final _sel_intersectSet_ = objc.registerName("intersectSet:"); +late final _sel_intersectsIndexesInRange_ = objc.registerName( + "intersectsIndexesInRange:", +); +late final _sel_intersectsOrderedSet_ = objc.registerName( + "intersectsOrderedSet:", +); +late final _sel_intersectsSet_ = objc.registerName("intersectsSet:"); +late final _sel_invalidate = objc.registerName("invalidate"); +late final _sel_inverseDifference = objc.registerName("inverseDifference"); +late final _sel_invertedSet = objc.registerName("invertedSet"); +late final _sel_invocationWithMethodSignature_ = objc.registerName( + "invocationWithMethodSignature:", +); +late final _sel_invoke = objc.registerName("invoke"); +late final _sel_invokeUsingIMP_ = objc.registerName("invokeUsingIMP:"); +late final _sel_invokeWithTarget_ = objc.registerName("invokeWithTarget:"); +late final _sel_isCancellable = objc.registerName("isCancellable"); +late final _sel_isCancelled = objc.registerName("isCancelled"); +late final _sel_isEqualToArray_ = objc.registerName("isEqualToArray:"); +late final _sel_isEqualToData_ = objc.registerName("isEqualToData:"); +late final _sel_isEqualToDate_ = objc.registerName("isEqualToDate:"); +late final _sel_isEqualToDictionary_ = objc.registerName( + "isEqualToDictionary:", +); +late final _sel_isEqualToIndexSet_ = objc.registerName("isEqualToIndexSet:"); +late final _sel_isEqualToNumber_ = objc.registerName("isEqualToNumber:"); +late final _sel_isEqualToOrderedSet_ = objc.registerName( + "isEqualToOrderedSet:", +); +late final _sel_isEqualToSet_ = objc.registerName("isEqualToSet:"); +late final _sel_isEqualToString_ = objc.registerName("isEqualToString:"); +late final _sel_isEqual_ = objc.registerName("isEqual:"); +late final _sel_isFileReferenceURL = objc.registerName("isFileReferenceURL"); +late final _sel_isFileURL = objc.registerName("isFileURL"); +late final _sel_isFinished = objc.registerName("isFinished"); late final _sel_isFloat = objc.registerName("isFloat"); +late final _sel_isIndeterminate = objc.registerName("isIndeterminate"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); +late final _sel_isMemberOfClass_ = objc.registerName("isMemberOfClass:"); +late final _sel_isOld = objc.registerName("isOld"); +late final _sel_isOneway = objc.registerName("isOneway"); +late final _sel_isPausable = objc.registerName("isPausable"); +late final _sel_isPaused = objc.registerName("isPaused"); +late final _sel_isProxy = objc.registerName("isProxy"); +late final _sel_isSubclassOfClass_ = objc.registerName("isSubclassOfClass:"); +late final _sel_isSubsetOfOrderedSet_ = objc.registerName( + "isSubsetOfOrderedSet:", +); +late final _sel_isSubsetOfSet_ = objc.registerName("isSubsetOfSet:"); +late final _sel_isSupersetOfSet_ = objc.registerName("isSupersetOfSet:"); +late final _sel_isValid = objc.registerName("isValid"); +late final _sel_itemProviderVisibilityForRepresentationWithTypeIdentifier_ = + objc.registerName( + "itemProviderVisibilityForRepresentationWithTypeIdentifier:", + ); +late final _sel_keyEnumerator = objc.registerName("keyEnumerator"); +late final _sel_keysOfEntriesPassingTest_ = objc.registerName( + "keysOfEntriesPassingTest:", +); +late final _sel_keysOfEntriesWithOptions_passingTest_ = objc.registerName( + "keysOfEntriesWithOptions:passingTest:", +); +late final _sel_keysSortedByValueUsingComparator_ = objc.registerName( + "keysSortedByValueUsingComparator:", +); +late final _sel_keysSortedByValueUsingSelector_ = objc.registerName( + "keysSortedByValueUsingSelector:", +); +late final _sel_keysSortedByValueWithOptions_usingComparator_ = objc + .registerName("keysSortedByValueWithOptions:usingComparator:"); +late final _sel_kind = objc.registerName("kind"); +late final _sel_lastIndex = objc.registerName("lastIndex"); +late final _sel_lastObject = objc.registerName("lastObject"); +late final _sel_laterDate_ = objc.registerName("laterDate:"); +late final _sel_length = objc.registerName("length"); +late final _sel_lengthOfBytesUsingEncoding_ = objc.registerName( + "lengthOfBytesUsingEncoding:", +); +late final _sel_letterCharacterSet = objc.registerName("letterCharacterSet"); +late final _sel_limitDateForMode_ = objc.registerName("limitDateForMode:"); +late final _sel_lineRangeForRange_ = objc.registerName("lineRangeForRange:"); +late final _sel_load = objc.registerName("load"); +late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_ = + objc.registerName( + "loadDataRepresentationForTypeIdentifier:completionHandler:", + ); +late final _sel_loadDataWithTypeIdentifier_forItemProviderCompletionHandler_ = + objc.registerName( + "loadDataWithTypeIdentifier:forItemProviderCompletionHandler:", + ); +late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_ = + objc.registerName( + "loadFileRepresentationForTypeIdentifier:completionHandler:", + ); +late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_ = + objc.registerName( + "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:", + ); +late final _sel_loadItemForTypeIdentifier_options_completionHandler_ = objc + .registerName("loadItemForTypeIdentifier:options:completionHandler:"); +late final _sel_loadObjectOfClass_completionHandler_ = objc.registerName( + "loadObjectOfClass:completionHandler:", +); +late final _sel_localeWithLocaleIdentifier_ = objc.registerName( + "localeWithLocaleIdentifier:", +); +late final _sel_localizedAdditionalDescription = objc.registerName( + "localizedAdditionalDescription", +); +late final _sel_localizedCapitalizedString = objc.registerName( + "localizedCapitalizedString", +); +late final _sel_localizedCaseInsensitiveCompare_ = objc.registerName( + "localizedCaseInsensitiveCompare:", +); +late final _sel_localizedCaseInsensitiveContainsString_ = objc.registerName( + "localizedCaseInsensitiveContainsString:", +); +late final _sel_localizedCompare_ = objc.registerName("localizedCompare:"); +late final _sel_localizedDescription = objc.registerName( + "localizedDescription", +); +late final _sel_localizedFailureReason = objc.registerName( + "localizedFailureReason", +); +late final _sel_localizedLowercaseString = objc.registerName( + "localizedLowercaseString", +); +late final _sel_localizedNameOfStringEncoding_ = objc.registerName( + "localizedNameOfStringEncoding:", +); +late final _sel_localizedRecoveryOptions = objc.registerName( + "localizedRecoveryOptions", +); +late final _sel_localizedRecoverySuggestion = objc.registerName( + "localizedRecoverySuggestion", +); +late final _sel_localizedStandardCompare_ = objc.registerName( + "localizedStandardCompare:", +); +late final _sel_localizedStandardContainsString_ = objc.registerName( + "localizedStandardContainsString:", +); +late final _sel_localizedStandardRangeOfString_ = objc.registerName( + "localizedStandardRangeOfString:", +); +late final _sel_localizedStringWithFormat_ = objc.registerName( + "localizedStringWithFormat:", +); +late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_ = + objc.registerName( + "localizedStringWithValidatedFormat:validFormatSpecifiers:error:", + ); +late final _sel_localizedUppercaseString = objc.registerName( + "localizedUppercaseString", +); +late final _sel_longCharacterIsMember_ = objc.registerName( + "longCharacterIsMember:", +); +late final _sel_longLongValue = objc.registerName("longLongValue"); +late final _sel_longValue = objc.registerName("longValue"); +late final _sel_lowercaseLetterCharacterSet = objc.registerName( + "lowercaseLetterCharacterSet", +); +late final _sel_lowercaseString = objc.registerName("lowercaseString"); +late final _sel_lowercaseStringWithLocale_ = objc.registerName( + "lowercaseStringWithLocale:", +); +late final _sel_mainRunLoop = objc.registerName("mainRunLoop"); +late final _sel_makeObjectsPerformSelector_ = objc.registerName( + "makeObjectsPerformSelector:", +); +late final _sel_makeObjectsPerformSelector_withObject_ = objc.registerName( + "makeObjectsPerformSelector:withObject:", +); +late final _sel_maximumLengthOfBytesUsingEncoding_ = objc.registerName( + "maximumLengthOfBytesUsingEncoding:", +); +late final _sel_member_ = objc.registerName("member:"); +late final _sel_methodForSelector_ = objc.registerName("methodForSelector:"); +late final _sel_methodReturnLength = objc.registerName("methodReturnLength"); +late final _sel_methodReturnType = objc.registerName("methodReturnType"); +late final _sel_methodSignature = objc.registerName("methodSignature"); +late final _sel_methodSignatureForSelector_ = objc.registerName( + "methodSignatureForSelector:", +); +late final _sel_minusOrderedSet_ = objc.registerName("minusOrderedSet:"); +late final _sel_minusSet_ = objc.registerName("minusSet:"); +late final _sel_moveObjectsAtIndexes_toIndex_ = objc.registerName( + "moveObjectsAtIndexes:toIndex:", +); +late final _sel_msgid = objc.registerName("msgid"); +late final _sel_mutableBytes = objc.registerName("mutableBytes"); +late final _sel_mutableCopy = objc.registerName("mutableCopy"); +late final _sel_mutableCopyWithZone_ = objc.registerName( + "mutableCopyWithZone:", +); +late final _sel_name = objc.registerName("name"); late final _sel_new = objc.registerName("new"); +late final _sel_newlineCharacterSet = objc.registerName("newlineCharacterSet"); +late final _sel_nextObject = objc.registerName("nextObject"); +late final _sel_nonBaseCharacterSet = objc.registerName("nonBaseCharacterSet"); +late final _sel_notificationWithName_object_ = objc.registerName( + "notificationWithName:object:", +); +late final _sel_notificationWithName_object_userInfo_ = objc.registerName( + "notificationWithName:object:userInfo:", +); +late final _sel_numberOfArguments = objc.registerName("numberOfArguments"); +late final _sel_numberWithBool_ = objc.registerName("numberWithBool:"); +late final _sel_numberWithChar_ = objc.registerName("numberWithChar:"); +late final _sel_numberWithDouble_ = objc.registerName("numberWithDouble:"); +late final _sel_numberWithFloat_ = objc.registerName("numberWithFloat:"); +late final _sel_numberWithInt_ = objc.registerName("numberWithInt:"); +late final _sel_numberWithInteger_ = objc.registerName("numberWithInteger:"); +late final _sel_numberWithLongLong_ = objc.registerName("numberWithLongLong:"); +late final _sel_numberWithLong_ = objc.registerName("numberWithLong:"); +late final _sel_numberWithShort_ = objc.registerName("numberWithShort:"); +late final _sel_numberWithUnsignedChar_ = objc.registerName( + "numberWithUnsignedChar:", +); +late final _sel_numberWithUnsignedInt_ = objc.registerName( + "numberWithUnsignedInt:", +); +late final _sel_numberWithUnsignedInteger_ = objc.registerName( + "numberWithUnsignedInteger:", +); +late final _sel_numberWithUnsignedLongLong_ = objc.registerName( + "numberWithUnsignedLongLong:", +); +late final _sel_numberWithUnsignedLong_ = objc.registerName( + "numberWithUnsignedLong:", +); +late final _sel_numberWithUnsignedShort_ = objc.registerName( + "numberWithUnsignedShort:", +); +late final _sel_objCType = objc.registerName("objCType"); +late final _sel_object = objc.registerName("object"); +late final _sel_objectAtIndex_ = objc.registerName("objectAtIndex:"); +late final _sel_objectAtIndexedSubscript_ = objc.registerName( + "objectAtIndexedSubscript:", +); +late final _sel_objectEnumerator = objc.registerName("objectEnumerator"); +late final _sel_objectForKey_ = objc.registerName("objectForKey:"); +late final _sel_objectForKeyedSubscript_ = objc.registerName( + "objectForKeyedSubscript:", +); +late final _sel_objectWithItemProviderData_typeIdentifier_error_ = objc + .registerName("objectWithItemProviderData:typeIdentifier:error:"); +late final _sel_objectsAtIndexes_ = objc.registerName("objectsAtIndexes:"); +late final _sel_objectsForKeys_notFoundMarker_ = objc.registerName( + "objectsForKeys:notFoundMarker:", +); +late final _sel_objectsPassingTest_ = objc.registerName("objectsPassingTest:"); +late final _sel_objectsWithOptions_passingTest_ = objc.registerName( + "objectsWithOptions:passingTest:", +); late final _sel_observeValueForKeyPath_ofObject_change_context_ = objc .registerName("observeValueForKeyPath:ofObject:change:context:"); +late final _sel_open = objc.registerName("open"); +late final _sel_orderedSet = objc.registerName("orderedSet"); +late final _sel_orderedSetWithArray_ = objc.registerName( + "orderedSetWithArray:", +); +late final _sel_orderedSetWithArray_range_copyItems_ = objc.registerName( + "orderedSetWithArray:range:copyItems:", +); +late final _sel_orderedSetWithCapacity_ = objc.registerName( + "orderedSetWithCapacity:", +); +late final _sel_orderedSetWithObject_ = objc.registerName( + "orderedSetWithObject:", +); +late final _sel_orderedSetWithObjects_ = objc.registerName( + "orderedSetWithObjects:", +); +late final _sel_orderedSetWithObjects_count_ = objc.registerName( + "orderedSetWithObjects:count:", +); +late final _sel_orderedSetWithOrderedSet_ = objc.registerName( + "orderedSetWithOrderedSet:", +); +late final _sel_orderedSetWithOrderedSet_range_copyItems_ = objc.registerName( + "orderedSetWithOrderedSet:range:copyItems:", +); +late final _sel_orderedSetWithSet_ = objc.registerName("orderedSetWithSet:"); +late final _sel_orderedSetWithSet_copyItems_ = objc.registerName( + "orderedSetWithSet:copyItems:", +); +late final _sel_outputStreamToBuffer_capacity_ = objc.registerName( + "outputStreamToBuffer:capacity:", +); +late final _sel_outputStreamToFileAtPath_append_ = objc.registerName( + "outputStreamToFileAtPath:append:", +); +late final _sel_outputStreamToMemory = objc.registerName( + "outputStreamToMemory", +); +late final _sel_outputStreamWithURL_append_ = objc.registerName( + "outputStreamWithURL:append:", +); +late final _sel_paragraphRangeForRange_ = objc.registerName( + "paragraphRangeForRange:", +); +late final _sel_parameterString = objc.registerName("parameterString"); +late final _sel_password = objc.registerName("password"); +late final _sel_path = objc.registerName("path"); +late final _sel_pause = objc.registerName("pause"); +late final _sel_pausingHandler = objc.registerName("pausingHandler"); +late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_ = objc + .registerName("performAsCurrentWithPendingUnitCount:usingBlock:"); +late final _sel_performSelector_ = objc.registerName("performSelector:"); +late final _sel_performSelector_withObject_ = objc.registerName( + "performSelector:withObject:", +); +late final _sel_performSelector_withObject_withObject_ = objc.registerName( + "performSelector:withObject:withObject:", +); +late final _sel_port = objc.registerName("port"); +late final _sel_precomposedStringWithCanonicalMapping = objc.registerName( + "precomposedStringWithCanonicalMapping", +); +late final _sel_precomposedStringWithCompatibilityMapping = objc.registerName( + "precomposedStringWithCompatibilityMapping", +); +late final _sel_progressWithTotalUnitCount_ = objc.registerName( + "progressWithTotalUnitCount:", +); +late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_ = objc + .registerName("progressWithTotalUnitCount:parent:pendingUnitCount:"); +late final _sel_propertyForKey_ = objc.registerName("propertyForKey:"); +late final _sel_publish = objc.registerName("publish"); +late final _sel_punctuationCharacterSet = objc.registerName( + "punctuationCharacterSet", +); +late final _sel_query = objc.registerName("query"); +late final _sel_rangeOfCharacterFromSet_ = objc.registerName( + "rangeOfCharacterFromSet:", +); +late final _sel_rangeOfCharacterFromSet_options_ = objc.registerName( + "rangeOfCharacterFromSet:options:", +); +late final _sel_rangeOfCharacterFromSet_options_range_ = objc.registerName( + "rangeOfCharacterFromSet:options:range:", +); +late final _sel_rangeOfComposedCharacterSequenceAtIndex_ = objc.registerName( + "rangeOfComposedCharacterSequenceAtIndex:", +); +late final _sel_rangeOfComposedCharacterSequencesForRange_ = objc.registerName( + "rangeOfComposedCharacterSequencesForRange:", +); +late final _sel_rangeOfData_options_range_ = objc.registerName( + "rangeOfData:options:range:", +); +late final _sel_rangeOfString_ = objc.registerName("rangeOfString:"); +late final _sel_rangeOfString_options_ = objc.registerName( + "rangeOfString:options:", +); +late final _sel_rangeOfString_options_range_ = objc.registerName( + "rangeOfString:options:range:", +); +late final _sel_rangeOfString_options_range_locale_ = objc.registerName( + "rangeOfString:options:range:locale:", +); +late final _sel_read_maxLength_ = objc.registerName("read:maxLength:"); +late final _sel_receivePort = objc.registerName("receivePort"); +late final _sel_recoveryAttempter = objc.registerName("recoveryAttempter"); late final _sel_registerClass = objc.registerName("registerClass"); +late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_ = + objc.registerName( + "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:", + ); +late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_ = + objc.registerName( + "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:", + ); +late final _sel_registerItemForTypeIdentifier_loadHandler_ = objc.registerName( + "registerItemForTypeIdentifier:loadHandler:", +); +late final _sel_registerObjectOfClass_visibility_loadHandler_ = objc + .registerName("registerObjectOfClass:visibility:loadHandler:"); +late final _sel_registerObject_visibility_ = objc.registerName( + "registerObject:visibility:", +); +late final _sel_registeredTypeIdentifiers = objc.registerName( + "registeredTypeIdentifiers", +); +late final _sel_registeredTypeIdentifiersWithFileOptions_ = objc.registerName( + "registeredTypeIdentifiersWithFileOptions:", +); +late final _sel_relativePath = objc.registerName("relativePath"); +late final _sel_relativeString = objc.registerName("relativeString"); +late final _sel_release = objc.registerName("release"); +late final _sel_removals = objc.registerName("removals"); late final _sel_remove = objc.registerName("remove"); +late final _sel_removeAllCachedResourceValues = objc.registerName( + "removeAllCachedResourceValues", +); +late final _sel_removeAllIndexes = objc.registerName("removeAllIndexes"); +late final _sel_removeAllObjects = objc.registerName("removeAllObjects"); +late final _sel_removeCachedResourceValueForKey_ = objc.registerName( + "removeCachedResourceValueForKey:", +); +late final _sel_removeFromRunLoop_forMode_ = objc.registerName( + "removeFromRunLoop:forMode:", +); +late final _sel_removeIndex_ = objc.registerName("removeIndex:"); +late final _sel_removeIndexesInRange_ = objc.registerName( + "removeIndexesInRange:", +); +late final _sel_removeIndexes_ = objc.registerName("removeIndexes:"); +late final _sel_removeLastObject = objc.registerName("removeLastObject"); +late final _sel_removeObjectAtIndex_ = objc.registerName( + "removeObjectAtIndex:", +); +late final _sel_removeObjectForKey_ = objc.registerName("removeObjectForKey:"); +late final _sel_removeObjectIdenticalTo_ = objc.registerName( + "removeObjectIdenticalTo:", +); +late final _sel_removeObjectIdenticalTo_inRange_ = objc.registerName( + "removeObjectIdenticalTo:inRange:", +); +late final _sel_removeObject_ = objc.registerName("removeObject:"); +late final _sel_removeObject_inRange_ = objc.registerName( + "removeObject:inRange:", +); +late final _sel_removeObjectsAtIndexes_ = objc.registerName( + "removeObjectsAtIndexes:", +); +late final _sel_removeObjectsForKeys_ = objc.registerName( + "removeObjectsForKeys:", +); +late final _sel_removeObjectsInArray_ = objc.registerName( + "removeObjectsInArray:", +); +late final _sel_removeObjectsInRange_ = objc.registerName( + "removeObjectsInRange:", +); +late final _sel_removePort_forMode_ = objc.registerName("removePort:forMode:"); +late final _sel_removeSubscriber_ = objc.registerName("removeSubscriber:"); +late final _sel_replaceBytesInRange_withBytes_ = objc.registerName( + "replaceBytesInRange:withBytes:", +); +late final _sel_replaceBytesInRange_withBytes_length_ = objc.registerName( + "replaceBytesInRange:withBytes:length:", +); +late final _sel_replaceCharactersInRange_withString_ = objc.registerName( + "replaceCharactersInRange:withString:", +); +late final _sel_replaceObjectAtIndex_withObject_ = objc.registerName( + "replaceObjectAtIndex:withObject:", +); +late final _sel_replaceObjectsAtIndexes_withObjects_ = objc.registerName( + "replaceObjectsAtIndexes:withObjects:", +); +late final _sel_replaceObjectsInRange_withObjectsFromArray_ = objc.registerName( + "replaceObjectsInRange:withObjectsFromArray:", +); +late final _sel_replaceObjectsInRange_withObjectsFromArray_range_ = objc + .registerName("replaceObjectsInRange:withObjectsFromArray:range:"); +late final _sel_replaceObjectsInRange_withObjects_count_ = objc.registerName( + "replaceObjectsInRange:withObjects:count:", +); +late final _sel_reservedSpaceLength = objc.registerName("reservedSpaceLength"); +late final _sel_resetBytesInRange_ = objc.registerName("resetBytesInRange:"); +late final _sel_resignCurrent = objc.registerName("resignCurrent"); +late final _sel_resolveClassMethod_ = objc.registerName("resolveClassMethod:"); +late final _sel_resolveInstanceMethod_ = objc.registerName( + "resolveInstanceMethod:", +); +late final _sel_resourceSpecifier = objc.registerName("resourceSpecifier"); +late final _sel_resourceValuesForKeys_error_ = objc.registerName( + "resourceValuesForKeys:error:", +); +late final _sel_resourceValuesForKeys_fromBookmarkData_ = objc.registerName( + "resourceValuesForKeys:fromBookmarkData:", +); +late final _sel_respondsToSelector_ = objc.registerName("respondsToSelector:"); +late final _sel_resume = objc.registerName("resume"); +late final _sel_resumingHandler = objc.registerName("resumingHandler"); late final _sel_retain = objc.registerName("retain"); +late final _sel_retainArguments = objc.registerName("retainArguments"); +late final _sel_retainCount = objc.registerName("retainCount"); +late final _sel_reverseObjectEnumerator = objc.registerName( + "reverseObjectEnumerator", +); +late final _sel_reversedOrderedSet = objc.registerName("reversedOrderedSet"); +late final _sel_scheduleInRunLoop_forMode_ = objc.registerName( + "scheduleInRunLoop:forMode:", +); +late final _sel_scheduledTimerWithTimeInterval_invocation_repeats_ = objc + .registerName("scheduledTimerWithTimeInterval:invocation:repeats:"); +late final _sel_scheduledTimerWithTimeInterval_repeats_block_ = objc + .registerName("scheduledTimerWithTimeInterval:repeats:block:"); +late final _sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_ = + objc.registerName( + "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:", + ); +late final _sel_scheme = objc.registerName("scheme"); +late final _sel_selector = objc.registerName("selector"); late final _sel_self = objc.registerName("self"); +late final _sel_sendBeforeDate_ = objc.registerName("sendBeforeDate:"); +late final _sel_sendBeforeDate_components_from_reserved_ = objc.registerName( + "sendBeforeDate:components:from:reserved:", +); +late final _sel_sendBeforeDate_msgid_components_from_reserved_ = objc + .registerName("sendBeforeDate:msgid:components:from:reserved:"); +late final _sel_sendPort = objc.registerName("sendPort"); +late final _sel_set = objc.registerName("set"); +late final _sel_setArgument_atIndex_ = objc.registerName( + "setArgument:atIndex:", +); +late final _sel_setArray_ = objc.registerName("setArray:"); +late final _sel_setByAddingObject_ = objc.registerName("setByAddingObject:"); +late final _sel_setByAddingObjectsFromArray_ = objc.registerName( + "setByAddingObjectsFromArray:", +); +late final _sel_setByAddingObjectsFromSet_ = objc.registerName( + "setByAddingObjectsFromSet:", +); +late final _sel_setCancellable_ = objc.registerName("setCancellable:"); +late final _sel_setCancellationHandler_ = objc.registerName( + "setCancellationHandler:", +); +late final _sel_setCompletedUnitCount_ = objc.registerName( + "setCompletedUnitCount:", +); +late final _sel_setData_ = objc.registerName("setData:"); +late final _sel_setDelegate_ = objc.registerName("setDelegate:"); +late final _sel_setDictionary_ = objc.registerName("setDictionary:"); late final _sel_setDone = objc.registerName("setDone"); late final _sel_setError_ = objc.registerName("setError:"); +late final _sel_setEstimatedTimeRemaining_ = objc.registerName( + "setEstimatedTimeRemaining:", +); +late final _sel_setFileCompletedCount_ = objc.registerName( + "setFileCompletedCount:", +); +late final _sel_setFileOperationKind_ = objc.registerName( + "setFileOperationKind:", +); +late final _sel_setFileTotalCount_ = objc.registerName("setFileTotalCount:"); +late final _sel_setFileURL_ = objc.registerName("setFileURL:"); +late final _sel_setFireDate_ = objc.registerName("setFireDate:"); +late final _sel_setKind_ = objc.registerName("setKind:"); +late final _sel_setLength_ = objc.registerName("setLength:"); +late final _sel_setLocalizedAdditionalDescription_ = objc.registerName( + "setLocalizedAdditionalDescription:", +); +late final _sel_setLocalizedDescription_ = objc.registerName( + "setLocalizedDescription:", +); +late final _sel_setMsgid_ = objc.registerName("setMsgid:"); +late final _sel_setObject_atIndex_ = objc.registerName("setObject:atIndex:"); +late final _sel_setObject_atIndexedSubscript_ = objc.registerName( + "setObject:atIndexedSubscript:", +); +late final _sel_setObject_forKey_ = objc.registerName("setObject:forKey:"); +late final _sel_setObject_forKeyedSubscript_ = objc.registerName( + "setObject:forKeyedSubscript:", +); +late final _sel_setPausable_ = objc.registerName("setPausable:"); +late final _sel_setPausingHandler_ = objc.registerName("setPausingHandler:"); +late final _sel_setProperty_forKey_ = objc.registerName("setProperty:forKey:"); +late final _sel_setResourceValue_forKey_error_ = objc.registerName( + "setResourceValue:forKey:error:", +); +late final _sel_setResourceValues_error_ = objc.registerName( + "setResourceValues:error:", +); +late final _sel_setResumingHandler_ = objc.registerName("setResumingHandler:"); +late final _sel_setReturnValue_ = objc.registerName("setReturnValue:"); +late final _sel_setSelector_ = objc.registerName("setSelector:"); +late final _sel_setSet_ = objc.registerName("setSet:"); +late final _sel_setSuggestedName_ = objc.registerName("setSuggestedName:"); +late final _sel_setTarget_ = objc.registerName("setTarget:"); +late final _sel_setTemporaryResourceValue_forKey_ = objc.registerName( + "setTemporaryResourceValue:forKey:", +); +late final _sel_setThroughput_ = objc.registerName("setThroughput:"); +late final _sel_setTolerance_ = objc.registerName("setTolerance:"); +late final _sel_setTotalUnitCount_ = objc.registerName("setTotalUnitCount:"); +late final _sel_setUserInfoObject_forKey_ = objc.registerName( + "setUserInfoObject:forKey:", +); +late final _sel_setUserInfoValueProviderForDomain_provider_ = objc.registerName( + "setUserInfoValueProviderForDomain:provider:", +); +late final _sel_setWithArray_ = objc.registerName("setWithArray:"); +late final _sel_setWithCapacity_ = objc.registerName("setWithCapacity:"); +late final _sel_setWithObject_ = objc.registerName("setWithObject:"); +late final _sel_setWithObjects_ = objc.registerName("setWithObjects:"); +late final _sel_setWithObjects_count_ = objc.registerName( + "setWithObjects:count:", +); +late final _sel_setWithSet_ = objc.registerName("setWithSet:"); +late final _sel_shiftIndexesStartingAtIndex_by_ = objc.registerName( + "shiftIndexesStartingAtIndex:by:", +); +late final _sel_shortValue = objc.registerName("shortValue"); +late final _sel_signatureWithObjCTypes_ = objc.registerName( + "signatureWithObjCTypes:", +); +late final _sel_smallestEncoding = objc.registerName("smallestEncoding"); +late final _sel_sortRange_options_usingComparator_ = objc.registerName( + "sortRange:options:usingComparator:", +); +late final _sel_sortUsingComparator_ = objc.registerName( + "sortUsingComparator:", +); +late final _sel_sortUsingFunction_context_ = objc.registerName( + "sortUsingFunction:context:", +); +late final _sel_sortUsingSelector_ = objc.registerName("sortUsingSelector:"); +late final _sel_sortWithOptions_usingComparator_ = objc.registerName( + "sortWithOptions:usingComparator:", +); +late final _sel_sortedArrayHint = objc.registerName("sortedArrayHint"); +late final _sel_sortedArrayUsingComparator_ = objc.registerName( + "sortedArrayUsingComparator:", +); +late final _sel_sortedArrayUsingFunction_context_ = objc.registerName( + "sortedArrayUsingFunction:context:", +); +late final _sel_sortedArrayUsingFunction_context_hint_ = objc.registerName( + "sortedArrayUsingFunction:context:hint:", +); +late final _sel_sortedArrayUsingSelector_ = objc.registerName( + "sortedArrayUsingSelector:", +); +late final _sel_sortedArrayWithOptions_usingComparator_ = objc.registerName( + "sortedArrayWithOptions:usingComparator:", +); +late final _sel_standardizedURL = objc.registerName("standardizedURL"); +late final _sel_startAccessingSecurityScopedResource = objc.registerName( + "startAccessingSecurityScopedResource", +); +late final _sel_stopAccessingSecurityScopedResource = objc.registerName( + "stopAccessingSecurityScopedResource", +); +late final _sel_streamError = objc.registerName("streamError"); +late final _sel_streamStatus = objc.registerName("streamStatus"); late final _sel_stream_handleEvent_ = objc.registerName("stream:handleEvent:"); +late final _sel_string = objc.registerName("string"); +late final _sel_stringByAppendingFormat_ = objc.registerName( + "stringByAppendingFormat:", +); +late final _sel_stringByAppendingString_ = objc.registerName( + "stringByAppendingString:", +); +late final _sel_stringByApplyingTransform_reverse_ = objc.registerName( + "stringByApplyingTransform:reverse:", +); +late final _sel_stringByFoldingWithOptions_locale_ = objc.registerName( + "stringByFoldingWithOptions:locale:", +); +late final _sel_stringByPaddingToLength_withString_startingAtIndex_ = objc + .registerName("stringByPaddingToLength:withString:startingAtIndex:"); +late final _sel_stringByReplacingCharactersInRange_withString_ = objc + .registerName("stringByReplacingCharactersInRange:withString:"); +late final _sel_stringByReplacingOccurrencesOfString_withString_ = objc + .registerName("stringByReplacingOccurrencesOfString:withString:"); +late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_ = + objc.registerName( + "stringByReplacingOccurrencesOfString:withString:options:range:", + ); +late final _sel_stringByTrimmingCharactersInSet_ = objc.registerName( + "stringByTrimmingCharactersInSet:", +); +late final _sel_stringValue = objc.registerName("stringValue"); +late final _sel_stringWithCString_encoding_ = objc.registerName( + "stringWithCString:encoding:", +); +late final _sel_stringWithCharacters_length_ = objc.registerName( + "stringWithCharacters:length:", +); +late final _sel_stringWithContentsOfFile_encoding_error_ = objc.registerName( + "stringWithContentsOfFile:encoding:error:", +); +late final _sel_stringWithContentsOfFile_usedEncoding_error_ = objc + .registerName("stringWithContentsOfFile:usedEncoding:error:"); +late final _sel_stringWithContentsOfURL_encoding_error_ = objc.registerName( + "stringWithContentsOfURL:encoding:error:", +); +late final _sel_stringWithContentsOfURL_usedEncoding_error_ = objc.registerName( + "stringWithContentsOfURL:usedEncoding:error:", +); +late final _sel_stringWithFormat_ = objc.registerName("stringWithFormat:"); +late final _sel_stringWithString_ = objc.registerName("stringWithString:"); +late final _sel_stringWithUTF8String_ = objc.registerName( + "stringWithUTF8String:", +); +late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_ = objc + .registerName("stringWithValidatedFormat:validFormatSpecifiers:error:"); +late final _sel_subarrayWithRange_ = objc.registerName("subarrayWithRange:"); +late final _sel_subdataWithRange_ = objc.registerName("subdataWithRange:"); +late final _sel_substringFromIndex_ = objc.registerName("substringFromIndex:"); +late final _sel_substringToIndex_ = objc.registerName("substringToIndex:"); +late final _sel_substringWithRange_ = objc.registerName("substringWithRange:"); +late final _sel_suggestedName = objc.registerName("suggestedName"); +late final _sel_superclass = objc.registerName("superclass"); +late final _sel_supportsSecureCoding = objc.registerName( + "supportsSecureCoding", +); +late final _sel_symbolCharacterSet = objc.registerName("symbolCharacterSet"); +late final _sel_target = objc.registerName("target"); +late final _sel_throughput = objc.registerName("throughput"); +late final _sel_timeInterval = objc.registerName("timeInterval"); +late final _sel_timeIntervalSince1970 = objc.registerName( + "timeIntervalSince1970", +); +late final _sel_timeIntervalSinceDate_ = objc.registerName( + "timeIntervalSinceDate:", +); +late final _sel_timeIntervalSinceNow = objc.registerName( + "timeIntervalSinceNow", +); +late final _sel_timeIntervalSinceReferenceDate = objc.registerName( + "timeIntervalSinceReferenceDate", +); +late final _sel_timerWithTimeInterval_invocation_repeats_ = objc.registerName( + "timerWithTimeInterval:invocation:repeats:", +); +late final _sel_timerWithTimeInterval_repeats_block_ = objc.registerName( + "timerWithTimeInterval:repeats:block:", +); +late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_ = objc + .registerName("timerWithTimeInterval:target:selector:userInfo:repeats:"); +late final _sel_tolerance = objc.registerName("tolerance"); +late final _sel_totalUnitCount = objc.registerName("totalUnitCount"); +late final _sel_underlyingErrors = objc.registerName("underlyingErrors"); +late final _sel_unionOrderedSet_ = objc.registerName("unionOrderedSet:"); +late final _sel_unionSet_ = objc.registerName("unionSet:"); +late final _sel_unpublish = objc.registerName("unpublish"); +late final _sel_unsignedCharValue = objc.registerName("unsignedCharValue"); +late final _sel_unsignedIntValue = objc.registerName("unsignedIntValue"); +late final _sel_unsignedIntegerValue = objc.registerName( + "unsignedIntegerValue", +); +late final _sel_unsignedLongLongValue = objc.registerName( + "unsignedLongLongValue", +); +late final _sel_unsignedLongValue = objc.registerName("unsignedLongValue"); +late final _sel_unsignedShortValue = objc.registerName("unsignedShortValue"); +late final _sel_uppercaseLetterCharacterSet = objc.registerName( + "uppercaseLetterCharacterSet", +); +late final _sel_uppercaseString = objc.registerName("uppercaseString"); +late final _sel_uppercaseStringWithLocale_ = objc.registerName( + "uppercaseStringWithLocale:", +); +late final _sel_user = objc.registerName("user"); +late final _sel_userInfo = objc.registerName("userInfo"); +late final _sel_userInfoValueProviderForDomain_ = objc.registerName( + "userInfoValueProviderForDomain:", +); +late final _sel_versionForClassName_ = objc.registerName( + "versionForClassName:", +); +late final _sel_whitespaceAndNewlineCharacterSet = objc.registerName( + "whitespaceAndNewlineCharacterSet", +); +late final _sel_whitespaceCharacterSet = objc.registerName( + "whitespaceCharacterSet", +); +late final _sel_writableTypeIdentifiersForItemProvider = objc.registerName( + "writableTypeIdentifiersForItemProvider", +); +late final _sel_writeBookmarkData_toURL_options_error_ = objc.registerName( + "writeBookmarkData:toURL:options:error:", +); +late final _sel_writeToFile_atomically_ = objc.registerName( + "writeToFile:atomically:", +); +late final _sel_writeToFile_atomically_encoding_error_ = objc.registerName( + "writeToFile:atomically:encoding:error:", +); +late final _sel_writeToFile_options_error_ = objc.registerName( + "writeToFile:options:error:", +); +late final _sel_writeToURL_atomically_ = objc.registerName( + "writeToURL:atomically:", +); +late final _sel_writeToURL_atomically_encoding_error_ = objc.registerName( + "writeToURL:atomically:encoding:error:", +); +late final _sel_writeToURL_error_ = objc.registerName("writeToURL:error:"); +late final _sel_writeToURL_options_error_ = objc.registerName( + "writeToURL:options:error:", +); +late final _sel_write_maxLength_ = objc.registerName("write:maxLength:"); +late final _sel_zone = objc.registerName("zone"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObjectBase; + +class _NSArrayIterator implements Iterator { + final Iterable _iterable; + final int _length; + int _index; + objc.ObjCObjectBase? _current; + + _NSArrayIterator(Iterable iterable) + : _iterable = iterable, + _length = iterable.length, + _index = 0; + + @override + objc.ObjCObjectBase get current => _current!; + + @override + @pragma('vm:prefer-inline') + bool moveNext() { + final length = _iterable.length; + if (_length != length) { + throw ConcurrentModificationError(_iterable); + } + if (_index >= length) { + _current = null; + return false; + } + _current = _iterable.elementAt(_index); + _index++; + return true; + } +} + +class _NSDictionaryKeyIterable with Iterable { + NSDictionary _dictionary; + + _NSDictionaryKeyIterable(this._dictionary); + + @override + int get length => _dictionary.length; + + @override + Iterator get iterator => + _NSDictionaryKeyIterator(_dictionary.keyEnumerator()); + + @override + bool contains(Object? key) => _dictionary.containsKey(key); +} + +class _NSDictionaryValueIterable with Iterable { + NSDictionary _dictionary; + + _NSDictionaryValueIterable(this._dictionary); + + @override + int get length => _dictionary.length; + + @override + Iterator get iterator => _dictionary.objectEnumerator(); +} + +class _NSDictionaryKeyIterator implements Iterator { + final Iterator _iterator; + _NSDictionaryKeyIterator(this._iterator); + + @override + NSCopying get current => NSCopying.castFrom(_iterator.current); + + @override + @pragma('vm:prefer-inline') + bool moveNext() => _iterator.moveNext(); +} diff --git a/pkgs/objective_c/lib/src/observer.dart b/pkgs/objective_c/lib/src/observer.dart index d28fdca00..83230e99e 100644 --- a/pkgs/objective_c/lib/src/observer.dart +++ b/pkgs/objective_c/lib/src/observer.dart @@ -4,7 +4,6 @@ import 'dart:ffi'; -import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart'; extension Observed on NSObject { diff --git a/pkgs/objective_c/lib/src/protocol_builder.dart b/pkgs/objective_c/lib/src/protocol_builder.dart index 23d2a4a28..5980eb41d 100644 --- a/pkgs/objective_c/lib/src/protocol_builder.dart +++ b/pkgs/objective_c/lib/src/protocol_builder.dart @@ -11,7 +11,6 @@ import 'package:ffi/ffi.dart'; import 'c_bindings_generated.dart' as c; import 'internal.dart' show FailedToLoadProtocolMethodException, GetProtocolName, ObjCBlockBase; -import 'foundation_bindings_generated.dart'; import 'objective_c_bindings_generated.dart' as objc; import 'runtime_bindings_generated.dart' as r; import 'selector.dart'; @@ -53,7 +52,7 @@ class ObjCProtocolBuilder { /// /// This can be called multiple times to construct multiple object instances /// that all implement the same protocol methods using the same functions. - NSObject build({bool keepIsolateAlive = true}) { + objc.NSObject build({bool keepIsolateAlive = true}) { if (!_built) { _builder.registerClass(); _built = true; @@ -73,7 +72,7 @@ class ObjCProtocolBuilder { /// This essentially declares that the implementation implements the protocol. /// There is no automatic check that ensures that the implementation actually /// implements all the methods of the protocol. - void addProtocol(Protocol protocol) => _builder.addProtocol(protocol); + void addProtocol(objc.Protocol protocol) => _builder.addProtocol(protocol); static final _rand = Random(); static objc.DartProtocolBuilder _createBuilder(String debugName) { diff --git a/pkgs/objective_c/src/foundation_bindings_generated.m b/pkgs/objective_c/src/foundation_bindings_generated.m deleted file mode 100644 index 1317af43d..000000000 --- a/pkgs/objective_c/src/foundation_bindings_generated.m +++ /dev/null @@ -1,524 +0,0 @@ -#include -#import -#import -#import "foundation.h" - -#if !__has_feature(objc_arc) -#error "This file must be compiled with ARC enabled" -#endif - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wundeclared-selector" - -typedef struct { - int64_t version; - void* (*newWaiter)(void); - void (*awaitWaiter)(void*); - void* (*currentIsolate)(void); - void (*enterIsolate)(void*); - void (*exitIsolate)(void); - int64_t (*getMainPortId)(void); - bool (*getCurrentThreadOwnsIsolate)(int64_t); -} DOBJC_Context; - -id objc_retainBlock(id); - -#define BLOCKING_BLOCK_IMPL(ctx, BLOCK_SIG, INVOKE_DIRECT, INVOKE_LISTENER) \ - assert(ctx->version >= 1); \ - void* targetIsolate = ctx->currentIsolate(); \ - int64_t targetPort = ctx->getMainPortId == NULL ? 0 : ctx->getMainPortId(); \ - return BLOCK_SIG { \ - void* currentIsolate = ctx->currentIsolate(); \ - bool mayEnterIsolate = \ - currentIsolate == NULL && \ - ctx->getCurrentThreadOwnsIsolate != NULL && \ - ctx->getCurrentThreadOwnsIsolate(targetPort); \ - if (currentIsolate == targetIsolate || mayEnterIsolate) { \ - if (mayEnterIsolate) { \ - ctx->enterIsolate(targetIsolate); \ - } \ - INVOKE_DIRECT; \ - if (mayEnterIsolate) { \ - ctx->exitIsolate(); \ - } \ - } else { \ - void* waiter = ctx->newWaiter(); \ - INVOKE_LISTENER; \ - ctx->awaitWaiter(waiter); \ - } \ - }; - - -Protocol* _ObjectiveCBindings_NSCoding(void) { return @protocol(NSCoding); } - -Protocol* _ObjectiveCBindings_NSCopying(void) { return @protocol(NSCopying); } - -Protocol* _ObjectiveCBindings_NSFastEnumeration(void) { return @protocol(NSFastEnumeration); } - -Protocol* _ObjectiveCBindings_NSItemProviderReading(void) { return @protocol(NSItemProviderReading); } - -Protocol* _ObjectiveCBindings_NSItemProviderWriting(void) { return @protocol(NSItemProviderWriting); } - -Protocol* _ObjectiveCBindings_NSMutableCopying(void) { return @protocol(NSMutableCopying); } - -Protocol* _ObjectiveCBindings_NSObject(void) { return @protocol(NSObject); } - -Protocol* _ObjectiveCBindings_NSSecureCoding(void) { return @protocol(NSSecureCoding); } - -Protocol* _ObjectiveCBindings_NSStreamDelegate(void) { return @protocol(NSStreamDelegate); } - -typedef id (^ProtocolTrampoline)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_1mbt9g9(id target, void * sel) { - return ((ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef NSItemProviderRepresentationVisibility (^ProtocolTrampoline_1)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -NSItemProviderRepresentationVisibility _ObjectiveCBindings_protocolTrampoline_1ldqghh(id target, void * sel, id arg1) { - return ((ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef id (^ProtocolTrampoline_2)(void * sel, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_1q0i84(id target, void * sel, id arg1, id arg2) { - return ((ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -typedef unsigned long (^ProtocolTrampoline_3)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -unsigned long _ObjectiveCBindings_protocolTrampoline_1ckyi24(id target, void * sel) { - return ((ProtocolTrampoline_3)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef unsigned long (^ProtocolTrampoline_4)(void * sel, NSFastEnumerationState * arg1, id * arg2, unsigned long arg3); -__attribute__((visibility("default"))) __attribute__((used)) -unsigned long _ObjectiveCBindings_protocolTrampoline_17ap02x(id target, void * sel, NSFastEnumerationState * arg1, id * arg2, unsigned long arg3) { - return ((ProtocolTrampoline_4)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -typedef struct _NSZone * (^ProtocolTrampoline_5)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -struct _NSZone * _ObjectiveCBindings_protocolTrampoline_1a8cl66(id target, void * sel) { - return ((ProtocolTrampoline_5)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef BOOL (^ProtocolTrampoline_6)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _ObjectiveCBindings_protocolTrampoline_e3qsqz(id target, void * sel) { - return ((ProtocolTrampoline_6)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef BOOL (^ProtocolTrampoline_7)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _ObjectiveCBindings_protocolTrampoline_3su7tt(id target, void * sel, id arg1) { - return ((ProtocolTrampoline_7)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef BOOL (^ProtocolTrampoline_8)(void * sel, struct objc_selector * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -BOOL _ObjectiveCBindings_protocolTrampoline_w1e3k0(id target, void * sel, struct objc_selector * arg1) { - return ((ProtocolTrampoline_8)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef void (^ListenerTrampoline)(id arg0, id arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline _ObjectiveCBindings_wrapListenerBlock_1o83rbn(ListenerTrampoline block) NS_RETURNS_RETAINED { - return ^void(id arg0, id arg1, BOOL * arg2) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); - }; -} - -typedef void (^BlockingTrampoline)(void * waiter, id arg0, id arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline _ObjectiveCBindings_wrapBlockingBlock_1o83rbn( - BlockingTrampoline block, BlockingTrampoline listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1, BOOL * arg2), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); - }); -} - -typedef void (^ListenerTrampoline_1)(id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_1 _ObjectiveCBindings_wrapListenerBlock_pfv6jd(ListenerTrampoline_1 block) NS_RETURNS_RETAINED { - return ^void(id arg0, id arg1) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); - }; -} - -typedef void (^BlockingTrampoline_1)(void * waiter, id arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_1 _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( - BlockingTrampoline_1 block, BlockingTrampoline_1 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); - }); -} - -typedef void (^ListenerTrampoline_2)(id arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_2 _ObjectiveCBindings_wrapListenerBlock_1b3bb6a(ListenerTrampoline_2 block) NS_RETURNS_RETAINED { - return ^void(id arg0, id arg1, id arg2) { - objc_retainBlock(block); - block(objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); - }; -} - -typedef void (^BlockingTrampoline_2)(void * waiter, id arg0, id arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_2 _ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( - BlockingTrampoline_2 block, BlockingTrampoline_2 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1, id arg2), { - objc_retainBlock(block); - block(nil, objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); - }); -} - -typedef void (^ListenerTrampoline_3)(struct _NSRange arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_3 _ObjectiveCBindings_wrapListenerBlock_zkjmn1(ListenerTrampoline_3 block) NS_RETURNS_RETAINED { - return ^void(struct _NSRange arg0, BOOL * arg1) { - objc_retainBlock(block); - block(arg0, arg1); - }; -} - -typedef void (^BlockingTrampoline_3)(void * waiter, struct _NSRange arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_3 _ObjectiveCBindings_wrapBlockingBlock_zkjmn1( - BlockingTrampoline_3 block, BlockingTrampoline_3 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(struct _NSRange arg0, BOOL * arg1), { - objc_retainBlock(block); - block(nil, arg0, arg1); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, arg1); - }); -} - -typedef void (^ListenerTrampoline_4)(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_4 _ObjectiveCBindings_wrapListenerBlock_lmc3p5(ListenerTrampoline_4 block) NS_RETURNS_RETAINED { - return ^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); - }; -} - -typedef void (^BlockingTrampoline_4)(void * waiter, id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_4 _ObjectiveCBindings_wrapBlockingBlock_lmc3p5( - BlockingTrampoline_4 block, BlockingTrampoline_4 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); - }); -} - -typedef void (^ListenerTrampoline_5)(id arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_5 _ObjectiveCBindings_wrapListenerBlock_t8l8el(ListenerTrampoline_5 block) NS_RETURNS_RETAINED { - return ^void(id arg0, BOOL * arg1) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), arg1); - }; -} - -typedef void (^BlockingTrampoline_5)(void * waiter, id arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_5 _ObjectiveCBindings_wrapBlockingBlock_t8l8el( - BlockingTrampoline_5 block, BlockingTrampoline_5 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, BOOL * arg1), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1); - }); -} - -typedef void (^ListenerTrampoline_6)(unsigned long arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_6 _ObjectiveCBindings_wrapListenerBlock_q5jeyk(ListenerTrampoline_6 block) NS_RETURNS_RETAINED { - return ^void(unsigned long arg0, BOOL * arg1) { - objc_retainBlock(block); - block(arg0, arg1); - }; -} - -typedef void (^BlockingTrampoline_6)(void * waiter, unsigned long arg0, BOOL * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_6 _ObjectiveCBindings_wrapBlockingBlock_q5jeyk( - BlockingTrampoline_6 block, BlockingTrampoline_6 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(unsigned long arg0, BOOL * arg1), { - objc_retainBlock(block); - block(nil, arg0, arg1); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, arg1); - }); -} - -typedef void (^ListenerTrampoline_7)(id arg0, BOOL arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_7 _ObjectiveCBindings_wrapListenerBlock_rnu2c5(ListenerTrampoline_7 block) NS_RETURNS_RETAINED { - return ^void(id arg0, BOOL arg1, id arg2) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); - }; -} - -typedef void (^BlockingTrampoline_7)(void * waiter, id arg0, BOOL arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_7 _ObjectiveCBindings_wrapBlockingBlock_rnu2c5( - BlockingTrampoline_7 block, BlockingTrampoline_7 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, BOOL arg1, id arg2), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); - }); -} - -typedef void (^ListenerTrampoline_8)(id arg0, unsigned long arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_8 _ObjectiveCBindings_wrapListenerBlock_1p9ui4q(ListenerTrampoline_8 block) NS_RETURNS_RETAINED { - return ^void(id arg0, unsigned long arg1, BOOL * arg2) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); - }; -} - -typedef void (^BlockingTrampoline_8)(void * waiter, id arg0, unsigned long arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_8 _ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( - BlockingTrampoline_8 block, BlockingTrampoline_8 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, unsigned long arg1, BOOL * arg2), { - objc_retainBlock(block); - block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); - }); -} - -typedef void (^ListenerTrampoline_9)(void * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_9 _ObjectiveCBindings_wrapListenerBlock_ovsamd(ListenerTrampoline_9 block) NS_RETURNS_RETAINED { - return ^void(void * arg0) { - objc_retainBlock(block); - block(arg0); - }; -} - -typedef void (^BlockingTrampoline_9)(void * waiter, void * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_9 _ObjectiveCBindings_wrapBlockingBlock_ovsamd( - BlockingTrampoline_9 block, BlockingTrampoline_9 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0), { - objc_retainBlock(block); - block(nil, arg0); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0); - }); -} - -typedef void (^ProtocolTrampoline_9)(void * sel); -__attribute__((visibility("default"))) __attribute__((used)) -void _ObjectiveCBindings_protocolTrampoline_ovsamd(id target, void * sel) { - return ((ProtocolTrampoline_9)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); -} - -typedef void (^ListenerTrampoline_10)(void * arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_10 _ObjectiveCBindings_wrapListenerBlock_18v1jvf(ListenerTrampoline_10 block) NS_RETURNS_RETAINED { - return ^void(void * arg0, id arg1) { - objc_retainBlock(block); - block(arg0, (__bridge id)(__bridge_retained void*)(arg1)); - }; -} - -typedef void (^BlockingTrampoline_10)(void * waiter, void * arg0, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_10 _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( - BlockingTrampoline_10 block, BlockingTrampoline_10 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1), { - objc_retainBlock(block); - block(nil, arg0, (__bridge id)(__bridge_retained void*)(arg1)); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, (__bridge id)(__bridge_retained void*)(arg1)); - }); -} - -typedef void (^ProtocolTrampoline_10)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -void _ObjectiveCBindings_protocolTrampoline_18v1jvf(id target, void * sel, id arg1) { - return ((ProtocolTrampoline_10)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef void (^ListenerTrampoline_11)(void * arg0, struct _NSRange arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_11 _ObjectiveCBindings_wrapListenerBlock_1q8ia8l(ListenerTrampoline_11 block) NS_RETURNS_RETAINED { - return ^void(void * arg0, struct _NSRange arg1, BOOL * arg2) { - objc_retainBlock(block); - block(arg0, arg1, arg2); - }; -} - -typedef void (^BlockingTrampoline_11)(void * waiter, void * arg0, struct _NSRange arg1, BOOL * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_11 _ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( - BlockingTrampoline_11 block, BlockingTrampoline_11 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, struct _NSRange arg1, BOOL * arg2), { - objc_retainBlock(block); - block(nil, arg0, arg1, arg2); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, arg1, arg2); - }); -} - -typedef void (^ListenerTrampoline_12)(void * arg0, id arg1, NSStreamEvent arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_12 _ObjectiveCBindings_wrapListenerBlock_hoampi(ListenerTrampoline_12 block) NS_RETURNS_RETAINED { - return ^void(void * arg0, id arg1, NSStreamEvent arg2) { - objc_retainBlock(block); - block(arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); - }; -} - -typedef void (^BlockingTrampoline_12)(void * waiter, void * arg0, id arg1, NSStreamEvent arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_12 _ObjectiveCBindings_wrapBlockingBlock_hoampi( - BlockingTrampoline_12 block, BlockingTrampoline_12 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1, NSStreamEvent arg2), { - objc_retainBlock(block); - block(nil, arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); - }); -} - -typedef void (^ProtocolTrampoline_11)(void * sel, id arg1, NSStreamEvent arg2); -__attribute__((visibility("default"))) __attribute__((used)) -void _ObjectiveCBindings_protocolTrampoline_hoampi(id target, void * sel, id arg1, NSStreamEvent arg2) { - return ((ProtocolTrampoline_11)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -typedef void (^ListenerTrampoline_13)(void * arg0, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_13 _ObjectiveCBindings_wrapListenerBlock_zuf90e(ListenerTrampoline_13 block) NS_RETURNS_RETAINED { - return ^void(void * arg0, unsigned long arg1) { - objc_retainBlock(block); - block(arg0, arg1); - }; -} - -typedef void (^BlockingTrampoline_13)(void * waiter, void * arg0, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_13 _ObjectiveCBindings_wrapBlockingBlock_zuf90e( - BlockingTrampoline_13 block, BlockingTrampoline_13 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, unsigned long arg1), { - objc_retainBlock(block); - block(nil, arg0, arg1); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, arg1); - }); -} - -typedef void (^ListenerTrampoline_14)(unsigned short * arg0, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_14 _ObjectiveCBindings_wrapListenerBlock_vhbh5h(ListenerTrampoline_14 block) NS_RETURNS_RETAINED { - return ^void(unsigned short * arg0, unsigned long arg1) { - objc_retainBlock(block); - block(arg0, arg1); - }; -} - -typedef void (^BlockingTrampoline_14)(void * waiter, unsigned short * arg0, unsigned long arg1); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_14 _ObjectiveCBindings_wrapBlockingBlock_vhbh5h( - BlockingTrampoline_14 block, BlockingTrampoline_14 listenerBlock, - DOBJC_Context* ctx) NS_RETURNS_RETAINED { - BLOCKING_BLOCK_IMPL(ctx, ^void(unsigned short * arg0, unsigned long arg1), { - objc_retainBlock(block); - block(nil, arg0, arg1); - }, { - objc_retainBlock(listenerBlock); - listenerBlock(waiter, arg0, arg1); - }); -} - -typedef id (^ProtocolTrampoline_12)(void * sel, id arg1); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_xr62hr(id target, void * sel, id arg1) { - return ((ProtocolTrampoline_12)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef id (^ProtocolTrampoline_13)(void * sel, id arg1, id arg2, id * arg3); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_10z9f5k(id target, void * sel, id arg1, id arg2, id * arg3) { - return ((ProtocolTrampoline_13)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} - -typedef id (^ProtocolTrampoline_14)(void * sel, struct _NSZone * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_18nsem0(id target, void * sel, struct _NSZone * arg1) { - return ((ProtocolTrampoline_14)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef id (^ProtocolTrampoline_15)(void * sel, struct objc_selector * arg1); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_50as9u(id target, void * sel, struct objc_selector * arg1) { - return ((ProtocolTrampoline_15)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); -} - -typedef id (^ProtocolTrampoline_16)(void * sel, struct objc_selector * arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_1mllhpc(id target, void * sel, struct objc_selector * arg1, id arg2) { - return ((ProtocolTrampoline_16)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); -} - -typedef id (^ProtocolTrampoline_17)(void * sel, struct objc_selector * arg1, id arg2, id arg3); -__attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_c7gk2u(id target, void * sel, struct objc_selector * arg1, id arg2, id arg3) { - return ((ProtocolTrampoline_17)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); -} -#undef BLOCKING_BLOCK_IMPL - -#pragma clang diagnostic pop diff --git a/pkgs/objective_c/src/objective_c_bindings_generated.m b/pkgs/objective_c/src/objective_c_bindings_generated.m index 45a8bbd57..f6c25a1b7 100644 --- a/pkgs/objective_c/src/objective_c_bindings_generated.m +++ b/pkgs/objective_c/src/objective_c_bindings_generated.m @@ -1,6 +1,7 @@ #include #import #import +#import "foundation.h" #import "input_stream_adapter.h" #import "ns_number.h" #import "observer.h" @@ -52,19 +53,427 @@ }; -typedef void (^ListenerTrampoline)(void * arg0, id arg1, NSStreamEvent arg2); +Protocol* _ObjectiveCBindings_NSCoding(void) { return @protocol(NSCoding); } + +Protocol* _ObjectiveCBindings_NSCopying(void) { return @protocol(NSCopying); } + +Protocol* _ObjectiveCBindings_NSFastEnumeration(void) { return @protocol(NSFastEnumeration); } + +Protocol* _ObjectiveCBindings_NSItemProviderReading(void) { return @protocol(NSItemProviderReading); } + +Protocol* _ObjectiveCBindings_NSItemProviderWriting(void) { return @protocol(NSItemProviderWriting); } + +Protocol* _ObjectiveCBindings_NSMutableCopying(void) { return @protocol(NSMutableCopying); } + +Protocol* _ObjectiveCBindings_NSObject(void) { return @protocol(NSObject); } + +Protocol* _ObjectiveCBindings_NSPortDelegate(void) { return @protocol(NSPortDelegate); } + +Protocol* _ObjectiveCBindings_NSSecureCoding(void) { return @protocol(NSSecureCoding); } + +Protocol* _ObjectiveCBindings_NSStreamDelegate(void) { return @protocol(NSStreamDelegate); } + +typedef id (^ProtocolTrampoline)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_1mbt9g9(id target, void * sel) { + return ((ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef NSItemProviderRepresentationVisibility (^ProtocolTrampoline_1)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +NSItemProviderRepresentationVisibility _ObjectiveCBindings_protocolTrampoline_1ldqghh(id target, void * sel, id arg1) { + return ((ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef id (^ProtocolTrampoline_2)(void * sel, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_1q0i84(id target, void * sel, id arg1, id arg2) { + return ((ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +typedef unsigned long (^ProtocolTrampoline_3)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +unsigned long _ObjectiveCBindings_protocolTrampoline_1ckyi24(id target, void * sel) { + return ((ProtocolTrampoline_3)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef unsigned long (^ProtocolTrampoline_4)(void * sel, NSFastEnumerationState * arg1, id * arg2, unsigned long arg3); +__attribute__((visibility("default"))) __attribute__((used)) +unsigned long _ObjectiveCBindings_protocolTrampoline_17ap02x(id target, void * sel, NSFastEnumerationState * arg1, id * arg2, unsigned long arg3) { + return ((ProtocolTrampoline_4)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +typedef struct _NSZone * (^ProtocolTrampoline_5)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +struct _NSZone * _ObjectiveCBindings_protocolTrampoline_1a8cl66(id target, void * sel) { + return ((ProtocolTrampoline_5)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef BOOL (^ProtocolTrampoline_6)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _ObjectiveCBindings_protocolTrampoline_e3qsqz(id target, void * sel) { + return ((ProtocolTrampoline_6)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef BOOL (^ProtocolTrampoline_7)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _ObjectiveCBindings_protocolTrampoline_3su7tt(id target, void * sel, id arg1) { + return ((ProtocolTrampoline_7)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef BOOL (^ProtocolTrampoline_8)(void * sel, struct objc_selector * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +BOOL _ObjectiveCBindings_protocolTrampoline_w1e3k0(id target, void * sel, struct objc_selector * arg1) { + return ((ProtocolTrampoline_8)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef void (^ListenerTrampoline)(); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline _ObjectiveCBindings_wrapListenerBlock_1pl9qdv(ListenerTrampoline block) NS_RETURNS_RETAINED { + return ^void() { + objc_retainBlock(block); + block(); + }; +} + +typedef void (^BlockingTrampoline)(void * waiter); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline _ObjectiveCBindings_wrapBlockingBlock_1pl9qdv( + BlockingTrampoline block, BlockingTrampoline listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(), { + objc_retainBlock(block); + block(nil); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter); + }); +} + +typedef void (^ListenerTrampoline_1)(id arg0, id arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_1 _ObjectiveCBindings_wrapListenerBlock_1o83rbn(ListenerTrampoline_1 block) NS_RETURNS_RETAINED { + return ^void(id arg0, id arg1, BOOL * arg2) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); + }; +} + +typedef void (^BlockingTrampoline_1)(void * waiter, id arg0, id arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_1 _ObjectiveCBindings_wrapBlockingBlock_1o83rbn( + BlockingTrampoline_1 block, BlockingTrampoline_1 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1, BOOL * arg2), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1), arg2); + }); +} + +typedef void (^ListenerTrampoline_2)(id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_2 _ObjectiveCBindings_wrapListenerBlock_pfv6jd(ListenerTrampoline_2 block) NS_RETURNS_RETAINED { + return ^void(id arg0, id arg1) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); + }; +} + +typedef void (^BlockingTrampoline_2)(void * waiter, id arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_2 _ObjectiveCBindings_wrapBlockingBlock_pfv6jd( + BlockingTrampoline_2 block, BlockingTrampoline_2 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), (__bridge id)(__bridge_retained void*)(arg1)); + }); +} + +typedef void (^ListenerTrampoline_3)(id arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_3 _ObjectiveCBindings_wrapListenerBlock_1b3bb6a(ListenerTrampoline_3 block) NS_RETURNS_RETAINED { + return ^void(id arg0, id arg1, id arg2) { + objc_retainBlock(block); + block(objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); + }; +} + +typedef void (^BlockingTrampoline_3)(void * waiter, id arg0, id arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_3 _ObjectiveCBindings_wrapBlockingBlock_1b3bb6a( + BlockingTrampoline_3 block, BlockingTrampoline_3 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, id arg1, id arg2), { + objc_retainBlock(block); + block(nil, objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, objc_retainBlock(arg0), (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2)); + }); +} + +typedef void (^ListenerTrampoline_4)(struct _NSRange arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_4 _ObjectiveCBindings_wrapListenerBlock_zkjmn1(ListenerTrampoline_4 block) NS_RETURNS_RETAINED { + return ^void(struct _NSRange arg0, BOOL * arg1) { + objc_retainBlock(block); + block(arg0, arg1); + }; +} + +typedef void (^BlockingTrampoline_4)(void * waiter, struct _NSRange arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_4 _ObjectiveCBindings_wrapBlockingBlock_zkjmn1( + BlockingTrampoline_4 block, BlockingTrampoline_4 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(struct _NSRange arg0, BOOL * arg1), { + objc_retainBlock(block); + block(nil, arg0, arg1); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1); + }); +} + +typedef void (^ListenerTrampoline_5)(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_5 _ObjectiveCBindings_wrapListenerBlock_lmc3p5(ListenerTrampoline_5 block) NS_RETURNS_RETAINED { + return ^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); + }; +} + +typedef void (^BlockingTrampoline_5)(void * waiter, id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_5 _ObjectiveCBindings_wrapBlockingBlock_lmc3p5( + BlockingTrampoline_5 block, BlockingTrampoline_5 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, struct _NSRange arg1, struct _NSRange arg2, BOOL * arg3), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2, arg3); + }); +} + +typedef void (^ListenerTrampoline_6)(id arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_6 _ObjectiveCBindings_wrapListenerBlock_t8l8el(ListenerTrampoline_6 block) NS_RETURNS_RETAINED { + return ^void(id arg0, BOOL * arg1) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), arg1); + }; +} + +typedef void (^BlockingTrampoline_6)(void * waiter, id arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_6 _ObjectiveCBindings_wrapBlockingBlock_t8l8el( + BlockingTrampoline_6 block, BlockingTrampoline_6 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, BOOL * arg1), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1); + }); +} + +typedef void (^ListenerTrampoline_7)(id arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_7 _ObjectiveCBindings_wrapListenerBlock_xtuoz7(ListenerTrampoline_7 block) NS_RETURNS_RETAINED { + return ^void(id arg0) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0)); + }; +} + +typedef void (^BlockingTrampoline_7)(void * waiter, id arg0); __attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline _ObjectiveCBindings_wrapListenerBlock_hoampi(ListenerTrampoline block) NS_RETURNS_RETAINED { +ListenerTrampoline_7 _ObjectiveCBindings_wrapBlockingBlock_xtuoz7( + BlockingTrampoline_7 block, BlockingTrampoline_7 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0)); + }); +} + +typedef void (^ListenerTrampoline_8)(unsigned long arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_8 _ObjectiveCBindings_wrapListenerBlock_q5jeyk(ListenerTrampoline_8 block) NS_RETURNS_RETAINED { + return ^void(unsigned long arg0, BOOL * arg1) { + objc_retainBlock(block); + block(arg0, arg1); + }; +} + +typedef void (^BlockingTrampoline_8)(void * waiter, unsigned long arg0, BOOL * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_8 _ObjectiveCBindings_wrapBlockingBlock_q5jeyk( + BlockingTrampoline_8 block, BlockingTrampoline_8 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(unsigned long arg0, BOOL * arg1), { + objc_retainBlock(block); + block(nil, arg0, arg1); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1); + }); +} + +typedef void (^ListenerTrampoline_9)(id arg0, BOOL arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_9 _ObjectiveCBindings_wrapListenerBlock_rnu2c5(ListenerTrampoline_9 block) NS_RETURNS_RETAINED { + return ^void(id arg0, BOOL arg1, id arg2) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); + }; +} + +typedef void (^BlockingTrampoline_9)(void * waiter, id arg0, BOOL arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_9 _ObjectiveCBindings_wrapBlockingBlock_rnu2c5( + BlockingTrampoline_9 block, BlockingTrampoline_9 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, BOOL arg1, id arg2), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, (__bridge id)(__bridge_retained void*)(arg2)); + }); +} + +typedef void (^ListenerTrampoline_10)(id arg0, unsigned long arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_10 _ObjectiveCBindings_wrapListenerBlock_1p9ui4q(ListenerTrampoline_10 block) NS_RETURNS_RETAINED { + return ^void(id arg0, unsigned long arg1, BOOL * arg2) { + objc_retainBlock(block); + block((__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); + }; +} + +typedef void (^BlockingTrampoline_10)(void * waiter, id arg0, unsigned long arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_10 _ObjectiveCBindings_wrapBlockingBlock_1p9ui4q( + BlockingTrampoline_10 block, BlockingTrampoline_10 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(id arg0, unsigned long arg1, BOOL * arg2), { + objc_retainBlock(block); + block(nil, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, (__bridge id)(__bridge_retained void*)(arg0), arg1, arg2); + }); +} + +typedef void (^ListenerTrampoline_11)(void * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_11 _ObjectiveCBindings_wrapListenerBlock_ovsamd(ListenerTrampoline_11 block) NS_RETURNS_RETAINED { + return ^void(void * arg0) { + objc_retainBlock(block); + block(arg0); + }; +} + +typedef void (^BlockingTrampoline_11)(void * waiter, void * arg0); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_11 _ObjectiveCBindings_wrapBlockingBlock_ovsamd( + BlockingTrampoline_11 block, BlockingTrampoline_11 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0), { + objc_retainBlock(block); + block(nil, arg0); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0); + }); +} + +typedef void (^ProtocolTrampoline_9)(void * sel); +__attribute__((visibility("default"))) __attribute__((used)) +void _ObjectiveCBindings_protocolTrampoline_ovsamd(id target, void * sel) { + return ((ProtocolTrampoline_9)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +} + +typedef void (^ListenerTrampoline_12)(void * arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_12 _ObjectiveCBindings_wrapListenerBlock_18v1jvf(ListenerTrampoline_12 block) NS_RETURNS_RETAINED { + return ^void(void * arg0, id arg1) { + objc_retainBlock(block); + block(arg0, (__bridge id)(__bridge_retained void*)(arg1)); + }; +} + +typedef void (^BlockingTrampoline_12)(void * waiter, void * arg0, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_12 _ObjectiveCBindings_wrapBlockingBlock_18v1jvf( + BlockingTrampoline_12 block, BlockingTrampoline_12 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1), { + objc_retainBlock(block); + block(nil, arg0, (__bridge id)(__bridge_retained void*)(arg1)); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, (__bridge id)(__bridge_retained void*)(arg1)); + }); +} + +typedef void (^ProtocolTrampoline_10)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +void _ObjectiveCBindings_protocolTrampoline_18v1jvf(id target, void * sel, id arg1) { + return ((ProtocolTrampoline_10)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef void (^ListenerTrampoline_13)(void * arg0, struct _NSRange arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_13 _ObjectiveCBindings_wrapListenerBlock_1q8ia8l(ListenerTrampoline_13 block) NS_RETURNS_RETAINED { + return ^void(void * arg0, struct _NSRange arg1, BOOL * arg2) { + objc_retainBlock(block); + block(arg0, arg1, arg2); + }; +} + +typedef void (^BlockingTrampoline_13)(void * waiter, void * arg0, struct _NSRange arg1, BOOL * arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_13 _ObjectiveCBindings_wrapBlockingBlock_1q8ia8l( + BlockingTrampoline_13 block, BlockingTrampoline_13 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, struct _NSRange arg1, BOOL * arg2), { + objc_retainBlock(block); + block(nil, arg0, arg1, arg2); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1, arg2); + }); +} + +typedef void (^ListenerTrampoline_14)(void * arg0, id arg1, NSStreamEvent arg2); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_14 _ObjectiveCBindings_wrapListenerBlock_hoampi(ListenerTrampoline_14 block) NS_RETURNS_RETAINED { return ^void(void * arg0, id arg1, NSStreamEvent arg2) { objc_retainBlock(block); block(arg0, (__bridge id)(__bridge_retained void*)(arg1), arg2); }; } -typedef void (^BlockingTrampoline)(void * waiter, void * arg0, id arg1, NSStreamEvent arg2); +typedef void (^BlockingTrampoline_14)(void * waiter, void * arg0, id arg1, NSStreamEvent arg2); __attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline _ObjectiveCBindings_wrapBlockingBlock_hoampi( - BlockingTrampoline block, BlockingTrampoline listenerBlock, +ListenerTrampoline_14 _ObjectiveCBindings_wrapBlockingBlock_hoampi( + BlockingTrampoline_14 block, BlockingTrampoline_14 listenerBlock, DOBJC_Context* ctx) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1, NSStreamEvent arg2), { objc_retainBlock(block); @@ -75,25 +484,25 @@ ListenerTrampoline _ObjectiveCBindings_wrapBlockingBlock_hoampi( }); } -typedef void (^ProtocolTrampoline)(void * sel, id arg1, NSStreamEvent arg2); +typedef void (^ProtocolTrampoline_11)(void * sel, id arg1, NSStreamEvent arg2); __attribute__((visibility("default"))) __attribute__((used)) void _ObjectiveCBindings_protocolTrampoline_hoampi(id target, void * sel, id arg1, NSStreamEvent arg2) { - return ((ProtocolTrampoline)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); + return ((ProtocolTrampoline_11)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); } -typedef void (^ListenerTrampoline_1)(void * arg0, id arg1, id arg2, id arg3, void * arg4); +typedef void (^ListenerTrampoline_15)(void * arg0, id arg1, id arg2, id arg3, void * arg4); __attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_1 _ObjectiveCBindings_wrapListenerBlock_1sr3ozv(ListenerTrampoline_1 block) NS_RETURNS_RETAINED { +ListenerTrampoline_15 _ObjectiveCBindings_wrapListenerBlock_1sr3ozv(ListenerTrampoline_15 block) NS_RETURNS_RETAINED { return ^void(void * arg0, id arg1, id arg2, id arg3, void * arg4) { objc_retainBlock(block); block(arg0, (__bridge id)(__bridge_retained void*)(arg1), (__bridge id)(__bridge_retained void*)(arg2), (__bridge id)(__bridge_retained void*)(arg3), arg4); }; } -typedef void (^BlockingTrampoline_1)(void * waiter, void * arg0, id arg1, id arg2, id arg3, void * arg4); +typedef void (^BlockingTrampoline_15)(void * waiter, void * arg0, id arg1, id arg2, id arg3, void * arg4); __attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_1 _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( - BlockingTrampoline_1 block, BlockingTrampoline_1 listenerBlock, +ListenerTrampoline_15 _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( + BlockingTrampoline_15 block, BlockingTrampoline_15 listenerBlock, DOBJC_Context* ctx) NS_RETURNS_RETAINED { BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, id arg1, id arg2, id arg3, void * arg4), { objc_retainBlock(block); @@ -104,16 +513,92 @@ ListenerTrampoline_1 _ObjectiveCBindings_wrapBlockingBlock_1sr3ozv( }); } -typedef void (^ProtocolTrampoline_1)(void * sel, id arg1, id arg2, id arg3, void * arg4); +typedef void (^ProtocolTrampoline_12)(void * sel, id arg1, id arg2, id arg3, void * arg4); __attribute__((visibility("default"))) __attribute__((used)) void _ObjectiveCBindings_protocolTrampoline_1sr3ozv(id target, void * sel, id arg1, id arg2, id arg3, void * arg4) { - return ((ProtocolTrampoline_1)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); + return ((ProtocolTrampoline_12)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3, arg4); } -typedef id (^ProtocolTrampoline_2)(void * sel); +typedef void (^ListenerTrampoline_16)(void * arg0, unsigned long arg1); __attribute__((visibility("default"))) __attribute__((used)) -id _ObjectiveCBindings_protocolTrampoline_1mbt9g9(id target, void * sel) { - return ((ProtocolTrampoline_2)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel); +ListenerTrampoline_16 _ObjectiveCBindings_wrapListenerBlock_zuf90e(ListenerTrampoline_16 block) NS_RETURNS_RETAINED { + return ^void(void * arg0, unsigned long arg1) { + objc_retainBlock(block); + block(arg0, arg1); + }; +} + +typedef void (^BlockingTrampoline_16)(void * waiter, void * arg0, unsigned long arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_16 _ObjectiveCBindings_wrapBlockingBlock_zuf90e( + BlockingTrampoline_16 block, BlockingTrampoline_16 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(void * arg0, unsigned long arg1), { + objc_retainBlock(block); + block(nil, arg0, arg1); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1); + }); +} + +typedef void (^ListenerTrampoline_17)(unsigned short * arg0, unsigned long arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_17 _ObjectiveCBindings_wrapListenerBlock_vhbh5h(ListenerTrampoline_17 block) NS_RETURNS_RETAINED { + return ^void(unsigned short * arg0, unsigned long arg1) { + objc_retainBlock(block); + block(arg0, arg1); + }; +} + +typedef void (^BlockingTrampoline_17)(void * waiter, unsigned short * arg0, unsigned long arg1); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline_17 _ObjectiveCBindings_wrapBlockingBlock_vhbh5h( + BlockingTrampoline_17 block, BlockingTrampoline_17 listenerBlock, + DOBJC_Context* ctx) NS_RETURNS_RETAINED { + BLOCKING_BLOCK_IMPL(ctx, ^void(unsigned short * arg0, unsigned long arg1), { + objc_retainBlock(block); + block(nil, arg0, arg1); + }, { + objc_retainBlock(listenerBlock); + listenerBlock(waiter, arg0, arg1); + }); +} + +typedef id (^ProtocolTrampoline_13)(void * sel, id arg1); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_xr62hr(id target, void * sel, id arg1) { + return ((ProtocolTrampoline_13)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef id (^ProtocolTrampoline_14)(void * sel, id arg1, id arg2, id * arg3); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_10z9f5k(id target, void * sel, id arg1, id arg2, id * arg3) { + return ((ProtocolTrampoline_14)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); +} + +typedef id (^ProtocolTrampoline_15)(void * sel, struct _NSZone * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_18nsem0(id target, void * sel, struct _NSZone * arg1) { + return ((ProtocolTrampoline_15)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef id (^ProtocolTrampoline_16)(void * sel, struct objc_selector * arg1); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_50as9u(id target, void * sel, struct objc_selector * arg1) { + return ((ProtocolTrampoline_16)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1); +} + +typedef id (^ProtocolTrampoline_17)(void * sel, struct objc_selector * arg1, id arg2); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_1mllhpc(id target, void * sel, struct objc_selector * arg1, id arg2) { + return ((ProtocolTrampoline_17)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2); +} + +typedef id (^ProtocolTrampoline_18)(void * sel, struct objc_selector * arg1, id arg2, id arg3); +__attribute__((visibility("default"))) __attribute__((used)) +id _ObjectiveCBindings_protocolTrampoline_c7gk2u(id target, void * sel, struct objc_selector * arg1, id arg2, id arg3) { + return ((ProtocolTrampoline_18)((id (*)(id, SEL, SEL))objc_msgSend)(target, @selector(getDOBJCDartProtocolMethodForSelector:), sel))(sel, arg1, arg2, arg3); } Protocol* _ObjectiveCBindings_Observer(void) { return @protocol(Observer); } diff --git a/pkgs/objective_c/test/interface_lists_test.dart b/pkgs/objective_c/test/interface_lists_test.dart index 11f7a2dcc..6ba8cb3e0 100644 --- a/pkgs/objective_c/test/interface_lists_test.dart +++ b/pkgs/objective_c/test/interface_lists_test.dart @@ -46,7 +46,7 @@ void main() { final allClassNames = findBindings(RegExp(r'^class ([^_]\w*) ')); expectSetsEqual( 'generated classes', - objCBuiltInInterfaces, + objCBuiltInInterfaces.values.toSet(), allClassNames, ); }); diff --git a/pkgs/objective_c/tool/generate_code.dart b/pkgs/objective_c/tool/generate_code.dart index f39366db3..ce226fd2e 100644 --- a/pkgs/objective_c/tool/generate_code.dart +++ b/pkgs/objective_c/tool/generate_code.dart @@ -14,14 +14,12 @@ import 'package:ffigen/src/executables/ffigen.dart' as ffigen; import 'package:yaml/yaml.dart'; const runtimeConfig = 'ffigen_runtime.yaml'; -const foundationConfig = 'ffigen_foundation.yaml'; const cConfig = 'ffigen_c.yaml'; const objcConfig = 'ffigen_objc.yaml'; const runtimeBindings = 'lib/src/runtime_bindings_generated.dart'; -const foundationBindings = 'lib/src/foundation_bindings_generated.dart'; const cBindings = 'lib/src/c_bindings_generated.dart'; const objcBindings = 'lib/src/objective_c_bindings_generated.dart'; -const foundationExports = 'lib/src/foundation_bindings_exported.dart'; +const objcExports = 'lib/src/objective_c_bindings_exported.dart'; const extraMethodsFile = 'tool/data/extra_methods.dart.in'; const builtInTypes = '../ffigen/lib/src/code_generator/objc_built_in_types.dart'; @@ -195,7 +193,7 @@ void writeExports(List exports, String out) { // Generated by package:objective_c's tool/generate_code.dart. -export 'foundation_bindings_generated.dart' +export 'objective_c_bindings_generated.dart' show ${exports.join(',\n ')}; '''); @@ -210,27 +208,23 @@ Future run({required bool format}) async { print('Generating ObjC bindings...'); await ffigen.main([...ffigenFlags, objcConfig]); - - print('Generating foundation bindings...'); - await ffigen.main([...ffigenFlags, foundationConfig]); - mergeExtraMethods(foundationBindings, parseExtraMethods(extraMethodsFile)); + mergeExtraMethods(objcBindings, parseExtraMethods(extraMethodsFile)); print('Generating objc_built_in_types.dart...'); - final exports = writeBuiltInTypes(foundationConfig, builtInTypes); + final exports = writeBuiltInTypes(objcConfig, builtInTypes); - print('Generating foundation_bindings_exported.dart...'); - writeExports(exports, foundationExports); + print('Generating objc_bindings_exported.dart...'); + writeExports(exports, objcExports); if (format) { print('Formatting bindings...'); dartCmd([ 'format', runtimeBindings, - foundationBindings, cBindings, objcBindings, builtInTypes, - foundationExports, + objcExports, ]); } From edbee93c7d50265897b4f6ecc10dafaf248ac03a Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 2 Jul 2025 15:11:34 +1000 Subject: [PATCH 23/29] Fix issues with exported globals --- .../code_generator/objc_built_in_types.dart | 9 -- pkgs/objective_c/ffigen_objc.yaml | 8 -- pkgs/objective_c/ffigen_runtime.yaml | 6 + pkgs/objective_c/lib/objective_c.dart | 3 +- pkgs/objective_c/lib/src/globals.dart | 43 +++++++ pkgs/objective_c/lib/src/ns_input_stream.dart | 1 + .../src/objective_c_bindings_exported.dart | 6 - .../src/objective_c_bindings_generated.dart | 113 ------------------ .../lib/src/runtime_bindings_generated.dart | 18 +++ pkgs/objective_c/src/objective_c_runtime.h | 7 ++ .../test/interface_lists_test.dart | 5 - pkgs/objective_c/tool/generate_code.dart | 1 - 12 files changed, 77 insertions(+), 143 deletions(-) create mode 100644 pkgs/objective_c/lib/src/globals.dart diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart index a150eb96e..78fcc2f63 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_types.dart @@ -131,12 +131,3 @@ const objCBuiltInCategories = { 'NSNumberIsFloat', 'NSStringExtensionMethods', }; - -const objCBuiltInGlobals = { - 'NSKeyValueChangeIndexesKey', - 'NSKeyValueChangeKindKey', - 'NSKeyValueChangeNewKey', - 'NSKeyValueChangeNotificationIsPriorKey', - 'NSKeyValueChangeOldKey', - 'NSLocalizedDescriptionKey', -}; diff --git a/pkgs/objective_c/ffigen_objc.yaml b/pkgs/objective_c/ffigen_objc.yaml index 64b15a418..ed3bd43bd 100644 --- a/pkgs/objective_c/ffigen_objc.yaml +++ b/pkgs/objective_c/ffigen_objc.yaml @@ -161,14 +161,6 @@ enums: - NSURLBookmarkCreationOptions - NSURLBookmarkResolutionOptions - NSURLHandleStatus -globals: - include: - - NSKeyValueChangeIndexesKey - - NSKeyValueChangeKindKey - - NSKeyValueChangeNewKey - - NSKeyValueChangeNotificationIsPriorKey - - NSKeyValueChangeOldKey - - NSLocalizedDescriptionKey typedefs: include: - 'CFStringRef' diff --git a/pkgs/objective_c/ffigen_runtime.yaml b/pkgs/objective_c/ffigen_runtime.yaml index 41d591127..fe88ffbaf 100644 --- a/pkgs/objective_c/ffigen_runtime.yaml +++ b/pkgs/objective_c/ffigen_runtime.yaml @@ -41,6 +41,12 @@ functions: globals: include: - '_NSConcrete.*Block' + - NSKeyValueChangeIndexesKey + - NSKeyValueChangeKindKey + - NSKeyValueChangeNewKey + - NSKeyValueChangeNotificationIsPriorKey + - NSKeyValueChangeOldKey + - NSLocalizedDescriptionKey rename: '_(.*)': '$1' structs: diff --git a/pkgs/objective_c/lib/objective_c.dart b/pkgs/objective_c/lib/objective_c.dart index 9bedfc5df..573a6893a 100644 --- a/pkgs/objective_c/lib/objective_c.dart +++ b/pkgs/objective_c/lib/objective_c.dart @@ -13,7 +13,7 @@ export 'src/c_bindings_generated.dart' signalWaiter; export 'src/cf_string.dart'; export 'src/converter.dart'; -export 'src/objective_c_bindings_exported.dart'; +export 'src/globals.dart'; export 'src/internal.dart' hide blockHasRegisteredClosure, isValidBlock, isValidClass, isValidObject; export 'src/ns_data.dart'; @@ -22,6 +22,7 @@ export 'src/ns_input_stream.dart'; export 'src/ns_mutable_data.dart'; export 'src/ns_number.dart'; export 'src/ns_string.dart'; +export 'src/objective_c_bindings_exported.dart'; export 'src/objective_c_bindings_generated.dart'; export 'src/observer.dart'; export 'src/os_version.dart'; diff --git a/pkgs/objective_c/lib/src/globals.dart b/pkgs/objective_c/lib/src/globals.dart new file mode 100644 index 000000000..65fa8c71a --- /dev/null +++ b/pkgs/objective_c/lib/src/globals.dart @@ -0,0 +1,43 @@ +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +import 'objective_c_bindings_generated.dart'; +import 'runtime_bindings_generated.dart' as r; + + +NSString get NSKeyValueChangeIndexesKey => NSString.castFromPointer( + r.NSKeyValueChangeIndexesKey, + retain: true, + release: true, +); + +NSString get NSKeyValueChangeKindKey => NSString.castFromPointer( + r.NSKeyValueChangeKindKey, + retain: true, + release: true, +); + +NSString get NSKeyValueChangeNewKey => NSString.castFromPointer( + r.NSKeyValueChangeNewKey, + retain: true, + release: true, +); + +NSString get NSKeyValueChangeNotificationIsPriorKey => NSString.castFromPointer( + r.NSKeyValueChangeNotificationIsPriorKey, + retain: true, + release: true, +); + +NSString get NSKeyValueChangeOldKey => NSString.castFromPointer( + r.NSKeyValueChangeOldKey, + retain: true, + release: true, +); + +NSString get NSLocalizedDescriptionKey => NSString.castFromPointer( + r.NSLocalizedDescriptionKey, + retain: true, + release: true, +); diff --git a/pkgs/objective_c/lib/src/ns_input_stream.dart b/pkgs/objective_c/lib/src/ns_input_stream.dart index 8fd8ec742..795253999 100644 --- a/pkgs/objective_c/lib/src/ns_input_stream.dart +++ b/pkgs/objective_c/lib/src/ns_input_stream.dart @@ -2,6 +2,7 @@ import 'dart:async'; import 'dart:ffi'; import 'dart:isolate'; +import 'globals.dart'; import 'ns_data.dart'; import 'ns_string.dart'; import 'objective_c_bindings_generated.dart'; diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart b/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart index 14b335fd5..49a882fa9 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_exported.dart @@ -63,17 +63,11 @@ export 'objective_c_bindings_generated.dart' NSItemProviderRepresentationVisibility, NSItemProviderWriting, NSKeyValueChange, - NSKeyValueChangeIndexesKey, - NSKeyValueChangeKindKey, - NSKeyValueChangeNewKey, - NSKeyValueChangeNotificationIsPriorKey, - NSKeyValueChangeOldKey, NSKeyValueObservingOptions, NSKeyValueSetMutationKind, NSLinguisticTaggerOptions, NSLocale, NSLocaleLanguageDirection, - NSLocalizedDescriptionKey, NSMethodSignature, NSMutableArray, NSMutableCopying, diff --git a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart index 15eb90d5d..043286407 100644 --- a/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/objective_c_bindings_generated.dart @@ -17,124 +17,11 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint -@ffi.DefaultAsset('package:objective_c/objective_c.dylib') -library; - import 'dart:collection' as collection; import 'dart:ffi' as ffi; import '../objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; -@ffi.Native>(symbol: 'NSKeyValueChangeIndexesKey') -external ffi.Pointer _NSKeyValueChangeIndexesKey; - -NSString get NSKeyValueChangeIndexesKey => NSString.castFromPointer( - _NSKeyValueChangeIndexesKey, - retain: true, - release: true, -); - -set NSKeyValueChangeIndexesKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeIndexesKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeIndexesKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSKeyValueChangeKindKey') -external ffi.Pointer _NSKeyValueChangeKindKey; - -NSString get NSKeyValueChangeKindKey => NSString.castFromPointer( - _NSKeyValueChangeKindKey, - retain: true, - release: true, -); - -set NSKeyValueChangeKindKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeKindKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeKindKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSKeyValueChangeNewKey') -external ffi.Pointer _NSKeyValueChangeNewKey; - -NSString get NSKeyValueChangeNewKey => NSString.castFromPointer( - _NSKeyValueChangeNewKey, - retain: true, - release: true, -); - -set NSKeyValueChangeNewKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeNewKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeNewKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>( - symbol: 'NSKeyValueChangeNotificationIsPriorKey', -) -external ffi.Pointer _NSKeyValueChangeNotificationIsPriorKey; - -NSString get NSKeyValueChangeNotificationIsPriorKey => NSString.castFromPointer( - _NSKeyValueChangeNotificationIsPriorKey, - retain: true, - release: true, -); - -set NSKeyValueChangeNotificationIsPriorKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeNotificationIsPriorKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeNotificationIsPriorKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSKeyValueChangeOldKey') -external ffi.Pointer _NSKeyValueChangeOldKey; - -NSString get NSKeyValueChangeOldKey => NSString.castFromPointer( - _NSKeyValueChangeOldKey, - retain: true, - release: true, -); - -set NSKeyValueChangeOldKey(NSString value) { - NSString.castFromPointer( - _NSKeyValueChangeOldKey, - retain: false, - release: true, - ).ref.release(); - _NSKeyValueChangeOldKey = value.ref.retainAndReturnPointer(); -} - -@ffi.Native>(symbol: 'NSLocalizedDescriptionKey') -external ffi.Pointer _NSLocalizedDescriptionKey; - -NSString get NSLocalizedDescriptionKey => NSString.castFromPointer( - _NSLocalizedDescriptionKey, - retain: true, - release: true, -); - -set NSLocalizedDescriptionKey(NSString value) { - NSString.castFromPointer( - _NSLocalizedDescriptionKey, - retain: false, - release: true, - ).ref.release(); - _NSLocalizedDescriptionKey = value.ref.retainAndReturnPointer(); -} - @ffi.Native< instancetype Function( ffi.Pointer, diff --git a/pkgs/objective_c/lib/src/runtime_bindings_generated.dart b/pkgs/objective_c/lib/src/runtime_bindings_generated.dart index 2b51f8ace..aa4829d0e 100644 --- a/pkgs/objective_c/lib/src/runtime_bindings_generated.dart +++ b/pkgs/objective_c/lib/src/runtime_bindings_generated.dart @@ -39,6 +39,24 @@ external ffi.Array> NSConcreteMallocBlock; @ffi.Native>>(symbol: '_NSConcreteStackBlock') external ffi.Array> NSConcreteStackBlock; +@ffi.Native>() +external ffi.Pointer NSKeyValueChangeIndexesKey; + +@ffi.Native>() +external ffi.Pointer NSKeyValueChangeKindKey; + +@ffi.Native>() +external ffi.Pointer NSKeyValueChangeNewKey; + +@ffi.Native>() +external ffi.Pointer NSKeyValueChangeNotificationIsPriorKey; + +@ffi.Native>() +external ffi.Pointer NSKeyValueChangeOldKey; + +@ffi.Native>() +external ffi.Pointer NSLocalizedDescriptionKey; + @ffi.Native Function(ffi.Pointer)>( symbol: 'objc_retainBlock', isLeaf: true, diff --git a/pkgs/objective_c/src/objective_c_runtime.h b/pkgs/objective_c/src/objective_c_runtime.h index f466596ac..bc9179528 100644 --- a/pkgs/objective_c/src/objective_c_runtime.h +++ b/pkgs/objective_c/src/objective_c_runtime.h @@ -50,4 +50,11 @@ ObjCMethodDesc protocol_getMethodDescription( bool isInstanceMethod); const char *protocol_getName(ObjCProtocol *proto); +extern const ObjCObject *NSKeyValueChangeIndexesKey; +extern const ObjCObject *NSKeyValueChangeKindKey; +extern const ObjCObject *NSKeyValueChangeNewKey; +extern const ObjCObject *NSKeyValueChangeNotificationIsPriorKey; +extern const ObjCObject *NSKeyValueChangeOldKey; +extern const ObjCObject *NSLocalizedDescriptionKey; + #endif // OBJECTIVE_C_SRC_OBJECTIVE_C_RUNTIME_H_ diff --git a/pkgs/objective_c/test/interface_lists_test.dart b/pkgs/objective_c/test/interface_lists_test.dart index 6ba8cb3e0..493d6be57 100644 --- a/pkgs/objective_c/test/interface_lists_test.dart +++ b/pkgs/objective_c/test/interface_lists_test.dart @@ -87,11 +87,6 @@ void main() { ); }); - test('All code genned globals are included in the list', () { - final allGlobals = findBindings(RegExp(r'^\w+ get (\w+) =>')); - expectSetsEqual('generated globals', objCBuiltInGlobals, allGlobals); - }); - test('No stubs', () { final stubRegExp = RegExp(r'\Wstub\W'); expect(bindings.where(stubRegExp.hasMatch).toList(), []); diff --git a/pkgs/objective_c/tool/generate_code.dart b/pkgs/objective_c/tool/generate_code.dart index ce226fd2e..47f61ba03 100644 --- a/pkgs/objective_c/tool/generate_code.dart +++ b/pkgs/objective_c/tool/generate_code.dart @@ -178,7 +178,6 @@ ${elements.join('\n')} writeDecls('objCBuiltInEnums', 'enums'); writeDecls('objCBuiltInProtocols', 'objc-protocols'); writeDecls('objCBuiltInCategories', 'objc-categories'); - writeDecls('objCBuiltInGlobals', 'globals'); File(out).writeAsStringSync(s.toString()); From e9f65d372967d57918ce6a2069d9f194ece766dc Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 24 Jul 2025 11:52:02 +1000 Subject: [PATCH 24/29] fix block test --- pkgs/ffigen/pubspec.yaml | 2 +- pkgs/ffigen/test/native_objc_test/block_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/ffigen/pubspec.yaml b/pkgs/ffigen/pubspec.yaml index 356e0647a..d0cac1fdf 100644 --- a/pkgs/ffigen/pubspec.yaml +++ b/pkgs/ffigen/pubspec.yaml @@ -31,6 +31,7 @@ dependencies: package_config: ^2.1.0 path: ^1.8.0 pub_semver: ^2.1.4 + objective_c: ^8.1.0 quiver: ^3.0.0 yaml: ^3.0.0 yaml_edit: ^2.0.3 @@ -40,7 +41,6 @@ dev_dependencies: dart_flutter_team_lints: ^2.0.0 json_schema: ^5.1.1 leak_tracker: ^10.0.7 - objective_c: ^8.1.0 test: ^1.26.2 dependency_overrides: diff --git a/pkgs/ffigen/test/native_objc_test/block_test.dart b/pkgs/ffigen/test/native_objc_test/block_test.dart index 0b4256b64..bbc631981 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test.dart @@ -20,7 +20,7 @@ import 'package:path/path.dart' as path; import 'package:test/test.dart'; import '../test_utils.dart'; -import 'block_bindings.dart'; +import 'block_bindings.dart' hide ObjCBlock_ffiVoid, ObjCBlock_ffiVoid_CallExtension; import 'util.dart'; typedef IntBlock = ObjCBlock_Int32_Int32; From 637d3c4692717033fd64f9f4358091afd9dc6c8e Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 24 Jul 2025 12:43:13 +1000 Subject: [PATCH 25/29] migrate test --- .../test/native_objc_test/block_bindings.dart | 5290 +++++++++++------ .../test/native_objc_test/block_bindings.m | 7 + .../test/native_objc_test/block_test.dart | 12 +- pkgs/objective_c/lib/src/internal.dart | 2 +- 4 files changed, 3342 insertions(+), 1969 deletions(-) diff --git a/pkgs/ffigen/test/native_objc_test/block_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_bindings.dart index 22fe4b896..05e67784c 100644 --- a/pkgs/ffigen/test/native_objc_test/block_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_bindings.dart @@ -12,29 +12,25 @@ import 'package:ffi/ffi.dart' as pkg_ffi; class BlockTestObjCLibrary { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) - _lookup; + _lookup; /// The symbols are looked up in [dynamicLibrary]. BlockTestObjCLibrary(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; + : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. BlockTestObjCLibrary.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) - : _lookup = lookup; + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; - void objc_autoreleasePoolPop( - ffi.Pointer pool, - ) { - return _objc_autoreleasePoolPop( - pool, - ); + void objc_autoreleasePoolPop(ffi.Pointer pool) { + return _objc_autoreleasePoolPop(pool); } late final _objc_autoreleasePoolPopPtr = _lookup)>>( - 'objc_autoreleasePoolPop'); + 'objc_autoreleasePoolPop', + ); late final _objc_autoreleasePoolPop = _objc_autoreleasePoolPopPtr .asFunction)>(); @@ -44,167 +40,195 @@ class BlockTestObjCLibrary { late final _objc_autoreleasePoolPushPtr = _lookup Function()>>( - 'objc_autoreleasePoolPush'); + 'objc_autoreleasePoolPush', + ); late final _objc_autoreleasePoolPush = _objc_autoreleasePoolPushPtr .asFunction Function()>(); } @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_BlockTestObjCLibrary_wrapListenerBlock_1pl9qdv( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( +_BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>() + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() external ffi.Pointer - _BlockTestObjCLibrary_protocolTrampoline_1mbt9g9( +_BlockTestObjCLibrary_protocolTrampoline_1mbt9g9( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe( +_BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( +_BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_f167m6( +_BlockTestObjCLibrary_wrapListenerBlock_f167m6( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( +_BlockTestObjCLibrary_wrapBlockingBlock_f167m6( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7( +_BlockTestObjCLibrary_wrapListenerBlock_xtuoz7( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( +_BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_ru30ue( +_BlockTestObjCLibrary_wrapListenerBlock_ru30ue( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( +_BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_li50va( +_BlockTestObjCLibrary_wrapListenerBlock_li50va( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_li50va( +_BlockTestObjCLibrary_wrapBlockingBlock_li50va( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_yhkuco( +_BlockTestObjCLibrary_wrapListenerBlock_yhkuco( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( +_BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_1bqef4y( +_BlockTestObjCLibrary_wrapListenerBlock_1bqef4y( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( +_BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, @@ -214,60 +238,55 @@ late final _class_NSThread = objc.getClass("NSThread"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_currentThread = objc.registerName("currentThread"); final _objc_msgSend_151sglz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); void _ObjCBlock_ffiVoid_fnPtrTrampoline( ffi.Pointer block, -) => - block.ref.target - .cast>() - .asFunction()(); -ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = ffi.Pointer - .fromFunction)>( - _ObjCBlock_ffiVoid_fnPtrTrampoline) - .cast(); +) => block.ref.target + .cast>() + .asFunction()(); +ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_ObjCBlock_ffiVoid_fnPtrTrampoline) + .cast(); void _ObjCBlock_ffiVoid_closureTrampoline( ffi.Pointer block, -) => - (objc.getBlockClosure(block) as void Function())(); -ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = ffi.Pointer - .fromFunction)>( - _ObjCBlock_ffiVoid_closureTrampoline) - .cast(); - -void _ObjCBlock_ffiVoid_sharedTrampoline( - ffi.Pointer block, -) { - objc.blockRetain(block.cast()); // Move to block object? - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block)>>() - .asFunction)>()( - block, - ); -} -ffi.NativeCallable)> - _ObjCBlock_ffiVoid_sharedCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer)>.isolateGroupShared( - _ObjCBlock_ffiVoid_sharedTrampoline) - ..keepIsolateAlive = false; - +) => (objc.getBlockClosure(block) as void Function())(); +ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_ObjCBlock_ffiVoid_closureTrampoline) + .cast(); void _ObjCBlock_ffiVoid_listenerTrampoline( ffi.Pointer block, ) { @@ -276,12 +295,15 @@ void _ObjCBlock_ffiVoid_listenerTrampoline( } ffi.NativeCallable)> - _ObjCBlock_ffiVoid_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_listenerTrampoline) +_ObjCBlock_ffiVoid_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer) + >.listener(_ObjCBlock_ffiVoid_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_blockingTrampoline( - ffi.Pointer block, ffi.Pointer waiter) { + ffi.Pointer block, + ffi.Pointer waiter, +) { try { (objc.getBlockClosure(block) as void Function())(); } catch (e) { @@ -292,31 +314,40 @@ void _ObjCBlock_ffiVoid_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -324,11 +355,12 @@ abstract final class ObjCBlock_ffiVoid { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -338,13 +370,18 @@ abstract final class ObjCBlock_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction(void Function() fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_closureCallable, () => fn(), keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock fromFunction( + void Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_closureCallable, + () => fn(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -355,15 +392,22 @@ abstract final class ObjCBlock_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener(void Function() fn, - {bool keepIsolateAlive = true}) { - final wrapper = objc.newClosureBlock( - _ObjCBlock_ffiVoid_sharedCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast()); - return objc.ObjCBlock(wrapper, - retain: true, release: true); + static objc.ObjCBlock listener( + void Function() fn, { + bool keepIsolateAlive = true, + }) { + final raw = objc.newClosureBlock( + _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); + final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_1pl9qdv(raw); + objc.objectRelease(raw.cast()); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -376,209 +420,330 @@ abstract final class ObjCBlock_ffiVoid { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking(void Function() fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock blocking( + void Function() fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive); + _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive); + _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_CallExtension on objc.ObjCBlock { - void call() => ref.pointer.ref.invoke + void call() => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block)>>() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block) + > + >() .asFunction)>()( ref.pointer, ); } -late final _sel_detachNewThreadWithBlock_ = - objc.registerName("detachNewThreadWithBlock:"); +late final _sel_detachNewThreadWithBlock_ = objc.registerName( + "detachNewThreadWithBlock:", +); final _objc_msgSend_f167m6 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); -late final _sel_detachNewThreadSelector_toTarget_withObject_ = - objc.registerName("detachNewThreadSelector:toTarget:withObject:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_detachNewThreadSelector_toTarget_withObject_ = objc + .registerName("detachNewThreadSelector:toTarget:withObject:"); final _objc_msgSend_lzbvjm = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_isMultiThreaded = objc.registerName("isMultiThreaded"); final _objc_msgSend_91o635 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_threadDictionary = objc.registerName("threadDictionary"); late final _sel_sleepUntilDate_ = objc.registerName("sleepUntilDate:"); final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); -late final _sel_sleepForTimeInterval_ = - objc.registerName("sleepForTimeInterval:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_sleepForTimeInterval_ = objc.registerName( + "sleepForTimeInterval:", +); final _objc_msgSend_hwm8nu = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, double)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); late final _sel_exit = objc.registerName("exit"); final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_threadPriority = objc.registerName("threadPriority"); final _objc_msgSend_1ukqyt8 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_setThreadPriority_ = objc.registerName("setThreadPriority:"); final _objc_msgSend_18chyc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, double)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); late final _sel_qualityOfService = objc.registerName("qualityOfService"); final _objc_msgSend_oi8iq9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_setQualityOfService_ = - objc.registerName("setQualityOfService:"); + int Function(ffi.Pointer, ffi.Pointer) + >(); +late final _sel_setQualityOfService_ = objc.registerName( + "setQualityOfService:", +); final _objc_msgSend_n2da1l = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_callStackReturnAddresses = - objc.registerName("callStackReturnAddresses"); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_callStackReturnAddresses = objc.registerName( + "callStackReturnAddresses", +); late final _sel_callStackSymbols = objc.registerName("callStackSymbols"); late final _sel_name = objc.registerName("name"); late final _sel_setName_ = objc.registerName("setName:"); late final _sel_stackSize = objc.registerName("stackSize"); final _objc_msgSend_xw2lbc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_setStackSize_ = objc.registerName("setStackSize:"); final _objc_msgSend_1i9r4xy = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_isMainThread = objc.registerName("isMainThread"); late final _sel_mainThread = objc.registerName("mainThread"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObjectBase; late final _sel_init = objc.registerName("init"); -late final _sel_initWithTarget_selector_object_ = - objc.registerName("initWithTarget:selector:object:"); +late final _sel_initWithTarget_selector_object_ = objc.registerName( + "initWithTarget:selector:object:", +); final _objc_msgSend_1eldwyi = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_initWithBlock_ = objc.registerName("initWithBlock:"); final _objc_msgSend_nnxkei = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_isExecuting = objc.registerName("isExecuting"); late final _sel_isFinished = objc.registerName("isFinished"); late final _sel_isCancelled = objc.registerName("isCancelled"); @@ -589,33 +754,49 @@ late final _sel_new = objc.registerName("new"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_alloc = objc.registerName("alloc"); /// NSThread class NSThread extends objc.NSObject { - NSThread._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSThread._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSThread] that points to the same underlying object as [other]. NSThread.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSThread] that wraps the given raw object pointer. - NSThread.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSThread.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSThread]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSThread); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSThread, + ); } /// currentThread @@ -626,23 +807,33 @@ class NSThread extends objc.NSObject { /// detachNewThreadWithBlock: static void detachNewThreadWithBlock( - objc.ObjCBlock block) { - objc.checkOsVersionInternal('NSThread.detachNewThreadWithBlock:', - iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0))); + objc.ObjCBlock block, + ) { + objc.checkOsVersionInternal( + 'NSThread.detachNewThreadWithBlock:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); _objc_msgSend_f167m6( - _class_NSThread, _sel_detachNewThreadWithBlock_, block.ref.pointer); + _class_NSThread, + _sel_detachNewThreadWithBlock_, + block.ref.pointer, + ); } /// detachNewThreadSelector:toTarget:withObject: - static void detachNewThreadSelector(ffi.Pointer selector, - {required objc.ObjCObjectBase toTarget, - objc.ObjCObjectBase? withObject}) { + static void detachNewThreadSelector( + ffi.Pointer selector, { + required objc.ObjCObjectBase toTarget, + objc.ObjCObjectBase? withObject, + }) { _objc_msgSend_lzbvjm( - _class_NSThread, - _sel_detachNewThreadSelector_toTarget_withObject_, - selector, - toTarget.ref.pointer, - withObject?.ref.pointer ?? ffi.nullptr); + _class_NSThread, + _sel_detachNewThreadSelector_toTarget_withObject_, + selector, + toTarget.ref.pointer, + withObject?.ref.pointer ?? ffi.nullptr, + ); } /// isMultiThreaded @@ -653,14 +844,20 @@ class NSThread extends objc.NSObject { /// threadDictionary objc.NSMutableDictionary get threadDictionary { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_threadDictionary); - return objc.NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + return objc.NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// sleepUntilDate: static void sleepUntilDate(objc.NSDate date) { _objc_msgSend_xtuoz7( - _class_NSThread, _sel_sleepUntilDate_, date.ref.pointer); + _class_NSThread, + _sel_sleepUntilDate_, + date.ref.pointer, + ); } /// sleepForTimeInterval: @@ -687,8 +884,11 @@ class NSThread extends objc.NSObject { /// threadPriority double get threadPriority$1 { - objc.checkOsVersionInternal('NSThread.threadPriority', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSThread.threadPriority', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_threadPriority) : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_threadPriority); @@ -696,48 +896,71 @@ class NSThread extends objc.NSObject { /// setThreadPriority: set threadPriority$1(double value) { - objc.checkOsVersionInternal('NSThread.setThreadPriority:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSThread.setThreadPriority:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); _objc_msgSend_hwm8nu(this.ref.pointer, _sel_setThreadPriority_, value); } /// qualityOfService objc.NSQualityOfService get qualityOfService { - objc.checkOsVersionInternal('NSThread.qualityOfService', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSThread.qualityOfService', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); final _ret = _objc_msgSend_oi8iq9(this.ref.pointer, _sel_qualityOfService); return objc.NSQualityOfService.fromValue(_ret); } /// setQualityOfService: set qualityOfService(objc.NSQualityOfService value) { - objc.checkOsVersionInternal('NSThread.setQualityOfService:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSThread.setQualityOfService:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); _objc_msgSend_n2da1l( - this.ref.pointer, _sel_setQualityOfService_, value.value); + this.ref.pointer, + _sel_setQualityOfService_, + value.value, + ); } /// callStackReturnAddresses static objc.NSArray getCallStackReturnAddresses() { - objc.checkOsVersionInternal('NSThread.callStackReturnAddresses', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); - final _ret = - _objc_msgSend_151sglz(_class_NSThread, _sel_callStackReturnAddresses); + objc.checkOsVersionInternal( + 'NSThread.callStackReturnAddresses', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSThread, + _sel_callStackReturnAddresses, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// callStackSymbols static objc.NSArray getCallStackSymbols() { - objc.checkOsVersionInternal('NSThread.callStackSymbols', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSThread.callStackSymbols', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_callStackSymbols); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// name objc.NSString? get name { - objc.checkOsVersionInternal('NSThread.name', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.name', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_name); return _ret.address == 0 ? null @@ -746,120 +969,176 @@ class NSThread extends objc.NSObject { /// setName: set name(objc.NSString? value) { - objc.checkOsVersionInternal('NSThread.setName:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.setName:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setName_, value?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_setName_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// stackSize int get stackSize { - objc.checkOsVersionInternal('NSThread.stackSize', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.stackSize', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_stackSize); } /// setStackSize: set stackSize(int value) { - objc.checkOsVersionInternal('NSThread.setStackSize:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.setStackSize:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_setStackSize_, value); } /// isMainThread bool get isMainThread { - objc.checkOsVersionInternal('NSThread.isMainThread', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.isMainThread', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isMainThread); } /// isMainThread static bool getIsMainThread$1() { - objc.checkOsVersionInternal('NSThread.isMainThread', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.isMainThread', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(_class_NSThread, _sel_isMainThread); } /// mainThread static NSThread getMainThread() { - objc.checkOsVersionInternal('NSThread.mainThread', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.mainThread', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_mainThread); return NSThread.castFromPointer(_ret, retain: true, release: true); } /// init NSThread init() { - objc.checkOsVersionInternal('NSThread.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSThread.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// initWithTarget:selector:object: - NSThread initWithTarget(objc.ObjCObjectBase target, - {required ffi.Pointer selector, - objc.ObjCObjectBase? object}) { - objc.checkOsVersionInternal('NSThread.initWithTarget:selector:object:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + NSThread initWithTarget( + objc.ObjCObjectBase target, { + required ffi.Pointer selector, + objc.ObjCObjectBase? object, + }) { + objc.checkOsVersionInternal( + 'NSThread.initWithTarget:selector:object:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_1eldwyi( - this.ref.retainAndReturnPointer(), - _sel_initWithTarget_selector_object_, - target.ref.pointer, - selector, - object?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithTarget_selector_object_, + target.ref.pointer, + selector, + object?.ref.pointer ?? ffi.nullptr, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// initWithBlock: NSThread initWithBlock(objc.ObjCBlock block) { - objc.checkOsVersionInternal('NSThread.initWithBlock:', - iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0))); - final _ret = _objc_msgSend_nnxkei(this.ref.retainAndReturnPointer(), - _sel_initWithBlock_, block.ref.pointer); + objc.checkOsVersionInternal( + 'NSThread.initWithBlock:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.retainAndReturnPointer(), + _sel_initWithBlock_, + block.ref.pointer, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// isExecuting bool get executing { - objc.checkOsVersionInternal('NSThread.isExecuting', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.isExecuting', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isExecuting); } /// isFinished bool get finished { - objc.checkOsVersionInternal('NSThread.isFinished', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.isFinished', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isFinished); } /// isCancelled bool get cancelled { - objc.checkOsVersionInternal('NSThread.isCancelled', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.isCancelled', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isCancelled); } /// cancel void cancel() { - objc.checkOsVersionInternal('NSThread.cancel', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.cancel', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_cancel); } /// start void start() { - objc.checkOsVersionInternal('NSThread.start', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.start', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_start); } /// main void main() { - objc.checkOsVersionInternal('NSThread.main', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.main', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_main); } @@ -871,8 +1150,11 @@ class NSThread extends objc.NSObject { /// allocWithZone: static NSThread allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSThread, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSThread, + _sel_allocWithZone_, + zone, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } @@ -912,82 +1194,119 @@ late final _class_DummyObject = objc.getClass("DummyObject"); late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); final _objc_msgSend_129vhbw = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_initWithCounter_ = objc.registerName("initWithCounter:"); late final _sel_setCounter_ = objc.registerName("setCounter:"); final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_dealloc = objc.registerName("dealloc"); late final _sel_self = objc.registerName("self"); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) .cast(); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); +_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. abstract final class ObjCBlock_objcObjCObject_ffiVoid { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock Function(ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); /// 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. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -997,37 +1316,51 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock Function(ffi.Pointer)> - fromFunction(objc.ObjCObjectBase Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, - (ffi.Pointer arg0) => - fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension on objc - .ObjCBlock Function(ffi.Pointer)> { +extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0), - retain: true, - release: true); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); } late final _sel_retain = objc.registerName("retain"); @@ -1035,36 +1368,49 @@ late final _sel_autorelease = objc.registerName("autorelease"); /// DummyObject class DummyObject extends objc.NSObject { - DummyObject._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + DummyObject._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [DummyObject] that points to the same underlying object as [other]. DummyObject.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [DummyObject] that wraps the given raw object pointer. - DummyObject.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + DummyObject.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [DummyObject]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_DummyObject); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DummyObject, + ); } /// newWithCounter: static DummyObject newWithCounter(ffi.Pointer _counter) { final _ret = _objc_msgSend_129vhbw( - _class_DummyObject, _sel_newWithCounter_, _counter); + _class_DummyObject, + _sel_newWithCounter_, + _counter, + ); return DummyObject.castFromPointer(_ret, retain: false, release: true); } /// initWithCounter: DummyObject initWithCounter(ffi.Pointer _counter) { final _ret = _objc_msgSend_129vhbw( - this.ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter); + this.ref.retainAndReturnPointer(), + _sel_initWithCounter_, + _counter, + ); return DummyObject.castFromPointer(_ret, retain: false, release: true); } @@ -1080,10 +1426,15 @@ class DummyObject extends objc.NSObject { /// init DummyObject init() { - objc.checkOsVersionInternal('DummyObject.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'DummyObject.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return DummyObject.castFromPointer(_ret, retain: false, release: true); } @@ -1095,8 +1446,11 @@ class DummyObject extends objc.NSObject { /// allocWithZone: static DummyObject allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_DummyObject, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_DummyObject, + _sel_allocWithZone_, + zone, + ); return DummyObject.castFromPointer(_ret, retain: false, release: true); } @@ -1129,33 +1483,38 @@ class DummyObject extends objc.NSObject { } int _ObjCBlock_Int32_Int32_fnPtrTrampoline( - ffi.Pointer block, int arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + int arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_Int32_Int32_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Int32)>( - _ObjCBlock_Int32_Int32_fnPtrTrampoline, 0) + ffi.Int32 Function(ffi.Pointer, ffi.Int32) + >(_ObjCBlock_Int32_Int32_fnPtrTrampoline, 0) .cast(); int _ObjCBlock_Int32_Int32_closureTrampoline( - ffi.Pointer block, int arg0) => - (objc.getBlockClosure(block) as int Function(int))(arg0); + ffi.Pointer block, + int arg0, +) => (objc.getBlockClosure(block) as int Function(int))(arg0); ffi.Pointer _ObjCBlock_Int32_Int32_closureCallable = ffi.Pointer.fromFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Int32)>( - _ObjCBlock_Int32_Int32_closureTrampoline, 0) + ffi.Int32 Function(ffi.Pointer, ffi.Int32) + >(_ObjCBlock_Int32_Int32_closureTrampoline, 0) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1163,13 +1522,12 @@ abstract final class ObjCBlock_Int32_Int32 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_Int32_Int32_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_Int32_Int32_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1180,57 +1538,73 @@ abstract final class ObjCBlock_Int32_Int32 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - int Function(int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_Int32_Int32_closureCallable, - (int arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + int Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_Int32_Int32_closureCallable, + (int arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_Int32_Int32_CallExtension on objc.ObjCBlock { - int call(int arg0) => ref.pointer.ref.invoke + int call(int arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer block, ffi.Int32 arg0)>>() + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer block, + ffi.Int32 arg0, + ) + > + >() .asFunction, int)>()( - ref.pointer, arg0); + ref.pointer, + arg0, + ); } typedef IntBlock = ffi.Pointer; typedef DartIntBlock = objc.ObjCBlock; double _ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline( - ffi.Pointer block, double arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + double arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Float Function(ffi.Pointer, ffi.Float)>( - _ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline, 0.0) + ffi.Float Function(ffi.Pointer, ffi.Float) + >(_ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline, 0.0) .cast(); double _ObjCBlock_ffiFloat_ffiFloat_closureTrampoline( - ffi.Pointer block, double arg0) => - (objc.getBlockClosure(block) as double Function(double))(arg0); + ffi.Pointer block, + double arg0, +) => (objc.getBlockClosure(block) as double Function(double))(arg0); ffi.Pointer _ObjCBlock_ffiFloat_ffiFloat_closureCallable = ffi.Pointer.fromFunction< - ffi.Float Function(ffi.Pointer, ffi.Float)>( - _ObjCBlock_ffiFloat_ffiFloat_closureTrampoline, 0.0) + ffi.Float Function(ffi.Pointer, ffi.Float) + >(_ObjCBlock_ffiFloat_ffiFloat_closureTrampoline, 0.0) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiFloat_ffiFloat { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1238,13 +1612,15 @@ abstract final class ObjCBlock_ffiFloat_ffiFloat { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1255,13 +1631,17 @@ abstract final class ObjCBlock_ffiFloat_ffiFloat { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - double Function(double) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_ffiFloat_ffiFloat_closureCallable, - (double arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + double Function(double) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiFloat_ffiFloat_closureCallable, + (double arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. @@ -1269,46 +1649,53 @@ extension ObjCBlock_ffiFloat_ffiFloat_CallExtension on objc.ObjCBlock { double call(double arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer block, ffi.Float arg0)>>() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer block, + ffi.Float arg0, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, double)>()(ref.pointer, arg0); + double Function(ffi.Pointer, double) + >()(ref.pointer, arg0); } typedef FloatBlock = ffi.Pointer; typedef DartFloatBlock = objc.ObjCBlock; double _ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline( - ffi.Pointer block, double arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + double arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Double Function( - ffi.Pointer, ffi.Double)>( - _ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline, 0.0) + ffi.Double Function(ffi.Pointer, ffi.Double) + >(_ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline, 0.0) .cast(); double _ObjCBlock_ffiDouble_ffiDouble_closureTrampoline( - ffi.Pointer block, double arg0) => - (objc.getBlockClosure(block) as double Function(double))(arg0); + ffi.Pointer block, + double arg0, +) => (objc.getBlockClosure(block) as double Function(double))(arg0); ffi.Pointer _ObjCBlock_ffiDouble_ffiDouble_closureCallable = ffi.Pointer.fromFunction< - ffi.Double Function( - ffi.Pointer, ffi.Double)>( - _ObjCBlock_ffiDouble_ffiDouble_closureTrampoline, 0.0) + ffi.Double Function(ffi.Pointer, ffi.Double) + >(_ObjCBlock_ffiDouble_ffiDouble_closureTrampoline, 0.0) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiDouble_ffiDouble { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1316,13 +1703,15 @@ abstract final class ObjCBlock_ffiDouble_ffiDouble { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1333,13 +1722,17 @@ abstract final class ObjCBlock_ffiDouble_ffiDouble { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - double Function(double) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_ffiDouble_ffiDouble_closureCallable, - (double arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + double Function(double) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiDouble_ffiDouble_closureCallable, + (double arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. @@ -1347,42 +1740,53 @@ extension ObjCBlock_ffiDouble_ffiDouble_CallExtension on objc.ObjCBlock { double call(double arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer block, ffi.Double arg0)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer block, + ffi.Double arg0, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, double)>()(ref.pointer, arg0); + double Function(ffi.Pointer, double) + >()(ref.pointer, arg0); } typedef DoubleBlock = ffi.Pointer; typedef DartDoubleBlock = objc.ObjCBlock; Vec4 _ObjCBlock_Vec4_Vec4_fnPtrTrampoline( - ffi.Pointer block, Vec4 arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); -ffi.Pointer _ObjCBlock_Vec4_Vec4_fnPtrCallable = ffi.Pointer - .fromFunction, Vec4)>( - _ObjCBlock_Vec4_Vec4_fnPtrTrampoline) - .cast(); + ffi.Pointer block, + Vec4 arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); +ffi.Pointer _ObjCBlock_Vec4_Vec4_fnPtrCallable = + ffi.Pointer.fromFunction< + Vec4 Function(ffi.Pointer, Vec4) + >(_ObjCBlock_Vec4_Vec4_fnPtrTrampoline) + .cast(); Vec4 _ObjCBlock_Vec4_Vec4_closureTrampoline( - ffi.Pointer block, Vec4 arg0) => - (objc.getBlockClosure(block) as Vec4 Function(Vec4))(arg0); -ffi.Pointer _ObjCBlock_Vec4_Vec4_closureCallable = ffi.Pointer - .fromFunction, Vec4)>( - _ObjCBlock_Vec4_Vec4_closureTrampoline) - .cast(); + ffi.Pointer block, + Vec4 arg0, +) => (objc.getBlockClosure(block) as Vec4 Function(Vec4))(arg0); +ffi.Pointer _ObjCBlock_Vec4_Vec4_closureCallable = + ffi.Pointer.fromFunction< + Vec4 Function(ffi.Pointer, Vec4) + >(_ObjCBlock_Vec4_Vec4_closureTrampoline) + .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Vec4_Vec4 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1390,11 +1794,12 @@ abstract final class ObjCBlock_Vec4_Vec4 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_Vec4_Vec4_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_Vec4_Vec4_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1405,25 +1810,33 @@ abstract final class ObjCBlock_Vec4_Vec4 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - Vec4 Function(Vec4) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_Vec4_Vec4_closureCallable, - (Vec4 arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + Vec4 Function(Vec4) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_Vec4_Vec4_closureCallable, + (Vec4 arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_Vec4_Vec4_CallExtension on objc.ObjCBlock { - Vec4 call(Vec4 arg0) => ref.pointer.ref.invoke + Vec4 call(Vec4 arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - Vec4 Function( - ffi.Pointer block, Vec4 arg0)>>() + ffi.NativeFunction< + Vec4 Function(ffi.Pointer block, Vec4 arg0) + > + >() .asFunction, Vec4)>()( - ref.pointer, arg0); + ref.pointer, + arg0, + ); } typedef Vec4Block = ffi.Pointer; @@ -1431,53 +1844,66 @@ typedef DartVec4Block = objc.ObjCBlock; typedef VoidBlock = ffi.Pointer; typedef DartVoidBlock = objc.ObjCBlock; void _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -1486,53 +1912,71 @@ void _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// 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. - static objc.ObjCBlock)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1543,15 +1987,18 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - fromFunction(void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive), - retain: false, - release: true); + fromFunction( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -1563,19 +2010,23 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - listener(void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + listener( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -1589,27 +2040,35 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock)> - blocking(void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } } @@ -1618,58 +2077,74 @@ extension ObjCBlock_ffiVoid_objcObjCSelector_CallExtension on objc.ObjCBlock)> { void call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); } typedef SelectorBlock = ffi.Pointer; -typedef DartSelectorBlock - = objc.ObjCBlock)>; +typedef DartSelectorBlock = + objc.ObjCBlock)>; ffi.Pointer _ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_DummyObject_DummyObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline) .cast(); ffi.Pointer - _ObjCBlock_DummyObject_DummyObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); +_ObjCBlock_DummyObject_DummyObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); ffi.Pointer _ObjCBlock_DummyObject_DummyObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_DummyObject_DummyObject_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_DummyObject_DummyObject_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_DummyObject_DummyObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1677,16 +2152,20 @@ abstract final class ObjCBlock_DummyObject_DummyObject { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_DummyObject_DummyObject_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_DummyObject_DummyObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1697,84 +2176,98 @@ abstract final class ObjCBlock_DummyObject_DummyObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - DummyObject Function(DummyObject) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_DummyObject_DummyObject_closureCallable, - (ffi.Pointer arg0) => fn( - DummyObject.castFromPointer(arg0, - retain: true, release: true)) - .ref - .retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + DummyObject Function(DummyObject) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_DummyObject_DummyObject_closureCallable, + (ffi.Pointer arg0) => fn( + DummyObject.castFromPointer(arg0, retain: true, release: true), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_DummyObject_DummyObject_CallExtension on objc.ObjCBlock { DummyObject call(DummyObject arg0) => DummyObject.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0.ref.pointer), - retain: true, - release: true); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); } typedef ObjectBlock = ffi.Pointer; typedef DartObjectBlock = objc.ObjCBlock; ffi.Pointer - _ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); +_ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline) .cast(); ffi.Pointer - _ObjCBlock_DummyObject_DummyObject$1_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); +_ObjCBlock_DummyObject_DummyObject$1_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); ffi.Pointer _ObjCBlock_DummyObject_DummyObject$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_DummyObject_DummyObject$1_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_DummyObject_DummyObject$1_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_DummyObject_DummyObject$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1782,18 +2275,21 @@ abstract final class ObjCBlock_DummyObject_DummyObject$1 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1804,104 +2300,147 @@ abstract final class ObjCBlock_DummyObject_DummyObject$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - DummyObject? Function(DummyObject?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_DummyObject_DummyObject$1_closureCallable, - (ffi.Pointer arg0) => - fn(arg0.address == 0 - ? null - : DummyObject.castFromPointer(arg0, retain: true, release: true)) - ?.ref - .retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive), - retain: false, - release: true); + DummyObject? Function(DummyObject?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_DummyObject_DummyObject$1_closureCallable, + (ffi.Pointer arg0) => + fn( + arg0.address == 0 + ? null + : DummyObject.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_DummyObject_DummyObject$1_CallExtension on objc.ObjCBlock { - DummyObject? call(DummyObject? arg0) => ref.pointer.ref.invoke + DummyObject? call(DummyObject? arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction Function(ffi.Pointer, ffi.Pointer)>() - (ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) .address == 0 ? null : DummyObject.castFromPointer( ref.pointer.ref.invoke - .cast Function(ffi.Pointer block, ffi.Pointer arg0)>>() - .asFunction Function(ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), retain: true, - release: true); + release: true, + ); } typedef NullableObjectBlock = ffi.Pointer; -typedef DartNullableObjectBlock - = objc.ObjCBlock; +typedef DartNullableObjectBlock = + objc.ObjCBlock; ffi.Pointer _ObjCBlock_NSString_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_NSString_NSString_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_NSString_NSString_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSString_NSString_fnPtrTrampoline) .cast(); ffi.Pointer _ObjCBlock_NSString_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); ffi.Pointer _ObjCBlock_NSString_NSString_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_NSString_NSString_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSString_NSString_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_NSString_NSString { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// 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. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_NSString_NSString_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_NSString_NSString_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1912,74 +2451,111 @@ abstract final class ObjCBlock_NSString_NSString { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - objc.NSString? Function(objc.NSString?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_NSString_NSString_closureCallable, - (ffi.Pointer arg0) => - fn(arg0.address == 0 ? null : objc.NSString.castFromPointer(arg0, retain: true, release: true)) - ?.ref - .retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive), - retain: false, - release: true); + objc.NSString? Function(objc.NSString?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_NSString_NSString_closureCallable, + (ffi.Pointer arg0) => + fn( + arg0.address == 0 + ? null + : objc.NSString.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_NSString_NSString_CallExtension on objc.ObjCBlock { - objc.NSString? call(objc.NSString? arg0) => ref.pointer.ref.invoke + objc.NSString? call(objc.NSString? arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction Function(ffi.Pointer, ffi.Pointer)>() - (ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) .address == 0 ? null : objc.NSString.castFromPointer( ref.pointer.ref.invoke - .cast Function(ffi.Pointer block, ffi.Pointer arg0)>>() - .asFunction Function(ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), retain: true, - release: true); + release: true, + ); } IntBlock _ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline( - ffi.Pointer block, IntBlock arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + IntBlock arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_IntBlock_IntBlock_fnPtrCallable = ffi.Pointer.fromFunction< - IntBlock Function(ffi.Pointer, - IntBlock)>(_ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline) + IntBlock Function(ffi.Pointer, IntBlock) + >(_ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline) .cast(); IntBlock _ObjCBlock_IntBlock_IntBlock_closureTrampoline( - ffi.Pointer block, IntBlock arg0) => - (objc.getBlockClosure(block) as IntBlock Function(IntBlock))(arg0); + ffi.Pointer block, + IntBlock arg0, +) => (objc.getBlockClosure(block) as IntBlock Function(IntBlock))(arg0); ffi.Pointer _ObjCBlock_IntBlock_IntBlock_closureCallable = ffi.Pointer.fromFunction< - IntBlock Function(ffi.Pointer, - IntBlock)>(_ObjCBlock_IntBlock_IntBlock_closureTrampoline) + IntBlock Function(ffi.Pointer, IntBlock) + >(_ObjCBlock_IntBlock_IntBlock_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock Function(objc.ObjCBlock)>`. abstract final class ObjCBlock_IntBlock_IntBlock { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -1987,16 +2563,25 @@ abstract final class ObjCBlock_IntBlock_IntBlock { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)> - fromFunctionPointer(ffi.Pointer> ptr) => - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_IntBlock_IntBlock_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer> ptr, + ) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_IntBlock_IntBlock_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2006,75 +2591,108 @@ abstract final class ObjCBlock_IntBlock_IntBlock { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function(objc.ObjCBlock)> - fromFunction(DartIntBlock Function(DartIntBlock) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_IntBlock_IntBlock_closureCallable, - (IntBlock arg0) => - fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, retain: true, release: true)).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + > + fromFunction( + DartIntBlock Function(DartIntBlock) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_IntBlock_IntBlock_closureCallable, + (IntBlock arg0) => fn( + ObjCBlock_Int32_Int32.castFromPointer( + arg0, + retain: true, + release: true, + ), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock Function(objc.ObjCBlock)>`. -extension ObjCBlock_IntBlock_IntBlock_CallExtension on objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)> { +extension ObjCBlock_IntBlock_IntBlock_CallExtension + on + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + > { DartIntBlock call(DartIntBlock arg0) => ObjCBlock_Int32_Int32.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - IntBlock Function( - ffi.Pointer block, IntBlock arg0)>>() - .asFunction< - IntBlock Function(ffi.Pointer, - IntBlock)>()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + IntBlock Function( + ffi.Pointer block, + IntBlock arg0, + ) + > + >() + .asFunction< + IntBlock Function(ffi.Pointer, IntBlock) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); } typedef BlockBlock = ffi.Pointer; -typedef DartBlockBlock = objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)>; +typedef DartBlockBlock = + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + >; void _ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline( - ffi.Pointer block, IntBlock arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + IntBlock arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - IntBlock)>(_ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, IntBlock) + >(_ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_IntBlock_closureTrampoline( - ffi.Pointer block, IntBlock arg0) => - (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); + ffi.Pointer block, + IntBlock arg0, +) => (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_IntBlock_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - IntBlock)>(_ObjCBlock_ffiVoid_IntBlock_closureTrampoline) + ffi.Void Function(ffi.Pointer, IntBlock) + >(_ObjCBlock_ffiVoid_IntBlock_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_IntBlock_listenerTrampoline( - ffi.Pointer block, IntBlock arg0) { + ffi.Pointer block, + IntBlock arg0, +) { (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable, IntBlock)> - _ObjCBlock_ffiVoid_IntBlock_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - IntBlock)>.listener(_ObjCBlock_ffiVoid_IntBlock_listenerTrampoline) +_ObjCBlock_ffiVoid_IntBlock_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, IntBlock) + >.listener(_ObjCBlock_ffiVoid_IntBlock_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - IntBlock arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + IntBlock arg0, +) { try { (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); } catch (e) { @@ -2085,51 +2703,74 @@ void _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + IntBlock, + ) +> +_ObjCBlock_ffiVoid_IntBlock_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, IntBlock)> - _ObjCBlock_ffiVoid_IntBlock_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, IntBlock)>.isolateLocal( - _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + IntBlock, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + IntBlock, + ) +> +_ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, IntBlock)> - _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - IntBlock)>.listener(_ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + IntBlock, + ) + >.listener(_ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_IntBlock { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + ffi.Void Function(objc.ObjCBlock) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + >(pointer, retain: retain, release: release); /// 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. - static objc - .ObjCBlock)> - fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + > + fromFunctionPointer( + ffi.Pointer> ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2140,17 +2781,29 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)> fromFunction( - void Function(DartIntBlock) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_closureCallable, - (IntBlock arg0) => - fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + ffi.Void Function(objc.ObjCBlock) + > + fromFunction( + void Function(DartIntBlock) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_IntBlock_closureCallable, + (IntBlock arg0) => fn( + ObjCBlock_Int32_Int32.castFromPointer( + arg0, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -2162,20 +2815,25 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)> - listener(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { + ffi.Void Function(objc.ObjCBlock) + > + listener(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_listenerCallable.nativeFunction.cast(), - (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_IntBlock_listenerCallable.nativeFunction.cast(), + (IntBlock arg0) => fn( + ObjCBlock_Int32_Int32.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_f167m6(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function(objc.ObjCBlock) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -2189,94 +2847,132 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)> - blocking(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { + ffi.Void Function(objc.ObjCBlock) + > + blocking(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_blockingCallable.nativeFunction.cast(), - (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_IntBlock_blockingCallable.nativeFunction.cast(), + (IntBlock arg0) => fn( + ObjCBlock_Int32_Int32.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable.nativeFunction - .cast(), - (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable.nativeFunction + .cast(), + (IntBlock arg0) => fn( + ObjCBlock_Int32_Int32.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function(objc.ObjCBlock) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_IntBlock_CallExtension on objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)> { +extension ObjCBlock_ffiVoid_IntBlock_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + > { void call(DartIntBlock arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, IntBlock arg0)>>() - .asFunction< - void Function(ffi.Pointer, IntBlock)>()( - ref.pointer, arg0.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + IntBlock arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, IntBlock) + >()(ref.pointer, arg0.ref.pointer); } typedef ListenerBlock = ffi.Pointer; -typedef DartListenerBlock = objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)>; +typedef DartListenerBlock = + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + >; void _ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_DummyObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_DummyObject_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_DummyObject_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_DummyObject_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -2285,34 +2981,50 @@ void _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_DummyObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -2320,15 +3032,18 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2339,17 +3054,18 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(DummyObject) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_closureCallable, - (ffi.Pointer arg0) => fn( - DummyObject.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(DummyObject) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject_closureCallable, + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -2361,17 +3077,22 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(DummyObject) fn, - {bool keepIsolateAlive = true}) { + void Function(DummyObject) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_DummyObject_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -2385,25 +3106,34 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(DummyObject) fn, - {bool keepIsolateAlive = true}) { + void Function(DummyObject) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_DummyObject_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => - fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -2412,64 +3142,86 @@ extension ObjCBlock_ffiVoid_DummyObject_CallExtension on objc.ObjCBlock { void call(DummyObject arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0.ref.pointer); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer); } typedef ObjectListenerBlock = ffi.Pointer; -typedef DartObjectListenerBlock - = objc.ObjCBlock; +typedef DartObjectListenerBlock = + objc.ObjCBlock; void _ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject$1_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -2478,34 +3230,50 @@ void _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject$1_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -2513,15 +3281,18 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2532,18 +3303,21 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(DummyObject?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_closureCallable, - (ffi.Pointer arg0) => fn(arg0.address == 0 - ? null - : DummyObject.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(DummyObject?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject$1_closureCallable, + (ffi.Pointer arg0) => fn( + arg0.address == 0 + ? null + : DummyObject.castFromPointer(arg0, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -2555,18 +3329,25 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(DummyObject?) fn, - {bool keepIsolateAlive = true}) { + void Function(DummyObject?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : DummyObject.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -2580,27 +3361,40 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(DummyObject?) fn, - {bool keepIsolateAlive = true}) { + void Function(DummyObject?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : DummyObject.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : DummyObject.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -2608,78 +3402,125 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { extension ObjCBlock_ffiVoid_DummyObject$1_CallExtension on objc.ObjCBlock { void call(DummyObject? arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); } typedef NullableListenerBlock = ffi.Pointer; -typedef DartNullableListenerBlock - = objc.ObjCBlock; +typedef DartNullableListenerBlock = + objc.ObjCBlock; void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2) => + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, +) => block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function( - Vec2 arg0, Vec4 arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function( - Vec2, Vec4, ffi.Pointer)>()(arg0, arg1, arg2); + ffi.NativeFunction< + ffi.Void Function( + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + arg2, + ); ffi.Pointer _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, Vec2, Vec4, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( - Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function(Vec2, Vec4, ffi.Pointer))( + arg0, + arg1, + arg2, + ); ffi.Pointer _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, Vec2, Vec4, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function(Vec2, Vec4, ffi.Pointer))( + arg0, + arg1, + arg2, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, Vec2, Vec4, - ffi.Pointer)> - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, Vec2, Vec4, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function(Vec2, Vec4, ffi.Pointer))( + arg0, + arg1, + arg2, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -2688,55 +3529,85 @@ void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, Vec2, Vec4, ffi.Pointer)> - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, Vec2, Vec4, ffi.Pointer)> - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// 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. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(Vec2 arg0, Vec4 arg1, - ffi.Pointer arg2)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2746,19 +3617,23 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(Vec2, Vec4, objc.NSObject) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable, - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock + fromFunction( + void Function(Vec2, Vec4, objc.NSObject) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable, + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -2770,20 +3645,26 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(Vec2, Vec4, objc.NSObject) fn, - {bool keepIsolateAlive = true}) { + void Function(Vec2, Vec4, objc.NSObject) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable.nativeFunction - .cast(), - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable.nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_ru30ue(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -2797,102 +3678,134 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(Vec2, Vec4, objc.NSObject) fn, - {bool keepIsolateAlive = true}) { + void Function(Vec2, Vec4, objc.NSObject) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable.nativeFunction - .cast(), - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable.nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable - .nativeFunction - .cast(), - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable + .nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_CallExtension on objc.ObjCBlock { - void call(Vec2 arg0, Vec4 arg1, objc.NSObject arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer, Vec2, Vec4, - ffi.Pointer)>()( - ref.pointer, arg0, arg1, arg2.ref.pointer); + void call(Vec2 arg0, Vec4 arg1, objc.NSObject arg2) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2.ref.pointer); } typedef StructListenerBlock = ffi.Pointer; -typedef DartStructListenerBlock - = objc.ObjCBlock; +typedef DartStructListenerBlock = + objc.ObjCBlock; void _ObjCBlock_ffiVoid_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSString_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSString_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSString_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSString_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSString_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSString_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSString_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSString_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSString_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -2901,33 +3814,50 @@ void _ObjCBlock_ffiVoid_NSString_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSString_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSString_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSString_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSString_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSString_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSString_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSString { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -2935,15 +3865,15 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSString_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_NSString_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2954,17 +3884,18 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(objc.NSString) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_closureCallable, - (ffi.Pointer arg0) => fn( - objc.NSString.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_closureCallable, + (ffi.Pointer arg0) => + fn(objc.NSString.castFromPointer(arg0, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -2976,17 +3907,22 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(objc.NSString) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn( - objc.NSString.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSString_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -3000,25 +3936,34 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(objc.NSString) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn( - objc.NSString.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSString_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn( - objc.NSString.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSString_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => + fn(objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -3027,75 +3972,112 @@ extension ObjCBlock_ffiVoid_NSString_CallExtension on objc.ObjCBlock { void call(objc.NSString arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0.ref.pointer); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer); } typedef NSStringListenerBlock = ffi.Pointer; -typedef DartNSStringListenerBlock - = objc.ObjCBlock; +typedef DartNSStringListenerBlock = + objc.ObjCBlock; void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline( - ffi.Pointer block, - int arg0, - Vec4 arg1, - ffi.Pointer arg2) => + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2, +) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Int32 arg0, Vec4 arg1, - ffi.Pointer arg2)>>() - .asFunction)>()( - arg0, arg1, arg2); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int32 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + arg2, + ); ffi.Pointer _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Int32, - Vec4, ffi.Pointer)>( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline( - ffi.Pointer block, - int arg0, - Vec4 arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( - int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function(int, Vec4, ffi.Pointer))(arg0, arg1, arg2); ffi.Pointer _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Int32, - Vec4, ffi.Pointer)>( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline( - ffi.Pointer block, - int arg0, - Vec4 arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function(int, Vec4, ffi.Pointer))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Int32, Vec4, - ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Int32, Vec4, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0, - Vec4 arg1, - ffi.Pointer arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, + Vec4 arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function(int, Vec4, ffi.Pointer))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -3104,43 +4086,62 @@ void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Int32, Vec4, ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Int32, Vec4, ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>( - pointer, - retain: retain, - release: release); + static objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -3148,14 +4149,24 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)> fromFunctionPointer( - ffi.Pointer arg2)>> - ptr) => + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32 arg0, Vec4 arg1, ffi.Pointer arg2) + > + > + ptr, + ) => objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.newPointerBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -3166,17 +4177,22 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)> fromFunction( - void Function(int, Vec4, ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > + fromFunction( + void Function(int, Vec4, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable, - (int arg0, Vec4 arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive), - retain: false, - release: true); + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable, + (int arg0, Vec4 arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -3187,21 +4203,24 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock)> - listener(void Function(int, Vec4, ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > + listener( + void Function(int, Vec4, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable.nativeFunction - .cast(), - (int arg0, Vec4 arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable.nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => fn(arg0, arg1, arg2), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_li50va(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + >(wrapper, retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -3214,94 +4233,128 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc - .ObjCBlock)> - blocking(void Function(int, Vec4, ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > + blocking( + void Function(int, Vec4, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable.nativeFunction - .cast(), - (int arg0, Vec4 arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable.nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => fn(arg0, arg1, arg2), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable - .nativeFunction - .cast(), - (int arg0, Vec4 arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable + .nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => fn(arg0, arg1, arg2), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_li50va( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_CallExtension on objc - .ObjCBlock)> { - void call(int arg0, Vec4 arg1, ffi.Pointer arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Int32 arg0, Vec4 arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer, int, Vec4, - ffi.Pointer)>()(ref.pointer, arg0, arg1, arg2); +extension ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > { + void call(int arg0, Vec4 arg1, ffi.Pointer arg2) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int32 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + Vec4, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); } typedef NoTrampolineListenerBlock = ffi.Pointer; -typedef DartNoTrampolineListenerBlock - = objc.ObjCBlock)>; +typedef DartNoTrampolineListenerBlock = + objc.ObjCBlock)>; void _ObjCBlock_ffiVoid_Int32_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi - .NativeFunction arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Int32_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_Int32_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Int32_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, +); ffi.Pointer _ObjCBlock_ffiVoid_Int32_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_Int32_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Int32_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer arg0, +) { (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_Int32_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Int32_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Int32_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -3310,30 +4363,51 @@ void _ObjCBlock_ffiVoid_Int32_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_Int32_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_Int32_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Int32_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Int32_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_Int32 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -3341,15 +4415,16 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_Int32_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_ffiVoid_Int32_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -3360,13 +4435,17 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock(_ObjCBlock_ffiVoid_Int32_closureCallable, - (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -3378,16 +4457,21 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_yhkuco(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>(wrapper, - retain: false, release: true); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -3401,22 +4485,31 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_blockingListenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>(wrapper, - retain: false, release: true); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); } } @@ -3425,48 +4518,59 @@ extension ObjCBlock_ffiVoid_Int32_CallExtension on objc.ObjCBlock)> { void call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0); + void Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); } void _ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline( - ffi.Pointer block, int arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + int arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Int32$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Int32)>(_ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int32) + >(_ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32$1_closureTrampoline( - ffi.Pointer block, int arg0) => - (objc.getBlockClosure(block) as void Function(int))(arg0); + ffi.Pointer block, + int arg0, +) => (objc.getBlockClosure(block) as void Function(int))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Int32$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Int32)>(_ObjCBlock_ffiVoid_Int32$1_closureTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int32) + >(_ObjCBlock_ffiVoid_Int32$1_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32$1_listenerTrampoline( - ffi.Pointer block, int arg0) { + ffi.Pointer block, + int arg0, +) { (objc.getBlockClosure(block) as void Function(int))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Int32)> - _ObjCBlock_ffiVoid_Int32$1_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Int32)>.listener(_ObjCBlock_ffiVoid_Int32$1_listenerTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int32) +> +_ObjCBlock_ffiVoid_Int32$1_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Int32) + >.listener(_ObjCBlock_ffiVoid_Int32$1_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, +) { try { (objc.getBlockClosure(block) as void Function(int))(arg0); } catch (e) { @@ -3477,32 +4581,50 @@ void _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) +> +_ObjCBlock_ffiVoid_Int32$1_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Int32)> - _ObjCBlock_ffiVoid_Int32$1_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>.isolateLocal( - _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) +> +_ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Int32)> - _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>.listener(_ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + >.listener(_ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Int32$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -3510,13 +4632,12 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_Int32$1_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_Int32$1_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -3527,13 +4648,17 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_ffiVoid_Int32$1_closureCallable, - (int arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32$1_closureCallable, + (int arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -3545,16 +4670,21 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(int) fn, - {bool keepIsolateAlive = true}) { + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32$1_listenerCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32$1_listenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_1bqef4y(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -3568,244 +4698,374 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(int) fn, - {bool keepIsolateAlive = true}) { + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32$1_blockingCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32$1_blockingCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable.nativeFunction - .cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_Int32$1_CallExtension on objc.ObjCBlock { - void call(int arg0) => ref.pointer.ref.invoke + void call(int arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, ffi.Int32 arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int32 arg0, + ) + > + >() .asFunction, int)>()( - ref.pointer, arg0); + ref.pointer, + arg0, + ); } late final _class_BlockTester = objc.getClass("BlockTester"); late final _sel_setup_ = objc.registerName("setup:"); final _objc_msgSend_ovsamd = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_newFromBlock_ = objc.registerName("newFromBlock:"); late final _sel_newFromMultiplier_ = objc.registerName("newFromMultiplier:"); final _objc_msgSend_aclumu = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_newFromListener_ = objc.registerName("newFromListener:"); late final _sel_call_ = objc.registerName("call:"); final _objc_msgSend_zo3bvx = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>() + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, int)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_getBlock = objc.registerName("getBlock"); final _objc_msgSend_uwvaik = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_pokeBlock = objc.registerName("pokeBlock"); late final _sel_callOnSameThread_ = objc.registerName("callOnSameThread:"); -late final _sel_callOnSameThreadOutsideIsolate_ = - objc.registerName("callOnSameThreadOutsideIsolate:"); +late final _sel_callOnSameThreadOutsideIsolate_ = objc.registerName( + "callOnSameThreadOutsideIsolate:", +); late final _sel_callOnNewThread_ = objc.registerName("callOnNewThread:"); -late final _sel_callWithBlockOnNewThread_ = - objc.registerName("callWithBlockOnNewThread:"); +late final _sel_callWithBlockOnNewThread_ = objc.registerName( + "callWithBlockOnNewThread:", +); late final _sel_callFloatBlock_ = objc.registerName("callFloatBlock:"); final _objc_msgSend_o8bnms = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_o8bnmsFpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_callDoubleBlock_ = objc.registerName("callDoubleBlock:"); final _objc_msgSend_8mj2fv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_8mj2fvFpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_callVec4Block_ = objc.registerName("callVec4Block:"); final _objc_msgSend_1gew1vm = objc.msgSendPointer .cast< - ffi.NativeFunction< - Vec4 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + Vec4 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - Vec4 Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + Vec4 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1gew1vmStret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_callSelectorBlock_ = objc.registerName("callSelectorBlock:"); late final _sel_callObjectBlock_ = objc.registerName("callObjectBlock:"); -late final _sel_callNullableObjectBlock_ = - objc.registerName("callNullableObjectBlock:"); -late final _sel_callNullableStringBlock_ = - objc.registerName("callNullableStringBlock:"); +late final _sel_callNullableObjectBlock_ = objc.registerName( + "callNullableObjectBlock:", +); +late final _sel_callNullableStringBlock_ = objc.registerName( + "callNullableStringBlock:", +); late final _sel_callListener_ = objc.registerName("callListener:"); late final _sel_callObjectListener_ = objc.registerName("callObjectListener:"); -late final _sel_callNullableListener_ = - objc.registerName("callNullableListener:"); +late final _sel_callNullableListener_ = objc.registerName( + "callNullableListener:", +); late final _sel_callStructListener_ = objc.registerName("callStructListener:"); -late final _sel_callNSStringListener_x_ = - objc.registerName("callNSStringListener:x:"); +late final _sel_callNSStringListener_x_ = objc.registerName( + "callNSStringListener:x:", +); final _objc_msgSend_po4t03 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); -late final _sel_callNoTrampolineListener_ = - objc.registerName("callNoTrampolineListener:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_callNoTrampolineListener_ = objc.registerName( + "callNoTrampolineListener:", +); late final _sel_newBlock_withMult_ = objc.registerName("newBlock:withMult:"); final _objc_msgSend_jevgay = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_newBlockBlock_ = objc.registerName("newBlockBlock:"); final _objc_msgSend_w43bzz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_invokeAndReleaseListenerOnNewThread = - objc.registerName("invokeAndReleaseListenerOnNewThread"); -late final _sel_invokeAndReleaseListener_ = - objc.registerName("invokeAndReleaseListener:"); -late final _sel_blockingBlockTest_resultBlock_ = - objc.registerName("blockingBlockTest:resultBlock:"); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_invokeAndReleaseListenerOnNewThread = objc.registerName( + "invokeAndReleaseListenerOnNewThread", +); +late final _sel_invokeAndReleaseListener_ = objc.registerName( + "invokeAndReleaseListener:", +); +late final _sel_blockingBlockTest_resultBlock_ = objc.registerName( + "blockingBlockTest:resultBlock:", +); final _objc_msgSend_18yul99 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// BlockTester class BlockTester extends objc.NSObject { - BlockTester._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + BlockTester._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [BlockTester] that points to the same underlying object as [other]. BlockTester.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [BlockTester] that wraps the given raw object pointer. - BlockTester.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + BlockTester.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [BlockTester]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_BlockTester); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_BlockTester, + ); } /// setup: @@ -3816,21 +5076,30 @@ class BlockTester extends objc.NSObject { /// newFromBlock: static BlockTester newFromBlock(DartIntBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_newFromBlock_, block.ref.pointer); + _class_BlockTester, + _sel_newFromBlock_, + block.ref.pointer, + ); return BlockTester.castFromPointer(_ret, retain: false, release: true); } /// newFromMultiplier: static BlockTester newFromMultiplier(int mult) { - final _ret = - _objc_msgSend_aclumu(_class_BlockTester, _sel_newFromMultiplier_, mult); + final _ret = _objc_msgSend_aclumu( + _class_BlockTester, + _sel_newFromMultiplier_, + mult, + ); return BlockTester.castFromPointer(_ret, retain: false, release: true); } /// newFromListener: static BlockTester newFromListener(DartObjectListenerBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_newFromListener_, block.ref.pointer); + _class_BlockTester, + _sel_newFromListener_, + block.ref.pointer, + ); return BlockTester.castFromPointer(_ret, retain: false, release: true); } @@ -3842,8 +5111,11 @@ class BlockTester extends objc.NSObject { /// getBlock DartIntBlock getBlock() { final _ret = _objc_msgSend_uwvaik(this.ref.pointer, _sel_getBlock); - return ObjCBlock_Int32_Int32.castFromPointer(_ret, - retain: false, release: true); + return ObjCBlock_Int32_Int32.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// pokeBlock @@ -3854,26 +5126,38 @@ class BlockTester extends objc.NSObject { /// callOnSameThread: static void callOnSameThread(DartVoidBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callOnSameThread_, block.ref.pointer); + _class_BlockTester, + _sel_callOnSameThread_, + block.ref.pointer, + ); } /// callOnSameThreadOutsideIsolate: static void callOnSameThreadOutsideIsolate(DartVoidBlock block) { - _objc_msgSend_f167m6(_class_BlockTester, - _sel_callOnSameThreadOutsideIsolate_, block.ref.pointer); + _objc_msgSend_f167m6( + _class_BlockTester, + _sel_callOnSameThreadOutsideIsolate_, + block.ref.pointer, + ); } /// callOnNewThread: static NSThread callOnNewThread(DartVoidBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_callOnNewThread_, block.ref.pointer); + _class_BlockTester, + _sel_callOnNewThread_, + block.ref.pointer, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// callWithBlockOnNewThread: static NSThread callWithBlockOnNewThread(DartListenerBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_callWithBlockOnNewThread_, block.ref.pointer); + _class_BlockTester, + _sel_callWithBlockOnNewThread_, + block.ref.pointer, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } @@ -3881,18 +5165,30 @@ class BlockTester extends objc.NSObject { static double callFloatBlock(DartFloatBlock block) { return objc.useMsgSendVariants ? _objc_msgSend_o8bnmsFpret( - _class_BlockTester, _sel_callFloatBlock_, block.ref.pointer) + _class_BlockTester, + _sel_callFloatBlock_, + block.ref.pointer, + ) : _objc_msgSend_o8bnms( - _class_BlockTester, _sel_callFloatBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callFloatBlock_, + block.ref.pointer, + ); } /// callDoubleBlock: static double callDoubleBlock(DartDoubleBlock block) { return objc.useMsgSendVariants ? _objc_msgSend_8mj2fvFpret( - _class_BlockTester, _sel_callDoubleBlock_, block.ref.pointer) + _class_BlockTester, + _sel_callDoubleBlock_, + block.ref.pointer, + ) : _objc_msgSend_8mj2fv( - _class_BlockTester, _sel_callDoubleBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callDoubleBlock_, + block.ref.pointer, + ); } /// callVec4Block: @@ -3900,32 +5196,49 @@ class BlockTester extends objc.NSObject { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_1gew1vmStret( - _ptr, _class_BlockTester, _sel_callVec4Block_, block.ref.pointer) + _ptr, + _class_BlockTester, + _sel_callVec4Block_, + block.ref.pointer, + ) : _ptr.ref = _objc_msgSend_1gew1vm( - _class_BlockTester, _sel_callVec4Block_, block.ref.pointer); - final _finalizable = _ptr - .cast() - .asTypedList(ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree); + _class_BlockTester, + _sel_callVec4Block_, + block.ref.pointer, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// callSelectorBlock: static void callSelectorBlock(DartSelectorBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callSelectorBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callSelectorBlock_, + block.ref.pointer, + ); } /// callObjectBlock: static DummyObject callObjectBlock(DartObjectBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_callObjectBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callObjectBlock_, + block.ref.pointer, + ); return DummyObject.castFromPointer(_ret, retain: false, release: true); } /// callNullableObjectBlock: static DummyObject? callNullableObjectBlock(DartNullableObjectBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_callNullableObjectBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callNullableObjectBlock_, + block.ref.pointer, + ); return _ret.address == 0 ? null : DummyObject.castFromPointer(_ret, retain: false, release: true); @@ -3933,9 +5246,13 @@ class BlockTester extends objc.NSObject { /// callNullableStringBlock: static objc.NSString? callNullableStringBlock( - objc.ObjCBlock block) { + objc.ObjCBlock block, + ) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_callNullableStringBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callNullableStringBlock_, + block.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: false, release: true); @@ -3944,85 +5261,131 @@ class BlockTester extends objc.NSObject { /// callListener: static void callListener(DartListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callListener_, block.ref.pointer); + _class_BlockTester, + _sel_callListener_, + block.ref.pointer, + ); } /// callObjectListener: static void callObjectListener(DartObjectListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callObjectListener_, block.ref.pointer); + _class_BlockTester, + _sel_callObjectListener_, + block.ref.pointer, + ); } /// callNullableListener: static void callNullableListener(DartNullableListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callNullableListener_, block.ref.pointer); + _class_BlockTester, + _sel_callNullableListener_, + block.ref.pointer, + ); } /// callStructListener: static void callStructListener(DartStructListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callStructListener_, block.ref.pointer); + _class_BlockTester, + _sel_callStructListener_, + block.ref.pointer, + ); } /// callNSStringListener:x: - static void callNSStringListener(DartNSStringListenerBlock block, - {required int x}) { + static void callNSStringListener( + DartNSStringListenerBlock block, { + required int x, + }) { _objc_msgSend_po4t03( - _class_BlockTester, _sel_callNSStringListener_x_, block.ref.pointer, x); + _class_BlockTester, + _sel_callNSStringListener_x_, + block.ref.pointer, + x, + ); } /// callNoTrampolineListener: static void callNoTrampolineListener(DartNoTrampolineListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callNoTrampolineListener_, block.ref.pointer); + _class_BlockTester, + _sel_callNoTrampolineListener_, + block.ref.pointer, + ); } /// newBlock:withMult: static DartIntBlock newBlock(DartBlockBlock block, {required int withMult}) { - final _ret = _objc_msgSend_jevgay(_class_BlockTester, - _sel_newBlock_withMult_, block.ref.pointer, withMult); - return ObjCBlock_Int32_Int32.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_jevgay( + _class_BlockTester, + _sel_newBlock_withMult_, + block.ref.pointer, + withMult, + ); + return ObjCBlock_Int32_Int32.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// newBlockBlock: static DartBlockBlock newBlockBlock(int mult) { - final _ret = - _objc_msgSend_w43bzz(_class_BlockTester, _sel_newBlockBlock_, mult); - return ObjCBlock_IntBlock_IntBlock.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_w43bzz( + _class_BlockTester, + _sel_newBlockBlock_, + mult, + ); + return ObjCBlock_IntBlock_IntBlock.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// invokeAndReleaseListenerOnNewThread void invokeAndReleaseListenerOnNewThread() { _objc_msgSend_1pl9qdv( - this.ref.pointer, _sel_invokeAndReleaseListenerOnNewThread); + this.ref.pointer, + _sel_invokeAndReleaseListenerOnNewThread, + ); } /// invokeAndReleaseListener: - void invokeAndReleaseListener(objc.ObjCObjectBase? _) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_invokeAndReleaseListener_, - _?.ref.pointer ?? ffi.nullptr); + void invokeAndReleaseListener(objc.ObjCObjectBase? _$) { + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_invokeAndReleaseListener_, + _$?.ref.pointer ?? ffi.nullptr, + ); } /// blockingBlockTest:resultBlock: static void blockingBlockTest( - objc.ObjCBlock)> blockingBlock, - {required objc.ObjCBlock resultBlock}) { + objc.ObjCBlock)> blockingBlock, { + required objc.ObjCBlock resultBlock, + }) { _objc_msgSend_18yul99( - _class_BlockTester, - _sel_blockingBlockTest_resultBlock_, - blockingBlock.ref.pointer, - resultBlock.ref.pointer); + _class_BlockTester, + _sel_blockingBlockTest_resultBlock_, + blockingBlock.ref.pointer, + resultBlock.ref.pointer, + ); } /// init BlockTester init() { - objc.checkOsVersionInternal('BlockTester.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'BlockTester.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return BlockTester.castFromPointer(_ret, retain: false, release: true); } @@ -4034,8 +5397,11 @@ class BlockTester extends objc.NSObject { /// allocWithZone: static BlockTester allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_BlockTester, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_BlockTester, + _sel_allocWithZone_, + zone, + ); return BlockTester.castFromPointer(_ret, retain: false, release: true); } diff --git a/pkgs/ffigen/test/native_objc_test/block_bindings.m b/pkgs/ffigen/test/native_objc_test/block_bindings.m index e5dbbcccb..97abc9365 100644 --- a/pkgs/ffigen/test/native_objc_test/block_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/block_bindings.m @@ -50,6 +50,13 @@ typedef void (^ListenerTrampoline)(); +__attribute__((visibility("default"))) __attribute__((used)) +ListenerTrampoline _BlockTestObjCLibrary_wrapListenerBlock_1pl9qdv(ListenerTrampoline block) NS_RETURNS_RETAINED { + return ^void() { + objc_retainBlock(block); + block(); + }; +} typedef void (^BlockingTrampoline)(void * waiter); __attribute__((visibility("default"))) __attribute__((used)) diff --git a/pkgs/ffigen/test/native_objc_test/block_test.dart b/pkgs/ffigen/test/native_objc_test/block_test.dart index 6678ce5e6..325804159 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test.dart @@ -70,7 +70,7 @@ void main() { BlockTester.setup(NativeApi.initializeApiDLData); }); - /*test('BlockTester is working', () { + test('BlockTester is working', () { // This doesn't test any Block functionality, just that the BlockTester // itself is working correctly. final blockTester = BlockTester.newFromMultiplier(10); @@ -87,8 +87,8 @@ void main() { ); final blockTester = BlockTester.newFromBlock(block); blockTester.pokeBlock(); - expect(blockTester.call(123), 223); - expect(block(123), 223); + // expect(blockTester.call(123), 223); + // expect(block(123), 223); }); int Function(int) makeAdder(int addTo) { @@ -101,7 +101,7 @@ void main() { blockTester.pokeBlock(); expect(blockTester.call(123), 4123); expect(block(123), 4123); - });*/ + }); test('Listener block same thread', () async { final hasRun = Completer(); @@ -117,7 +117,7 @@ void main() { expect(value, 123); }); - /*test('Listener block new thread', () async { + test('Listener block new thread', () async { final hasRun = Completer(); int value = 0; final block = VoidBlock.listener(() { @@ -1185,7 +1185,7 @@ void main() { return innerValue; }); expect(value, 123); - }, skip: !hasIsolateOwnershipApi);*/ + }, skip: !hasIsolateOwnershipApi); }); } diff --git a/pkgs/objective_c/lib/src/internal.dart b/pkgs/objective_c/lib/src/internal.dart index 6782611ea..b26b67cf3 100644 --- a/pkgs/objective_c/lib/src/internal.dart +++ b/pkgs/objective_c/lib/src/internal.dart @@ -412,8 +412,8 @@ BlockPtr newClosureBlock(VoidPtr invoke, Function fn, bool keepIsolateAlive, {VoidPtr? trampoline}) => _newBlock( invoke, - trampoline ?? nullptr, _registerBlockClosure(fn, keepIsolateAlive), + trampoline ?? nullptr, _closureBlockDesc, _blockClosureDisposer.sendPort.nativePort, _blockHasCopyDispose, From cb24ac7e53d6270c936ee29f24646b7baf826bd5 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 24 Jul 2025 12:53:42 +1000 Subject: [PATCH 26/29] block bindings --- .../test/native_objc_test/block_bindings.dart | 5288 ++++++----------- 1 file changed, 1961 insertions(+), 3327 deletions(-) diff --git a/pkgs/ffigen/test/native_objc_test/block_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_bindings.dart index 05e67784c..7c7e5fb47 100644 --- a/pkgs/ffigen/test/native_objc_test/block_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_bindings.dart @@ -12,25 +12,29 @@ import 'package:ffi/ffi.dart' as pkg_ffi; class BlockTestObjCLibrary { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) - _lookup; + _lookup; /// The symbols are looked up in [dynamicLibrary]. BlockTestObjCLibrary(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; + : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. BlockTestObjCLibrary.fromLookup( - ffi.Pointer Function(String symbolName) lookup, - ) : _lookup = lookup; + ffi.Pointer Function(String symbolName) + lookup) + : _lookup = lookup; - void objc_autoreleasePoolPop(ffi.Pointer pool) { - return _objc_autoreleasePoolPop(pool); + void objc_autoreleasePoolPop( + ffi.Pointer pool, + ) { + return _objc_autoreleasePoolPop( + pool, + ); } late final _objc_autoreleasePoolPopPtr = _lookup)>>( - 'objc_autoreleasePoolPop', - ); + 'objc_autoreleasePoolPop'); late final _objc_autoreleasePoolPop = _objc_autoreleasePoolPopPtr .asFunction)>(); @@ -40,195 +44,167 @@ class BlockTestObjCLibrary { late final _objc_autoreleasePoolPushPtr = _lookup Function()>>( - 'objc_autoreleasePoolPush', - ); + 'objc_autoreleasePoolPush'); late final _objc_autoreleasePoolPush = _objc_autoreleasePoolPushPtr .asFunction Function()>(); } @ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) -external ffi.Pointer -_BlockTestObjCLibrary_wrapListenerBlock_1pl9qdv( - ffi.Pointer block, -); - -@ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( + _BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) ->() + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>() external ffi.Pointer -_BlockTestObjCLibrary_protocolTrampoline_1mbt9g9( + _BlockTestObjCLibrary_protocolTrampoline_1mbt9g9( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe( + _BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( + _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapListenerBlock_f167m6( + _BlockTestObjCLibrary_wrapListenerBlock_f167m6( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapBlockingBlock_f167m6( + _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapListenerBlock_xtuoz7( + _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( + _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapListenerBlock_ru30ue( + _BlockTestObjCLibrary_wrapListenerBlock_ru30ue( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( + _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapListenerBlock_li50va( + _BlockTestObjCLibrary_wrapListenerBlock_li50va( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapBlockingBlock_li50va( + _BlockTestObjCLibrary_wrapBlockingBlock_li50va( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapListenerBlock_yhkuco( + _BlockTestObjCLibrary_wrapListenerBlock_yhkuco( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( + _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function(ffi.Pointer) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapListenerBlock_1bqef4y( + _BlockTestObjCLibrary_wrapListenerBlock_1bqef4y( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) ->(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(isLeaf: true) external ffi.Pointer -_BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( + _BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, @@ -238,55 +214,60 @@ late final _class_NSThread = objc.getClass("NSThread"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + bool Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_currentThread = objc.registerName("currentThread"); final _objc_msgSend_151sglz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer)>>() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); void _ObjCBlock_ffiVoid_fnPtrTrampoline( ffi.Pointer block, -) => block.ref.target - .cast>() - .asFunction()(); -ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer) - >(_ObjCBlock_ffiVoid_fnPtrTrampoline) - .cast(); +) => + block.ref.target + .cast>() + .asFunction()(); +ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = ffi.Pointer + .fromFunction)>( + _ObjCBlock_ffiVoid_fnPtrTrampoline) + .cast(); void _ObjCBlock_ffiVoid_closureTrampoline( ffi.Pointer block, -) => (objc.getBlockClosure(block) as void Function())(); -ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = - ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer) - >(_ObjCBlock_ffiVoid_closureTrampoline) - .cast(); +) => + (objc.getBlockClosure(block) as void Function())(); +ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = ffi.Pointer + .fromFunction)>( + _ObjCBlock_ffiVoid_closureTrampoline) + .cast(); + +void _ObjCBlock_ffiVoid_sharedTrampoline( + ffi.Pointer block, +) { + objc.blockRetain(block.cast()); // Move to block object? + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block)>>() + .asFunction)>()( + block, + ); +} +ffi.NativeCallable)> + _ObjCBlock_ffiVoid_sharedCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer)>.isolateGroupShared( + _ObjCBlock_ffiVoid_sharedTrampoline) + ..keepIsolateAlive = false; + void _ObjCBlock_ffiVoid_listenerTrampoline( ffi.Pointer block, ) { @@ -295,15 +276,12 @@ void _ObjCBlock_ffiVoid_listenerTrampoline( } ffi.NativeCallable)> -_ObjCBlock_ffiVoid_listenerCallable = - ffi.NativeCallable< - ffi.Void Function(ffi.Pointer) - >.listener(_ObjCBlock_ffiVoid_listenerTrampoline) + _ObjCBlock_ffiVoid_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, -) { + ffi.Pointer block, ffi.Pointer waiter) { try { (objc.getBlockClosure(block) as void Function())(); } catch (e) { @@ -314,40 +292,31 @@ void _ObjCBlock_ffiVoid_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Pointer) -> -_ObjCBlock_ffiVoid_blockingCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_blockingTrampoline) + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_blockingCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Pointer) -> -_ObjCBlock_ffiVoid_blockingListenerCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_blockingTrampoline) + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_blockingListenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -355,12 +324,11 @@ abstract final class ObjCBlock_ffiVoid { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); + ffi.Pointer> ptr) => + objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -370,18 +338,13 @@ abstract final class ObjCBlock_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function() fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_closureCallable, - () => fn(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + static objc.ObjCBlock fromFunction(void Function() fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_closureCallable, () => fn(), keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -392,22 +355,15 @@ abstract final class ObjCBlock_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener( - void Function() fn, { - bool keepIsolateAlive = true, - }) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive, - ); - final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_1pl9qdv(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + static objc.ObjCBlock listener(void Function() fn, + {bool keepIsolateAlive = true}) { + final wrapper = objc.newClosureBlock( + _ObjCBlock_ffiVoid_sharedCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast()); + return objc.ObjCBlock(wrapper, + retain: true, release: true); } /// Creates a blocking block from a Dart function. @@ -420,330 +376,209 @@ abstract final class ObjCBlock_ffiVoid { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking( - void Function() fn, { - bool keepIsolateAlive = true, - }) { + static objc.ObjCBlock blocking(void Function() fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( - raw, - rawListener, - objc.objCContext, - ); + raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_CallExtension on objc.ObjCBlock { - void call() => - ref.pointer.ref.invoke + void call() => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block)>>() .asFunction)>()( ref.pointer, ); } -late final _sel_detachNewThreadWithBlock_ = objc.registerName( - "detachNewThreadWithBlock:", -); +late final _sel_detachNewThreadWithBlock_ = + objc.registerName("detachNewThreadWithBlock:"); final _objc_msgSend_f167m6 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_detachNewThreadSelector_toTarget_withObject_ = objc - .registerName("detachNewThreadSelector:toTarget:withObject:"); + void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_detachNewThreadSelector_toTarget_withObject_ = + objc.registerName("detachNewThreadSelector:toTarget:withObject:"); final _objc_msgSend_lzbvjm = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); late final _sel_isMultiThreaded = objc.registerName("isMultiThreaded"); final _objc_msgSend_91o635 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, + ffi.Pointer)>>() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); + bool Function( + ffi.Pointer, ffi.Pointer)>(); late final _sel_threadDictionary = objc.registerName("threadDictionary"); late final _sel_sleepUntilDate_ = objc.registerName("sleepUntilDate:"); final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); -late final _sel_sleepForTimeInterval_ = objc.registerName( - "sleepForTimeInterval:", -); + void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +late final _sel_sleepForTimeInterval_ = + objc.registerName("sleepForTimeInterval:"); final _objc_msgSend_hwm8nu = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Double)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); + void Function(ffi.Pointer, + ffi.Pointer, double)>(); late final _sel_exit = objc.registerName("exit"); final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); + void Function( + ffi.Pointer, ffi.Pointer)>(); late final _sel_threadPriority = objc.registerName("threadPriority"); final _objc_msgSend_1ukqyt8 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, + ffi.Pointer)>>() .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); + double Function( + ffi.Pointer, ffi.Pointer)>(); final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, + ffi.Pointer)>>() .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); + double Function( + ffi.Pointer, ffi.Pointer)>(); late final _sel_setThreadPriority_ = objc.registerName("setThreadPriority:"); final _objc_msgSend_18chyc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ) - > - >() + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, + ffi.Pointer, ffi.Double)>>() .asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - double, - ) - >(); + bool Function(ffi.Pointer, + ffi.Pointer, double)>(); late final _sel_qualityOfService = objc.registerName("qualityOfService"); final _objc_msgSend_oi8iq9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer)>>() .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); -late final _sel_setQualityOfService_ = objc.registerName( - "setQualityOfService:", -); + int Function( + ffi.Pointer, ffi.Pointer)>(); +late final _sel_setQualityOfService_ = + objc.registerName("setQualityOfService:"); final _objc_msgSend_n2da1l = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -late final _sel_callStackReturnAddresses = objc.registerName( - "callStackReturnAddresses", -); + void Function(ffi.Pointer, + ffi.Pointer, int)>(); +late final _sel_callStackReturnAddresses = + objc.registerName("callStackReturnAddresses"); late final _sel_callStackSymbols = objc.registerName("callStackSymbols"); late final _sel_name = objc.registerName("name"); late final _sel_setName_ = objc.registerName("setName:"); late final _sel_stackSize = objc.registerName("stackSize"); final _objc_msgSend_xw2lbc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer)>>() .asFunction< - int Function(ffi.Pointer, ffi.Pointer) - >(); + int Function( + ffi.Pointer, ffi.Pointer)>(); late final _sel_setStackSize_ = objc.registerName("setStackSize:"); final _objc_msgSend_1i9r4xy = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); + void Function(ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_isMainThread = objc.registerName("isMainThread"); late final _sel_mainThread = objc.registerName("mainThread"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObjectBase; late final _sel_init = objc.registerName("init"); -late final _sel_initWithTarget_selector_object_ = objc.registerName( - "initWithTarget:selector:object:", -); +late final _sel_initWithTarget_selector_object_ = + objc.registerName("initWithTarget:selector:object:"); final _objc_msgSend_1eldwyi = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); late final _sel_initWithBlock_ = objc.registerName("initWithBlock:"); final _objc_msgSend_nnxkei = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_isExecuting = objc.registerName("isExecuting"); late final _sel_isFinished = objc.registerName("isFinished"); late final _sel_isCancelled = objc.registerName("isCancelled"); @@ -754,49 +589,33 @@ late final _sel_new = objc.registerName("new"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_alloc = objc.registerName("alloc"); /// NSThread class NSThread extends objc.NSObject { - NSThread._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); + NSThread._(ffi.Pointer pointer, + {bool retain = false, bool release = false}) + : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSThread] that points to the same underlying object as [other]. NSThread.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSThread] that wraps the given raw object pointer. - NSThread.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); + NSThread.castFromPointer(ffi.Pointer other, + {bool retain = false, bool release = false}) + : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSThread]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_NSThread, - ); + obj.ref.pointer, _sel_isKindOfClass_, _class_NSThread); } /// currentThread @@ -807,33 +626,23 @@ class NSThread extends objc.NSObject { /// detachNewThreadWithBlock: static void detachNewThreadWithBlock( - objc.ObjCBlock block, - ) { - objc.checkOsVersionInternal( - 'NSThread.detachNewThreadWithBlock:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); + objc.ObjCBlock block) { + objc.checkOsVersionInternal('NSThread.detachNewThreadWithBlock:', + iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0))); _objc_msgSend_f167m6( - _class_NSThread, - _sel_detachNewThreadWithBlock_, - block.ref.pointer, - ); + _class_NSThread, _sel_detachNewThreadWithBlock_, block.ref.pointer); } /// detachNewThreadSelector:toTarget:withObject: - static void detachNewThreadSelector( - ffi.Pointer selector, { - required objc.ObjCObjectBase toTarget, - objc.ObjCObjectBase? withObject, - }) { + static void detachNewThreadSelector(ffi.Pointer selector, + {required objc.ObjCObjectBase toTarget, + objc.ObjCObjectBase? withObject}) { _objc_msgSend_lzbvjm( - _class_NSThread, - _sel_detachNewThreadSelector_toTarget_withObject_, - selector, - toTarget.ref.pointer, - withObject?.ref.pointer ?? ffi.nullptr, - ); + _class_NSThread, + _sel_detachNewThreadSelector_toTarget_withObject_, + selector, + toTarget.ref.pointer, + withObject?.ref.pointer ?? ffi.nullptr); } /// isMultiThreaded @@ -844,20 +653,14 @@ class NSThread extends objc.NSObject { /// threadDictionary objc.NSMutableDictionary get threadDictionary { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_threadDictionary); - return objc.NSMutableDictionary.castFromPointer( - _ret, - retain: true, - release: true, - ); + return objc.NSMutableDictionary.castFromPointer(_ret, + retain: true, release: true); } /// sleepUntilDate: static void sleepUntilDate(objc.NSDate date) { _objc_msgSend_xtuoz7( - _class_NSThread, - _sel_sleepUntilDate_, - date.ref.pointer, - ); + _class_NSThread, _sel_sleepUntilDate_, date.ref.pointer); } /// sleepForTimeInterval: @@ -884,11 +687,8 @@ class NSThread extends objc.NSObject { /// threadPriority double get threadPriority$1 { - objc.checkOsVersionInternal( - 'NSThread.threadPriority', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); + objc.checkOsVersionInternal('NSThread.threadPriority', + iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_threadPriority) : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_threadPriority); @@ -896,71 +696,48 @@ class NSThread extends objc.NSObject { /// setThreadPriority: set threadPriority$1(double value) { - objc.checkOsVersionInternal( - 'NSThread.setThreadPriority:', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); + objc.checkOsVersionInternal('NSThread.setThreadPriority:', + iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); _objc_msgSend_hwm8nu(this.ref.pointer, _sel_setThreadPriority_, value); } /// qualityOfService objc.NSQualityOfService get qualityOfService { - objc.checkOsVersionInternal( - 'NSThread.qualityOfService', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); + objc.checkOsVersionInternal('NSThread.qualityOfService', + iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); final _ret = _objc_msgSend_oi8iq9(this.ref.pointer, _sel_qualityOfService); return objc.NSQualityOfService.fromValue(_ret); } /// setQualityOfService: set qualityOfService(objc.NSQualityOfService value) { - objc.checkOsVersionInternal( - 'NSThread.setQualityOfService:', - iOS: (false, (8, 0, 0)), - macOS: (false, (10, 10, 0)), - ); + objc.checkOsVersionInternal('NSThread.setQualityOfService:', + iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); _objc_msgSend_n2da1l( - this.ref.pointer, - _sel_setQualityOfService_, - value.value, - ); + this.ref.pointer, _sel_setQualityOfService_, value.value); } /// callStackReturnAddresses static objc.NSArray getCallStackReturnAddresses() { - objc.checkOsVersionInternal( - 'NSThread.callStackReturnAddresses', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); - final _ret = _objc_msgSend_151sglz( - _class_NSThread, - _sel_callStackReturnAddresses, - ); + objc.checkOsVersionInternal('NSThread.callStackReturnAddresses', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + final _ret = + _objc_msgSend_151sglz(_class_NSThread, _sel_callStackReturnAddresses); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// callStackSymbols static objc.NSArray getCallStackSymbols() { - objc.checkOsVersionInternal( - 'NSThread.callStackSymbols', - iOS: (false, (4, 0, 0)), - macOS: (false, (10, 6, 0)), - ); + objc.checkOsVersionInternal('NSThread.callStackSymbols', + iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_callStackSymbols); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// name objc.NSString? get name { - objc.checkOsVersionInternal( - 'NSThread.name', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.name', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_name); return _ret.address == 0 ? null @@ -969,176 +746,120 @@ class NSThread extends objc.NSObject { /// setName: set name(objc.NSString? value) { - objc.checkOsVersionInternal( - 'NSThread.setName:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.setName:', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_setName_, - value?.ref.pointer ?? ffi.nullptr, - ); + this.ref.pointer, _sel_setName_, value?.ref.pointer ?? ffi.nullptr); } /// stackSize int get stackSize { - objc.checkOsVersionInternal( - 'NSThread.stackSize', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.stackSize', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_stackSize); } /// setStackSize: set stackSize(int value) { - objc.checkOsVersionInternal( - 'NSThread.setStackSize:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.setStackSize:', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_setStackSize_, value); } /// isMainThread bool get isMainThread { - objc.checkOsVersionInternal( - 'NSThread.isMainThread', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.isMainThread', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); return _objc_msgSend_91o635(this.ref.pointer, _sel_isMainThread); } /// isMainThread static bool getIsMainThread$1() { - objc.checkOsVersionInternal( - 'NSThread.isMainThread', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.isMainThread', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); return _objc_msgSend_91o635(_class_NSThread, _sel_isMainThread); } /// mainThread static NSThread getMainThread() { - objc.checkOsVersionInternal( - 'NSThread.mainThread', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.mainThread', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_mainThread); return NSThread.castFromPointer(_ret, retain: true, release: true); } /// init NSThread init() { - objc.checkOsVersionInternal( - 'NSThread.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); + objc.checkOsVersionInternal('NSThread.init', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + final _ret = + _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// initWithTarget:selector:object: - NSThread initWithTarget( - objc.ObjCObjectBase target, { - required ffi.Pointer selector, - objc.ObjCObjectBase? object, - }) { - objc.checkOsVersionInternal( - 'NSThread.initWithTarget:selector:object:', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + NSThread initWithTarget(objc.ObjCObjectBase target, + {required ffi.Pointer selector, + objc.ObjCObjectBase? object}) { + objc.checkOsVersionInternal('NSThread.initWithTarget:selector:object:', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); final _ret = _objc_msgSend_1eldwyi( - this.ref.retainAndReturnPointer(), - _sel_initWithTarget_selector_object_, - target.ref.pointer, - selector, - object?.ref.pointer ?? ffi.nullptr, - ); + this.ref.retainAndReturnPointer(), + _sel_initWithTarget_selector_object_, + target.ref.pointer, + selector, + object?.ref.pointer ?? ffi.nullptr); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// initWithBlock: NSThread initWithBlock(objc.ObjCBlock block) { - objc.checkOsVersionInternal( - 'NSThread.initWithBlock:', - iOS: (false, (10, 0, 0)), - macOS: (false, (10, 12, 0)), - ); - final _ret = _objc_msgSend_nnxkei( - this.ref.retainAndReturnPointer(), - _sel_initWithBlock_, - block.ref.pointer, - ); + objc.checkOsVersionInternal('NSThread.initWithBlock:', + iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0))); + final _ret = _objc_msgSend_nnxkei(this.ref.retainAndReturnPointer(), + _sel_initWithBlock_, block.ref.pointer); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// isExecuting bool get executing { - objc.checkOsVersionInternal( - 'NSThread.isExecuting', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.isExecuting', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); return _objc_msgSend_91o635(this.ref.pointer, _sel_isExecuting); } /// isFinished bool get finished { - objc.checkOsVersionInternal( - 'NSThread.isFinished', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.isFinished', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); return _objc_msgSend_91o635(this.ref.pointer, _sel_isFinished); } /// isCancelled bool get cancelled { - objc.checkOsVersionInternal( - 'NSThread.isCancelled', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.isCancelled', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); return _objc_msgSend_91o635(this.ref.pointer, _sel_isCancelled); } /// cancel void cancel() { - objc.checkOsVersionInternal( - 'NSThread.cancel', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.cancel', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_cancel); } /// start void start() { - objc.checkOsVersionInternal( - 'NSThread.start', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.start', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_start); } /// main void main() { - objc.checkOsVersionInternal( - 'NSThread.main', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 5, 0)), - ); + objc.checkOsVersionInternal('NSThread.main', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_main); } @@ -1150,11 +871,8 @@ class NSThread extends objc.NSObject { /// allocWithZone: static NSThread allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_NSThread, - _sel_allocWithZone_, - zone, - ); + final _ret = + _objc_msgSend_1cwp428(_class_NSThread, _sel_allocWithZone_, zone); return NSThread.castFromPointer(_ret, retain: false, release: true); } @@ -1194,119 +912,82 @@ late final _class_DummyObject = objc.getClass("DummyObject"); late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); final _objc_msgSend_129vhbw = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithCounter_ = objc.registerName("initWithCounter:"); late final _sel_setCounter_ = objc.registerName("setCounter:"); final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_dealloc = objc.registerName("dealloc"); late final _sel_self = objc.registerName("self"); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); + ffi.Pointer block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer)>()(arg0); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) .cast(); ffi.Pointer -_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))(arg0); + _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. abstract final class ObjCBlock_objcObjCObject_ffiVoid { /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >(pointer, retain: retain, release: release); + static objc + .ObjCBlock Function(ffi.Pointer)> + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer)>( + pointer, + retain: retain, + release: release); /// 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. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newPointerBlock( - _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + static objc.ObjCBlock Function(ffi.Pointer)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock Function(ffi.Pointer)>( + objc.newPointerBlock(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -1316,51 +997,37 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > - fromFunction( - objc.ObjCObjectBase Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - >( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, - (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + static objc + .ObjCBlock Function(ffi.Pointer)> + fromFunction(objc.ObjCObjectBase Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer)>( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, + (ffi.Pointer arg0) => + fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive), + retain: false, + release: true); } /// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension - on - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer) - > { +extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension on objc + .ObjCBlock Function(ffi.Pointer)> { objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0), - retain: true, - release: true, - ); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0), + retain: true, + release: true); } late final _sel_retain = objc.registerName("retain"); @@ -1368,49 +1035,36 @@ late final _sel_autorelease = objc.registerName("autorelease"); /// DummyObject class DummyObject extends objc.NSObject { - DummyObject._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); + DummyObject._(ffi.Pointer pointer, + {bool retain = false, bool release = false}) + : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [DummyObject] that points to the same underlying object as [other]. DummyObject.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [DummyObject] that wraps the given raw object pointer. - DummyObject.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); + DummyObject.castFromPointer(ffi.Pointer other, + {bool retain = false, bool release = false}) + : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [DummyObject]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_DummyObject, - ); + obj.ref.pointer, _sel_isKindOfClass_, _class_DummyObject); } /// newWithCounter: static DummyObject newWithCounter(ffi.Pointer _counter) { final _ret = _objc_msgSend_129vhbw( - _class_DummyObject, - _sel_newWithCounter_, - _counter, - ); + _class_DummyObject, _sel_newWithCounter_, _counter); return DummyObject.castFromPointer(_ret, retain: false, release: true); } /// initWithCounter: DummyObject initWithCounter(ffi.Pointer _counter) { final _ret = _objc_msgSend_129vhbw( - this.ref.retainAndReturnPointer(), - _sel_initWithCounter_, - _counter, - ); + this.ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter); return DummyObject.castFromPointer(_ret, retain: false, release: true); } @@ -1426,15 +1080,10 @@ class DummyObject extends objc.NSObject { /// init DummyObject init() { - objc.checkOsVersionInternal( - 'DummyObject.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); + objc.checkOsVersionInternal('DummyObject.init', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + final _ret = + _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); return DummyObject.castFromPointer(_ret, retain: false, release: true); } @@ -1446,11 +1095,8 @@ class DummyObject extends objc.NSObject { /// allocWithZone: static DummyObject allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_DummyObject, - _sel_allocWithZone_, - zone, - ); + final _ret = + _objc_msgSend_1cwp428(_class_DummyObject, _sel_allocWithZone_, zone); return DummyObject.castFromPointer(_ret, retain: false, release: true); } @@ -1483,38 +1129,33 @@ class DummyObject extends objc.NSObject { } int _ObjCBlock_Int32_Int32_fnPtrTrampoline( - ffi.Pointer block, - int arg0, -) => block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, int arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_Int32_Int32_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Int32) - >(_ObjCBlock_Int32_Int32_fnPtrTrampoline, 0) + ffi.Int32 Function(ffi.Pointer, ffi.Int32)>( + _ObjCBlock_Int32_Int32_fnPtrTrampoline, 0) .cast(); int _ObjCBlock_Int32_Int32_closureTrampoline( - ffi.Pointer block, - int arg0, -) => (objc.getBlockClosure(block) as int Function(int))(arg0); + ffi.Pointer block, int arg0) => + (objc.getBlockClosure(block) as int Function(int))(arg0); ffi.Pointer _ObjCBlock_Int32_Int32_closureCallable = ffi.Pointer.fromFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Int32) - >(_ObjCBlock_Int32_Int32_closureTrampoline, 0) + ffi.Int32 Function(ffi.Pointer, ffi.Int32)>( + _ObjCBlock_Int32_Int32_closureTrampoline, 0) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -1522,12 +1163,13 @@ abstract final class ObjCBlock_Int32_Int32 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_Int32_Int32_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); + ffi.Pointer> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_Int32_Int32_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -1538,73 +1180,57 @@ abstract final class ObjCBlock_Int32_Int32 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - int Function(int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_Int32_Int32_closureCallable, - (int arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + int Function(int) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock(_ObjCBlock_Int32_Int32_closureCallable, + (int arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_Int32_Int32_CallExtension on objc.ObjCBlock { - int call(int arg0) => - ref.pointer.ref.invoke + int call(int arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer block, - ffi.Int32 arg0, - ) - > - >() + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer block, ffi.Int32 arg0)>>() .asFunction, int)>()( - ref.pointer, - arg0, - ); + ref.pointer, arg0); } typedef IntBlock = ffi.Pointer; typedef DartIntBlock = objc.ObjCBlock; double _ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline( - ffi.Pointer block, - double arg0, -) => block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, double arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Float Function(ffi.Pointer, ffi.Float) - >(_ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline, 0.0) + ffi.Float Function(ffi.Pointer, ffi.Float)>( + _ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline, 0.0) .cast(); double _ObjCBlock_ffiFloat_ffiFloat_closureTrampoline( - ffi.Pointer block, - double arg0, -) => (objc.getBlockClosure(block) as double Function(double))(arg0); + ffi.Pointer block, double arg0) => + (objc.getBlockClosure(block) as double Function(double))(arg0); ffi.Pointer _ObjCBlock_ffiFloat_ffiFloat_closureCallable = ffi.Pointer.fromFunction< - ffi.Float Function(ffi.Pointer, ffi.Float) - >(_ObjCBlock_ffiFloat_ffiFloat_closureTrampoline, 0.0) + ffi.Float Function(ffi.Pointer, ffi.Float)>( + _ObjCBlock_ffiFloat_ffiFloat_closureTrampoline, 0.0) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiFloat_ffiFloat { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -1612,15 +1238,13 @@ abstract final class ObjCBlock_ffiFloat_ffiFloat { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + ffi.Pointer> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -1631,17 +1255,13 @@ abstract final class ObjCBlock_ffiFloat_ffiFloat { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - double Function(double) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiFloat_ffiFloat_closureCallable, - (double arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + double Function(double) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock(_ObjCBlock_ffiFloat_ffiFloat_closureCallable, + (double arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); } /// Call operator for `objc.ObjCBlock`. @@ -1649,53 +1269,46 @@ extension ObjCBlock_ffiFloat_ffiFloat_CallExtension on objc.ObjCBlock { double call(double arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer block, - ffi.Float arg0, - ) - > - >() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer block, ffi.Float arg0)>>() .asFunction< - double Function(ffi.Pointer, double) - >()(ref.pointer, arg0); + double Function( + ffi.Pointer, double)>()(ref.pointer, arg0); } typedef FloatBlock = ffi.Pointer; typedef DartFloatBlock = objc.ObjCBlock; double _ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline( - ffi.Pointer block, - double arg0, -) => block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, double arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Double Function(ffi.Pointer, ffi.Double) - >(_ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline, 0.0) + ffi.Double Function( + ffi.Pointer, ffi.Double)>( + _ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline, 0.0) .cast(); double _ObjCBlock_ffiDouble_ffiDouble_closureTrampoline( - ffi.Pointer block, - double arg0, -) => (objc.getBlockClosure(block) as double Function(double))(arg0); + ffi.Pointer block, double arg0) => + (objc.getBlockClosure(block) as double Function(double))(arg0); ffi.Pointer _ObjCBlock_ffiDouble_ffiDouble_closureCallable = ffi.Pointer.fromFunction< - ffi.Double Function(ffi.Pointer, ffi.Double) - >(_ObjCBlock_ffiDouble_ffiDouble_closureTrampoline, 0.0) + ffi.Double Function( + ffi.Pointer, ffi.Double)>( + _ObjCBlock_ffiDouble_ffiDouble_closureTrampoline, 0.0) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiDouble_ffiDouble { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -1703,15 +1316,13 @@ abstract final class ObjCBlock_ffiDouble_ffiDouble { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + ffi.Pointer> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -1722,17 +1333,13 @@ abstract final class ObjCBlock_ffiDouble_ffiDouble { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - double Function(double) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiDouble_ffiDouble_closureCallable, - (double arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + double Function(double) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock(_ObjCBlock_ffiDouble_ffiDouble_closureCallable, + (double arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); } /// Call operator for `objc.ObjCBlock`. @@ -1740,53 +1347,42 @@ extension ObjCBlock_ffiDouble_ffiDouble_CallExtension on objc.ObjCBlock { double call(double arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer block, - ffi.Double arg0, - ) - > - >() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer block, ffi.Double arg0)>>() .asFunction< - double Function(ffi.Pointer, double) - >()(ref.pointer, arg0); + double Function( + ffi.Pointer, double)>()(ref.pointer, arg0); } typedef DoubleBlock = ffi.Pointer; typedef DartDoubleBlock = objc.ObjCBlock; Vec4 _ObjCBlock_Vec4_Vec4_fnPtrTrampoline( - ffi.Pointer block, - Vec4 arg0, -) => block.ref.target - .cast>() - .asFunction()(arg0); -ffi.Pointer _ObjCBlock_Vec4_Vec4_fnPtrCallable = - ffi.Pointer.fromFunction< - Vec4 Function(ffi.Pointer, Vec4) - >(_ObjCBlock_Vec4_Vec4_fnPtrTrampoline) - .cast(); + ffi.Pointer block, Vec4 arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); +ffi.Pointer _ObjCBlock_Vec4_Vec4_fnPtrCallable = ffi.Pointer + .fromFunction, Vec4)>( + _ObjCBlock_Vec4_Vec4_fnPtrTrampoline) + .cast(); Vec4 _ObjCBlock_Vec4_Vec4_closureTrampoline( - ffi.Pointer block, - Vec4 arg0, -) => (objc.getBlockClosure(block) as Vec4 Function(Vec4))(arg0); -ffi.Pointer _ObjCBlock_Vec4_Vec4_closureCallable = - ffi.Pointer.fromFunction< - Vec4 Function(ffi.Pointer, Vec4) - >(_ObjCBlock_Vec4_Vec4_closureTrampoline) - .cast(); + ffi.Pointer block, Vec4 arg0) => + (objc.getBlockClosure(block) as Vec4 Function(Vec4))(arg0); +ffi.Pointer _ObjCBlock_Vec4_Vec4_closureCallable = ffi.Pointer + .fromFunction, Vec4)>( + _ObjCBlock_Vec4_Vec4_closureTrampoline) + .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Vec4_Vec4 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -1794,12 +1390,11 @@ abstract final class ObjCBlock_Vec4_Vec4 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_Vec4_Vec4_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); + ffi.Pointer> ptr) => + objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_Vec4_Vec4_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -1810,33 +1405,25 @@ abstract final class ObjCBlock_Vec4_Vec4 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - Vec4 Function(Vec4) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_Vec4_Vec4_closureCallable, - (Vec4 arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + Vec4 Function(Vec4) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock(_ObjCBlock_Vec4_Vec4_closureCallable, + (Vec4 arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_Vec4_Vec4_CallExtension on objc.ObjCBlock { - Vec4 call(Vec4 arg0) => - ref.pointer.ref.invoke + Vec4 call(Vec4 arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - Vec4 Function(ffi.Pointer block, Vec4 arg0) - > - >() + ffi.NativeFunction< + Vec4 Function( + ffi.Pointer block, Vec4 arg0)>>() .asFunction, Vec4)>()( - ref.pointer, - arg0, - ); + ref.pointer, arg0); } typedef Vec4Block = ffi.Pointer; @@ -1844,66 +1431,53 @@ typedef DartVec4Block = objc.ObjCBlock; typedef VoidBlock = ffi.Pointer; typedef DartVoidBlock = objc.ObjCBlock; void _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0) { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline) + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, -) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0) { try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -1912,71 +1486,53 @@ void _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable = ffi + .NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock)>( + pointer, + retain: retain, + release: release); /// 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. - static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + static objc.ObjCBlock)> fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -1987,18 +1543,15 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - fromFunction( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + fromFunction(void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -2010,23 +1563,19 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - listener( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { + listener(void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); + wrapper, + retain: false, + release: true); } /// Creates a blocking block from a Dart function. @@ -2040,35 +1589,27 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock)> - blocking( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { + blocking(void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( - raw, - rawListener, - objc.objCContext, - ); + raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); + wrapper, + retain: false, + release: true); } } @@ -2077,74 +1618,58 @@ extension ObjCBlock_ffiVoid_objcObjCSelector_CallExtension on objc.ObjCBlock)> { void call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Pointer arg0)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0); + void Function(ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0); } typedef SelectorBlock = ffi.Pointer; -typedef DartSelectorBlock = - objc.ObjCBlock)>; +typedef DartSelectorBlock + = objc.ObjCBlock)>; ffi.Pointer _ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer)>()(arg0); ffi.Pointer _ObjCBlock_DummyObject_DummyObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline) .cast(); ffi.Pointer -_ObjCBlock_DummyObject_DummyObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); + _ObjCBlock_DummyObject_DummyObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_DummyObject_DummyObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_DummyObject_DummyObject_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_DummyObject_DummyObject_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_DummyObject_DummyObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -2152,20 +1677,16 @@ abstract final class ObjCBlock_DummyObject_DummyObject { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_DummyObject_DummyObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_DummyObject_DummyObject_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -2176,98 +1697,84 @@ abstract final class ObjCBlock_DummyObject_DummyObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - DummyObject Function(DummyObject) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_DummyObject_DummyObject_closureCallable, - (ffi.Pointer arg0) => fn( - DummyObject.castFromPointer(arg0, retain: true, release: true), - ).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + DummyObject Function(DummyObject) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_DummyObject_DummyObject_closureCallable, + (ffi.Pointer arg0) => fn( + DummyObject.castFromPointer(arg0, + retain: true, release: true)) + .ref + .retainAndAutorelease(), + keepIsolateAlive), + retain: false, + release: true); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_DummyObject_DummyObject_CallExtension on objc.ObjCBlock { DummyObject call(DummyObject arg0) => DummyObject.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>()( + ref.pointer, arg0.ref.pointer), + retain: true, + release: true); } typedef ObjectBlock = ffi.Pointer; typedef DartObjectBlock = objc.ObjCBlock; ffi.Pointer -_ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); + _ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer)>()(arg0); ffi.Pointer _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline) .cast(); ffi.Pointer -_ObjCBlock_DummyObject_DummyObject$1_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); + _ObjCBlock_DummyObject_DummyObject$1_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_DummyObject_DummyObject$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_DummyObject_DummyObject$1_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_DummyObject_DummyObject$1_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_DummyObject_DummyObject$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -2275,21 +1782,18 @@ abstract final class ObjCBlock_DummyObject_DummyObject$1 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable, + ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -2300,147 +1804,104 @@ abstract final class ObjCBlock_DummyObject_DummyObject$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - DummyObject? Function(DummyObject?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_DummyObject_DummyObject$1_closureCallable, - (ffi.Pointer arg0) => - fn( - arg0.address == 0 - ? null - : DummyObject.castFromPointer( - arg0, - retain: true, - release: true, - ), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); + DummyObject? Function(DummyObject?) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_DummyObject_DummyObject$1_closureCallable, + (ffi.Pointer arg0) => + fn(arg0.address == 0 + ? null + : DummyObject.castFromPointer(arg0, retain: true, release: true)) + ?.ref + .retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive), + retain: false, + release: true); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_DummyObject_DummyObject$1_CallExtension on objc.ObjCBlock { - DummyObject? call(DummyObject? arg0) => - ref.pointer.ref.invoke + DummyObject? call(DummyObject? arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer, ffi.Pointer)>() + (ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) .address == 0 ? null : DummyObject.castFromPointer( ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), + .cast Function(ffi.Pointer block, ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), retain: true, - release: true, - ); + release: true); } typedef NullableObjectBlock = ffi.Pointer; -typedef DartNullableObjectBlock = - objc.ObjCBlock; +typedef DartNullableObjectBlock + = objc.ObjCBlock; ffi.Pointer _ObjCBlock_NSString_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - >() - .asFunction< - ffi.Pointer Function(ffi.Pointer) - >()(arg0); + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer)>()(arg0); ffi.Pointer _ObjCBlock_NSString_NSString_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSString_NSString_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_NSString_NSString_fnPtrTrampoline) .cast(); ffi.Pointer _ObjCBlock_NSString_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as ffi.Pointer Function(ffi.Pointer))( - arg0, - ); + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as ffi.Pointer Function( + ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_NSString_NSString_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_NSString_NSString_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_NSString_NSString_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_NSString_NSString { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// 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. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_NSString_NSString_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_NSString_NSString_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -2451,111 +1912,74 @@ abstract final class ObjCBlock_NSString_NSString { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - objc.NSString? Function(objc.NSString?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_NSString_NSString_closureCallable, - (ffi.Pointer arg0) => - fn( - arg0.address == 0 - ? null - : objc.NSString.castFromPointer( - arg0, - retain: true, - release: true, - ), - )?.ref.retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive, - ), - retain: false, - release: true, - ); + objc.NSString? Function(objc.NSString?) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_NSString_NSString_closureCallable, + (ffi.Pointer arg0) => + fn(arg0.address == 0 ? null : objc.NSString.castFromPointer(arg0, retain: true, release: true)) + ?.ref + .retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive), + retain: false, + release: true); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_NSString_NSString_CallExtension on objc.ObjCBlock { - objc.NSString? call(objc.NSString? arg0) => - ref.pointer.ref.invoke + objc.NSString? call(objc.NSString? arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer, ffi.Pointer)>() + (ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) .address == 0 ? null : objc.NSString.castFromPointer( ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), + .cast Function(ffi.Pointer block, ffi.Pointer arg0)>>() + .asFunction Function(ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), retain: true, - release: true, - ); + release: true); } IntBlock _ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline( - ffi.Pointer block, - IntBlock arg0, -) => block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, IntBlock arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_IntBlock_IntBlock_fnPtrCallable = ffi.Pointer.fromFunction< - IntBlock Function(ffi.Pointer, IntBlock) - >(_ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline) + IntBlock Function(ffi.Pointer, + IntBlock)>(_ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline) .cast(); IntBlock _ObjCBlock_IntBlock_IntBlock_closureTrampoline( - ffi.Pointer block, - IntBlock arg0, -) => (objc.getBlockClosure(block) as IntBlock Function(IntBlock))(arg0); + ffi.Pointer block, IntBlock arg0) => + (objc.getBlockClosure(block) as IntBlock Function(IntBlock))(arg0); ffi.Pointer _ObjCBlock_IntBlock_IntBlock_closureCallable = ffi.Pointer.fromFunction< - IntBlock Function(ffi.Pointer, IntBlock) - >(_ObjCBlock_IntBlock_IntBlock_closureTrampoline) + IntBlock Function(ffi.Pointer, + IntBlock)>(_ObjCBlock_IntBlock_IntBlock_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock Function(objc.ObjCBlock)>`. abstract final class ObjCBlock_IntBlock_IntBlock { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock, - ) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock, - ) - >(pointer, retain: retain, release: release); + objc.ObjCBlock Function( + objc.ObjCBlock)> + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)>(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -2563,25 +1987,16 @@ abstract final class ObjCBlock_IntBlock_IntBlock { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock, - ) - > - fromFunctionPointer( - ffi.Pointer> ptr, - ) => - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock, - ) - >( - objc.newPointerBlock( - _ObjCBlock_IntBlock_IntBlock_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + objc.ObjCBlock Function( + objc.ObjCBlock)> + fromFunctionPointer(ffi.Pointer> ptr) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_IntBlock_IntBlock_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -2591,108 +2006,75 @@ abstract final class ObjCBlock_IntBlock_IntBlock { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock, - ) - > - fromFunction( - DartIntBlock Function(DartIntBlock) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock, - ) - >( - objc.newClosureBlock( - _ObjCBlock_IntBlock_IntBlock_closureCallable, - (IntBlock arg0) => fn( - ObjCBlock_Int32_Int32.castFromPointer( - arg0, - retain: true, - release: true, - ), - ).ref.retainAndAutorelease(), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + static objc.ObjCBlock Function(objc.ObjCBlock)> + fromFunction(DartIntBlock Function(DartIntBlock) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_IntBlock_IntBlock_closureCallable, + (IntBlock arg0) => + fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, retain: true, release: true)).ref.retainAndAutorelease(), + keepIsolateAlive), + retain: false, + release: true); } /// Call operator for `objc.ObjCBlock Function(objc.ObjCBlock)>`. -extension ObjCBlock_IntBlock_IntBlock_CallExtension - on - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock, - ) - > { +extension ObjCBlock_IntBlock_IntBlock_CallExtension on objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)> { DartIntBlock call(DartIntBlock arg0) => ObjCBlock_Int32_Int32.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - IntBlock Function( - ffi.Pointer block, - IntBlock arg0, - ) - > - >() - .asFunction< - IntBlock Function(ffi.Pointer, IntBlock) - >()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true, - ); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + IntBlock Function( + ffi.Pointer block, IntBlock arg0)>>() + .asFunction< + IntBlock Function(ffi.Pointer, + IntBlock)>()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true); } typedef BlockBlock = ffi.Pointer; -typedef DartBlockBlock = - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock, - ) - >; +typedef DartBlockBlock = objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock)>; void _ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline( - ffi.Pointer block, - IntBlock arg0, -) => block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, IntBlock arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, IntBlock) - >(_ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, + IntBlock)>(_ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_IntBlock_closureTrampoline( - ffi.Pointer block, - IntBlock arg0, -) => (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); + ffi.Pointer block, IntBlock arg0) => + (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_IntBlock_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, IntBlock) - >(_ObjCBlock_ffiVoid_IntBlock_closureTrampoline) + ffi.Void Function(ffi.Pointer, + IntBlock)>(_ObjCBlock_ffiVoid_IntBlock_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_IntBlock_listenerTrampoline( - ffi.Pointer block, - IntBlock arg0, -) { + ffi.Pointer block, IntBlock arg0) { (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable, IntBlock)> -_ObjCBlock_ffiVoid_IntBlock_listenerCallable = - ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, IntBlock) - >.listener(_ObjCBlock_ffiVoid_IntBlock_listenerTrampoline) + _ObjCBlock_ffiVoid_IntBlock_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + IntBlock)>.listener(_ObjCBlock_ffiVoid_IntBlock_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - IntBlock arg0, -) { + ffi.Pointer block, + ffi.Pointer waiter, + IntBlock arg0) { try { (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); } catch (e) { @@ -2703,74 +2085,51 @@ void _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - IntBlock, - ) -> -_ObjCBlock_ffiVoid_IntBlock_blockingCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - IntBlock, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) + ffi.Pointer, ffi.Pointer, IntBlock)> + _ObjCBlock_ffiVoid_IntBlock_blockingCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, IntBlock)>.isolateLocal( + _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - IntBlock, - ) -> -_ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - IntBlock, - ) - >.listener(_ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) + ffi.Pointer, ffi.Pointer, IntBlock)> + _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + IntBlock)>.listener(_ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_IntBlock { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - >(pointer, retain: retain, release: release); + ffi.Void Function(objc.ObjCBlock)> + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock< + ffi.Void Function( + objc.ObjCBlock)>(pointer, + retain: retain, release: release); /// 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. - static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - > - fromFunctionPointer( - ffi.Pointer> ptr, - ) => - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - >( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + static objc + .ObjCBlock)> + fromFunctionPointer( + ffi.Pointer> + ptr) => + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -2781,29 +2140,17 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - > - fromFunction( - void Function(DartIntBlock) fn, { - bool keepIsolateAlive = true, - }) => - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - >( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_closureCallable, - (IntBlock arg0) => fn( - ObjCBlock_Int32_Int32.castFromPointer( - arg0, - retain: true, - release: true, - ), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + ffi.Void Function(objc.ObjCBlock)> fromFunction( + void Function(DartIntBlock) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_IntBlock_closureCallable, + (IntBlock arg0) => + fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -2815,25 +2162,20 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - > - listener(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { + ffi.Void Function(objc.ObjCBlock)> + listener(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_listenerCallable.nativeFunction.cast(), - (IntBlock arg0) => fn( - ObjCBlock_Int32_Int32.castFromPointer( - arg0, - retain: false, - release: true, - ), - ), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_IntBlock_listenerCallable.nativeFunction.cast(), + (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, + retain: false, release: true)), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_f167m6(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - >(wrapper, retain: false, release: true); + ffi.Void Function(objc.ObjCBlock)>( + wrapper, + retain: false, + release: true); } /// Creates a blocking block from a Dart function. @@ -2847,132 +2189,94 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - > - blocking(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { + ffi.Void Function(objc.ObjCBlock)> + blocking(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_blockingCallable.nativeFunction.cast(), - (IntBlock arg0) => fn( - ObjCBlock_Int32_Int32.castFromPointer( - arg0, - retain: false, - release: true, - ), - ), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_IntBlock_blockingCallable.nativeFunction.cast(), + (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, + retain: false, release: true)), + keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable.nativeFunction - .cast(), - (IntBlock arg0) => fn( - ObjCBlock_Int32_Int32.castFromPointer( - arg0, - retain: false, - release: true, - ), - ), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable.nativeFunction + .cast(), + (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, + retain: false, release: true)), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( - raw, - rawListener, - objc.objCContext, - ); + raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - >(wrapper, retain: false, release: true); + ffi.Void Function(objc.ObjCBlock)>( + wrapper, + retain: false, + release: true); } } /// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_IntBlock_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - > { +extension ObjCBlock_ffiVoid_IntBlock_CallExtension on objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)> { void call(DartIntBlock arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - IntBlock arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, IntBlock) - >()(ref.pointer, arg0.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, IntBlock arg0)>>() + .asFunction< + void Function(ffi.Pointer, IntBlock)>()( + ref.pointer, arg0.ref.pointer); } typedef ListenerBlock = ffi.Pointer; -typedef DartListenerBlock = - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock) - >; +typedef DartListenerBlock = objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock)>; void _ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_DummyObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_DummyObject_closureTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_DummyObject_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { - (objc.getBlockClosure(block) as void Function(ffi.Pointer))( - arg0, - ); + ffi.Pointer block, ffi.Pointer arg0) { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_DummyObject_listenerCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_DummyObject_listenerTrampoline) + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, -) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0) { try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -2981,50 +2285,34 @@ void _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_DummyObject_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable = ffi + .NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_DummyObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -3032,18 +2320,15 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -3054,18 +2339,17 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(DummyObject) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_closureCallable, - (ffi.Pointer arg0) => - fn(DummyObject.castFromPointer(arg0, retain: true, release: true)), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + void Function(DummyObject) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject_closureCallable, + (ffi.Pointer arg0) => fn( + DummyObject.castFromPointer(arg0, + retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -3077,22 +2361,17 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(DummyObject) fn, { - bool keepIsolateAlive = true, - }) { + void Function(DummyObject) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_DummyObject_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -3106,34 +2385,25 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(DummyObject) fn, { - bool keepIsolateAlive = true, - }) { + void Function(DummyObject) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_DummyObject_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => - fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( - raw, - rawListener, - objc.objCContext, - ); + raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } } @@ -3142,86 +2412,64 @@ extension ObjCBlock_ffiVoid_DummyObject_CallExtension on objc.ObjCBlock { void call(DummyObject arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Pointer arg0)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer); + void Function(ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0.ref.pointer); } typedef ObjectListenerBlock = ffi.Pointer; -typedef DartObjectListenerBlock = - objc.ObjCBlock; +typedef DartObjectListenerBlock + = objc.ObjCBlock; void _ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { - (objc.getBlockClosure(block) as void Function(ffi.Pointer))( - arg0, - ); + ffi.Pointer block, ffi.Pointer arg0) { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_DummyObject$1_listenerCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline) + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, -) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0) { try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -3230,50 +2478,34 @@ void _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_DummyObject$1_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable = ffi + .NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -3281,18 +2513,15 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -3303,21 +2532,18 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(DummyObject?) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_closureCallable, - (ffi.Pointer arg0) => fn( - arg0.address == 0 - ? null - : DummyObject.castFromPointer(arg0, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + void Function(DummyObject?) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject$1_closureCallable, + (ffi.Pointer arg0) => fn(arg0.address == 0 + ? null + : DummyObject.castFromPointer(arg0, + retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -3329,25 +2555,18 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(DummyObject?) fn, { - bool keepIsolateAlive = true, - }) { + void Function(DummyObject?) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn( - arg0.address == 0 + _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0.address == 0 ? null - : DummyObject.castFromPointer(arg0, retain: false, release: true), - ), - keepIsolateAlive, - ); + : DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -3361,40 +2580,27 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(DummyObject?) fn, { - bool keepIsolateAlive = true, - }) { + void Function(DummyObject?) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn( - arg0.address == 0 + _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0.address == 0 ? null - : DummyObject.castFromPointer(arg0, retain: false, release: true), - ), - keepIsolateAlive, - ); + : DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn( - arg0.address == 0 + _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0.address == 0 ? null - : DummyObject.castFromPointer(arg0, retain: false, release: true), - ), - keepIsolateAlive, - ); + : DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( - raw, - rawListener, - objc.objCContext, - ); + raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } } @@ -3402,125 +2608,78 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { extension ObjCBlock_ffiVoid_DummyObject$1_CallExtension on objc.ObjCBlock { void call(DummyObject? arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer, + ffi.Pointer)>()( + ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); } typedef NullableListenerBlock = ffi.Pointer; -typedef DartNullableListenerBlock = - objc.ObjCBlock; +typedef DartNullableListenerBlock + = objc.ObjCBlock; void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2, -) => + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2) => block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function( - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - arg2, - ); + ffi.NativeFunction< + ffi.Void Function( + Vec2 arg0, Vec4 arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function( + Vec2, Vec4, ffi.Pointer)>()(arg0, arg1, arg2); ffi.Pointer _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, Vec2, Vec4, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function(Vec2, Vec4, ffi.Pointer))( - arg0, - arg1, - arg2, - ); + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2) => + (objc.getBlockClosure(block) as void Function( + Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); ffi.Pointer _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline) + ffi.Void Function(ffi.Pointer, Vec2, Vec4, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function(Vec2, Vec4, ffi.Pointer))( - arg0, - arg1, - arg2, - ); + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2) { + (objc.getBlockClosure(block) as void Function( + Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline) + ffi.Void Function(ffi.Pointer, Vec2, Vec4, + ffi.Pointer)> + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, Vec2, Vec4, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2, -) { + ffi.Pointer block, + ffi.Pointer waiter, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2) { try { - (objc.getBlockClosure(block) - as void Function(Vec2, Vec4, ffi.Pointer))( - arg0, - arg1, - arg2, - ); + (objc.getBlockClosure(block) as void Function( + Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -3529,85 +2688,55 @@ void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, Vec2, Vec4, ffi.Pointer)> + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, Vec2, Vec4, ffi.Pointer)> + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable = ffi + .NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// 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. - static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2, - ) - > - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + static objc.ObjCBlock fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(Vec2 arg0, Vec4 arg1, + ffi.Pointer arg2)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -3617,23 +2746,19 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock - fromFunction( - void Function(Vec2, Vec4, objc.NSObject) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable, - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: true, release: true), - ), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + static objc.ObjCBlock fromFunction( + void Function(Vec2, Vec4, objc.NSObject) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable, + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -3645,26 +2770,20 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(Vec2, Vec4, objc.NSObject) fn, { - bool keepIsolateAlive = true, - }) { + void Function(Vec2, Vec4, objc.NSObject) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable.nativeFunction - .cast(), - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable.nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true)), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_ru30ue(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -3678,134 +2797,102 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(Vec2, Vec4, objc.NSObject) fn, { - bool keepIsolateAlive = true, - }) { + void Function(Vec2, Vec4, objc.NSObject) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable.nativeFunction - .cast(), - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable.nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true)), + keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable - .nativeFunction - .cast(), - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: false, release: true), - ), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable + .nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true)), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( - raw, - rawListener, - objc.objCContext, - ); + raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_CallExtension on objc.ObjCBlock { - void call(Vec2 arg0, Vec4 arg1, objc.NSObject arg2) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2.ref.pointer); + void call(Vec2 arg0, Vec4 arg1, objc.NSObject arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, Vec2, Vec4, + ffi.Pointer)>()( + ref.pointer, arg0, arg1, arg2.ref.pointer); } typedef StructListenerBlock = ffi.Pointer; -typedef DartStructListenerBlock = - objc.ObjCBlock; +typedef DartStructListenerBlock + = objc.ObjCBlock; void _ObjCBlock_ffiVoid_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast< - ffi.NativeFunction arg0)> - >() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0) => + block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSString_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSString_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSString_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_NSString_closureTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>( + _ObjCBlock_ffiVoid_NSString_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSString_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { - (objc.getBlockClosure(block) as void Function(ffi.Pointer))( - arg0, - ); + ffi.Pointer block, ffi.Pointer arg0) { + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_listenerCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSString_listenerTrampoline) + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_NSString_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSString_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, -) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0) { try { - (objc.getBlockClosure(block) - as void Function(ffi.Pointer))(arg0); + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -3814,50 +2901,33 @@ void _ObjCBlock_ffiVoid_NSString_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_NSString_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_NSString_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_NSString_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSString_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_NSString_blockingListenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_NSString_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSString { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -3865,15 +2935,15 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_NSString_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_NSString_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -3884,18 +2954,17 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(objc.NSString) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_closureCallable, - (ffi.Pointer arg0) => - fn(objc.NSString.castFromPointer(arg0, retain: true, release: true)), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + void Function(objc.NSString) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_closureCallable, + (ffi.Pointer arg0) => fn( + objc.NSString.castFromPointer(arg0, + retain: true, release: true)), + keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -3907,22 +2976,17 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { + void Function(objc.NSString) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(objc.NSString.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_NSString_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -3936,34 +3000,25 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(objc.NSString) fn, { - bool keepIsolateAlive = true, - }) { + void Function(objc.NSString) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(objc.NSString.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_NSString_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => - fn(objc.NSString.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_NSString_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn( + objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( - raw, - rawListener, - objc.objCContext, - ); + raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } } @@ -3972,112 +3027,75 @@ extension ObjCBlock_ffiVoid_NSString_CallExtension on objc.ObjCBlock { void call(objc.NSString arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Pointer arg0)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(ref.pointer, arg0.ref.pointer); + void Function(ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0.ref.pointer); } typedef NSStringListenerBlock = ffi.Pointer; -typedef DartNSStringListenerBlock = - objc.ObjCBlock; +typedef DartNSStringListenerBlock + = objc.ObjCBlock; void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline( - ffi.Pointer block, - int arg0, - Vec4 arg1, - ffi.Pointer arg2, -) => + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int32 arg0, - Vec4 arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction)>()( - arg0, - arg1, - arg2, - ); + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32 arg0, Vec4 arg1, + ffi.Pointer arg2)>>() + .asFunction)>()( + arg0, arg1, arg2); ffi.Pointer _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int32, + Vec4, ffi.Pointer)>( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline( - ffi.Pointer block, - int arg0, - Vec4 arg1, - ffi.Pointer arg2, -) => - (objc.getBlockClosure(block) - as void Function(int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2) => + (objc.getBlockClosure(block) as void Function( + int, Vec4, ffi.Pointer))(arg0, arg1, arg2); ffi.Pointer _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int32, + Vec4, ffi.Pointer)>( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline( - ffi.Pointer block, - int arg0, - Vec4 arg1, - ffi.Pointer arg2, -) { - (objc.getBlockClosure(block) - as void Function(int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2) { + (objc.getBlockClosure(block) as void Function( + int, Vec4, ffi.Pointer))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int32, Vec4, + ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Int32, Vec4, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0, - Vec4 arg1, - ffi.Pointer arg2, -) { + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, + Vec4 arg1, + ffi.Pointer arg2) { try { - (objc.getBlockClosure(block) - as void Function(int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) as void Function( + int, Vec4, ffi.Pointer))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -4086,62 +3104,43 @@ void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Int32, Vec4, ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Int32, Vec4, ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable = ffi + .NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// Returns a block that wraps the given raw block pointer. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) - > - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => - objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); + static objc + .ObjCBlock)> + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>( + pointer, + retain: retain, + release: release); /// Creates a block from a C function pointer. /// @@ -4149,24 +3148,14 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) - > - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Int32 arg0, Vec4 arg1, ffi.Pointer arg2) - > - > - ptr, - ) => + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)> fromFunctionPointer( + ffi.Pointer arg2)>> + ptr) => objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable, - ptr.cast(), - ), - retain: false, - release: true, - ); + objc.newPointerBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -4177,22 +3166,17 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) - > - fromFunction( - void Function(int, Vec4, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)> fromFunction( + void Function(int, Vec4, ffi.Pointer) fn, + {bool keepIsolateAlive = true}) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable, - (int arg0, Vec4 arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable, + (int arg0, Vec4 arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -4203,24 +3187,21 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) - > - listener( - void Function(int, Vec4, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { + static objc + .ObjCBlock)> + listener(void Function(int, Vec4, ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable.nativeFunction - .cast(), - (int arg0, Vec4 arg1, ffi.Pointer arg2) => fn(arg0, arg1, arg2), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable.nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_li50va(raw); objc.objectRelease(raw.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) - >(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>(wrapper, + retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -4233,128 +3214,94 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) - > - blocking( - void Function(int, Vec4, ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { + static objc + .ObjCBlock)> + blocking(void Function(int, Vec4, ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable.nativeFunction - .cast(), - (int arg0, Vec4 arg1, ffi.Pointer arg2) => fn(arg0, arg1, arg2), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable.nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable - .nativeFunction - .cast(), - (int arg0, Vec4 arg1, ffi.Pointer arg2) => fn(arg0, arg1, arg2), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable + .nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_li50va( - raw, - rawListener, - objc.objCContext, - ); + raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) - >(wrapper, retain: false, release: true); + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>(wrapper, + retain: false, release: true); } } /// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_CallExtension - on - objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) - > { - void call(int arg0, Vec4 arg1, ffi.Pointer arg2) => ref - .pointer - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Int32 arg0, - Vec4 arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - Vec4, - ffi.Pointer, - ) - >()(ref.pointer, arg0, arg1, arg2); +extension ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_CallExtension on objc + .ObjCBlock)> { + void call(int arg0, Vec4 arg1, ffi.Pointer arg2) => + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Int32 arg0, Vec4 arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer, int, Vec4, + ffi.Pointer)>()(ref.pointer, arg0, arg1, arg2); } typedef NoTrampolineListenerBlock = ffi.Pointer; -typedef DartNoTrampolineListenerBlock = - objc.ObjCBlock)>; +typedef DartNoTrampolineListenerBlock + = objc.ObjCBlock)>; void _ObjCBlock_ffiVoid_Int32_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => block.ref.target - .cast arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, ffi.Pointer arg0) => + block.ref.target + .cast< + ffi + .NativeFunction arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Int32_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_Int32_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_Int32_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) => (objc.getBlockClosure(block) as void Function(ffi.Pointer))( - arg0, -); + ffi.Pointer block, ffi.Pointer arg0) => + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Int32_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >(_ObjCBlock_ffiVoid_Int32_closureTrampoline) + ffi.Void Function( + ffi.Pointer, ffi.Pointer)>( + _ObjCBlock_ffiVoid_Int32_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { + ffi.Pointer block, ffi.Pointer arg0) { (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Pointer) -> -_ObjCBlock_ffiVoid_Int32_listenerCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_Int32_listenerTrampoline) + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Int32_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0, -) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0) { try { - (objc.getBlockClosure(block) as void Function(ffi.Pointer))( - arg0, - ); + (objc.getBlockClosure(block) as void Function( + ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -4363,51 +3310,30 @@ void _ObjCBlock_ffiVoid_Int32_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_Int32_blockingCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_Int32_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_blockingCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>.isolateLocal( + _ObjCBlock_ffiVoid_Int32_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_Int32_blockingListenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_Int32_blockingTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)> + _ObjCBlock_ffiVoid_Int32_blockingListenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>.listener( + _ObjCBlock_ffiVoid_Int32_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_Int32 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock)>( - pointer, - retain: retain, - release: release, - ); + castFromPointer(ffi.Pointer pointer, + {bool retain = false, bool release = false}) => + objc.ObjCBlock)>(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -4415,16 +3341,15 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction arg0)> - > - ptr, - ) => objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_Int32_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0)>> + ptr) => + objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_ffiVoid_Int32_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -4435,17 +3360,13 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock)>( + objc.newClosureBlock(_ObjCBlock_ffiVoid_Int32_closureCallable, + (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -4457,21 +3378,16 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { + void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Int32_listenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_yhkuco(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock)>(wrapper, + retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -4485,31 +3401,22 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, { - bool keepIsolateAlive = true, - }) { + void Function(ffi.Pointer) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Int32_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_blockingListenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Int32_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( - raw, - rawListener, - objc.objCContext, - ); + raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock)>(wrapper, + retain: false, release: true); } } @@ -4518,59 +3425,48 @@ extension ObjCBlock_ffiVoid_Int32_CallExtension on objc.ObjCBlock)> { void call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block, + ffi.Pointer arg0)>>() .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(ref.pointer, arg0); + void Function(ffi.Pointer, + ffi.Pointer)>()(ref.pointer, arg0); } void _ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline( - ffi.Pointer block, - int arg0, -) => block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, int arg0) => + block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Int32$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Int32) - >(_ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Int32)>(_ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32$1_closureTrampoline( - ffi.Pointer block, - int arg0, -) => (objc.getBlockClosure(block) as void Function(int))(arg0); + ffi.Pointer block, int arg0) => + (objc.getBlockClosure(block) as void Function(int))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Int32$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Int32) - >(_ObjCBlock_ffiVoid_Int32$1_closureTrampoline) + ffi.Void Function(ffi.Pointer, + ffi.Int32)>(_ObjCBlock_ffiVoid_Int32$1_closureTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32$1_listenerTrampoline( - ffi.Pointer block, - int arg0, -) { + ffi.Pointer block, int arg0) { (objc.getBlockClosure(block) as void Function(int))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Int32) -> -_ObjCBlock_ffiVoid_Int32$1_listenerCallable = - ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Int32) - >.listener(_ObjCBlock_ffiVoid_Int32$1_listenerTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int32)> + _ObjCBlock_ffiVoid_Int32$1_listenerCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Int32)>.listener(_ObjCBlock_ffiVoid_Int32$1_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0, -) { + ffi.Pointer block, + ffi.Pointer waiter, + int arg0) { try { (objc.getBlockClosure(block) as void Function(int))(arg0); } catch (e) { @@ -4581,50 +3477,32 @@ void _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) -> -_ObjCBlock_ffiVoid_Int32$1_blockingCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) - >.isolateLocal(_ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) + ffi.Pointer, ffi.Pointer, ffi.Int32)> + _ObjCBlock_ffiVoid_Int32$1_blockingCallable = ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>.isolateLocal( + _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) -> -_ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable = - ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) - >.listener(_ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) + ffi.Pointer, ffi.Pointer, ffi.Int32)> + _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable = ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>.listener(_ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Int32$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) => objc.ObjCBlock( - pointer, - retain: retain, - release: release, - ); + ffi.Pointer pointer, + {bool retain = false, + bool release = false}) => + objc.ObjCBlock(pointer, + retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -4632,12 +3510,13 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr, - ) => objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_Int32$1_fnPtrCallable, ptr.cast()), - retain: false, - release: true, - ); + ffi.Pointer> + ptr) => + objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_Int32$1_fnPtrCallable, ptr.cast()), + retain: false, + release: true); /// Creates a block from a Dart function. /// @@ -4648,17 +3527,13 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) => objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32$1_closureCallable, - (int arg0) => fn(arg0), - keepIsolateAlive, - ), - retain: false, - release: true, - ); + void Function(int) fn, + {bool keepIsolateAlive = true}) => + objc.ObjCBlock( + objc.newClosureBlock(_ObjCBlock_ffiVoid_Int32$1_closureCallable, + (int arg0) => fn(arg0), keepIsolateAlive), + retain: false, + release: true); /// Creates a listener block from a Dart function. /// @@ -4670,21 +3545,16 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { + void Function(int) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32$1_listenerCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Int32$1_listenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_1bqef4y(raw); objc.objectRelease(raw.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } /// Creates a blocking block from a Dart function. @@ -4698,374 +3568,244 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(int) fn, { - bool keepIsolateAlive = true, - }) { + void Function(int) fn, + {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32$1_blockingCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Int32$1_blockingCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive, - ); + _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable.nativeFunction + .cast(), + (int arg0) => fn(arg0), + keepIsolateAlive); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( - raw, - rawListener, - objc.objCContext, - ); + raw, rawListener, objc.objCContext); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock( - wrapper, - retain: false, - release: true, - ); + return objc.ObjCBlock(wrapper, + retain: false, release: true); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_Int32$1_CallExtension on objc.ObjCBlock { - void call(int arg0) => - ref.pointer.ref.invoke + void call(int arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Int32 arg0, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, ffi.Int32 arg0)>>() .asFunction, int)>()( - ref.pointer, - arg0, - ); + ref.pointer, arg0); } late final _class_BlockTester = objc.getClass("BlockTester"); late final _sel_setup_ = objc.registerName("setup:"); final _objc_msgSend_ovsamd = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + void Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_newFromBlock_ = objc.registerName("newFromBlock:"); late final _sel_newFromMultiplier_ = objc.registerName("newFromMultiplier:"); final _objc_msgSend_aclumu = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) - > - >() + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_newFromListener_ = objc.registerName("newFromListener:"); late final _sel_call_ = objc.registerName("call:"); final _objc_msgSend_zo3bvx = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) - > - >() + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>() .asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); + int Function(ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_getBlock = objc.registerName("getBlock"); final _objc_msgSend_uwvaik = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ) - >(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); late final _sel_pokeBlock = objc.registerName("pokeBlock"); late final _sel_callOnSameThread_ = objc.registerName("callOnSameThread:"); -late final _sel_callOnSameThreadOutsideIsolate_ = objc.registerName( - "callOnSameThreadOutsideIsolate:", -); +late final _sel_callOnSameThreadOutsideIsolate_ = + objc.registerName("callOnSameThreadOutsideIsolate:"); late final _sel_callOnNewThread_ = objc.registerName("callOnNewThread:"); -late final _sel_callWithBlockOnNewThread_ = objc.registerName( - "callWithBlockOnNewThread:", -); +late final _sel_callWithBlockOnNewThread_ = + objc.registerName("callWithBlockOnNewThread:"); late final _sel_callFloatBlock_ = objc.registerName("callFloatBlock:"); final _objc_msgSend_o8bnms = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + double Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); final _objc_msgSend_o8bnmsFpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + double Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_callDoubleBlock_ = objc.registerName("callDoubleBlock:"); final _objc_msgSend_8mj2fv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + double Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); final _objc_msgSend_8mj2fvFpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + double Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_callVec4Block_ = objc.registerName("callVec4Block:"); final _objc_msgSend_1gew1vm = objc.msgSendPointer .cast< - ffi.NativeFunction< - Vec4 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + Vec4 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - Vec4 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + Vec4 Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); final _objc_msgSend_1gew1vmStret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); late final _sel_callSelectorBlock_ = objc.registerName("callSelectorBlock:"); late final _sel_callObjectBlock_ = objc.registerName("callObjectBlock:"); -late final _sel_callNullableObjectBlock_ = objc.registerName( - "callNullableObjectBlock:", -); -late final _sel_callNullableStringBlock_ = objc.registerName( - "callNullableStringBlock:", -); +late final _sel_callNullableObjectBlock_ = + objc.registerName("callNullableObjectBlock:"); +late final _sel_callNullableStringBlock_ = + objc.registerName("callNullableStringBlock:"); late final _sel_callListener_ = objc.registerName("callListener:"); late final _sel_callObjectListener_ = objc.registerName("callObjectListener:"); -late final _sel_callNullableListener_ = objc.registerName( - "callNullableListener:", -); +late final _sel_callNullableListener_ = + objc.registerName("callNullableListener:"); late final _sel_callStructListener_ = objc.registerName("callStructListener:"); -late final _sel_callNSStringListener_x_ = objc.registerName( - "callNSStringListener:x:", -); +late final _sel_callNSStringListener_x_ = + objc.registerName("callNSStringListener:x:"); final _objc_msgSend_po4t03 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -late final _sel_callNoTrampolineListener_ = objc.registerName( - "callNoTrampolineListener:", -); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); +late final _sel_callNoTrampolineListener_ = + objc.registerName("callNoTrampolineListener:"); late final _sel_newBlock_withMult_ = objc.registerName("newBlock:withMult:"); final _objc_msgSend_jevgay = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int)>>() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); late final _sel_newBlockBlock_ = objc.registerName("newBlockBlock:"); final _objc_msgSend_w43bzz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int, - ) - > - >() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int)>>() .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ) - >(); -late final _sel_invokeAndReleaseListenerOnNewThread = objc.registerName( - "invokeAndReleaseListenerOnNewThread", -); -late final _sel_invokeAndReleaseListener_ = objc.registerName( - "invokeAndReleaseListener:", -); -late final _sel_blockingBlockTest_resultBlock_ = objc.registerName( - "blockingBlockTest:resultBlock:", -); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int)>(); +late final _sel_invokeAndReleaseListenerOnNewThread = + objc.registerName("invokeAndReleaseListenerOnNewThread"); +late final _sel_invokeAndReleaseListener_ = + objc.registerName("invokeAndReleaseListener:"); +late final _sel_blockingBlockTest_resultBlock_ = + objc.registerName("blockingBlockTest:resultBlock:"); final _objc_msgSend_18yul99 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - > - >() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ) - >(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); /// BlockTester class BlockTester extends objc.NSObject { - BlockTester._( - ffi.Pointer pointer, { - bool retain = false, - bool release = false, - }) : super.castFromPointer(pointer, retain: retain, release: release); + BlockTester._(ffi.Pointer pointer, + {bool retain = false, bool release = false}) + : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [BlockTester] that points to the same underlying object as [other]. BlockTester.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [BlockTester] that wraps the given raw object pointer. - BlockTester.castFromPointer( - ffi.Pointer other, { - bool retain = false, - bool release = false, - }) : this._(other, retain: retain, release: release); + BlockTester.castFromPointer(ffi.Pointer other, + {bool retain = false, bool release = false}) + : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [BlockTester]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, - _sel_isKindOfClass_, - _class_BlockTester, - ); + obj.ref.pointer, _sel_isKindOfClass_, _class_BlockTester); } /// setup: @@ -5076,30 +3816,21 @@ class BlockTester extends objc.NSObject { /// newFromBlock: static BlockTester newFromBlock(DartIntBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, - _sel_newFromBlock_, - block.ref.pointer, - ); + _class_BlockTester, _sel_newFromBlock_, block.ref.pointer); return BlockTester.castFromPointer(_ret, retain: false, release: true); } /// newFromMultiplier: static BlockTester newFromMultiplier(int mult) { - final _ret = _objc_msgSend_aclumu( - _class_BlockTester, - _sel_newFromMultiplier_, - mult, - ); + final _ret = + _objc_msgSend_aclumu(_class_BlockTester, _sel_newFromMultiplier_, mult); return BlockTester.castFromPointer(_ret, retain: false, release: true); } /// newFromListener: static BlockTester newFromListener(DartObjectListenerBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, - _sel_newFromListener_, - block.ref.pointer, - ); + _class_BlockTester, _sel_newFromListener_, block.ref.pointer); return BlockTester.castFromPointer(_ret, retain: false, release: true); } @@ -5111,11 +3842,8 @@ class BlockTester extends objc.NSObject { /// getBlock DartIntBlock getBlock() { final _ret = _objc_msgSend_uwvaik(this.ref.pointer, _sel_getBlock); - return ObjCBlock_Int32_Int32.castFromPointer( - _ret, - retain: false, - release: true, - ); + return ObjCBlock_Int32_Int32.castFromPointer(_ret, + retain: false, release: true); } /// pokeBlock @@ -5126,38 +3854,26 @@ class BlockTester extends objc.NSObject { /// callOnSameThread: static void callOnSameThread(DartVoidBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, - _sel_callOnSameThread_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callOnSameThread_, block.ref.pointer); } /// callOnSameThreadOutsideIsolate: static void callOnSameThreadOutsideIsolate(DartVoidBlock block) { - _objc_msgSend_f167m6( - _class_BlockTester, - _sel_callOnSameThreadOutsideIsolate_, - block.ref.pointer, - ); + _objc_msgSend_f167m6(_class_BlockTester, + _sel_callOnSameThreadOutsideIsolate_, block.ref.pointer); } /// callOnNewThread: static NSThread callOnNewThread(DartVoidBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, - _sel_callOnNewThread_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callOnNewThread_, block.ref.pointer); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// callWithBlockOnNewThread: static NSThread callWithBlockOnNewThread(DartListenerBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, - _sel_callWithBlockOnNewThread_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callWithBlockOnNewThread_, block.ref.pointer); return NSThread.castFromPointer(_ret, retain: false, release: true); } @@ -5165,30 +3881,18 @@ class BlockTester extends objc.NSObject { static double callFloatBlock(DartFloatBlock block) { return objc.useMsgSendVariants ? _objc_msgSend_o8bnmsFpret( - _class_BlockTester, - _sel_callFloatBlock_, - block.ref.pointer, - ) + _class_BlockTester, _sel_callFloatBlock_, block.ref.pointer) : _objc_msgSend_o8bnms( - _class_BlockTester, - _sel_callFloatBlock_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callFloatBlock_, block.ref.pointer); } /// callDoubleBlock: static double callDoubleBlock(DartDoubleBlock block) { return objc.useMsgSendVariants ? _objc_msgSend_8mj2fvFpret( - _class_BlockTester, - _sel_callDoubleBlock_, - block.ref.pointer, - ) + _class_BlockTester, _sel_callDoubleBlock_, block.ref.pointer) : _objc_msgSend_8mj2fv( - _class_BlockTester, - _sel_callDoubleBlock_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callDoubleBlock_, block.ref.pointer); } /// callVec4Block: @@ -5196,49 +3900,32 @@ class BlockTester extends objc.NSObject { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_1gew1vmStret( - _ptr, - _class_BlockTester, - _sel_callVec4Block_, - block.ref.pointer, - ) + _ptr, _class_BlockTester, _sel_callVec4Block_, block.ref.pointer) : _ptr.ref = _objc_msgSend_1gew1vm( - _class_BlockTester, - _sel_callVec4Block_, - block.ref.pointer, - ); - final _finalizable = _ptr.cast().asTypedList( - ffi.sizeOf(), - finalizer: pkg_ffi.calloc.nativeFree, - ); + _class_BlockTester, _sel_callVec4Block_, block.ref.pointer); + final _finalizable = _ptr + .cast() + .asTypedList(ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree); return ffi.Struct.create(_finalizable); } /// callSelectorBlock: static void callSelectorBlock(DartSelectorBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, - _sel_callSelectorBlock_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callSelectorBlock_, block.ref.pointer); } /// callObjectBlock: static DummyObject callObjectBlock(DartObjectBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, - _sel_callObjectBlock_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callObjectBlock_, block.ref.pointer); return DummyObject.castFromPointer(_ret, retain: false, release: true); } /// callNullableObjectBlock: static DummyObject? callNullableObjectBlock(DartNullableObjectBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, - _sel_callNullableObjectBlock_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callNullableObjectBlock_, block.ref.pointer); return _ret.address == 0 ? null : DummyObject.castFromPointer(_ret, retain: false, release: true); @@ -5246,13 +3933,9 @@ class BlockTester extends objc.NSObject { /// callNullableStringBlock: static objc.NSString? callNullableStringBlock( - objc.ObjCBlock block, - ) { + objc.ObjCBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, - _sel_callNullableStringBlock_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callNullableStringBlock_, block.ref.pointer); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: false, release: true); @@ -5261,131 +3944,85 @@ class BlockTester extends objc.NSObject { /// callListener: static void callListener(DartListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, - _sel_callListener_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callListener_, block.ref.pointer); } /// callObjectListener: static void callObjectListener(DartObjectListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, - _sel_callObjectListener_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callObjectListener_, block.ref.pointer); } /// callNullableListener: static void callNullableListener(DartNullableListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, - _sel_callNullableListener_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callNullableListener_, block.ref.pointer); } /// callStructListener: static void callStructListener(DartStructListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, - _sel_callStructListener_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callStructListener_, block.ref.pointer); } /// callNSStringListener:x: - static void callNSStringListener( - DartNSStringListenerBlock block, { - required int x, - }) { + static void callNSStringListener(DartNSStringListenerBlock block, + {required int x}) { _objc_msgSend_po4t03( - _class_BlockTester, - _sel_callNSStringListener_x_, - block.ref.pointer, - x, - ); + _class_BlockTester, _sel_callNSStringListener_x_, block.ref.pointer, x); } /// callNoTrampolineListener: static void callNoTrampolineListener(DartNoTrampolineListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, - _sel_callNoTrampolineListener_, - block.ref.pointer, - ); + _class_BlockTester, _sel_callNoTrampolineListener_, block.ref.pointer); } /// newBlock:withMult: static DartIntBlock newBlock(DartBlockBlock block, {required int withMult}) { - final _ret = _objc_msgSend_jevgay( - _class_BlockTester, - _sel_newBlock_withMult_, - block.ref.pointer, - withMult, - ); - return ObjCBlock_Int32_Int32.castFromPointer( - _ret, - retain: false, - release: true, - ); + final _ret = _objc_msgSend_jevgay(_class_BlockTester, + _sel_newBlock_withMult_, block.ref.pointer, withMult); + return ObjCBlock_Int32_Int32.castFromPointer(_ret, + retain: false, release: true); } /// newBlockBlock: static DartBlockBlock newBlockBlock(int mult) { - final _ret = _objc_msgSend_w43bzz( - _class_BlockTester, - _sel_newBlockBlock_, - mult, - ); - return ObjCBlock_IntBlock_IntBlock.castFromPointer( - _ret, - retain: false, - release: true, - ); + final _ret = + _objc_msgSend_w43bzz(_class_BlockTester, _sel_newBlockBlock_, mult); + return ObjCBlock_IntBlock_IntBlock.castFromPointer(_ret, + retain: false, release: true); } /// invokeAndReleaseListenerOnNewThread void invokeAndReleaseListenerOnNewThread() { _objc_msgSend_1pl9qdv( - this.ref.pointer, - _sel_invokeAndReleaseListenerOnNewThread, - ); + this.ref.pointer, _sel_invokeAndReleaseListenerOnNewThread); } /// invokeAndReleaseListener: void invokeAndReleaseListener(objc.ObjCObjectBase? _$) { - _objc_msgSend_xtuoz7( - this.ref.pointer, - _sel_invokeAndReleaseListener_, - _$?.ref.pointer ?? ffi.nullptr, - ); + _objc_msgSend_xtuoz7(this.ref.pointer, _sel_invokeAndReleaseListener_, + _$?.ref.pointer ?? ffi.nullptr); } /// blockingBlockTest:resultBlock: static void blockingBlockTest( - objc.ObjCBlock)> blockingBlock, { - required objc.ObjCBlock resultBlock, - }) { + objc.ObjCBlock)> blockingBlock, + {required objc.ObjCBlock resultBlock}) { _objc_msgSend_18yul99( - _class_BlockTester, - _sel_blockingBlockTest_resultBlock_, - blockingBlock.ref.pointer, - resultBlock.ref.pointer, - ); + _class_BlockTester, + _sel_blockingBlockTest_resultBlock_, + blockingBlock.ref.pointer, + resultBlock.ref.pointer); } /// init BlockTester init() { - objc.checkOsVersionInternal( - 'BlockTester.init', - iOS: (false, (2, 0, 0)), - macOS: (false, (10, 0, 0)), - ); - final _ret = _objc_msgSend_151sglz( - this.ref.retainAndReturnPointer(), - _sel_init, - ); + objc.checkOsVersionInternal('BlockTester.init', + iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); + final _ret = + _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); return BlockTester.castFromPointer(_ret, retain: false, release: true); } @@ -5397,11 +4034,8 @@ class BlockTester extends objc.NSObject { /// allocWithZone: static BlockTester allocWithZone(ffi.Pointer zone) { - final _ret = _objc_msgSend_1cwp428( - _class_BlockTester, - _sel_allocWithZone_, - zone, - ); + final _ret = + _objc_msgSend_1cwp428(_class_BlockTester, _sel_allocWithZone_, zone); return BlockTester.castFromPointer(_ret, retain: false, release: true); } From e35d5781be1ea078ace1095e5327923bf5dcb15a Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 24 Jul 2025 14:10:50 +1000 Subject: [PATCH 27/29] wip --- .../lib/src/code_generator/objc_block.dart | 44 +- .../objc_built_in_functions.dart | 2 + .../src/code_generator/objc_interface.dart | 4 + .../lib/src/code_generator/objc_nullable.dart | 4 + .../lib/src/code_generator/objc_protocol.dart | 4 + .../lib/src/code_generator/pointer.dart | 8 + pkgs/ffigen/lib/src/code_generator/type.dart | 7 + .../lib/src/code_generator/typealias.dart | 4 + .../test/native_objc_test/block_bindings.dart | 5683 +++++++++++------ .../test/native_objc_test/block_bindings.m | 64 - .../test/native_objc_test/block_test.dart | 9 +- 11 files changed, 3763 insertions(+), 2070 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/objc_block.dart b/pkgs/ffigen/lib/src/code_generator/objc_block.dart index 28ad1e321..17be8854b 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_block.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_block.dart @@ -141,6 +141,12 @@ class ObjCBlock extends BindingType { final closureCallable = w.topLevelUniqueNamer.makeUnique( '_${name}_closureCallable', ); + final sharedTrampoline = w.topLevelUniqueNamer.makeUnique( + '_${name}_sharedTrampoline', + ); + final sharedCallable = w.topLevelUniqueNamer.makeUnique( + '_${name}_sharedCallable', + ); final listenerTrampoline = w.topLevelUniqueNamer.makeUnique( '_${name}_listenerTrampoline', ); @@ -163,6 +169,7 @@ class ObjCBlock extends BindingType { final newPointerBlock = ObjCBuiltInFunctions.newPointerBlock.gen(w); final newClosureBlock = ObjCBuiltInFunctions.newClosureBlock.gen(w); final getBlockClosure = ObjCBuiltInFunctions.getBlockClosure.gen(w); + final retainFn = ObjCBuiltInFunctions.objectRetain.gen(w); final releaseFn = ObjCBuiltInFunctions.objectRelease.gen(w); final objCContext = ObjCBuiltInFunctions.objCContext.gen(w); final signalWaiterFn = ObjCBuiltInFunctions.signalWaiter.gen(w); @@ -194,7 +201,21 @@ $voidPtrCType $closureCallable = ${w.ffiLibraryPrefix}.Pointer.fromFunction< if (hasListener) { // Write the listener trampoline function. + final retains = ['$retainFn(block.cast()).cast()']; + for (var i = 0; i < params.length; ++i) { + final param = params[i]; + final argName = 'arg$i'; + retains.add(param.type.generateDartRetain(w, argName) ?? argName); + } s.write(''' +$returnFfiDartType $sharedTrampoline( + $blockCType block, ${func.paramsFfiDartType}) { + block.ref.trampoline.cast<${func.trampNatFnCType}>() + .asFunction<${func.trampFfiDartType}>()(${retains.join(', ')}); +} +${func.trampNatCallType} $sharedCallable = + ${func.trampNatCallType}.isolateGroupShared( + $sharedTrampoline $exceptionalReturn)..keepIsolateAlive = false; $returnFfiDartType $listenerTrampoline( $blockCType block, ${func.paramsFfiDartType}) { ($getBlockClosure(block) as ${func.ffiDartType})(${func.paramsNameOnly}); @@ -295,7 +316,6 @@ abstract final class $name { ); final listenerConvFn = '(${func.paramsFfiDartType}) => $listenerConvFnInvocation'; - final wrapListenerFn = _blockWrappers!.listenerWrapper.name; final wrapBlockingFn = _blockWrappers!.blockingWrapper.name; s.write(''' @@ -311,11 +331,10 @@ abstract final class $name { /// until it is garbage collected by both Dart and ObjC. static $blockType listener(${func.dartType} fn, {bool keepIsolateAlive = true}) { - final raw = $newClosureBlock($listenerCallable.nativeFunction.cast(), - $listenerConvFn, keepIsolateAlive); - final wrapper = $wrapListenerFn(raw); - $releaseFn(raw.cast()); - return $blockType(wrapper, retain: false, release: true); + final tramp = $newClosureBlock($sharedCallable.nativeFunction.cast(), + $listenerConvFn, keepIsolateAlive, + trampoline: $listenerCallable.nativeFunction.cast()); + return $blockType(tramp, retain: true, release: true); } /// Creates a blocking block from a Dart function. @@ -419,7 +438,6 @@ ref.pointer.ref.invoke.cast<${func.trampNatFnCType}>() ...argsReceived, ].join(', '); - final listenerWrapper = _blockWrappers!.listenerWrapper.name; final blockingWrapper = _blockWrappers!.blockingWrapper.name; final listenerName = UniqueNamer.cSafeName( w.objCLevelUniqueNamer.makeUnique('ListenerTrampoline'), @@ -431,14 +449,6 @@ ref.pointer.ref.invoke.cast<${func.trampNatFnCType}>() return ''' typedef ${returnType.getNativeType()} (^$listenerName)($argStr); -__attribute__((visibility("default"))) __attribute__((used)) -$listenerName $listenerWrapper($listenerName block) NS_RETURNS_RETAINED { - return ^void($argStr) { - ${generateRetain('block')}; - block(${retains.join(', ')}); - }; -} - typedef ${returnType.getNativeType()} (^$blockingName)($blockingArgStr); __attribute__((visibility("default"))) __attribute__((used)) $listenerName $blockingWrapper( @@ -532,6 +542,10 @@ $ret $fnName(id target, $argRecv) { @override String? generateRetain(String value) => 'objc_retainBlock($value)'; + @override + String? generateDartRetain(Writer w, String value) => + '${ObjCBuiltInFunctions.blockRetain.gen(w)}($value.cast()).cast()'; + @override String toString() => '($returnType (^)(${params.map((p) => p.type.toString()).join(', ')}))'; diff --git a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart index 9df82aff0..84c5decdd 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_built_in_functions.dart @@ -32,6 +32,8 @@ class ObjCBuiltInFunctions { 'getProtocolMethodSignature', ); static const getProtocol = ObjCImport('getProtocol'); + static const blockRetain = ObjCImport('blockRetain'); + static const objectRetain = ObjCImport('objectRetain'); static const objectRelease = ObjCImport('objectRelease'); static const signalWaiter = ObjCImport('signalWaiter'); static const objCContext = ObjCImport('objCContext'); diff --git a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart index f2210e6a6..e6e997f59 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_interface.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_interface.dart @@ -214,6 +214,10 @@ ${generateAsStub ? '' : _generateMethods(w)} String? generateRetain(String value) => '(__bridge id)(__bridge_retained void*)($value)'; + @override + String? generateDartRetain(Writer w, String value) => + '${ObjCBuiltInFunctions.objectRetain.gen(w)}($value)'; + @override void visit(Visitation visitation) => visitation.visitObjCInterface(this); diff --git a/pkgs/ffigen/lib/src/code_generator/objc_nullable.dart b/pkgs/ffigen/lib/src/code_generator/objc_nullable.dart index 716536ea9..fb0a15f1d 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_nullable.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_nullable.dart @@ -94,6 +94,10 @@ class ObjCNullable extends Type { @override String? generateRetain(String value) => child.generateRetain(value); + @override + String? generateDartRetain(Writer w, String value) => + child.generateDartRetain(w, value); + @override String toString() => '$child?'; diff --git a/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart b/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart index 9de3dae4a..d4d3a3a13 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_protocol.dart @@ -352,6 +352,10 @@ Protocol* _${wrapName}_$originalName(void) { return @protocol($originalName); } String? generateRetain(String value) => '(__bridge id)(__bridge_retained void*)($value)'; + @override + String? generateDartRetain(Writer w, String value) => + '${ObjCBuiltInFunctions.objectRetain.gen(w)}($value)'; + bool _isSuperProtocolOf(ObjCProtocol protocol) { if (protocol == this) return true; for (final superProtocol in protocol.superProtocols) { diff --git a/pkgs/ffigen/lib/src/code_generator/pointer.dart b/pkgs/ffigen/lib/src/code_generator/pointer.dart index b404eaacb..be71fb8e9 100644 --- a/pkgs/ffigen/lib/src/code_generator/pointer.dart +++ b/pkgs/ffigen/lib/src/code_generator/pointer.dart @@ -154,6 +154,10 @@ class ObjCObjectPointer extends PointerType { String? generateRetain(String value) => '(__bridge id)(__bridge_retained void*)($value)'; + @override + String? generateDartRetain(Writer w, String value) => + '${ObjCBuiltInFunctions.objectRetain.gen(w)}($value)'; + @override bool isSupertypeOf(Type other) { other = other.typealiasType; @@ -177,6 +181,10 @@ class ObjCBlockPointer extends ObjCObjectPointer { @override String? generateRetain(String value) => 'objc_retainBlock($value)'; + @override + String? generateDartRetain(Writer w, String value) => + '${ObjCBuiltInFunctions.blockRetain.gen(w)}($value.cast()).cast()'; + @override bool isSupertypeOf(Type other) { other = other.typealiasType; diff --git a/pkgs/ffigen/lib/src/code_generator/type.dart b/pkgs/ffigen/lib/src/code_generator/type.dart index 71c929755..e495767cf 100644 --- a/pkgs/ffigen/lib/src/code_generator/type.dart +++ b/pkgs/ffigen/lib/src/code_generator/type.dart @@ -114,6 +114,10 @@ abstract class Type extends AstNode { /// Returns null if the Type does not need to be retained. String? generateRetain(String value) => null; + /// Returns generated Dart code that retains a reference to the given value. + /// Returns null if the Type does not need to be retained. + String? generateDartRetain(Writer w, String value) => null; + /// Returns a human readable string representation of the Type. This is mostly /// just for debugging, but it may also be used for non-functional code (eg to /// name a variable or type in generated code). @@ -230,6 +234,9 @@ abstract class BindingType extends NoLookUpBinding implements Type { @override String? generateRetain(String value) => null; + @override + String? generateDartRetain(Writer w, String value) => null; + @override String toString() => originalName; diff --git a/pkgs/ffigen/lib/src/code_generator/typealias.dart b/pkgs/ffigen/lib/src/code_generator/typealias.dart index 1c5e70c79..021d47d1b 100644 --- a/pkgs/ffigen/lib/src/code_generator/typealias.dart +++ b/pkgs/ffigen/lib/src/code_generator/typealias.dart @@ -195,6 +195,10 @@ class Typealias extends BindingType { @override String? generateRetain(String value) => type.generateRetain(value); + @override + String? generateDartRetain(Writer w, String value) => + type.generateDartRetain(w, value); + @override String cacheKey() => type.cacheKey(); diff --git a/pkgs/ffigen/test/native_objc_test/block_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_bindings.dart index 7c7e5fb47..4d4a8cd0b 100644 --- a/pkgs/ffigen/test/native_objc_test/block_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_bindings.dart @@ -12,29 +12,25 @@ import 'package:ffi/ffi.dart' as pkg_ffi; class BlockTestObjCLibrary { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) - _lookup; + _lookup; /// The symbols are looked up in [dynamicLibrary]. BlockTestObjCLibrary(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; + : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. BlockTestObjCLibrary.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) - : _lookup = lookup; + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; - void objc_autoreleasePoolPop( - ffi.Pointer pool, - ) { - return _objc_autoreleasePoolPop( - pool, - ); + void objc_autoreleasePoolPop(ffi.Pointer pool) { + return _objc_autoreleasePoolPop(pool); } late final _objc_autoreleasePoolPopPtr = _lookup)>>( - 'objc_autoreleasePoolPop'); + 'objc_autoreleasePoolPop', + ); late final _objc_autoreleasePoolPop = _objc_autoreleasePoolPopPtr .asFunction)>(); @@ -44,167 +40,195 @@ class BlockTestObjCLibrary { late final _objc_autoreleasePoolPushPtr = _lookup Function()>>( - 'objc_autoreleasePoolPush'); + 'objc_autoreleasePoolPush', + ); late final _objc_autoreleasePoolPush = _objc_autoreleasePoolPushPtr .asFunction Function()>(); } @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) +external ffi.Pointer +_BlockTestObjCLibrary_wrapListenerBlock_1pl9qdv( + ffi.Pointer block, +); + +@ffi.Native< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( +_BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>() + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) +>() external ffi.Pointer - _BlockTestObjCLibrary_protocolTrampoline_1mbt9g9( +_BlockTestObjCLibrary_protocolTrampoline_1mbt9g9( ffi.Pointer target, ffi.Pointer arg0, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe( +_BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( +_BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_f167m6( +_BlockTestObjCLibrary_wrapListenerBlock_f167m6( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( +_BlockTestObjCLibrary_wrapBlockingBlock_f167m6( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7( +_BlockTestObjCLibrary_wrapListenerBlock_xtuoz7( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( +_BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_ru30ue( +_BlockTestObjCLibrary_wrapListenerBlock_ru30ue( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( +_BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_li50va( +_BlockTestObjCLibrary_wrapListenerBlock_li50va( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_li50va( +_BlockTestObjCLibrary_wrapBlockingBlock_li50va( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_yhkuco( +_BlockTestObjCLibrary_wrapListenerBlock_yhkuco( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( +_BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function(ffi.Pointer) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapListenerBlock_1bqef4y( +_BlockTestObjCLibrary_wrapListenerBlock_1bqef4y( ffi.Pointer block, ); @ffi.Native< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(isLeaf: true) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +>(isLeaf: true) external ffi.Pointer - _BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( +_BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( ffi.Pointer block, ffi.Pointer listnerBlock, ffi.Pointer context, @@ -214,60 +238,75 @@ late final _class_NSThread = objc.getClass("NSThread"); late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); final _objc_msgSend_19nvye5 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_currentThread = objc.registerName("currentThread"); final _objc_msgSend_151sglz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); void _ObjCBlock_ffiVoid_fnPtrTrampoline( ffi.Pointer block, -) => - block.ref.target - .cast>() - .asFunction()(); -ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = ffi.Pointer - .fromFunction)>( - _ObjCBlock_ffiVoid_fnPtrTrampoline) - .cast(); +) => block.ref.target + .cast>() + .asFunction()(); +ffi.Pointer _ObjCBlock_ffiVoid_fnPtrCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_ObjCBlock_ffiVoid_fnPtrTrampoline) + .cast(); void _ObjCBlock_ffiVoid_closureTrampoline( ffi.Pointer block, -) => - (objc.getBlockClosure(block) as void Function())(); -ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = ffi.Pointer - .fromFunction)>( - _ObjCBlock_ffiVoid_closureTrampoline) - .cast(); - +) => (objc.getBlockClosure(block) as void Function())(); +ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer) + >(_ObjCBlock_ffiVoid_closureTrampoline) + .cast(); void _ObjCBlock_ffiVoid_sharedTrampoline( ffi.Pointer block, ) { - objc.blockRetain(block.cast()); // Move to block object? block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block)>>() - .asFunction)>()( - block, - ); + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block) + > + >() + .asFunction)>()( + objc.objectRetain(block.cast()).cast(), + ); } + ffi.NativeCallable)> - _ObjCBlock_ffiVoid_sharedCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer)>.isolateGroupShared( - _ObjCBlock_ffiVoid_sharedTrampoline) +_ObjCBlock_ffiVoid_sharedCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer) + >.isolateGroupShared(_ObjCBlock_ffiVoid_sharedTrampoline) ..keepIsolateAlive = false; - void _ObjCBlock_ffiVoid_listenerTrampoline( ffi.Pointer block, ) { @@ -276,12 +315,15 @@ void _ObjCBlock_ffiVoid_listenerTrampoline( } ffi.NativeCallable)> - _ObjCBlock_ffiVoid_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_listenerTrampoline) +_ObjCBlock_ffiVoid_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer) + >.listener(_ObjCBlock_ffiVoid_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_blockingTrampoline( - ffi.Pointer block, ffi.Pointer waiter) { + ffi.Pointer block, + ffi.Pointer waiter, +) { try { (objc.getBlockClosure(block) as void Function())(); } catch (e) { @@ -292,31 +334,40 @@ void _ObjCBlock_ffiVoid_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -324,11 +375,12 @@ abstract final class ObjCBlock_ffiVoid { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -338,13 +390,18 @@ abstract final class ObjCBlock_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction(void Function() fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_closureCallable, () => fn(), keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock fromFunction( + void Function() fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_closureCallable, + () => fn(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -355,15 +412,21 @@ abstract final class ObjCBlock_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock listener(void Function() fn, - {bool keepIsolateAlive = true}) { - final wrapper = objc.newClosureBlock( - _ObjCBlock_ffiVoid_sharedCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast()); - return objc.ObjCBlock(wrapper, - retain: true, release: true); + static objc.ObjCBlock listener( + void Function() fn, { + bool keepIsolateAlive = true, + }) { + final tramp = objc.newClosureBlock( + _ObjCBlock_ffiVoid_sharedCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast(), + ); + return objc.ObjCBlock( + tramp, + retain: true, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -376,209 +439,330 @@ abstract final class ObjCBlock_ffiVoid { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc.ObjCBlock blocking(void Function() fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock blocking( + void Function() fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive); + _ObjCBlock_ffiVoid_blockingCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), - () => fn(), - keepIsolateAlive); + _ObjCBlock_ffiVoid_blockingListenerCallable.nativeFunction.cast(), + () => fn(), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_CallExtension on objc.ObjCBlock { - void call() => ref.pointer.ref.invoke + void call() => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block)>>() + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer block) + > + >() .asFunction)>()( ref.pointer, ); } -late final _sel_detachNewThreadWithBlock_ = - objc.registerName("detachNewThreadWithBlock:"); +late final _sel_detachNewThreadWithBlock_ = objc.registerName( + "detachNewThreadWithBlock:", +); final _objc_msgSend_f167m6 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); -late final _sel_detachNewThreadSelector_toTarget_withObject_ = - objc.registerName("detachNewThreadSelector:toTarget:withObject:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_detachNewThreadSelector_toTarget_withObject_ = objc + .registerName("detachNewThreadSelector:toTarget:withObject:"); final _objc_msgSend_lzbvjm = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_isMultiThreaded = objc.registerName("isMultiThreaded"); final _objc_msgSend_91o635 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_threadDictionary = objc.registerName("threadDictionary"); late final _sel_sleepUntilDate_ = objc.registerName("sleepUntilDate:"); final _objc_msgSend_xtuoz7 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); -late final _sel_sleepForTimeInterval_ = - objc.registerName("sleepForTimeInterval:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); +late final _sel_sleepForTimeInterval_ = objc.registerName( + "sleepForTimeInterval:", +); final _objc_msgSend_hwm8nu = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, double)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); late final _sel_exit = objc.registerName("exit"); final _objc_msgSend_1pl9qdv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_threadPriority = objc.registerName("threadPriority"); final _objc_msgSend_1ukqyt8 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1ukqyt8Fpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_setThreadPriority_ = objc.registerName("setThreadPriority:"); final _objc_msgSend_18chyc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >() .asFunction< - bool Function(ffi.Pointer, - ffi.Pointer, double)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); late final _sel_qualityOfService = objc.registerName("qualityOfService"); final _objc_msgSend_oi8iq9 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); -late final _sel_setQualityOfService_ = - objc.registerName("setQualityOfService:"); + int Function(ffi.Pointer, ffi.Pointer) + >(); +late final _sel_setQualityOfService_ = objc.registerName( + "setQualityOfService:", +); final _objc_msgSend_n2da1l = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_callStackReturnAddresses = - objc.registerName("callStackReturnAddresses"); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_callStackReturnAddresses = objc.registerName( + "callStackReturnAddresses", +); late final _sel_callStackSymbols = objc.registerName("callStackSymbols"); late final _sel_name = objc.registerName("name"); late final _sel_setName_ = objc.registerName("setName:"); late final _sel_stackSize = objc.registerName("stackSize"); final _objc_msgSend_xw2lbc = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - int Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_setStackSize_ = objc.registerName("setStackSize:"); final _objc_msgSend_1i9r4xy = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_isMainThread = objc.registerName("isMainThread"); late final _sel_mainThread = objc.registerName("mainThread"); typedef instancetype = ffi.Pointer; typedef Dartinstancetype = objc.ObjCObjectBase; late final _sel_init = objc.registerName("init"); -late final _sel_initWithTarget_selector_object_ = - objc.registerName("initWithTarget:selector:object:"); +late final _sel_initWithTarget_selector_object_ = objc.registerName( + "initWithTarget:selector:object:", +); final _objc_msgSend_1eldwyi = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_initWithBlock_ = objc.registerName("initWithBlock:"); final _objc_msgSend_nnxkei = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_isExecuting = objc.registerName("isExecuting"); late final _sel_isFinished = objc.registerName("isFinished"); late final _sel_isCancelled = objc.registerName("isCancelled"); @@ -589,33 +773,49 @@ late final _sel_new = objc.registerName("new"); late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); final _objc_msgSend_1cwp428 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_alloc = objc.registerName("alloc"); /// NSThread class NSThread extends objc.NSObject { - NSThread._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + NSThread._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [NSThread] that points to the same underlying object as [other]. NSThread.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [NSThread] that wraps the given raw object pointer. - NSThread.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + NSThread.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [NSThread]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_NSThread); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_NSThread, + ); } /// currentThread @@ -626,23 +826,33 @@ class NSThread extends objc.NSObject { /// detachNewThreadWithBlock: static void detachNewThreadWithBlock( - objc.ObjCBlock block) { - objc.checkOsVersionInternal('NSThread.detachNewThreadWithBlock:', - iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0))); + objc.ObjCBlock block, + ) { + objc.checkOsVersionInternal( + 'NSThread.detachNewThreadWithBlock:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); _objc_msgSend_f167m6( - _class_NSThread, _sel_detachNewThreadWithBlock_, block.ref.pointer); + _class_NSThread, + _sel_detachNewThreadWithBlock_, + block.ref.pointer, + ); } /// detachNewThreadSelector:toTarget:withObject: - static void detachNewThreadSelector(ffi.Pointer selector, - {required objc.ObjCObjectBase toTarget, - objc.ObjCObjectBase? withObject}) { + static void detachNewThreadSelector( + ffi.Pointer selector, { + required objc.ObjCObjectBase toTarget, + objc.ObjCObjectBase? withObject, + }) { _objc_msgSend_lzbvjm( - _class_NSThread, - _sel_detachNewThreadSelector_toTarget_withObject_, - selector, - toTarget.ref.pointer, - withObject?.ref.pointer ?? ffi.nullptr); + _class_NSThread, + _sel_detachNewThreadSelector_toTarget_withObject_, + selector, + toTarget.ref.pointer, + withObject?.ref.pointer ?? ffi.nullptr, + ); } /// isMultiThreaded @@ -653,14 +863,20 @@ class NSThread extends objc.NSObject { /// threadDictionary objc.NSMutableDictionary get threadDictionary { final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_threadDictionary); - return objc.NSMutableDictionary.castFromPointer(_ret, - retain: true, release: true); + return objc.NSMutableDictionary.castFromPointer( + _ret, + retain: true, + release: true, + ); } /// sleepUntilDate: static void sleepUntilDate(objc.NSDate date) { _objc_msgSend_xtuoz7( - _class_NSThread, _sel_sleepUntilDate_, date.ref.pointer); + _class_NSThread, + _sel_sleepUntilDate_, + date.ref.pointer, + ); } /// sleepForTimeInterval: @@ -687,8 +903,11 @@ class NSThread extends objc.NSObject { /// threadPriority double get threadPriority$1 { - objc.checkOsVersionInternal('NSThread.threadPriority', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSThread.threadPriority', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); return objc.useMsgSendVariants ? _objc_msgSend_1ukqyt8Fpret(this.ref.pointer, _sel_threadPriority) : _objc_msgSend_1ukqyt8(this.ref.pointer, _sel_threadPriority); @@ -696,48 +915,71 @@ class NSThread extends objc.NSObject { /// setThreadPriority: set threadPriority$1(double value) { - objc.checkOsVersionInternal('NSThread.setThreadPriority:', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSThread.setThreadPriority:', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); _objc_msgSend_hwm8nu(this.ref.pointer, _sel_setThreadPriority_, value); } /// qualityOfService objc.NSQualityOfService get qualityOfService { - objc.checkOsVersionInternal('NSThread.qualityOfService', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSThread.qualityOfService', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); final _ret = _objc_msgSend_oi8iq9(this.ref.pointer, _sel_qualityOfService); return objc.NSQualityOfService.fromValue(_ret); } /// setQualityOfService: set qualityOfService(objc.NSQualityOfService value) { - objc.checkOsVersionInternal('NSThread.setQualityOfService:', - iOS: (false, (8, 0, 0)), macOS: (false, (10, 10, 0))); + objc.checkOsVersionInternal( + 'NSThread.setQualityOfService:', + iOS: (false, (8, 0, 0)), + macOS: (false, (10, 10, 0)), + ); _objc_msgSend_n2da1l( - this.ref.pointer, _sel_setQualityOfService_, value.value); + this.ref.pointer, + _sel_setQualityOfService_, + value.value, + ); } /// callStackReturnAddresses static objc.NSArray getCallStackReturnAddresses() { - objc.checkOsVersionInternal('NSThread.callStackReturnAddresses', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); - final _ret = - _objc_msgSend_151sglz(_class_NSThread, _sel_callStackReturnAddresses); + objc.checkOsVersionInternal( + 'NSThread.callStackReturnAddresses', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); + final _ret = _objc_msgSend_151sglz( + _class_NSThread, + _sel_callStackReturnAddresses, + ); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// callStackSymbols static objc.NSArray getCallStackSymbols() { - objc.checkOsVersionInternal('NSThread.callStackSymbols', - iOS: (false, (4, 0, 0)), macOS: (false, (10, 6, 0))); + objc.checkOsVersionInternal( + 'NSThread.callStackSymbols', + iOS: (false, (4, 0, 0)), + macOS: (false, (10, 6, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_callStackSymbols); return objc.NSArray.castFromPointer(_ret, retain: true, release: true); } /// name objc.NSString? get name { - objc.checkOsVersionInternal('NSThread.name', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.name', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_name); return _ret.address == 0 ? null @@ -746,120 +988,176 @@ class NSThread extends objc.NSObject { /// setName: set name(objc.NSString? value) { - objc.checkOsVersionInternal('NSThread.setName:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.setName:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_xtuoz7( - this.ref.pointer, _sel_setName_, value?.ref.pointer ?? ffi.nullptr); + this.ref.pointer, + _sel_setName_, + value?.ref.pointer ?? ffi.nullptr, + ); } /// stackSize int get stackSize { - objc.checkOsVersionInternal('NSThread.stackSize', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.stackSize', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_xw2lbc(this.ref.pointer, _sel_stackSize); } /// setStackSize: set stackSize(int value) { - objc.checkOsVersionInternal('NSThread.setStackSize:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.setStackSize:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1i9r4xy(this.ref.pointer, _sel_setStackSize_, value); } /// isMainThread bool get isMainThread { - objc.checkOsVersionInternal('NSThread.isMainThread', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.isMainThread', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isMainThread); } /// isMainThread static bool getIsMainThread$1() { - objc.checkOsVersionInternal('NSThread.isMainThread', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.isMainThread', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(_class_NSThread, _sel_isMainThread); } /// mainThread static NSThread getMainThread() { - objc.checkOsVersionInternal('NSThread.mainThread', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.mainThread', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_151sglz(_class_NSThread, _sel_mainThread); return NSThread.castFromPointer(_ret, retain: true, release: true); } /// init NSThread init() { - objc.checkOsVersionInternal('NSThread.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'NSThread.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// initWithTarget:selector:object: - NSThread initWithTarget(objc.ObjCObjectBase target, - {required ffi.Pointer selector, - objc.ObjCObjectBase? object}) { - objc.checkOsVersionInternal('NSThread.initWithTarget:selector:object:', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + NSThread initWithTarget( + objc.ObjCObjectBase target, { + required ffi.Pointer selector, + objc.ObjCObjectBase? object, + }) { + objc.checkOsVersionInternal( + 'NSThread.initWithTarget:selector:object:', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); final _ret = _objc_msgSend_1eldwyi( - this.ref.retainAndReturnPointer(), - _sel_initWithTarget_selector_object_, - target.ref.pointer, - selector, - object?.ref.pointer ?? ffi.nullptr); + this.ref.retainAndReturnPointer(), + _sel_initWithTarget_selector_object_, + target.ref.pointer, + selector, + object?.ref.pointer ?? ffi.nullptr, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// initWithBlock: NSThread initWithBlock(objc.ObjCBlock block) { - objc.checkOsVersionInternal('NSThread.initWithBlock:', - iOS: (false, (10, 0, 0)), macOS: (false, (10, 12, 0))); - final _ret = _objc_msgSend_nnxkei(this.ref.retainAndReturnPointer(), - _sel_initWithBlock_, block.ref.pointer); + objc.checkOsVersionInternal( + 'NSThread.initWithBlock:', + iOS: (false, (10, 0, 0)), + macOS: (false, (10, 12, 0)), + ); + final _ret = _objc_msgSend_nnxkei( + this.ref.retainAndReturnPointer(), + _sel_initWithBlock_, + block.ref.pointer, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// isExecuting bool get executing { - objc.checkOsVersionInternal('NSThread.isExecuting', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.isExecuting', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isExecuting); } /// isFinished bool get finished { - objc.checkOsVersionInternal('NSThread.isFinished', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.isFinished', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isFinished); } /// isCancelled bool get cancelled { - objc.checkOsVersionInternal('NSThread.isCancelled', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.isCancelled', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); return _objc_msgSend_91o635(this.ref.pointer, _sel_isCancelled); } /// cancel void cancel() { - objc.checkOsVersionInternal('NSThread.cancel', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.cancel', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_cancel); } /// start void start() { - objc.checkOsVersionInternal('NSThread.start', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.start', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_start); } /// main void main() { - objc.checkOsVersionInternal('NSThread.main', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 5, 0))); + objc.checkOsVersionInternal( + 'NSThread.main', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 5, 0)), + ); _objc_msgSend_1pl9qdv(this.ref.pointer, _sel_main); } @@ -871,8 +1169,11 @@ class NSThread extends objc.NSObject { /// allocWithZone: static NSThread allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_NSThread, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_NSThread, + _sel_allocWithZone_, + zone, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } @@ -912,82 +1213,119 @@ late final _class_DummyObject = objc.getClass("DummyObject"); late final _sel_newWithCounter_ = objc.registerName("newWithCounter:"); final _objc_msgSend_129vhbw = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_initWithCounter_ = objc.registerName("initWithCounter:"); late final _sel_setCounter_ = objc.registerName("setCounter:"); final _objc_msgSend_yhkuco = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_dealloc = objc.registerName("dealloc"); late final _sel_self = objc.registerName("self"); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrTrampoline) .cast(); ffi.Pointer - _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); +_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_objcObjCObject_ffiVoid_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_objcObjCObject_ffiVoid_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock Function(ffi.Pointer)>`. abstract final class ObjCBlock_objcObjCObject_ffiVoid { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock Function(ffi.Pointer)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer)>( - pointer, - retain: retain, - release: release); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >(pointer, retain: retain, release: release); /// 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. - static objc.ObjCBlock Function(ffi.Pointer)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock Function(ffi.Pointer)>( - objc.newPointerBlock(_ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newPointerBlock( + _ObjCBlock_objcObjCObject_ffiVoid_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -997,37 +1335,51 @@ abstract final class ObjCBlock_objcObjCObject_ffiVoid { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock Function(ffi.Pointer)> - fromFunction(objc.ObjCObjectBase Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock< - ffi.Pointer Function(ffi.Pointer)>( - objc.newClosureBlock( - _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, - (ffi.Pointer arg0) => - fn(arg0).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > + fromFunction( + objc.ObjCObjectBase Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + >( + objc.newClosureBlock( + _ObjCBlock_objcObjCObject_ffiVoid_closureCallable, + (ffi.Pointer arg0) => fn(arg0).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock Function(ffi.Pointer)>`. -extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension on objc - .ObjCBlock Function(ffi.Pointer)> { +extension ObjCBlock_objcObjCObject_ffiVoid_CallExtension + on + objc.ObjCBlock< + ffi.Pointer Function(ffi.Pointer) + > { objc.ObjCObjectBase call(ffi.Pointer arg0) => objc.ObjCObjectBase( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0), - retain: true, - release: true); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0), + retain: true, + release: true, + ); } late final _sel_retain = objc.registerName("retain"); @@ -1035,36 +1387,49 @@ late final _sel_autorelease = objc.registerName("autorelease"); /// DummyObject class DummyObject extends objc.NSObject { - DummyObject._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + DummyObject._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [DummyObject] that points to the same underlying object as [other]. DummyObject.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [DummyObject] that wraps the given raw object pointer. - DummyObject.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + DummyObject.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [DummyObject]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_DummyObject); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_DummyObject, + ); } /// newWithCounter: static DummyObject newWithCounter(ffi.Pointer _counter) { final _ret = _objc_msgSend_129vhbw( - _class_DummyObject, _sel_newWithCounter_, _counter); + _class_DummyObject, + _sel_newWithCounter_, + _counter, + ); return DummyObject.castFromPointer(_ret, retain: false, release: true); } /// initWithCounter: DummyObject initWithCounter(ffi.Pointer _counter) { final _ret = _objc_msgSend_129vhbw( - this.ref.retainAndReturnPointer(), _sel_initWithCounter_, _counter); + this.ref.retainAndReturnPointer(), + _sel_initWithCounter_, + _counter, + ); return DummyObject.castFromPointer(_ret, retain: false, release: true); } @@ -1080,10 +1445,15 @@ class DummyObject extends objc.NSObject { /// init DummyObject init() { - objc.checkOsVersionInternal('DummyObject.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'DummyObject.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return DummyObject.castFromPointer(_ret, retain: false, release: true); } @@ -1095,8 +1465,11 @@ class DummyObject extends objc.NSObject { /// allocWithZone: static DummyObject allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_DummyObject, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_DummyObject, + _sel_allocWithZone_, + zone, + ); return DummyObject.castFromPointer(_ret, retain: false, release: true); } @@ -1129,33 +1502,38 @@ class DummyObject extends objc.NSObject { } int _ObjCBlock_Int32_Int32_fnPtrTrampoline( - ffi.Pointer block, int arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + int arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_Int32_Int32_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Int32)>( - _ObjCBlock_Int32_Int32_fnPtrTrampoline, 0) + ffi.Int32 Function(ffi.Pointer, ffi.Int32) + >(_ObjCBlock_Int32_Int32_fnPtrTrampoline, 0) .cast(); int _ObjCBlock_Int32_Int32_closureTrampoline( - ffi.Pointer block, int arg0) => - (objc.getBlockClosure(block) as int Function(int))(arg0); + ffi.Pointer block, + int arg0, +) => (objc.getBlockClosure(block) as int Function(int))(arg0); ffi.Pointer _ObjCBlock_Int32_Int32_closureCallable = ffi.Pointer.fromFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Int32)>( - _ObjCBlock_Int32_Int32_closureTrampoline, 0) + ffi.Int32 Function(ffi.Pointer, ffi.Int32) + >(_ObjCBlock_Int32_Int32_closureTrampoline, 0) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Int32_Int32 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1163,13 +1541,12 @@ abstract final class ObjCBlock_Int32_Int32 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_Int32_Int32_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_Int32_Int32_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1180,57 +1557,73 @@ abstract final class ObjCBlock_Int32_Int32 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - int Function(int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_Int32_Int32_closureCallable, - (int arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + int Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_Int32_Int32_closureCallable, + (int arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_Int32_Int32_CallExtension on objc.ObjCBlock { - int call(int arg0) => ref.pointer.ref.invoke + int call(int arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer block, ffi.Int32 arg0)>>() + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer block, + ffi.Int32 arg0, + ) + > + >() .asFunction, int)>()( - ref.pointer, arg0); + ref.pointer, + arg0, + ); } typedef IntBlock = ffi.Pointer; typedef DartIntBlock = objc.ObjCBlock; double _ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline( - ffi.Pointer block, double arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + double arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Float Function(ffi.Pointer, ffi.Float)>( - _ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline, 0.0) + ffi.Float Function(ffi.Pointer, ffi.Float) + >(_ObjCBlock_ffiFloat_ffiFloat_fnPtrTrampoline, 0.0) .cast(); double _ObjCBlock_ffiFloat_ffiFloat_closureTrampoline( - ffi.Pointer block, double arg0) => - (objc.getBlockClosure(block) as double Function(double))(arg0); + ffi.Pointer block, + double arg0, +) => (objc.getBlockClosure(block) as double Function(double))(arg0); ffi.Pointer _ObjCBlock_ffiFloat_ffiFloat_closureCallable = ffi.Pointer.fromFunction< - ffi.Float Function(ffi.Pointer, ffi.Float)>( - _ObjCBlock_ffiFloat_ffiFloat_closureTrampoline, 0.0) + ffi.Float Function(ffi.Pointer, ffi.Float) + >(_ObjCBlock_ffiFloat_ffiFloat_closureTrampoline, 0.0) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiFloat_ffiFloat { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1238,13 +1631,15 @@ abstract final class ObjCBlock_ffiFloat_ffiFloat { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiFloat_ffiFloat_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1255,13 +1650,17 @@ abstract final class ObjCBlock_ffiFloat_ffiFloat { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - double Function(double) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_ffiFloat_ffiFloat_closureCallable, - (double arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + double Function(double) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiFloat_ffiFloat_closureCallable, + (double arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. @@ -1269,46 +1668,53 @@ extension ObjCBlock_ffiFloat_ffiFloat_CallExtension on objc.ObjCBlock { double call(double arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer block, ffi.Float arg0)>>() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer block, + ffi.Float arg0, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, double)>()(ref.pointer, arg0); + double Function(ffi.Pointer, double) + >()(ref.pointer, arg0); } typedef FloatBlock = ffi.Pointer; typedef DartFloatBlock = objc.ObjCBlock; double _ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline( - ffi.Pointer block, double arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + double arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Double Function( - ffi.Pointer, ffi.Double)>( - _ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline, 0.0) + ffi.Double Function(ffi.Pointer, ffi.Double) + >(_ObjCBlock_ffiDouble_ffiDouble_fnPtrTrampoline, 0.0) .cast(); double _ObjCBlock_ffiDouble_ffiDouble_closureTrampoline( - ffi.Pointer block, double arg0) => - (objc.getBlockClosure(block) as double Function(double))(arg0); + ffi.Pointer block, + double arg0, +) => (objc.getBlockClosure(block) as double Function(double))(arg0); ffi.Pointer _ObjCBlock_ffiDouble_ffiDouble_closureCallable = ffi.Pointer.fromFunction< - ffi.Double Function( - ffi.Pointer, ffi.Double)>( - _ObjCBlock_ffiDouble_ffiDouble_closureTrampoline, 0.0) + ffi.Double Function(ffi.Pointer, ffi.Double) + >(_ObjCBlock_ffiDouble_ffiDouble_closureTrampoline, 0.0) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiDouble_ffiDouble { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1316,13 +1722,15 @@ abstract final class ObjCBlock_ffiDouble_ffiDouble { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiDouble_ffiDouble_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1333,13 +1741,17 @@ abstract final class ObjCBlock_ffiDouble_ffiDouble { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - double Function(double) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_ffiDouble_ffiDouble_closureCallable, - (double arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + double Function(double) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiDouble_ffiDouble_closureCallable, + (double arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. @@ -1347,42 +1759,53 @@ extension ObjCBlock_ffiDouble_ffiDouble_CallExtension on objc.ObjCBlock { double call(double arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer block, ffi.Double arg0)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer block, + ffi.Double arg0, + ) + > + >() .asFunction< - double Function( - ffi.Pointer, double)>()(ref.pointer, arg0); + double Function(ffi.Pointer, double) + >()(ref.pointer, arg0); } typedef DoubleBlock = ffi.Pointer; typedef DartDoubleBlock = objc.ObjCBlock; Vec4 _ObjCBlock_Vec4_Vec4_fnPtrTrampoline( - ffi.Pointer block, Vec4 arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); -ffi.Pointer _ObjCBlock_Vec4_Vec4_fnPtrCallable = ffi.Pointer - .fromFunction, Vec4)>( - _ObjCBlock_Vec4_Vec4_fnPtrTrampoline) - .cast(); + ffi.Pointer block, + Vec4 arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); +ffi.Pointer _ObjCBlock_Vec4_Vec4_fnPtrCallable = + ffi.Pointer.fromFunction< + Vec4 Function(ffi.Pointer, Vec4) + >(_ObjCBlock_Vec4_Vec4_fnPtrTrampoline) + .cast(); Vec4 _ObjCBlock_Vec4_Vec4_closureTrampoline( - ffi.Pointer block, Vec4 arg0) => - (objc.getBlockClosure(block) as Vec4 Function(Vec4))(arg0); -ffi.Pointer _ObjCBlock_Vec4_Vec4_closureCallable = ffi.Pointer - .fromFunction, Vec4)>( - _ObjCBlock_Vec4_Vec4_closureTrampoline) - .cast(); + ffi.Pointer block, + Vec4 arg0, +) => (objc.getBlockClosure(block) as Vec4 Function(Vec4))(arg0); +ffi.Pointer _ObjCBlock_Vec4_Vec4_closureCallable = + ffi.Pointer.fromFunction< + Vec4 Function(ffi.Pointer, Vec4) + >(_ObjCBlock_Vec4_Vec4_closureTrampoline) + .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_Vec4_Vec4 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1390,11 +1813,12 @@ abstract final class ObjCBlock_Vec4_Vec4 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_Vec4_Vec4_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_Vec4_Vec4_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1405,25 +1829,33 @@ abstract final class ObjCBlock_Vec4_Vec4 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - Vec4 Function(Vec4) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_Vec4_Vec4_closureCallable, - (Vec4 arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + Vec4 Function(Vec4) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_Vec4_Vec4_closureCallable, + (Vec4 arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_Vec4_Vec4_CallExtension on objc.ObjCBlock { - Vec4 call(Vec4 arg0) => ref.pointer.ref.invoke + Vec4 call(Vec4 arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - Vec4 Function( - ffi.Pointer block, Vec4 arg0)>>() + ffi.NativeFunction< + Vec4 Function(ffi.Pointer block, Vec4 arg0) + > + >() .asFunction, Vec4)>()( - ref.pointer, arg0); + ref.pointer, + arg0, + ); } typedef Vec4Block = ffi.Pointer; @@ -1431,108 +1863,174 @@ typedef DartVec4Block = objc.ObjCBlock; typedef VoidBlock = ffi.Pointer; typedef DartVoidBlock = objc.ObjCBlock; void _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_objcObjCSelector_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_objcObjCSelector_closureTrampoline) .cast(); -void _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); - objc.objectRelease(block.cast()); +void _ObjCBlock_ffiVoid_objcObjCSelector_sharedTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) { + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(objc.objectRetain(block.cast()).cast(), arg0); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_objcObjCSelector_sharedCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.isolateGroupShared(_ObjCBlock_ffiVoid_objcObjCSelector_sharedTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { - try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); - } catch (e) { - } finally { +void _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + objc.objectRelease(block.cast()); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline) + ..keepIsolateAlive = false; +void _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline( + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { + try { + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); + } catch (e) { + } finally { objc.signalWaiter(waiter); objc.objectRelease(block.cast()); } } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>( - pointer, - retain: retain, - release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// 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. - static objc.ObjCBlock)> fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock)> + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1543,15 +2041,18 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - fromFunction(void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable, - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive), - retain: false, - release: true); + fromFunction( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -1563,19 +2064,23 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> - listener(void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); - final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe(raw); - objc.objectRelease(raw.cast()); + listener( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final tramp = objc.newClosureBlock( + _ObjCBlock_ffiVoid_objcObjCSelector_sharedCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable + .nativeFunction + .cast(), + ); return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + tramp, + retain: true, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -1589,27 +2094,35 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock)> - blocking(void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + blocking( + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_objcObjCSelector_blockingCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable - .nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_objcObjCSelector_blockingListenerCallable + .nativeFunction + .cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + wrapper, + retain: false, + release: true, + ); } } @@ -1618,58 +2131,74 @@ extension ObjCBlock_ffiVoid_objcObjCSelector_CallExtension on objc.ObjCBlock)> { void call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0); } typedef SelectorBlock = ffi.Pointer; -typedef DartSelectorBlock - = objc.ObjCBlock)>; +typedef DartSelectorBlock = + objc.ObjCBlock)>; ffi.Pointer _ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_DummyObject_DummyObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_DummyObject_DummyObject_fnPtrTrampoline) .cast(); ffi.Pointer - _ObjCBlock_DummyObject_DummyObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); +_ObjCBlock_DummyObject_DummyObject_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); ffi.Pointer _ObjCBlock_DummyObject_DummyObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_DummyObject_DummyObject_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_DummyObject_DummyObject_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_DummyObject_DummyObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1677,16 +2206,20 @@ abstract final class ObjCBlock_DummyObject_DummyObject { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_DummyObject_DummyObject_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_DummyObject_DummyObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1697,84 +2230,98 @@ abstract final class ObjCBlock_DummyObject_DummyObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - DummyObject Function(DummyObject) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_DummyObject_DummyObject_closureCallable, - (ffi.Pointer arg0) => fn( - DummyObject.castFromPointer(arg0, - retain: true, release: true)) - .ref - .retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + DummyObject Function(DummyObject) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_DummyObject_DummyObject_closureCallable, + (ffi.Pointer arg0) => fn( + DummyObject.castFromPointer(arg0, retain: true, release: true), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_DummyObject_DummyObject_CallExtension on objc.ObjCBlock { DummyObject call(DummyObject arg0) => DummyObject.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0.ref.pointer), - retain: true, - release: true); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); } typedef ObjectBlock = ffi.Pointer; typedef DartObjectBlock = objc.ObjCBlock; ffi.Pointer - _ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); +_ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_DummyObject_DummyObject$1_fnPtrTrampoline) .cast(); ffi.Pointer - _ObjCBlock_DummyObject_DummyObject$1_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); +_ObjCBlock_DummyObject_DummyObject$1_closureTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); ffi.Pointer _ObjCBlock_DummyObject_DummyObject$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_DummyObject_DummyObject$1_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_DummyObject_DummyObject$1_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_DummyObject_DummyObject$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -1782,18 +2329,21 @@ abstract final class ObjCBlock_DummyObject_DummyObject$1 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable, - ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_DummyObject_DummyObject$1_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1804,104 +2354,147 @@ abstract final class ObjCBlock_DummyObject_DummyObject$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - DummyObject? Function(DummyObject?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_DummyObject_DummyObject$1_closureCallable, - (ffi.Pointer arg0) => - fn(arg0.address == 0 - ? null - : DummyObject.castFromPointer(arg0, retain: true, release: true)) - ?.ref - .retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive), - retain: false, - release: true); + DummyObject? Function(DummyObject?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_DummyObject_DummyObject$1_closureCallable, + (ffi.Pointer arg0) => + fn( + arg0.address == 0 + ? null + : DummyObject.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_DummyObject_DummyObject$1_CallExtension on objc.ObjCBlock { - DummyObject? call(DummyObject? arg0) => ref.pointer.ref.invoke + DummyObject? call(DummyObject? arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction Function(ffi.Pointer, ffi.Pointer)>() - (ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) .address == 0 ? null : DummyObject.castFromPointer( ref.pointer.ref.invoke - .cast Function(ffi.Pointer block, ffi.Pointer arg0)>>() - .asFunction Function(ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), retain: true, - release: true); + release: true, + ); } typedef NullableObjectBlock = ffi.Pointer; -typedef DartNullableObjectBlock - = objc.ObjCBlock; +typedef DartNullableObjectBlock = + objc.ObjCBlock; ffi.Pointer _ObjCBlock_NSString_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + >() + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >()(arg0); ffi.Pointer _ObjCBlock_NSString_NSString_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_NSString_NSString_fnPtrTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSString_NSString_fnPtrTrampoline) .cast(); ffi.Pointer _ObjCBlock_NSString_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as ffi.Pointer Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as ffi.Pointer Function(ffi.Pointer))( + arg0, + ); ffi.Pointer _ObjCBlock_NSString_NSString_closureCallable = ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_NSString_NSString_closureTrampoline) + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_NSString_NSString_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_NSString_NSString { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// 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. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_NSString_NSString_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_NSString_NSString_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -1912,74 +2505,111 @@ abstract final class ObjCBlock_NSString_NSString { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - objc.NSString? Function(objc.NSString?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_NSString_NSString_closureCallable, - (ffi.Pointer arg0) => - fn(arg0.address == 0 ? null : objc.NSString.castFromPointer(arg0, retain: true, release: true)) - ?.ref - .retainAndAutorelease() ?? - ffi.nullptr, - keepIsolateAlive), - retain: false, - release: true); + objc.NSString? Function(objc.NSString?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_NSString_NSString_closureCallable, + (ffi.Pointer arg0) => + fn( + arg0.address == 0 + ? null + : objc.NSString.castFromPointer( + arg0, + retain: true, + release: true, + ), + )?.ref.retainAndAutorelease() ?? + ffi.nullptr, + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_NSString_NSString_CallExtension on objc.ObjCBlock { - objc.NSString? call(objc.NSString? arg0) => ref.pointer.ref.invoke + objc.NSString? call(objc.NSString? arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction Function(ffi.Pointer, ffi.Pointer)>() - (ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr) .address == 0 ? null : objc.NSString.castFromPointer( ref.pointer.ref.invoke - .cast Function(ffi.Pointer block, ffi.Pointer arg0)>>() - .asFunction Function(ffi.Pointer, ffi.Pointer)>()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr), retain: true, - release: true); + release: true, + ); } IntBlock _ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline( - ffi.Pointer block, IntBlock arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + IntBlock arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_IntBlock_IntBlock_fnPtrCallable = ffi.Pointer.fromFunction< - IntBlock Function(ffi.Pointer, - IntBlock)>(_ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline) + IntBlock Function(ffi.Pointer, IntBlock) + >(_ObjCBlock_IntBlock_IntBlock_fnPtrTrampoline) .cast(); IntBlock _ObjCBlock_IntBlock_IntBlock_closureTrampoline( - ffi.Pointer block, IntBlock arg0) => - (objc.getBlockClosure(block) as IntBlock Function(IntBlock))(arg0); + ffi.Pointer block, + IntBlock arg0, +) => (objc.getBlockClosure(block) as IntBlock Function(IntBlock))(arg0); ffi.Pointer _ObjCBlock_IntBlock_IntBlock_closureCallable = ffi.Pointer.fromFunction< - IntBlock Function(ffi.Pointer, - IntBlock)>(_ObjCBlock_IntBlock_IntBlock_closureTrampoline) + IntBlock Function(ffi.Pointer, IntBlock) + >(_ObjCBlock_IntBlock_IntBlock_closureTrampoline) .cast(); /// Construction methods for `objc.ObjCBlock Function(objc.ObjCBlock)>`. abstract final class ObjCBlock_IntBlock_IntBlock { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + >(pointer, retain: retain, release: release); /// Creates a block from a C function pointer. /// @@ -1987,16 +2617,25 @@ abstract final class ObjCBlock_IntBlock_IntBlock { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)> - fromFunctionPointer(ffi.Pointer> ptr) => - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_IntBlock_IntBlock_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + > + fromFunctionPointer( + ffi.Pointer> ptr, + ) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + >( + objc.newPointerBlock( + _ObjCBlock_IntBlock_IntBlock_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2006,75 +2645,133 @@ abstract final class ObjCBlock_IntBlock_IntBlock { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock Function(objc.ObjCBlock)> - fromFunction(DartIntBlock Function(DartIntBlock) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_IntBlock_IntBlock_closureCallable, - (IntBlock arg0) => - fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, retain: true, release: true)).ref.retainAndAutorelease(), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + > + fromFunction( + DartIntBlock Function(DartIntBlock) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + >( + objc.newClosureBlock( + _ObjCBlock_IntBlock_IntBlock_closureCallable, + (IntBlock arg0) => fn( + ObjCBlock_Int32_Int32.castFromPointer( + arg0, + retain: true, + release: true, + ), + ).ref.retainAndAutorelease(), + keepIsolateAlive, + ), + retain: false, + release: true, + ); } /// Call operator for `objc.ObjCBlock Function(objc.ObjCBlock)>`. -extension ObjCBlock_IntBlock_IntBlock_CallExtension on objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)> { +extension ObjCBlock_IntBlock_IntBlock_CallExtension + on + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + > { DartIntBlock call(DartIntBlock arg0) => ObjCBlock_Int32_Int32.castFromPointer( - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - IntBlock Function( - ffi.Pointer block, IntBlock arg0)>>() - .asFunction< - IntBlock Function(ffi.Pointer, - IntBlock)>()(ref.pointer, arg0.ref.pointer), - retain: true, - release: true); + ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + IntBlock Function( + ffi.Pointer block, + IntBlock arg0, + ) + > + >() + .asFunction< + IntBlock Function(ffi.Pointer, IntBlock) + >()(ref.pointer, arg0.ref.pointer), + retain: true, + release: true, + ); } typedef BlockBlock = ffi.Pointer; -typedef DartBlockBlock = objc.ObjCBlock< - objc.ObjCBlock Function( - objc.ObjCBlock)>; +typedef DartBlockBlock = + objc.ObjCBlock< + objc.ObjCBlock Function( + objc.ObjCBlock, + ) + >; void _ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline( - ffi.Pointer block, IntBlock arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + IntBlock arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - IntBlock)>(_ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, IntBlock) + >(_ObjCBlock_ffiVoid_IntBlock_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_IntBlock_closureTrampoline( - ffi.Pointer block, IntBlock arg0) => - (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); + ffi.Pointer block, + IntBlock arg0, +) => (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_IntBlock_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - IntBlock)>(_ObjCBlock_ffiVoid_IntBlock_closureTrampoline) + ffi.Void Function(ffi.Pointer, IntBlock) + >(_ObjCBlock_ffiVoid_IntBlock_closureTrampoline) .cast(); +void _ObjCBlock_ffiVoid_IntBlock_sharedTrampoline( + ffi.Pointer block, + IntBlock arg0, +) { + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + IntBlock arg0, + ) + > + >() + .asFunction, IntBlock)>()( + objc.objectRetain(block.cast()).cast(), + objc.blockRetain(arg0.cast()).cast(), + ); +} + +ffi.NativeCallable, IntBlock)> +_ObjCBlock_ffiVoid_IntBlock_sharedCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, IntBlock) + >.isolateGroupShared(_ObjCBlock_ffiVoid_IntBlock_sharedTrampoline) + ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_IntBlock_listenerTrampoline( - ffi.Pointer block, IntBlock arg0) { + ffi.Pointer block, + IntBlock arg0, +) { (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable, IntBlock)> - _ObjCBlock_ffiVoid_IntBlock_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - IntBlock)>.listener(_ObjCBlock_ffiVoid_IntBlock_listenerTrampoline) +_ObjCBlock_ffiVoid_IntBlock_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, IntBlock) + >.listener(_ObjCBlock_ffiVoid_IntBlock_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - IntBlock arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + IntBlock arg0, +) { try { (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); } catch (e) { @@ -2085,51 +2782,74 @@ void _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + IntBlock, + ) +> +_ObjCBlock_ffiVoid_IntBlock_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, IntBlock)> - _ObjCBlock_ffiVoid_IntBlock_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, IntBlock)>.isolateLocal( - _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + IntBlock, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + IntBlock, + ) +> +_ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, IntBlock)> - _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - IntBlock)>.listener(_ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + IntBlock, + ) + >.listener(_ObjCBlock_ffiVoid_IntBlock_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_IntBlock { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function( - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + ffi.Void Function(objc.ObjCBlock) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + >(pointer, retain: retain, release: release); /// 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. - static objc - .ObjCBlock)> - fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + > + fromFunctionPointer( + ffi.Pointer> ptr, + ) => + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + >( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_IntBlock_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2140,17 +2860,29 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)> fromFunction( - void Function(DartIntBlock) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_closureCallable, - (IntBlock arg0) => - fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + ffi.Void Function(objc.ObjCBlock) + > + fromFunction( + void Function(DartIntBlock) fn, { + bool keepIsolateAlive = true, + }) => + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + >( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_IntBlock_closureCallable, + (IntBlock arg0) => fn( + ObjCBlock_Int32_Int32.castFromPointer( + arg0, + retain: true, + release: true, + ), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -2162,20 +2894,25 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)> - listener(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_listenerCallable.nativeFunction.cast(), - (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); - final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_f167m6(raw); - objc.objectRelease(raw.cast()); + ffi.Void Function(objc.ObjCBlock) + > + listener(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { + final tramp = objc.newClosureBlock( + _ObjCBlock_ffiVoid_IntBlock_sharedCallable.nativeFunction.cast(), + (IntBlock arg0) => fn( + ObjCBlock_Int32_Int32.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_IntBlock_listenerCallable.nativeFunction + .cast(), + ); return objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function(objc.ObjCBlock) + >(tramp, retain: true, release: true); } /// Creates a blocking block from a Dart function. @@ -2189,94 +2926,168 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)> - blocking(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { + ffi.Void Function(objc.ObjCBlock) + > + blocking(void Function(DartIntBlock) fn, {bool keepIsolateAlive = true}) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_blockingCallable.nativeFunction.cast(), - (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_IntBlock_blockingCallable.nativeFunction.cast(), + (IntBlock arg0) => fn( + ObjCBlock_Int32_Int32.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable.nativeFunction - .cast(), - (IntBlock arg0) => fn(ObjCBlock_Int32_Int32.castFromPointer(arg0, - retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_IntBlock_blockingListenerCallable.nativeFunction + .cast(), + (IntBlock arg0) => fn( + ObjCBlock_Int32_Int32.castFromPointer( + arg0, + retain: false, + release: true, + ), + ), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)>( - wrapper, - retain: false, - release: true); + ffi.Void Function(objc.ObjCBlock) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_IntBlock_CallExtension on objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)> { +extension ObjCBlock_ffiVoid_IntBlock_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + > { void call(DartIntBlock arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, IntBlock arg0)>>() - .asFunction< - void Function(ffi.Pointer, IntBlock)>()( - ref.pointer, arg0.ref.pointer); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + IntBlock arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, IntBlock) + >()(ref.pointer, arg0.ref.pointer); } typedef ListenerBlock = ffi.Pointer; -typedef DartListenerBlock = objc.ObjCBlock< - ffi.Void Function(objc.ObjCBlock)>; +typedef DartListenerBlock = + objc.ObjCBlock< + ffi.Void Function(objc.ObjCBlock) + >; void _ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_DummyObject_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_DummyObject_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_DummyObject_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_DummyObject_closureTrampoline) .cast(); +void _ObjCBlock_ffiVoid_DummyObject_sharedTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) { + print('QWERQWER'); + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(objc.objectRetain(block.cast()).cast(), objc.objectRetain(arg0)); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject_sharedCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >.isolateGroupShared(_ObjCBlock_ffiVoid_DummyObject_sharedTrampoline) + ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_DummyObject_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -2285,34 +3096,50 @@ void _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_DummyObject_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_DummyObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -2320,15 +3147,18 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_DummyObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2339,17 +3169,18 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(DummyObject) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_closureCallable, - (ffi.Pointer arg0) => fn( - DummyObject.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(DummyObject) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject_closureCallable, + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -2361,17 +3192,22 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(DummyObject) fn, - {bool keepIsolateAlive = true}) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); - final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + void Function(DummyObject) fn, { + bool keepIsolateAlive = true, + }) { + final tramp = objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject_sharedCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_DummyObject_listenerCallable.nativeFunction + .cast(), + ); + return objc.ObjCBlock( + tramp, + retain: true, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -2385,25 +3221,34 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(DummyObject) fn, - {bool keepIsolateAlive = true}) { + void Function(DummyObject) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => - fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_DummyObject_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => - fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_DummyObject_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => + fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -2412,64 +3257,121 @@ extension ObjCBlock_ffiVoid_DummyObject_CallExtension on objc.ObjCBlock { void call(DummyObject arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0.ref.pointer); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer); } typedef ObjectListenerBlock = ffi.Pointer; -typedef DartObjectListenerBlock - = objc.ObjCBlock; +typedef DartObjectListenerBlock = + objc.ObjCBlock; void _ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_DummyObject$1_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_DummyObject$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_DummyObject$1_closureTrampoline) .cast(); +void _ObjCBlock_ffiVoid_DummyObject$1_sharedTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) { + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(objc.objectRetain(block.cast()).cast(), objc.objectRetain(arg0)); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject$1_sharedCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >.isolateGroupShared(_ObjCBlock_ffiVoid_DummyObject$1_sharedTrampoline) + ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject$1_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -2478,34 +3380,50 @@ void _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject$1_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -2513,15 +3431,18 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_DummyObject$1_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2532,18 +3453,21 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(DummyObject?) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_closureCallable, - (ffi.Pointer arg0) => fn(arg0.address == 0 - ? null - : DummyObject.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(DummyObject?) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject$1_closureCallable, + (ffi.Pointer arg0) => fn( + arg0.address == 0 + ? null + : DummyObject.castFromPointer(arg0, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -2555,18 +3479,26 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(DummyObject?) fn, - {bool keepIsolateAlive = true}) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + void Function(DummyObject?) fn, { + bool keepIsolateAlive = true, + }) { + final tramp = objc.newClosureBlock( + _ObjCBlock_ffiVoid_DummyObject$1_sharedCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); - final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + : DummyObject.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable + .nativeFunction + .cast(), + ); + return objc.ObjCBlock( + tramp, + retain: true, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -2580,27 +3512,40 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(DummyObject?) fn, - {bool keepIsolateAlive = true}) { + void Function(DummyObject?) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_DummyObject$1_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : DummyObject.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn(arg0.address == 0 + _ObjCBlock_ffiVoid_DummyObject$1_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => fn( + arg0.address == 0 ? null - : DummyObject.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + : DummyObject.castFromPointer(arg0, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -2608,78 +3553,177 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { extension ObjCBlock_ffiVoid_DummyObject$1_CallExtension on objc.ObjCBlock { void call(DummyObject? arg0) => ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()( - ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0?.ref.pointer ?? ffi.nullptr); } typedef NullableListenerBlock = ffi.Pointer; -typedef DartNullableListenerBlock - = objc.ObjCBlock; +typedef DartNullableListenerBlock = + objc.ObjCBlock; void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2) => + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, +) => block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function( - Vec2 arg0, Vec4 arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function( - Vec2, Vec4, ffi.Pointer)>()(arg0, arg1, arg2); + ffi.NativeFunction< + ffi.Void Function( + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + arg2, + ); ffi.Pointer _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, Vec2, Vec4, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( - Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function(Vec2, Vec4, ffi.Pointer))( + arg0, + arg1, + arg2, + ); ffi.Pointer _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, Vec2, Vec4, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureTrampoline) .cast(); +void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_sharedTrampoline( + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, +) { + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >()( + objc.objectRetain(block.cast()).cast(), + arg0, + arg1, + objc.objectRetain(arg2), + ); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_sharedCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >.isolateGroupShared( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_sharedTrampoline, + ) + ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function(Vec2, Vec4, ffi.Pointer))( + arg0, + arg1, + arg2, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, Vec2, Vec4, - ffi.Pointer)> - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, Vec2, Vec4, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - Vec2, Vec4, ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function(Vec2, Vec4, ffi.Pointer))( + arg0, + arg1, + arg2, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -2688,55 +3732,85 @@ void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, Vec2, Vec4, ffi.Pointer)> - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, Vec2, Vec4, ffi.Pointer)> - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// 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. - static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(Vec2 arg0, Vec4 arg1, - ffi.Pointer arg2)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + static objc.ObjCBlock + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2746,19 +3820,23 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc.ObjCBlock fromFunction( - void Function(Vec2, Vec4, objc.NSObject) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable, - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + static objc.ObjCBlock + fromFunction( + void Function(Vec2, Vec4, objc.NSObject) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_closureCallable, + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: true, release: true), + ), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -2770,20 +3848,27 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(Vec2, Vec4, objc.NSObject) fn, - {bool keepIsolateAlive = true}) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable.nativeFunction - .cast(), - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: false, release: true)), - keepIsolateAlive); - final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_ru30ue(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + void Function(Vec2, Vec4, objc.NSObject) fn, { + bool keepIsolateAlive = true, + }) { + final tramp = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_sharedCallable.nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable + .nativeFunction + .cast(), + ); + return objc.ObjCBlock( + tramp, + retain: true, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -2797,102 +3882,169 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(Vec2, Vec4, objc.NSObject) fn, - {bool keepIsolateAlive = true}) { + void Function(Vec2, Vec4, objc.NSObject) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable.nativeFunction - .cast(), - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingCallable.nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable - .nativeFunction - .cast(), - (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( - arg0, - arg1, - objc.NSObject.castFromPointer(arg2, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingListenerCallable + .nativeFunction + .cast(), + (Vec2 arg0, Vec4 arg1, ffi.Pointer arg2) => fn( + arg0, + arg1, + objc.NSObject.castFromPointer(arg2, retain: false, release: true), + ), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_CallExtension on objc.ObjCBlock { - void call(Vec2 arg0, Vec4 arg1, objc.NSObject arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer, Vec2, Vec4, - ffi.Pointer)>()( - ref.pointer, arg0, arg1, arg2.ref.pointer); + void call(Vec2 arg0, Vec4 arg1, objc.NSObject arg2) => ref.pointer.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + Vec2, + Vec4, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2.ref.pointer); } typedef StructListenerBlock = ffi.Pointer; -typedef DartStructListenerBlock - = objc.ObjCBlock; +typedef DartStructListenerBlock = + objc.ObjCBlock; void _ObjCBlock_ffiVoid_NSString_fnPtrTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast< + ffi.NativeFunction arg0)> + >() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSString_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSString_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_NSString_closureTrampoline( - ffi.Pointer block, - ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_NSString_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>( - _ObjCBlock_ffiVoid_NSString_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_NSString_closureTrampoline) .cast(); +void _ObjCBlock_ffiVoid_NSString_sharedTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) { + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(objc.objectRetain(block.cast()).cast(), objc.objectRetain(arg0)); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_sharedCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >.isolateGroupShared(_ObjCBlock_ffiVoid_NSString_sharedTrampoline) + ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSString_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) { + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSString_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSString_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSString_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_NSString_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) + as void Function(ffi.Pointer))(arg0); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -2901,33 +4053,50 @@ void _ObjCBlock_ffiVoid_NSString_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSString_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_NSString_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_NSString_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_NSString_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_NSString_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_NSString_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_NSString_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_NSString { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -2935,15 +4104,15 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_NSString_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_NSString_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -2954,17 +4123,18 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(objc.NSString) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_closureCallable, - (ffi.Pointer arg0) => fn( - objc.NSString.castFromPointer(arg0, - retain: true, release: true)), - keepIsolateAlive), - retain: false, - release: true); + void Function(objc.NSString) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_closureCallable, + (ffi.Pointer arg0) => + fn(objc.NSString.castFromPointer(arg0, retain: true, release: true)), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -2976,17 +4146,22 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(objc.NSString) fn, - {bool keepIsolateAlive = true}) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn( - objc.NSString.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); - final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + void Function(objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { + final tramp = objc.newClosureBlock( + _ObjCBlock_ffiVoid_NSString_sharedCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_NSString_listenerCallable.nativeFunction + .cast(), + ); + return objc.ObjCBlock( + tramp, + retain: true, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -3000,25 +4175,34 @@ abstract final class ObjCBlock_ffiVoid_NSString { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(objc.NSString) fn, - {bool keepIsolateAlive = true}) { + void Function(objc.NSString) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn( - objc.NSString.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSString_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => + fn(objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_NSString_blockingListenerCallable.nativeFunction - .cast(), - (ffi.Pointer arg0) => fn( - objc.NSString.castFromPointer(arg0, retain: false, release: true)), - keepIsolateAlive); + _ObjCBlock_ffiVoid_NSString_blockingListenerCallable.nativeFunction + .cast(), + (ffi.Pointer arg0) => + fn(objc.NSString.castFromPointer(arg0, retain: false, release: true)), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } @@ -3027,75 +4211,159 @@ extension ObjCBlock_ffiVoid_NSString_CallExtension on objc.ObjCBlock { void call(objc.NSString arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0.ref.pointer); + void Function( + ffi.Pointer, + ffi.Pointer, + ) + >()(ref.pointer, arg0.ref.pointer); } typedef NSStringListenerBlock = ffi.Pointer; -typedef DartNSStringListenerBlock - = objc.ObjCBlock; +typedef DartNSStringListenerBlock = + objc.ObjCBlock; void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline( - ffi.Pointer block, - int arg0, - Vec4 arg1, - ffi.Pointer arg2) => + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2, +) => block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Int32 arg0, Vec4 arg1, - ffi.Pointer arg2)>>() - .asFunction)>()( - arg0, arg1, arg2); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int32 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction)>()( + arg0, + arg1, + arg2, + ); ffi.Pointer _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Int32, - Vec4, ffi.Pointer)>( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline( - ffi.Pointer block, - int arg0, - Vec4 arg1, - ffi.Pointer arg2) => - (objc.getBlockClosure(block) as void Function( - int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2, +) => + (objc.getBlockClosure(block) + as void Function(int, Vec4, ffi.Pointer))(arg0, arg1, arg2); ffi.Pointer _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, ffi.Int32, - Vec4, ffi.Pointer)>( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureTrampoline) .cast(); +void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_sharedTrampoline( + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2, +) { + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int32 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + Vec4, + ffi.Pointer, + ) + >()(objc.objectRetain(block.cast()).cast(), arg0, arg1, arg2); +} + +ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_sharedCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >.isolateGroupShared( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_sharedTrampoline, + ) + ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline( - ffi.Pointer block, - int arg0, - Vec4 arg1, - ffi.Pointer arg2) { - (objc.getBlockClosure(block) as void Function( - int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2, +) { + (objc.getBlockClosure(block) + as void Function(int, Vec4, ffi.Pointer))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Int32, Vec4, - ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Int32, Vec4, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0, - Vec4 arg1, - ffi.Pointer arg2) { + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, + Vec4 arg1, + ffi.Pointer arg2, +) { try { - (objc.getBlockClosure(block) as void Function( - int, Vec4, ffi.Pointer))(arg0, arg1, arg2); + (objc.getBlockClosure(block) + as void Function(int, Vec4, ffi.Pointer))(arg0, arg1, arg2); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -3104,43 +4372,62 @@ void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Int32, Vec4, ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Int32, Vec4, ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable = ffi - .NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + Vec4, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// Returns a block that wraps the given raw block pointer. - static objc - .ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>( - pointer, - retain: retain, - release: release); + static objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => + objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -3148,14 +4435,24 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)> fromFunctionPointer( - ffi.Pointer arg2)>> - ptr) => + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32 arg0, Vec4 arg1, ffi.Pointer arg2) + > + > + ptr, + ) => objc.ObjCBlock)>( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + objc.newPointerBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_fnPtrCallable, + ptr.cast(), + ), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -3166,17 +4463,22 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)> fromFunction( - void Function(int, Vec4, ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > + fromFunction( + void Function(int, Vec4, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( - objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable, - (int arg0, Vec4 arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive), - retain: false, - release: true); + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_closureCallable, + (int arg0, Vec4 arg1, ffi.Pointer arg2) => + fn(arg0, arg1, arg2), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -3187,21 +4489,25 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. - static objc - .ObjCBlock)> - listener(void Function(int, Vec4, ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable.nativeFunction - .cast(), - (int arg0, Vec4 arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive); - final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_li50va(raw); - objc.objectRelease(raw.cast()); + static objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > + listener( + void Function(int, Vec4, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final tramp = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_sharedCallable.nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => fn(arg0, arg1, arg2), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable + .nativeFunction + .cast(), + ); return objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + >(tramp, retain: true, release: true); } /// Creates a blocking block from a Dart function. @@ -3214,94 +4520,157 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { /// until it is garbage collected by both Dart and ObjC. If the owner isolate /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. - static objc - .ObjCBlock)> - blocking(void Function(int, Vec4, ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + static objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > + blocking( + void Function(int, Vec4, ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable.nativeFunction - .cast(), - (int arg0, Vec4 arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingCallable.nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => fn(arg0, arg1, arg2), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable - .nativeFunction - .cast(), - (int arg0, Vec4 arg1, ffi.Pointer arg2) => - fn(arg0, arg1, arg2), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingListenerCallable + .nativeFunction + .cast(), + (int arg0, Vec4 arg1, ffi.Pointer arg2) => fn(arg0, arg1, arg2), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_li50va( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); return objc.ObjCBlock< - ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer)>(wrapper, - retain: false, release: true); + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + >(wrapper, retain: false, release: true); } } /// Call operator for `objc.ObjCBlock)>`. -extension ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_CallExtension on objc - .ObjCBlock)> { - void call(int arg0, Vec4 arg1, ffi.Pointer arg2) => - ref.pointer.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Int32 arg0, Vec4 arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer, int, Vec4, - ffi.Pointer)>()(ref.pointer, arg0, arg1, arg2); +extension ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_CallExtension + on + objc.ObjCBlock< + ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) + > { + void call(int arg0, Vec4 arg1, ffi.Pointer arg2) => ref + .pointer + .ref + .invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int32 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer, + int, + Vec4, + ffi.Pointer, + ) + >()(ref.pointer, arg0, arg1, arg2); } typedef NoTrampolineListenerBlock = ffi.Pointer; -typedef DartNoTrampolineListenerBlock - = objc.ObjCBlock)>; +typedef DartNoTrampolineListenerBlock = + objc.ObjCBlock)>; void _ObjCBlock_ffiVoid_Int32_fnPtrTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - block.ref.target - .cast< - ffi - .NativeFunction arg0)>>() - .asFunction)>()(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => block.ref.target + .cast arg0)>>() + .asFunction)>()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Int32_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_Int32_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Int32_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32_closureTrampoline( - ffi.Pointer block, ffi.Pointer arg0) => - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + ffi.Pointer block, + ffi.Pointer arg0, +) => (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, +); ffi.Pointer _ObjCBlock_ffiVoid_Int32_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>( - _ObjCBlock_ffiVoid_Int32_closureTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >(_ObjCBlock_ffiVoid_Int32_closureTrampoline) .cast(); +void _ObjCBlock_ffiVoid_Int32_sharedTrampoline( + ffi.Pointer block, + ffi.Pointer arg0, +) { + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >()(objc.objectRetain(block.cast()).cast(), arg0); +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_Int32_sharedCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ) + >.isolateGroupShared(_ObjCBlock_ffiVoid_Int32_sharedTrampoline) + ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32_listenerTrampoline( - ffi.Pointer block, ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer arg0, +) { (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Pointer) +> +_ObjCBlock_ffiVoid_Int32_listenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Int32_listenerTrampoline) + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Int32_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - ffi.Pointer arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + ffi.Pointer arg0, +) { try { - (objc.getBlockClosure(block) as void Function( - ffi.Pointer))(arg0); + (objc.getBlockClosure(block) as void Function(ffi.Pointer))( + arg0, + ); } catch (e) { } finally { objc.signalWaiter(waiter); @@ -3310,30 +4679,51 @@ void _ObjCBlock_ffiVoid_Int32_blockingTrampoline( } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.isolateLocal( - _ObjCBlock_ffiVoid_Int32_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_blockingCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_Int32_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)> - _ObjCBlock_ffiVoid_Int32_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>.listener( - _ObjCBlock_ffiVoid_Int32_blockingTrampoline) + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) +> +_ObjCBlock_ffiVoid_Int32_blockingListenerCallable = + ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >.listener(_ObjCBlock_ffiVoid_Int32_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock)>`. abstract final class ObjCBlock_ffiVoid_Int32 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock)> - castFromPointer(ffi.Pointer pointer, - {bool retain = false, bool release = false}) => - objc.ObjCBlock)>(pointer, - retain: retain, release: release); + castFromPointer( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock)>( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -3341,15 +4731,16 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock)> - fromFunctionPointer( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0)>> - ptr) => - objc.ObjCBlock)>( - objc.newPointerBlock(_ObjCBlock_ffiVoid_Int32_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + fromFunctionPointer( + ffi.Pointer< + ffi.NativeFunction arg0)> + > + ptr, + ) => objc.ObjCBlock)>( + objc.newPointerBlock(_ObjCBlock_ffiVoid_Int32_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -3360,13 +4751,17 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> fromFunction( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock)>( - objc.newClosureBlock(_ObjCBlock_ffiVoid_Int32_closureCallable, - (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock)>( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_closureCallable, + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -3378,16 +4773,21 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock)> listener( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_listenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); - final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_yhkuco(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock)>(wrapper, - retain: false, release: true); + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { + final tramp = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32_sharedCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_Int32_listenerCallable.nativeFunction + .cast(), + ); + return objc.ObjCBlock)>( + tramp, + retain: true, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -3401,22 +4801,31 @@ abstract final class ObjCBlock_ffiVoid_Int32 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock)> blocking( - void Function(ffi.Pointer) fn, - {bool keepIsolateAlive = true}) { + void Function(ffi.Pointer) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_blockingCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32_blockingCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32_blockingListenerCallable.nativeFunction.cast(), - (ffi.Pointer arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32_blockingListenerCallable.nativeFunction.cast(), + (ffi.Pointer arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock)>(wrapper, - retain: false, release: true); + return objc.ObjCBlock)>( + wrapper, + retain: false, + release: true, + ); } } @@ -3425,48 +4834,86 @@ extension ObjCBlock_ffiVoid_Int32_CallExtension on objc.ObjCBlock)> { void call(ffi.Pointer arg0) => ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer)>()(ref.pointer, arg0); + void Function(ffi.Pointer, ffi.Pointer) + >()(ref.pointer, arg0); } void _ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline( - ffi.Pointer block, int arg0) => - block.ref.target - .cast>() - .asFunction()(arg0); + ffi.Pointer block, + int arg0, +) => block.ref.target + .cast>() + .asFunction()(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Int32$1_fnPtrCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Int32)>(_ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int32) + >(_ObjCBlock_ffiVoid_Int32$1_fnPtrTrampoline) .cast(); void _ObjCBlock_ffiVoid_Int32$1_closureTrampoline( - ffi.Pointer block, int arg0) => - (objc.getBlockClosure(block) as void Function(int))(arg0); + ffi.Pointer block, + int arg0, +) => (objc.getBlockClosure(block) as void Function(int))(arg0); ffi.Pointer _ObjCBlock_ffiVoid_Int32$1_closureCallable = ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer, - ffi.Int32)>(_ObjCBlock_ffiVoid_Int32$1_closureTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int32) + >(_ObjCBlock_ffiVoid_Int32$1_closureTrampoline) .cast(); +void _ObjCBlock_ffiVoid_Int32$1_sharedTrampoline( + ffi.Pointer block, + int arg0, +) { + block.ref.trampoline + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int32 arg0, + ) + > + >() + .asFunction, int)>()( + objc.objectRetain(block.cast()).cast(), + arg0, + ); +} + +ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Int32) +> +_ObjCBlock_ffiVoid_Int32$1_sharedCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Int32) + >.isolateGroupShared(_ObjCBlock_ffiVoid_Int32$1_sharedTrampoline) + ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32$1_listenerTrampoline( - ffi.Pointer block, int arg0) { + ffi.Pointer block, + int arg0, +) { (objc.getBlockClosure(block) as void Function(int))(arg0); objc.objectRelease(block.cast()); } ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Int32)> - _ObjCBlock_ffiVoid_Int32$1_listenerCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Int32)>.listener(_ObjCBlock_ffiVoid_Int32$1_listenerTrampoline) + ffi.Void Function(ffi.Pointer, ffi.Int32) +> +_ObjCBlock_ffiVoid_Int32$1_listenerCallable = + ffi.NativeCallable< + ffi.Void Function(ffi.Pointer, ffi.Int32) + >.listener(_ObjCBlock_ffiVoid_Int32$1_listenerTrampoline) ..keepIsolateAlive = false; void _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline( - ffi.Pointer block, - ffi.Pointer waiter, - int arg0) { + ffi.Pointer block, + ffi.Pointer waiter, + int arg0, +) { try { (objc.getBlockClosure(block) as void Function(int))(arg0); } catch (e) { @@ -3477,32 +4924,50 @@ void _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline( } ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) +> +_ObjCBlock_ffiVoid_Int32$1_blockingCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Int32)> - _ObjCBlock_ffiVoid_Int32$1_blockingCallable = ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>.isolateLocal( - _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + >.isolateLocal(_ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) ..keepIsolateAlive = false; ffi.NativeCallable< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) +> +_ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable = + ffi.NativeCallable< ffi.Void Function( - ffi.Pointer, ffi.Pointer, ffi.Int32)> - _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable = ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>.listener(_ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + >.listener(_ObjCBlock_ffiVoid_Int32$1_blockingTrampoline) ..keepIsolateAlive = false; /// Construction methods for `objc.ObjCBlock`. abstract final class ObjCBlock_ffiVoid_Int32$1 { /// Returns a block that wraps the given raw block pointer. static objc.ObjCBlock castFromPointer( - ffi.Pointer pointer, - {bool retain = false, - bool release = false}) => - objc.ObjCBlock(pointer, - retain: retain, release: release); + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) => objc.ObjCBlock( + pointer, + retain: retain, + release: release, + ); /// Creates a block from a C function pointer. /// @@ -3510,13 +4975,12 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// the isolate that registered it. Invoking the block on the wrong thread /// will result in a crash. static objc.ObjCBlock fromFunctionPointer( - ffi.Pointer> - ptr) => - objc.ObjCBlock( - objc.newPointerBlock( - _ObjCBlock_ffiVoid_Int32$1_fnPtrCallable, ptr.cast()), - retain: false, - release: true); + ffi.Pointer> ptr, + ) => objc.ObjCBlock( + objc.newPointerBlock(_ObjCBlock_ffiVoid_Int32$1_fnPtrCallable, ptr.cast()), + retain: false, + release: true, + ); /// Creates a block from a Dart function. /// @@ -3527,13 +4991,17 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock fromFunction( - void Function(int) fn, - {bool keepIsolateAlive = true}) => - objc.ObjCBlock( - objc.newClosureBlock(_ObjCBlock_ffiVoid_Int32$1_closureCallable, - (int arg0) => fn(arg0), keepIsolateAlive), - retain: false, - release: true); + void Function(int) fn, { + bool keepIsolateAlive = true, + }) => objc.ObjCBlock( + objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32$1_closureCallable, + (int arg0) => fn(arg0), + keepIsolateAlive, + ), + retain: false, + release: true, + ); /// Creates a listener block from a Dart function. /// @@ -3545,16 +5013,21 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// If `keepIsolateAlive` is true, this block will keep this isolate alive /// until it is garbage collected by both Dart and ObjC. static objc.ObjCBlock listener( - void Function(int) fn, - {bool keepIsolateAlive = true}) { - final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32$1_listenerCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); - final wrapper = _BlockTestObjCLibrary_wrapListenerBlock_1bqef4y(raw); - objc.objectRelease(raw.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { + final tramp = objc.newClosureBlock( + _ObjCBlock_ffiVoid_Int32$1_sharedCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + trampoline: _ObjCBlock_ffiVoid_Int32$1_listenerCallable.nativeFunction + .cast(), + ); + return objc.ObjCBlock( + tramp, + retain: true, + release: true, + ); } /// Creates a blocking block from a Dart function. @@ -3568,244 +5041,374 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { /// has shut down, and the block is invoked by native code, it may block /// indefinitely, or have other undefined behavior. static objc.ObjCBlock blocking( - void Function(int) fn, - {bool keepIsolateAlive = true}) { + void Function(int) fn, { + bool keepIsolateAlive = true, + }) { final raw = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32$1_blockingCallable.nativeFunction.cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32$1_blockingCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final rawListener = objc.newClosureBlock( - _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable.nativeFunction - .cast(), - (int arg0) => fn(arg0), - keepIsolateAlive); + _ObjCBlock_ffiVoid_Int32$1_blockingListenerCallable.nativeFunction.cast(), + (int arg0) => fn(arg0), + keepIsolateAlive, + ); final wrapper = _BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( - raw, rawListener, objc.objCContext); + raw, + rawListener, + objc.objCContext, + ); objc.objectRelease(raw.cast()); objc.objectRelease(rawListener.cast()); - return objc.ObjCBlock(wrapper, - retain: false, release: true); + return objc.ObjCBlock( + wrapper, + retain: false, + release: true, + ); } } /// Call operator for `objc.ObjCBlock`. extension ObjCBlock_ffiVoid_Int32$1_CallExtension on objc.ObjCBlock { - void call(int arg0) => ref.pointer.ref.invoke + void call(int arg0) => + ref.pointer.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, ffi.Int32 arg0)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer block, + ffi.Int32 arg0, + ) + > + >() .asFunction, int)>()( - ref.pointer, arg0); + ref.pointer, + arg0, + ); } late final _class_BlockTester = objc.getClass("BlockTester"); late final _sel_setup_ = objc.registerName("setup:"); final _objc_msgSend_ovsamd = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_newFromBlock_ = objc.registerName("newFromBlock:"); late final _sel_newFromMultiplier_ = objc.registerName("newFromMultiplier:"); final _objc_msgSend_aclumu = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_newFromListener_ = objc.registerName("newFromListener:"); late final _sel_call_ = objc.registerName("call:"); final _objc_msgSend_zo3bvx = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>() + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() .asFunction< - int Function(ffi.Pointer, - ffi.Pointer, int)>(); + int Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_getBlock = objc.registerName("getBlock"); final _objc_msgSend_uwvaik = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_pokeBlock = objc.registerName("pokeBlock"); late final _sel_callOnSameThread_ = objc.registerName("callOnSameThread:"); -late final _sel_callOnSameThreadOutsideIsolate_ = - objc.registerName("callOnSameThreadOutsideIsolate:"); +late final _sel_callOnSameThreadOutsideIsolate_ = objc.registerName( + "callOnSameThreadOutsideIsolate:", +); late final _sel_callOnNewThread_ = objc.registerName("callOnNewThread:"); -late final _sel_callWithBlockOnNewThread_ = - objc.registerName("callWithBlockOnNewThread:"); +late final _sel_callWithBlockOnNewThread_ = objc.registerName( + "callWithBlockOnNewThread:", +); late final _sel_callFloatBlock_ = objc.registerName("callFloatBlock:"); final _objc_msgSend_o8bnms = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_o8bnmsFpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_callDoubleBlock_ = objc.registerName("callDoubleBlock:"); final _objc_msgSend_8mj2fv = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_8mj2fvFpret = objc.msgSendFpretPointer .cast< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - double Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_callVec4Block_ = objc.registerName("callVec4Block:"); final _objc_msgSend_1gew1vm = objc.msgSendPointer .cast< - ffi.NativeFunction< - Vec4 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + Vec4 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - Vec4 Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + Vec4 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); final _objc_msgSend_1gew1vmStret = objc.msgSendStretPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_callSelectorBlock_ = objc.registerName("callSelectorBlock:"); late final _sel_callObjectBlock_ = objc.registerName("callObjectBlock:"); -late final _sel_callNullableObjectBlock_ = - objc.registerName("callNullableObjectBlock:"); -late final _sel_callNullableStringBlock_ = - objc.registerName("callNullableStringBlock:"); +late final _sel_callNullableObjectBlock_ = objc.registerName( + "callNullableObjectBlock:", +); +late final _sel_callNullableStringBlock_ = objc.registerName( + "callNullableStringBlock:", +); late final _sel_callListener_ = objc.registerName("callListener:"); late final _sel_callObjectListener_ = objc.registerName("callObjectListener:"); -late final _sel_callNullableListener_ = - objc.registerName("callNullableListener:"); +late final _sel_callNullableListener_ = objc.registerName( + "callNullableListener:", +); late final _sel_callStructListener_ = objc.registerName("callStructListener:"); -late final _sel_callNSStringListener_x_ = - objc.registerName("callNSStringListener:x:"); +late final _sel_callNSStringListener_x_ = objc.registerName( + "callNSStringListener:x:", +); final _objc_msgSend_po4t03 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); -late final _sel_callNoTrampolineListener_ = - objc.registerName("callNoTrampolineListener:"); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_callNoTrampolineListener_ = objc.registerName( + "callNoTrampolineListener:", +); late final _sel_newBlock_withMult_ = objc.registerName("newBlock:withMult:"); final _objc_msgSend_jevgay = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int)>>() - .asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >() + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_newBlockBlock_ = objc.registerName("newBlockBlock:"); final _objc_msgSend_w43bzz = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int)>(); -late final _sel_invokeAndReleaseListenerOnNewThread = - objc.registerName("invokeAndReleaseListenerOnNewThread"); -late final _sel_invokeAndReleaseListener_ = - objc.registerName("invokeAndReleaseListener:"); -late final _sel_blockingBlockTest_resultBlock_ = - objc.registerName("blockingBlockTest:resultBlock:"); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); +late final _sel_invokeAndReleaseListenerOnNewThread = objc.registerName( + "invokeAndReleaseListenerOnNewThread", +); +late final _sel_invokeAndReleaseListener_ = objc.registerName( + "invokeAndReleaseListener:", +); +late final _sel_blockingBlockTest_resultBlock_ = objc.registerName( + "blockingBlockTest:resultBlock:", +); final _objc_msgSend_18yul99 = objc.msgSendPointer .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >() .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); /// BlockTester class BlockTester extends objc.NSObject { - BlockTester._(ffi.Pointer pointer, - {bool retain = false, bool release = false}) - : super.castFromPointer(pointer, retain: retain, release: release); + BlockTester._( + ffi.Pointer pointer, { + bool retain = false, + bool release = false, + }) : super.castFromPointer(pointer, retain: retain, release: release); /// Constructs a [BlockTester] that points to the same underlying object as [other]. BlockTester.castFrom(objc.ObjCObjectBase other) - : this._(other.ref.pointer, retain: true, release: true); + : this._(other.ref.pointer, retain: true, release: true); /// Constructs a [BlockTester] that wraps the given raw object pointer. - BlockTester.castFromPointer(ffi.Pointer other, - {bool retain = false, bool release = false}) - : this._(other, retain: retain, release: release); + BlockTester.castFromPointer( + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) : this._(other, retain: retain, release: release); /// Returns whether [obj] is an instance of [BlockTester]. static bool isInstance(objc.ObjCObjectBase obj) { return _objc_msgSend_19nvye5( - obj.ref.pointer, _sel_isKindOfClass_, _class_BlockTester); + obj.ref.pointer, + _sel_isKindOfClass_, + _class_BlockTester, + ); } /// setup: @@ -3816,21 +5419,30 @@ class BlockTester extends objc.NSObject { /// newFromBlock: static BlockTester newFromBlock(DartIntBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_newFromBlock_, block.ref.pointer); + _class_BlockTester, + _sel_newFromBlock_, + block.ref.pointer, + ); return BlockTester.castFromPointer(_ret, retain: false, release: true); } /// newFromMultiplier: static BlockTester newFromMultiplier(int mult) { - final _ret = - _objc_msgSend_aclumu(_class_BlockTester, _sel_newFromMultiplier_, mult); + final _ret = _objc_msgSend_aclumu( + _class_BlockTester, + _sel_newFromMultiplier_, + mult, + ); return BlockTester.castFromPointer(_ret, retain: false, release: true); } /// newFromListener: static BlockTester newFromListener(DartObjectListenerBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_newFromListener_, block.ref.pointer); + _class_BlockTester, + _sel_newFromListener_, + block.ref.pointer, + ); return BlockTester.castFromPointer(_ret, retain: false, release: true); } @@ -3842,8 +5454,11 @@ class BlockTester extends objc.NSObject { /// getBlock DartIntBlock getBlock() { final _ret = _objc_msgSend_uwvaik(this.ref.pointer, _sel_getBlock); - return ObjCBlock_Int32_Int32.castFromPointer(_ret, - retain: false, release: true); + return ObjCBlock_Int32_Int32.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// pokeBlock @@ -3854,26 +5469,38 @@ class BlockTester extends objc.NSObject { /// callOnSameThread: static void callOnSameThread(DartVoidBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callOnSameThread_, block.ref.pointer); + _class_BlockTester, + _sel_callOnSameThread_, + block.ref.pointer, + ); } /// callOnSameThreadOutsideIsolate: static void callOnSameThreadOutsideIsolate(DartVoidBlock block) { - _objc_msgSend_f167m6(_class_BlockTester, - _sel_callOnSameThreadOutsideIsolate_, block.ref.pointer); + _objc_msgSend_f167m6( + _class_BlockTester, + _sel_callOnSameThreadOutsideIsolate_, + block.ref.pointer, + ); } /// callOnNewThread: static NSThread callOnNewThread(DartVoidBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_callOnNewThread_, block.ref.pointer); + _class_BlockTester, + _sel_callOnNewThread_, + block.ref.pointer, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } /// callWithBlockOnNewThread: static NSThread callWithBlockOnNewThread(DartListenerBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_callWithBlockOnNewThread_, block.ref.pointer); + _class_BlockTester, + _sel_callWithBlockOnNewThread_, + block.ref.pointer, + ); return NSThread.castFromPointer(_ret, retain: false, release: true); } @@ -3881,18 +5508,30 @@ class BlockTester extends objc.NSObject { static double callFloatBlock(DartFloatBlock block) { return objc.useMsgSendVariants ? _objc_msgSend_o8bnmsFpret( - _class_BlockTester, _sel_callFloatBlock_, block.ref.pointer) + _class_BlockTester, + _sel_callFloatBlock_, + block.ref.pointer, + ) : _objc_msgSend_o8bnms( - _class_BlockTester, _sel_callFloatBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callFloatBlock_, + block.ref.pointer, + ); } /// callDoubleBlock: static double callDoubleBlock(DartDoubleBlock block) { return objc.useMsgSendVariants ? _objc_msgSend_8mj2fvFpret( - _class_BlockTester, _sel_callDoubleBlock_, block.ref.pointer) + _class_BlockTester, + _sel_callDoubleBlock_, + block.ref.pointer, + ) : _objc_msgSend_8mj2fv( - _class_BlockTester, _sel_callDoubleBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callDoubleBlock_, + block.ref.pointer, + ); } /// callVec4Block: @@ -3900,32 +5539,49 @@ class BlockTester extends objc.NSObject { final _ptr = pkg_ffi.calloc(); objc.useMsgSendVariants ? _objc_msgSend_1gew1vmStret( - _ptr, _class_BlockTester, _sel_callVec4Block_, block.ref.pointer) + _ptr, + _class_BlockTester, + _sel_callVec4Block_, + block.ref.pointer, + ) : _ptr.ref = _objc_msgSend_1gew1vm( - _class_BlockTester, _sel_callVec4Block_, block.ref.pointer); - final _finalizable = _ptr - .cast() - .asTypedList(ffi.sizeOf(), finalizer: pkg_ffi.calloc.nativeFree); + _class_BlockTester, + _sel_callVec4Block_, + block.ref.pointer, + ); + final _finalizable = _ptr.cast().asTypedList( + ffi.sizeOf(), + finalizer: pkg_ffi.calloc.nativeFree, + ); return ffi.Struct.create(_finalizable); } /// callSelectorBlock: static void callSelectorBlock(DartSelectorBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callSelectorBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callSelectorBlock_, + block.ref.pointer, + ); } /// callObjectBlock: static DummyObject callObjectBlock(DartObjectBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_callObjectBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callObjectBlock_, + block.ref.pointer, + ); return DummyObject.castFromPointer(_ret, retain: false, release: true); } /// callNullableObjectBlock: static DummyObject? callNullableObjectBlock(DartNullableObjectBlock block) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_callNullableObjectBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callNullableObjectBlock_, + block.ref.pointer, + ); return _ret.address == 0 ? null : DummyObject.castFromPointer(_ret, retain: false, release: true); @@ -3933,9 +5589,13 @@ class BlockTester extends objc.NSObject { /// callNullableStringBlock: static objc.NSString? callNullableStringBlock( - objc.ObjCBlock block) { + objc.ObjCBlock block, + ) { final _ret = _objc_msgSend_nnxkei( - _class_BlockTester, _sel_callNullableStringBlock_, block.ref.pointer); + _class_BlockTester, + _sel_callNullableStringBlock_, + block.ref.pointer, + ); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: false, release: true); @@ -3944,85 +5604,131 @@ class BlockTester extends objc.NSObject { /// callListener: static void callListener(DartListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callListener_, block.ref.pointer); + _class_BlockTester, + _sel_callListener_, + block.ref.pointer, + ); } /// callObjectListener: static void callObjectListener(DartObjectListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callObjectListener_, block.ref.pointer); + _class_BlockTester, + _sel_callObjectListener_, + block.ref.pointer, + ); } /// callNullableListener: static void callNullableListener(DartNullableListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callNullableListener_, block.ref.pointer); + _class_BlockTester, + _sel_callNullableListener_, + block.ref.pointer, + ); } /// callStructListener: static void callStructListener(DartStructListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callStructListener_, block.ref.pointer); + _class_BlockTester, + _sel_callStructListener_, + block.ref.pointer, + ); } /// callNSStringListener:x: - static void callNSStringListener(DartNSStringListenerBlock block, - {required int x}) { + static void callNSStringListener( + DartNSStringListenerBlock block, { + required int x, + }) { _objc_msgSend_po4t03( - _class_BlockTester, _sel_callNSStringListener_x_, block.ref.pointer, x); + _class_BlockTester, + _sel_callNSStringListener_x_, + block.ref.pointer, + x, + ); } /// callNoTrampolineListener: static void callNoTrampolineListener(DartNoTrampolineListenerBlock block) { _objc_msgSend_f167m6( - _class_BlockTester, _sel_callNoTrampolineListener_, block.ref.pointer); + _class_BlockTester, + _sel_callNoTrampolineListener_, + block.ref.pointer, + ); } /// newBlock:withMult: static DartIntBlock newBlock(DartBlockBlock block, {required int withMult}) { - final _ret = _objc_msgSend_jevgay(_class_BlockTester, - _sel_newBlock_withMult_, block.ref.pointer, withMult); - return ObjCBlock_Int32_Int32.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_jevgay( + _class_BlockTester, + _sel_newBlock_withMult_, + block.ref.pointer, + withMult, + ); + return ObjCBlock_Int32_Int32.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// newBlockBlock: static DartBlockBlock newBlockBlock(int mult) { - final _ret = - _objc_msgSend_w43bzz(_class_BlockTester, _sel_newBlockBlock_, mult); - return ObjCBlock_IntBlock_IntBlock.castFromPointer(_ret, - retain: false, release: true); + final _ret = _objc_msgSend_w43bzz( + _class_BlockTester, + _sel_newBlockBlock_, + mult, + ); + return ObjCBlock_IntBlock_IntBlock.castFromPointer( + _ret, + retain: false, + release: true, + ); } /// invokeAndReleaseListenerOnNewThread void invokeAndReleaseListenerOnNewThread() { _objc_msgSend_1pl9qdv( - this.ref.pointer, _sel_invokeAndReleaseListenerOnNewThread); + this.ref.pointer, + _sel_invokeAndReleaseListenerOnNewThread, + ); } /// invokeAndReleaseListener: void invokeAndReleaseListener(objc.ObjCObjectBase? _$) { - _objc_msgSend_xtuoz7(this.ref.pointer, _sel_invokeAndReleaseListener_, - _$?.ref.pointer ?? ffi.nullptr); + _objc_msgSend_xtuoz7( + this.ref.pointer, + _sel_invokeAndReleaseListener_, + _$?.ref.pointer ?? ffi.nullptr, + ); } /// blockingBlockTest:resultBlock: static void blockingBlockTest( - objc.ObjCBlock)> blockingBlock, - {required objc.ObjCBlock resultBlock}) { + objc.ObjCBlock)> blockingBlock, { + required objc.ObjCBlock resultBlock, + }) { _objc_msgSend_18yul99( - _class_BlockTester, - _sel_blockingBlockTest_resultBlock_, - blockingBlock.ref.pointer, - resultBlock.ref.pointer); + _class_BlockTester, + _sel_blockingBlockTest_resultBlock_, + blockingBlock.ref.pointer, + resultBlock.ref.pointer, + ); } /// init BlockTester init() { - objc.checkOsVersionInternal('BlockTester.init', - iOS: (false, (2, 0, 0)), macOS: (false, (10, 0, 0))); - final _ret = - _objc_msgSend_151sglz(this.ref.retainAndReturnPointer(), _sel_init); + objc.checkOsVersionInternal( + 'BlockTester.init', + iOS: (false, (2, 0, 0)), + macOS: (false, (10, 0, 0)), + ); + final _ret = _objc_msgSend_151sglz( + this.ref.retainAndReturnPointer(), + _sel_init, + ); return BlockTester.castFromPointer(_ret, retain: false, release: true); } @@ -4034,8 +5740,11 @@ class BlockTester extends objc.NSObject { /// allocWithZone: static BlockTester allocWithZone(ffi.Pointer zone) { - final _ret = - _objc_msgSend_1cwp428(_class_BlockTester, _sel_allocWithZone_, zone); + final _ret = _objc_msgSend_1cwp428( + _class_BlockTester, + _sel_allocWithZone_, + zone, + ); return BlockTester.castFromPointer(_ret, retain: false, release: true); } diff --git a/pkgs/ffigen/test/native_objc_test/block_bindings.m b/pkgs/ffigen/test/native_objc_test/block_bindings.m index 97abc9365..f3b899e60 100644 --- a/pkgs/ffigen/test/native_objc_test/block_bindings.m +++ b/pkgs/ffigen/test/native_objc_test/block_bindings.m @@ -50,14 +50,6 @@ typedef void (^ListenerTrampoline)(); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline _BlockTestObjCLibrary_wrapListenerBlock_1pl9qdv(ListenerTrampoline block) NS_RETURNS_RETAINED { - return ^void() { - objc_retainBlock(block); - block(); - }; -} - typedef void (^BlockingTrampoline)(void * waiter); __attribute__((visibility("default"))) __attribute__((used)) ListenerTrampoline _BlockTestObjCLibrary_wrapBlockingBlock_1pl9qdv( @@ -79,14 +71,6 @@ id _BlockTestObjCLibrary_protocolTrampoline_1mbt9g9(id target, void * sel) { } typedef void (^ListenerTrampoline_1)(struct objc_selector * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_1 _BlockTestObjCLibrary_wrapListenerBlock_1d9e4oe(ListenerTrampoline_1 block) NS_RETURNS_RETAINED { - return ^void(struct objc_selector * arg0) { - objc_retainBlock(block); - block(arg0); - }; -} - typedef void (^BlockingTrampoline_1)(void * waiter, struct objc_selector * arg0); __attribute__((visibility("default"))) __attribute__((used)) ListenerTrampoline_1 _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( @@ -102,14 +86,6 @@ ListenerTrampoline_1 _BlockTestObjCLibrary_wrapBlockingBlock_1d9e4oe( } typedef void (^ListenerTrampoline_2)(id arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_2 _BlockTestObjCLibrary_wrapListenerBlock_f167m6(ListenerTrampoline_2 block) NS_RETURNS_RETAINED { - return ^void(id arg0) { - objc_retainBlock(block); - block(objc_retainBlock(arg0)); - }; -} - typedef void (^BlockingTrampoline_2)(void * waiter, id arg0); __attribute__((visibility("default"))) __attribute__((used)) ListenerTrampoline_2 _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( @@ -125,14 +101,6 @@ ListenerTrampoline_2 _BlockTestObjCLibrary_wrapBlockingBlock_f167m6( } typedef void (^ListenerTrampoline_3)(id arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_3 _BlockTestObjCLibrary_wrapListenerBlock_xtuoz7(ListenerTrampoline_3 block) NS_RETURNS_RETAINED { - return ^void(id arg0) { - objc_retainBlock(block); - block((__bridge id)(__bridge_retained void*)(arg0)); - }; -} - typedef void (^BlockingTrampoline_3)(void * waiter, id arg0); __attribute__((visibility("default"))) __attribute__((used)) ListenerTrampoline_3 _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( @@ -148,14 +116,6 @@ ListenerTrampoline_3 _BlockTestObjCLibrary_wrapBlockingBlock_xtuoz7( } typedef void (^ListenerTrampoline_4)(struct Vec2 arg0, Vec4 arg1, id arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_4 _BlockTestObjCLibrary_wrapListenerBlock_ru30ue(ListenerTrampoline_4 block) NS_RETURNS_RETAINED { - return ^void(struct Vec2 arg0, Vec4 arg1, id arg2) { - objc_retainBlock(block); - block(arg0, arg1, (__bridge id)(__bridge_retained void*)(arg2)); - }; -} - typedef void (^BlockingTrampoline_4)(void * waiter, struct Vec2 arg0, Vec4 arg1, id arg2); __attribute__((visibility("default"))) __attribute__((used)) ListenerTrampoline_4 _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( @@ -171,14 +131,6 @@ ListenerTrampoline_4 _BlockTestObjCLibrary_wrapBlockingBlock_ru30ue( } typedef void (^ListenerTrampoline_5)(int32_t arg0, Vec4 arg1, char * arg2); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_5 _BlockTestObjCLibrary_wrapListenerBlock_li50va(ListenerTrampoline_5 block) NS_RETURNS_RETAINED { - return ^void(int32_t arg0, Vec4 arg1, char * arg2) { - objc_retainBlock(block); - block(arg0, arg1, arg2); - }; -} - typedef void (^BlockingTrampoline_5)(void * waiter, int32_t arg0, Vec4 arg1, char * arg2); __attribute__((visibility("default"))) __attribute__((used)) ListenerTrampoline_5 _BlockTestObjCLibrary_wrapBlockingBlock_li50va( @@ -194,14 +146,6 @@ ListenerTrampoline_5 _BlockTestObjCLibrary_wrapBlockingBlock_li50va( } typedef void (^ListenerTrampoline_6)(int32_t * arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_6 _BlockTestObjCLibrary_wrapListenerBlock_yhkuco(ListenerTrampoline_6 block) NS_RETURNS_RETAINED { - return ^void(int32_t * arg0) { - objc_retainBlock(block); - block(arg0); - }; -} - typedef void (^BlockingTrampoline_6)(void * waiter, int32_t * arg0); __attribute__((visibility("default"))) __attribute__((used)) ListenerTrampoline_6 _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( @@ -217,14 +161,6 @@ ListenerTrampoline_6 _BlockTestObjCLibrary_wrapBlockingBlock_yhkuco( } typedef void (^ListenerTrampoline_7)(int32_t arg0); -__attribute__((visibility("default"))) __attribute__((used)) -ListenerTrampoline_7 _BlockTestObjCLibrary_wrapListenerBlock_1bqef4y(ListenerTrampoline_7 block) NS_RETURNS_RETAINED { - return ^void(int32_t arg0) { - objc_retainBlock(block); - block(arg0); - }; -} - typedef void (^BlockingTrampoline_7)(void * waiter, int32_t arg0); __attribute__((visibility("default"))) __attribute__((used)) ListenerTrampoline_7 _BlockTestObjCLibrary_wrapBlockingBlock_1bqef4y( diff --git a/pkgs/ffigen/test/native_objc_test/block_test.dart b/pkgs/ffigen/test/native_objc_test/block_test.dart index 325804159..4a94a622f 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test.dart @@ -150,7 +150,7 @@ void main() { expect(value, 123); }); - test('Blocking block new thread', () async { + /*test('Blocking block new thread', () async { final block = IntPtrBlock.blocking((Pointer result) { waitSync(Duration(milliseconds: 100)); result.value = 123456; @@ -194,7 +194,7 @@ void main() { }); block(); expect(value, 123); - }); + });*/ test('Float block', () { final block = FloatBlock.fromFunction((double x) { @@ -320,6 +320,7 @@ void main() { test('Object listener block', () async { final hasRun = Completer(); final block = ObjectListenerBlock.listener((DummyObject x) { + print('ZZZZ'); expect(x, isNotNull); hasRun.complete(); }); @@ -328,7 +329,7 @@ void main() { await hasRun.future; }); - test('Nullable listener block', () async { + /*test('Nullable listener block', () async { final hasRun = Completer(); final block = NullableListenerBlock.listener((DummyObject? x) { expect(x, isNull); @@ -1185,7 +1186,7 @@ void main() { return innerValue; }); expect(value, 123); - }, skip: !hasIsolateOwnershipApi); + }, skip: !hasIsolateOwnershipApi);*/ }); } From 21b4dc9e7d0b08d0c21b69bc020006f6af62abf6 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 24 Jul 2025 14:43:25 +1000 Subject: [PATCH 28/29] wip --- .../test/native_objc_test/block_bindings.dart | 1 - .../test/native_objc_test/block_test.dart | 25 +++++++++---------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/pkgs/ffigen/test/native_objc_test/block_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_bindings.dart index 4d4a8cd0b..0839b86e1 100644 --- a/pkgs/ffigen/test/native_objc_test/block_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_bindings.dart @@ -3024,7 +3024,6 @@ void _ObjCBlock_ffiVoid_DummyObject_sharedTrampoline( ffi.Pointer block, ffi.Pointer arg0, ) { - print('QWERQWER'); block.ref.trampoline .cast< ffi.NativeFunction< diff --git a/pkgs/ffigen/test/native_objc_test/block_test.dart b/pkgs/ffigen/test/native_objc_test/block_test.dart index 4a94a622f..2cd343f8b 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test.dart @@ -12,7 +12,7 @@ import 'dart:io'; import 'dart:isolate'; import 'package:ffi/ffi.dart'; -import 'package:objective_c/objective_c.dart'; +import 'package:objective_c/objective_c.dart' hide ObjCBlock_ffiVoid, ObjCBlock_ffiVoid_CallExtension; import 'package:objective_c/src/internal.dart' as internal_for_testing show blockHasRegisteredClosure; @@ -20,7 +20,7 @@ import 'package:path/path.dart' as path; import 'package:test/test.dart'; import '../test_utils.dart'; -import 'block_bindings.dart' hide ObjCBlock_ffiVoid, ObjCBlock_ffiVoid_CallExtension; +import 'block_bindings.dart'; import 'util.dart'; typedef IntBlock = ObjCBlock_Int32_Int32; @@ -70,7 +70,7 @@ void main() { BlockTester.setup(NativeApi.initializeApiDLData); }); - test('BlockTester is working', () { + /*test('BlockTester is working', () { // This doesn't test any Block functionality, just that the BlockTester // itself is working correctly. final blockTester = BlockTester.newFromMultiplier(10); @@ -87,8 +87,8 @@ void main() { ); final blockTester = BlockTester.newFromBlock(block); blockTester.pokeBlock(); - // expect(blockTester.call(123), 223); - // expect(block(123), 223); + expect(blockTester.call(123), 223); + expect(block(123), 223); }); int Function(int) makeAdder(int addTo) { @@ -101,7 +101,7 @@ void main() { blockTester.pokeBlock(); expect(blockTester.call(123), 4123); expect(block(123), 4123); - }); + });*/ test('Listener block same thread', () async { final hasRun = Completer(); @@ -117,7 +117,7 @@ void main() { expect(value, 123); }); - test('Listener block new thread', () async { + /*test('Listener block new thread', () async { final hasRun = Completer(); int value = 0; final block = VoidBlock.listener(() { @@ -148,7 +148,7 @@ void main() { }); BlockTester.callOnSameThread(block); expect(value, 123); - }); + });*/ /*test('Blocking block new thread', () async { final block = IntPtrBlock.blocking((Pointer result) { @@ -196,7 +196,7 @@ void main() { expect(value, 123); });*/ - test('Float block', () { + /*test('Float block', () { final block = FloatBlock.fromFunction((double x) { return x + 4.56; }); @@ -315,12 +315,11 @@ void main() { final result3 = BlockTester.callNullableStringBlock(block); expect(result3?.toDartString(), 'Lizard Cat'); - }); + });*/ - test('Object listener block', () async { + /*test('Object listener block', () async { final hasRun = Completer(); final block = ObjectListenerBlock.listener((DummyObject x) { - print('ZZZZ'); expect(x, isNotNull); hasRun.complete(); }); @@ -329,7 +328,7 @@ void main() { await hasRun.future; }); - /*test('Nullable listener block', () async { + test('Nullable listener block', () async { final hasRun = Completer(); final block = NullableListenerBlock.listener((DummyObject? x) { expect(x, isNull); From 6576ce34e7bec1052053f9cda0d545112591dd18 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Mon, 4 Aug 2025 16:03:03 +1000 Subject: [PATCH 29/29] Switch to send port approach --- .../lib/src/code_generator/objc_block.dart | 25 +- .../ffigen/lib/src/code_generator/writer.dart | 1 + .../test/native_objc_test/block_bindings.dart | 494 ++++++------------ .../test/native_objc_test/block_test.dart | 1 + 4 files changed, 180 insertions(+), 341 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/objc_block.dart b/pkgs/ffigen/lib/src/code_generator/objc_block.dart index 17be8854b..30bf0b4b3 100644 --- a/pkgs/ffigen/lib/src/code_generator/objc_block.dart +++ b/pkgs/ffigen/lib/src/code_generator/objc_block.dart @@ -150,8 +150,11 @@ class ObjCBlock extends BindingType { final listenerTrampoline = w.topLevelUniqueNamer.makeUnique( '_${name}_listenerTrampoline', ); - final listenerCallable = w.topLevelUniqueNamer.makeUnique( - '_${name}_listenerCallable', + final listenerPort = w.topLevelUniqueNamer.makeUnique( + '_${name}_listenerPort', + ); + final listenerSendPort = w.topLevelUniqueNamer.makeUnique( + '_${name}_listenerSendPort', ); final blockingTrampoline = w.topLevelUniqueNamer.makeUnique( '_${name}_blockingTrampoline', @@ -210,19 +213,21 @@ $voidPtrCType $closureCallable = ${w.ffiLibraryPrefix}.Pointer.fromFunction< s.write(''' $returnFfiDartType $sharedTrampoline( $blockCType block, ${func.paramsFfiDartType}) { - block.ref.trampoline.cast<${func.trampNatFnCType}>() - .asFunction<${func.trampFfiDartType}>()(${retains.join(', ')}); + final msg = (${retains.join(', ')}); + $listenerSendPort.send(msg); } ${func.trampNatCallType} $sharedCallable = ${func.trampNatCallType}.isolateGroupShared( $sharedTrampoline $exceptionalReturn)..keepIsolateAlive = false; -$returnFfiDartType $listenerTrampoline( - $blockCType block, ${func.paramsFfiDartType}) { +$returnFfiDartType $listenerTrampoline(dynamic msg) { + final ${params.isEmpty ? '$blockCType block' : '($blockCType block, ${func.paramsFfiDartType})'} = msg; ($getBlockClosure(block) as ${func.ffiDartType})(${func.paramsNameOnly}); $releaseFn(block.cast()); } -${func.trampNatCallType} $listenerCallable = ${func.trampNatCallType}.listener( - $listenerTrampoline $exceptionalReturn)..keepIsolateAlive = false; +final $listenerPort = RawReceivePort( + $listenerTrampoline)..keepIsolateAlive = false; +@pragma('vm:shared') +final $listenerSendPort = $listenerPort.sendPort; $returnFfiDartType $blockingTrampoline( $blockCType block, ${blockingFunc.paramsFfiDartType}) { try { @@ -332,8 +337,8 @@ abstract final class $name { static $blockType listener(${func.dartType} fn, {bool keepIsolateAlive = true}) { final tramp = $newClosureBlock($sharedCallable.nativeFunction.cast(), - $listenerConvFn, keepIsolateAlive, - trampoline: $listenerCallable.nativeFunction.cast()); + $listenerConvFn, keepIsolateAlive); + print('listener send port: ' + $listenerSendPort.toString()); return $blockType(tramp, retain: true, release: true); } diff --git a/pkgs/ffigen/lib/src/code_generator/writer.dart b/pkgs/ffigen/lib/src/code_generator/writer.dart index c8a97164b..af955eb7c 100644 --- a/pkgs/ffigen/lib/src/code_generator/writer.dart +++ b/pkgs/ffigen/lib/src/code_generator/writer.dart @@ -259,6 +259,7 @@ class Writer { ..writeln("@$ffiLibraryPrefix.DefaultAsset('$nativeAssetId')") ..writeln('library;\n'); } + result.writeln("import 'dart:isolate';"); /// Write [lookUpBindings]. if (lookUpBindings.isNotEmpty) { diff --git a/pkgs/ffigen/test/native_objc_test/block_bindings.dart b/pkgs/ffigen/test/native_objc_test/block_bindings.dart index 0839b86e1..c245d4bb4 100644 --- a/pkgs/ffigen/test/native_objc_test/block_bindings.dart +++ b/pkgs/ffigen/test/native_objc_test/block_bindings.dart @@ -4,6 +4,7 @@ // // Generated by `package:ffigen`. // ignore_for_file: type=lint +import 'dart:isolate'; import 'dart:ffi' as ffi; import 'package:objective_c/objective_c.dart' as objc; import 'package:ffi/ffi.dart' as pkg_ffi; @@ -290,15 +291,8 @@ ffi.Pointer _ObjCBlock_ffiVoid_closureCallable = void _ObjCBlock_ffiVoid_sharedTrampoline( ffi.Pointer block, ) { - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer block) - > - >() - .asFunction)>()( - objc.objectRetain(block.cast()).cast(), - ); + final msg = (objc.objectRetain(block.cast()).cast()); + _ObjCBlock_ffiVoid_listenerSendPort.send(msg); } ffi.NativeCallable)> @@ -307,19 +301,18 @@ _ObjCBlock_ffiVoid_sharedCallable = ffi.Void Function(ffi.Pointer) >.isolateGroupShared(_ObjCBlock_ffiVoid_sharedTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_listenerTrampoline( - ffi.Pointer block, -) { +void _ObjCBlock_ffiVoid_listenerTrampoline(dynamic msg) { + final ffi.Pointer block = msg; (objc.getBlockClosure(block) as void Function())(); objc.objectRelease(block.cast()); } -ffi.NativeCallable)> -_ObjCBlock_ffiVoid_listenerCallable = - ffi.NativeCallable< - ffi.Void Function(ffi.Pointer) - >.listener(_ObjCBlock_ffiVoid_listenerTrampoline) - ..keepIsolateAlive = false; +final _ObjCBlock_ffiVoid_listenerPort = RawReceivePort( + _ObjCBlock_ffiVoid_listenerTrampoline, +)..keepIsolateAlive = false; +@pragma('vm:shared') +final _ObjCBlock_ffiVoid_listenerSendPort = + _ObjCBlock_ffiVoid_listenerPort.sendPort; void _ObjCBlock_ffiVoid_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, @@ -420,7 +413,9 @@ abstract final class ObjCBlock_ffiVoid { _ObjCBlock_ffiVoid_sharedCallable.nativeFunction.cast(), () => fn(), keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_listenerCallable.nativeFunction.cast(), + ); + print( + 'listener send port: ' + _ObjCBlock_ffiVoid_listenerSendPort.toString(), ); return objc.ObjCBlock( tramp, @@ -1896,21 +1891,8 @@ void _ObjCBlock_ffiVoid_objcObjCSelector_sharedTrampoline( ffi.Pointer block, ffi.Pointer arg0, ) { - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(objc.objectRetain(block.cast()).cast(), arg0); + final msg = (objc.objectRetain(block.cast()).cast(), arg0); + _ObjCBlock_ffiVoid_objcObjCSelector_listenerSendPort.send(msg); } ffi.NativeCallable< @@ -1927,29 +1909,22 @@ _ObjCBlock_ffiVoid_objcObjCSelector_sharedCallable = ) >.isolateGroupShared(_ObjCBlock_ffiVoid_objcObjCSelector_sharedTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { +void _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline(dynamic msg) { + final ( + ffi.Pointer block, + ffi.Pointer arg0, + ) = msg; (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline) - ..keepIsolateAlive = false; +final _ObjCBlock_ffiVoid_objcObjCSelector_listenerPort = RawReceivePort( + _ObjCBlock_ffiVoid_objcObjCSelector_listenerTrampoline, +)..keepIsolateAlive = false; +@pragma('vm:shared') +final _ObjCBlock_ffiVoid_objcObjCSelector_listenerSendPort = + _ObjCBlock_ffiVoid_objcObjCSelector_listenerPort.sendPort; void _ObjCBlock_ffiVoid_objcObjCSelector_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, @@ -2072,9 +2047,10 @@ abstract final class ObjCBlock_ffiVoid_objcObjCSelector { _ObjCBlock_ffiVoid_objcObjCSelector_sharedCallable.nativeFunction.cast(), (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_objcObjCSelector_listenerCallable - .nativeFunction - .cast(), + ); + print( + 'listener send port: ' + + _ObjCBlock_ffiVoid_objcObjCSelector_listenerSendPort.toString(), ); return objc.ObjCBlock)>( tramp, @@ -2732,19 +2708,11 @@ void _ObjCBlock_ffiVoid_IntBlock_sharedTrampoline( ffi.Pointer block, IntBlock arg0, ) { - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - IntBlock arg0, - ) - > - >() - .asFunction, IntBlock)>()( + final msg = ( objc.objectRetain(block.cast()).cast(), objc.blockRetain(arg0.cast()).cast(), ); + _ObjCBlock_ffiVoid_IntBlock_listenerSendPort.send(msg); } ffi.NativeCallable, IntBlock)> @@ -2753,20 +2721,18 @@ _ObjCBlock_ffiVoid_IntBlock_sharedCallable = ffi.Void Function(ffi.Pointer, IntBlock) >.isolateGroupShared(_ObjCBlock_ffiVoid_IntBlock_sharedTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_IntBlock_listenerTrampoline( - ffi.Pointer block, - IntBlock arg0, -) { +void _ObjCBlock_ffiVoid_IntBlock_listenerTrampoline(dynamic msg) { + final (ffi.Pointer block, IntBlock arg0) = msg; (objc.getBlockClosure(block) as void Function(IntBlock))(arg0); objc.objectRelease(block.cast()); } -ffi.NativeCallable, IntBlock)> -_ObjCBlock_ffiVoid_IntBlock_listenerCallable = - ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, IntBlock) - >.listener(_ObjCBlock_ffiVoid_IntBlock_listenerTrampoline) - ..keepIsolateAlive = false; +final _ObjCBlock_ffiVoid_IntBlock_listenerPort = RawReceivePort( + _ObjCBlock_ffiVoid_IntBlock_listenerTrampoline, +)..keepIsolateAlive = false; +@pragma('vm:shared') +final _ObjCBlock_ffiVoid_IntBlock_listenerSendPort = + _ObjCBlock_ffiVoid_IntBlock_listenerPort.sendPort; void _ObjCBlock_ffiVoid_IntBlock_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, @@ -2907,8 +2873,10 @@ abstract final class ObjCBlock_ffiVoid_IntBlock { ), ), keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_IntBlock_listenerCallable.nativeFunction - .cast(), + ); + print( + 'listener send port: ' + + _ObjCBlock_ffiVoid_IntBlock_listenerSendPort.toString(), ); return objc.ObjCBlock< ffi.Void Function(objc.ObjCBlock) @@ -3024,21 +2992,8 @@ void _ObjCBlock_ffiVoid_DummyObject_sharedTrampoline( ffi.Pointer block, ffi.Pointer arg0, ) { - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(objc.objectRetain(block.cast()).cast(), objc.objectRetain(arg0)); + final msg = (objc.objectRetain(block.cast()).cast(), objc.objectRetain(arg0)); + _ObjCBlock_ffiVoid_DummyObject_listenerSendPort.send(msg); } ffi.NativeCallable< @@ -3055,30 +3010,23 @@ _ObjCBlock_ffiVoid_DummyObject_sharedCallable = ) >.isolateGroupShared(_ObjCBlock_ffiVoid_DummyObject_sharedTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { +void _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline(dynamic msg) { + final ( + ffi.Pointer block, + ffi.Pointer arg0, + ) = msg; (objc.getBlockClosure(block) as void Function(ffi.Pointer))( arg0, ); objc.objectRelease(block.cast()); } -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_DummyObject_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_DummyObject_listenerTrampoline) - ..keepIsolateAlive = false; +final _ObjCBlock_ffiVoid_DummyObject_listenerPort = RawReceivePort( + _ObjCBlock_ffiVoid_DummyObject_listenerTrampoline, +)..keepIsolateAlive = false; +@pragma('vm:shared') +final _ObjCBlock_ffiVoid_DummyObject_listenerSendPort = + _ObjCBlock_ffiVoid_DummyObject_listenerPort.sendPort; void _ObjCBlock_ffiVoid_DummyObject_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, @@ -3199,8 +3147,10 @@ abstract final class ObjCBlock_ffiVoid_DummyObject { (ffi.Pointer arg0) => fn(DummyObject.castFromPointer(arg0, retain: false, release: true)), keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_DummyObject_listenerCallable.nativeFunction - .cast(), + ); + print( + 'listener send port: ' + + _ObjCBlock_ffiVoid_DummyObject_listenerSendPort.toString(), ); return objc.ObjCBlock( tramp, @@ -3308,21 +3258,8 @@ void _ObjCBlock_ffiVoid_DummyObject$1_sharedTrampoline( ffi.Pointer block, ffi.Pointer arg0, ) { - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(objc.objectRetain(block.cast()).cast(), objc.objectRetain(arg0)); + final msg = (objc.objectRetain(block.cast()).cast(), objc.objectRetain(arg0)); + _ObjCBlock_ffiVoid_DummyObject$1_listenerSendPort.send(msg); } ffi.NativeCallable< @@ -3339,30 +3276,23 @@ _ObjCBlock_ffiVoid_DummyObject$1_sharedCallable = ) >.isolateGroupShared(_ObjCBlock_ffiVoid_DummyObject$1_sharedTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { +void _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline(dynamic msg) { + final ( + ffi.Pointer block, + ffi.Pointer arg0, + ) = msg; (objc.getBlockClosure(block) as void Function(ffi.Pointer))( arg0, ); objc.objectRelease(block.cast()); } -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_DummyObject$1_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline) - ..keepIsolateAlive = false; +final _ObjCBlock_ffiVoid_DummyObject$1_listenerPort = RawReceivePort( + _ObjCBlock_ffiVoid_DummyObject$1_listenerTrampoline, +)..keepIsolateAlive = false; +@pragma('vm:shared') +final _ObjCBlock_ffiVoid_DummyObject$1_listenerSendPort = + _ObjCBlock_ffiVoid_DummyObject$1_listenerPort.sendPort; void _ObjCBlock_ffiVoid_DummyObject$1_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, @@ -3489,9 +3419,10 @@ abstract final class ObjCBlock_ffiVoid_DummyObject$1 { : DummyObject.castFromPointer(arg0, retain: false, release: true), ), keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_DummyObject$1_listenerCallable - .nativeFunction - .cast(), + ); + print( + 'listener send port: ' + + _ObjCBlock_ffiVoid_DummyObject$1_listenerSendPort.toString(), ); return objc.ObjCBlock( tramp, @@ -3630,30 +3561,13 @@ void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_sharedTrampoline( Vec4 arg1, ffi.Pointer arg2, ) { - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) - >()( + final msg = ( objc.objectRetain(block.cast()).cast(), arg0, arg1, objc.objectRetain(arg2), ); + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerSendPort.send(msg); } ffi.NativeCallable< @@ -3676,12 +3590,13 @@ _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_sharedCallable = _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_sharedTrampoline, ) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline( - ffi.Pointer block, - Vec2 arg0, - Vec4 arg1, - ffi.Pointer arg2, -) { +void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline(dynamic msg) { + final ( + ffi.Pointer block, + Vec2 arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) = msg; (objc.getBlockClosure(block) as void Function(Vec2, Vec4, ffi.Pointer))( arg0, @@ -3691,24 +3606,12 @@ void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline( objc.objectRelease(block.cast()); } -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - Vec2, - Vec4, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline) - ..keepIsolateAlive = false; +final _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerPort = RawReceivePort( + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerTrampoline, +)..keepIsolateAlive = false; +@pragma('vm:shared') +final _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerSendPort = + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerPort.sendPort; void _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, @@ -3859,9 +3762,10 @@ abstract final class ObjCBlock_ffiVoid_Vec2_Vec4_NSObject { objc.NSObject.castFromPointer(arg2, retain: false, release: true), ), keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerCallable - .nativeFunction - .cast(), + ); + print( + 'listener send port: ' + + _ObjCBlock_ffiVoid_Vec2_Vec4_NSObject_listenerSendPort.toString(), ); return objc.ObjCBlock( tramp, @@ -3981,21 +3885,8 @@ void _ObjCBlock_ffiVoid_NSString_sharedTrampoline( ffi.Pointer block, ffi.Pointer arg0, ) { - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ) - >()(objc.objectRetain(block.cast()).cast(), objc.objectRetain(arg0)); + final msg = (objc.objectRetain(block.cast()).cast(), objc.objectRetain(arg0)); + _ObjCBlock_ffiVoid_NSString_listenerSendPort.send(msg); } ffi.NativeCallable< @@ -4012,30 +3903,23 @@ _ObjCBlock_ffiVoid_NSString_sharedCallable = ) >.isolateGroupShared(_ObjCBlock_ffiVoid_NSString_sharedTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_NSString_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { +void _ObjCBlock_ffiVoid_NSString_listenerTrampoline(dynamic msg) { + final ( + ffi.Pointer block, + ffi.Pointer arg0, + ) = msg; (objc.getBlockClosure(block) as void Function(ffi.Pointer))( arg0, ); objc.objectRelease(block.cast()); } -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_NSString_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_NSString_listenerTrampoline) - ..keepIsolateAlive = false; +final _ObjCBlock_ffiVoid_NSString_listenerPort = RawReceivePort( + _ObjCBlock_ffiVoid_NSString_listenerTrampoline, +)..keepIsolateAlive = false; +@pragma('vm:shared') +final _ObjCBlock_ffiVoid_NSString_listenerSendPort = + _ObjCBlock_ffiVoid_NSString_listenerPort.sendPort; void _ObjCBlock_ffiVoid_NSString_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, @@ -4153,8 +4037,10 @@ abstract final class ObjCBlock_ffiVoid_NSString { (ffi.Pointer arg0) => fn(objc.NSString.castFromPointer(arg0, retain: false, release: true)), keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_NSString_listenerCallable.nativeFunction - .cast(), + ); + print( + 'listener send port: ' + + _ObjCBlock_ffiVoid_NSString_listenerSendPort.toString(), ); return objc.ObjCBlock( tramp, @@ -4283,25 +4169,8 @@ void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_sharedTrampoline( Vec4 arg1, ffi.Pointer arg2, ) { - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Int32 arg0, - Vec4 arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer, - int, - Vec4, - ffi.Pointer, - ) - >()(objc.objectRetain(block.cast()).cast(), arg0, arg1, arg2); + final msg = (objc.objectRetain(block.cast()).cast(), arg0, arg1, arg2); + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerSendPort.send(msg); } ffi.NativeCallable< @@ -4324,35 +4193,24 @@ _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_sharedCallable = _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_sharedTrampoline, ) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline( - ffi.Pointer block, - int arg0, - Vec4 arg1, - ffi.Pointer arg2, -) { +void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline(dynamic msg) { + final ( + ffi.Pointer block, + int arg0, + Vec4 arg1, + ffi.Pointer arg2, + ) = msg; (objc.getBlockClosure(block) as void Function(int, Vec4, ffi.Pointer))(arg0, arg1, arg2); objc.objectRelease(block.cast()); } -ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer, - ) -> -_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Int32, - Vec4, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline) - ..keepIsolateAlive = false; +final _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerPort = RawReceivePort( + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerTrampoline, +)..keepIsolateAlive = false; +@pragma('vm:shared') +final _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerSendPort = + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerPort.sendPort; void _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, @@ -4500,9 +4358,10 @@ abstract final class ObjCBlock_ffiVoid_Int32_Vec4_ffiChar { .cast(), (int arg0, Vec4 arg1, ffi.Pointer arg2) => fn(arg0, arg1, arg2), keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerCallable - .nativeFunction - .cast(), + ); + print( + 'listener send port: ' + + _ObjCBlock_ffiVoid_Int32_Vec4_ffiChar_listenerSendPort.toString(), ); return objc.ObjCBlock< ffi.Void Function(ffi.Int32, Vec4, ffi.Pointer) @@ -4617,18 +4476,8 @@ void _ObjCBlock_ffiVoid_Int32_sharedTrampoline( ffi.Pointer block, ffi.Pointer arg0, ) { - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Pointer arg0, - ) - > - >() - .asFunction< - void Function(ffi.Pointer, ffi.Pointer) - >()(objc.objectRetain(block.cast()).cast(), arg0); + final msg = (objc.objectRetain(block.cast()).cast(), arg0); + _ObjCBlock_ffiVoid_Int32_listenerSendPort.send(msg); } ffi.NativeCallable< @@ -4642,25 +4491,19 @@ _ObjCBlock_ffiVoid_Int32_sharedCallable = ) >.isolateGroupShared(_ObjCBlock_ffiVoid_Int32_sharedTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_Int32_listenerTrampoline( - ffi.Pointer block, - ffi.Pointer arg0, -) { +void _ObjCBlock_ffiVoid_Int32_listenerTrampoline(dynamic msg) { + final (ffi.Pointer block, ffi.Pointer arg0) = + msg; (objc.getBlockClosure(block) as void Function(ffi.Pointer))(arg0); objc.objectRelease(block.cast()); } -ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Pointer) -> -_ObjCBlock_ffiVoid_Int32_listenerCallable = - ffi.NativeCallable< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ) - >.listener(_ObjCBlock_ffiVoid_Int32_listenerTrampoline) - ..keepIsolateAlive = false; +final _ObjCBlock_ffiVoid_Int32_listenerPort = RawReceivePort( + _ObjCBlock_ffiVoid_Int32_listenerTrampoline, +)..keepIsolateAlive = false; +@pragma('vm:shared') +final _ObjCBlock_ffiVoid_Int32_listenerSendPort = + _ObjCBlock_ffiVoid_Int32_listenerPort.sendPort; void _ObjCBlock_ffiVoid_Int32_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, @@ -4779,8 +4622,10 @@ abstract final class ObjCBlock_ffiVoid_Int32 { _ObjCBlock_ffiVoid_Int32_sharedCallable.nativeFunction.cast(), (ffi.Pointer arg0) => fn(arg0), keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_Int32_listenerCallable.nativeFunction - .cast(), + ); + print( + 'listener send port: ' + + _ObjCBlock_ffiVoid_Int32_listenerSendPort.toString(), ); return objc.ObjCBlock)>( tramp, @@ -4869,19 +4714,8 @@ void _ObjCBlock_ffiVoid_Int32$1_sharedTrampoline( ffi.Pointer block, int arg0, ) { - block.ref.trampoline - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer block, - ffi.Int32 arg0, - ) - > - >() - .asFunction, int)>()( - objc.objectRetain(block.cast()).cast(), - arg0, - ); + final msg = (objc.objectRetain(block.cast()).cast(), arg0); + _ObjCBlock_ffiVoid_Int32$1_listenerSendPort.send(msg); } ffi.NativeCallable< @@ -4892,22 +4726,18 @@ _ObjCBlock_ffiVoid_Int32$1_sharedCallable = ffi.Void Function(ffi.Pointer, ffi.Int32) >.isolateGroupShared(_ObjCBlock_ffiVoid_Int32$1_sharedTrampoline) ..keepIsolateAlive = false; -void _ObjCBlock_ffiVoid_Int32$1_listenerTrampoline( - ffi.Pointer block, - int arg0, -) { +void _ObjCBlock_ffiVoid_Int32$1_listenerTrampoline(dynamic msg) { + final (ffi.Pointer block, int arg0) = msg; (objc.getBlockClosure(block) as void Function(int))(arg0); objc.objectRelease(block.cast()); } -ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Int32) -> -_ObjCBlock_ffiVoid_Int32$1_listenerCallable = - ffi.NativeCallable< - ffi.Void Function(ffi.Pointer, ffi.Int32) - >.listener(_ObjCBlock_ffiVoid_Int32$1_listenerTrampoline) - ..keepIsolateAlive = false; +final _ObjCBlock_ffiVoid_Int32$1_listenerPort = RawReceivePort( + _ObjCBlock_ffiVoid_Int32$1_listenerTrampoline, +)..keepIsolateAlive = false; +@pragma('vm:shared') +final _ObjCBlock_ffiVoid_Int32$1_listenerSendPort = + _ObjCBlock_ffiVoid_Int32$1_listenerPort.sendPort; void _ObjCBlock_ffiVoid_Int32$1_blockingTrampoline( ffi.Pointer block, ffi.Pointer waiter, @@ -5019,8 +4849,10 @@ abstract final class ObjCBlock_ffiVoid_Int32$1 { _ObjCBlock_ffiVoid_Int32$1_sharedCallable.nativeFunction.cast(), (int arg0) => fn(arg0), keepIsolateAlive, - trampoline: _ObjCBlock_ffiVoid_Int32$1_listenerCallable.nativeFunction - .cast(), + ); + print( + 'listener send port: ' + + _ObjCBlock_ffiVoid_Int32$1_listenerSendPort.toString(), ); return objc.ObjCBlock( tramp, diff --git a/pkgs/ffigen/test/native_objc_test/block_test.dart b/pkgs/ffigen/test/native_objc_test/block_test.dart index 2cd343f8b..57f5a084b 100644 --- a/pkgs/ffigen/test/native_objc_test/block_test.dart +++ b/pkgs/ffigen/test/native_objc_test/block_test.dart @@ -115,6 +115,7 @@ void main() { await hasRun.future; expect(value, 123); + print('test done: $value'); }); /*test('Listener block new thread', () async {